2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.1svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='llvm 3.1svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
759 HAVE_LINK_VERSION_SCRIPT
762 CONVENIENCE_LTDL_TRUE
763 CONVENIENCE_LTDL_FALSE
766 NO_MISSING_FIELD_INITIALIZERS
787 ENABLE_VISIBILITY_INLINES_HIDDEN
793 ac_precious_vars='build_alias
804 ac_subdirs_all='projects/llvm-gcc
808 projects/llvm-poolalloc
811 projects/llvm-stacker
819 # Initialize some variables set by options.
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of llvm 3.1svn:";;
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-polly Use polly if available (default is YES)
1393 --enable-optimized Compile with optimizations enabled (default is NO)
1394 --enable-profiling Compile with profiling enabled (default is NO)
1395 --enable-assertions Compile with assertion checks enabled (default is
1397 --enable-expensive-checks
1398 Compile with expensive debug checks enabled (default
1400 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1403 optimization is on and YES if it's off)
1404 --enable-jit Enable Just In Time Compiling (default is YES)
1405 --enable-docs Build documents (default is YES)
1406 --enable-doxygen Build doxygen documentation (default is NO)
1407 --enable-threads Use threads if available (default is YES)
1408 --enable-pthreads Use pthreads if available (default is YES)
1409 --enable-pic Build LLVM with Position Independent Code (default
1411 --enable-shared Build a shared library and link tools against it
1413 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1414 Win32 DLL (default is NO)
1415 --enable-timestamps Enable embedding timestamp information in build
1417 --enable-targets Build specific host targets: all or
1418 target1,target2,... Valid targets are: host, x86,
1419 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1420 xcore, msp430, ptx, cbe, and cpp (default=all)
1421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-ltdl-install install libltdl
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-optimize-option Select the compiler options to use for optimized
1433 --with-extra-options Specify additional options to compile LLVM with
1434 --with-extra-ld-options Specify additional options to link LLVM with
1435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 --with-clang-srcdir Directory to the out-of-tree Clang source
1438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1441 --with-c-include-dirs Colon separated list of directories clang will
1443 --with-cxx-include-root Directory with the libstdc++ headers.
1444 --with-cxx-include-arch Architecture of the libstdc++ headers.
1445 --with-cxx-include-32bit-dir
1446 32 bit multilib dir.
1447 --with-cxx-include-64bit-dir
1448 64 bit multilib directory.
1449 --with-binutils-include Specify path to binutils/include/ containing
1450 plugin-api.h file for gold plugin.
1451 --with-bug-report-url Specify the URL where bug reports should be
1452 submitted (default=http://llvm.org/bugs/)
1453 --with-tclinclude directory where tcl headers are
1454 --with-udis86=<path> Use udis86 external x86 disassembler library
1455 --with-oprofile=<prefix>
1456 Tell OProfile >= 0.9.4 how to symbolize JIT output
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <llvmbugs@cs.uiuc.edu>.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" || continue
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1500 .) # We are building in place.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1533 llvm configure 3.1svn
1534 generated by GNU Autoconf 2.60
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1541 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1549 It was created by llvm $as_me 3.1svn, which was
1550 generated by GNU Autoconf 2.60. Invocation command line was
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1575 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir=.
1586 echo "PATH: $as_dir"
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_must_keep_next=false
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627 if test $ac_must_keep_next = true; then
1628 ac_must_keep_next=false # Got value, back to normal.
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 -* ) ac_must_keep_next=true ;;
1642 ac_configure_args="$ac_configure_args '$ac_arg'"
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log. We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1666 # The following way of writing the cache mishandles newlines in values,
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677 _ | IFS | as_nl) ;; #(
1678 *) $as_unset $ac_var ;;
1683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
1686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1703 for ac_var in $ac_subst_vars
1705 eval ac_val=\$$ac_var
1707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 echo "$ac_var='\''$ac_val'\''"
1713 if test -n "$ac_subst_files"; then
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1720 for ac_var in $ac_subst_files
1722 eval ac_val=\$$ac_var
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 echo "$ac_var='\''$ac_val'\''"
1731 if test -s confdefs.h; then
1741 test "$ac_signal" != 0 &&
1742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
1745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749 for ac_signal in 1 2 13 15; do
1750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1757 # Predefined preprocessor variables.
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787 set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
1797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800 sed 's/^/| /' "$ac_site_file" >&5
1805 if test -r "$cache_file"; then
1806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
1817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1822 # Check that the precious variables saved in the cache have kept the same
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
1828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
1830 case $ac_old_set,$ac_new_set in
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
1842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845 echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847 echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 *) ac_arg=$ac_var=$ac_new_val ;;
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863 if $ac_cache_corrupted; then
1864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1912 for ac_dir in autoconf "$srcdir"/autoconf; do
1913 if test -f "$ac_dir/install-sh"; then
1915 ac_install_sh="$ac_aux_dir/install-sh -c"
1917 elif test -f "$ac_dir/install.sh"; then
1919 ac_install_sh="$ac_aux_dir/install.sh -c"
1921 elif test -f "$ac_dir/shtool"; then
1923 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 if test -z "$ac_aux_dir"; then
1928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930 { (exit 1); exit 1; }; }
1933 # These three variables are undocumented and unsupported,
1934 # and are intended to be withdrawn in a future Autoconf release.
1935 # They can cause serious problems if a builder's source tree is in a directory
1936 # whose full name contains unusual characters.
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943 if test ${srcdir} != "." ; then
1944 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1945 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947 { (exit 1); exit 1; }; }
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957 for ac_prog in clang llvm-gcc gcc
1959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 if test -n "$CC"; then
1988 { echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6; }
1991 { echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6; }
1996 test -n "$CC" && break
1999 if test -z "$CC"; then
2001 for ac_prog in clang llvm-gcc gcc
2003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2004 set dummy $ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_ac_ct_CC="$ac_prog"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2040 test -n "$ac_ct_CC" && break
2043 if test "x$ac_ct_CC" = x; then
2046 case $cross_compiling:$ac_tool_warned in
2048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049 whose name does not start with the host triplet. If you think this
2050 configuration is useful to you, please write to autoconf@gnu.org." >&5
2051 echo "$as_me: 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." >&2;}
2054 ac_tool_warned=yes ;;
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO: checking for C compiler version" >&5
2069 ac_compiler=`set X $ac_compile; echo $2`
2070 { (ac_try="$ac_compiler --version >&5"
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076 (eval "$ac_compiler --version >&5") 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080 { (ac_try="$ac_compiler -v >&5"
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler -v >&5") 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (ac_try="$ac_compiler -V >&5"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -V >&5") 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2101 cat >conftest.$ac_ext <<_ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2121 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2125 # List of possible output files, starting from the most likely.
2126 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127 # only as a last resort. b.out is created by i960 compilers.
2128 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2130 # The IRIX 6 linker writes into existing files which may not be
2131 # executable, retaining their permissions. Remove them first so a
2132 # subsequent execution test works.
2134 for ac_file in $ac_files
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2143 if { (ac_try="$ac_link_default"
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149 (eval "$ac_link_default") 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2156 # so that the user can short-circuit this test for compilers unknown to
2158 for ac_file in $ac_files
2160 test -f "$ac_file" || continue
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2165 # We found the default executable, but exeext='' is most
2169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 # We set ac_cv_exeext here because the later test for it is not
2174 # safe: cross compilers may not add the suffix if given an `-o'
2175 # argument, so we may need to know it at that point already.
2176 # Even if this section looks crufty: it has the advantage of
2183 test "$ac_cv_exeext" = no && ac_cv_exeext=
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
2196 ac_exeext=$ac_cv_exeext
2197 { echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6; }
2200 # Check that the compiler produces executables we can run. If not, either
2201 # the compiler is broken, or we cross compile.
2202 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_try") 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2219 if test "$cross_compiling" = maybe; then
2222 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236 ac_clean_files=$ac_clean_files_save
2237 # Check that the compiler produces executables we can run. If not, either
2238 # the compiler is broken, or we cross compile.
2239 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6; }
2244 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246 if { (ac_try="$ac_link"
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252 (eval "$ac_link") 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
2256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2260 for ac_file in conftest.exe conftest conftest.*; do
2261 test -f "$ac_file" || continue
2263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2284 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.o conftest.obj
2305 if { (ac_try="$ac_compile"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compile") 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 for ac_file in conftest.o conftest.obj conftest.*; do
2316 test -f "$ac_file" || continue;
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6; }
2338 OBJEXT=$ac_cv_objext
2340 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.$ac_ext <<_ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2363 rm -f conftest.$ac_objext
2364 if { (ac_try="$ac_compile"
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compile") 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378 { (case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_try") 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 ac_save_c_werror_flag=$ac_c_werror_flag
2420 ac_c_werror_flag=yes
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2447 grep -v '^ *+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453 { (case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_try") 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 rm -f conftest.$ac_objext
2494 if { (ac_try="$ac_compile"
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_compile") 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508 { (case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_try") 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 ac_c_werror_flag=$ac_save_c_werror_flag
2534 cat >conftest.$ac_ext <<_ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2549 rm -f conftest.$ac_objext
2550 if { (ac_try="$ac_compile"
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_compile") 2>conftest.er1
2558 grep -v '^ *+' conftest.er1 >conftest.err
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_try") 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_c_werror_flag=$ac_save_c_werror_flag
2600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2602 if test "$ac_test_CFLAGS" = set; then
2603 CFLAGS=$ac_save_CFLAGS
2604 elif test $ac_cv_prog_cc_g = yes; then
2605 if test "$GCC" = yes; then
2611 if test "$GCC" = yes; then
2617 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_cc_c89+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 ac_cv_prog_cc_c89=no
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2632 #include <sys/types.h>
2633 #include <sys/stat.h>
2634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2635 struct buf { int x; };
2636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637 static char *e (p, i)
2643 static char *f (char * (*g) (char **, int), char **p, ...)
2648 s = g (p, va_arg (v,int));
2653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2654 function prototypes and stuff, but not '\xHH' hex character constants.
2655 These don't provoke an error unfortunately, instead are silently treated
2656 as 'x'. The following induces an error, until -std is added to get
2657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2658 array size at least. It's necessary to write '\x00'==0 to get something
2659 that's true only with -std. */
2660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663 inside strings and character constants. */
2665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2667 int test (int i, double x);
2668 struct s1 {int (*f) (int a);};
2669 struct s2 {int (*f) (double a);};
2670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684 CC="$ac_save_CC $ac_arg"
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_try") 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 ac_cv_prog_cc_c89=$ac_arg
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f core conftest.err conftest.$ac_objext
2728 test "x$ac_cv_prog_cc_c89" != "xno" && break
2730 rm -f conftest.$ac_ext
2735 case "x$ac_cv_prog_cc_c89" in
2737 { echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6; } ;;
2740 { echo "$as_me:$LINENO: result: unsupported" >&5
2741 echo "${ECHO_T}unsupported" >&6; } ;;
2743 CC="$CC $ac_cv_prog_cc_c89"
2744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 ac_cpp='$CXXCPP $CPPFLAGS'
2757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760 if test -z "$CXX"; then
2761 if test -n "$CCC"; then
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in clang++ llvm-g++ g++
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CXX+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$CXX"; then
2775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 if test -n "$CXX"; then
2796 { echo "$as_me:$LINENO: result: $CXX" >&5
2797 echo "${ECHO_T}$CXX" >&6; }
2799 { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2804 test -n "$CXX" && break
2807 if test -z "$CXX"; then
2809 for ac_prog in clang++ llvm-g++ g++
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -n "$ac_ct_CXX"; then
2819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CXX="$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839 if test -n "$ac_ct_CXX"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2848 test -n "$ac_ct_CXX" && break
2851 if test "x$ac_ct_CXX" = x; then
2854 case $cross_compiling:$ac_tool_warned in
2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet. If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&5
2859 echo "$as_me: 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." >&2;}
2862 ac_tool_warned=yes ;;
2870 # Provide some information about the compiler.
2871 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872 ac_compiler=`set X $ac_compile; echo $2`
2873 { (ac_try="$ac_compiler --version >&5"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler --version >&5") 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -v >&5") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2904 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975 GXX=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CXXFLAGS=${CXXFLAGS+set}
2977 ac_save_CXXFLAGS=$CXXFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cxx_g+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984 ac_cxx_werror_flag=yes
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_prog_cxx_g=yes
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cxx_g=yes
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166 if test "$ac_test_CXXFLAGS" = set; then
3167 CXXFLAGS=$ac_save_CXXFLAGS
3168 elif test $ac_cv_prog_cxx_g = yes; then
3169 if test "$GXX" = yes; then
3175 if test "$GXX" = yes; then
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3194 # On Suns, sometimes $CPP names a directory.
3195 if test -n "$CPP" && test -d "$CPP"; then
3198 if test -z "$CPP"; then
3199 if test "${ac_cv_prog_CPP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 # Double quotes because CPP needs to be expanded
3203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3206 for ac_c_preproc_warn_flag in '' yes
3208 # Use a header file that comes with gcc, so configuring glibc
3209 # with a fresh cross-compiler works.
3210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211 # <limits.h> exists even on freestanding compilers.
3212 # On the NeXT, cc -E runs the code through the compiler's parser,
3213 # not just through cpp. "Syntax error" is here to catch this case.
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3221 # include <limits.h>
3223 # include <assert.h>
3227 if { (ac_try="$ac_cpp conftest.$ac_ext"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3249 if test -z "$ac_cpp_err"; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 # Broken: fails on valid input.
3259 rm -f conftest.err conftest.$ac_ext
3261 # OK, works on sane cases. Now check whether nonexistent headers
3262 # can be detected and how.
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <ac_nonexistent.h>
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293 if test -z "$ac_cpp_err"; then
3294 # Broken: success on invalid input.
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 # Passes both tests.
3305 rm -f conftest.err conftest.$ac_ext
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3322 { echo "$as_me:$LINENO: result: $CPP" >&5
3323 echo "${ECHO_T}$CPP" >&6; }
3325 for ac_c_preproc_warn_flag in '' yes
3327 # Use a header file that comes with gcc, so configuring glibc
3328 # with a fresh cross-compiler works.
3329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330 # <limits.h> exists even on freestanding compilers.
3331 # On the NeXT, cc -E runs the code through the compiler's parser,
3332 # not just through cpp. "Syntax error" is here to catch this case.
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3340 # include <limits.h>
3342 # include <assert.h>
3346 if { (ac_try="$ac_cpp conftest.$ac_ext"
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3368 if test -z "$ac_cpp_err"; then
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 # Broken: fails on valid input.
3378 rm -f conftest.err conftest.$ac_ext
3380 # OK, works on sane cases. Now check whether nonexistent headers
3381 # can be detected and how.
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <ac_nonexistent.h>
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412 if test -z "$ac_cpp_err"; then
3413 # Broken: success on invalid input.
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 # Passes both tests.
3424 rm -f conftest.err conftest.$ac_ext
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 if test -d ${srcdir}/projects/llvm-gcc ; then
3449 subdirs="$subdirs projects/llvm-gcc"
3453 if test -d ${srcdir}/projects/test-suite ; then
3454 subdirs="$subdirs projects/test-suite"
3458 if test -d ${srcdir}/projects/llvm-test ; then
3459 subdirs="$subdirs projects/llvm-test"
3463 if test -d ${srcdir}/projects/poolalloc ; then
3464 subdirs="$subdirs projects/poolalloc"
3468 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469 subdirs="$subdirs projects/llvm-poolalloc"
3473 for i in `ls ${srcdir}/projects`
3475 if test -d ${srcdir}/projects/${i} ; then
3477 sample) subdirs="$subdirs projects/sample"
3479 privbracket) subdirs="$subdirs projects/privbracket"
3481 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3483 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3485 llvm-java) subdirs="$subdirs projects/llvm-java"
3487 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3489 safecode) subdirs="$subdirs projects/safecode"
3491 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3499 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3506 # Check whether --enable-polly was given.
3507 if test "${enable_polly+set}" = set; then
3508 enableval=$enable_polly;
3513 case "$enableval" in
3518 default) ENABLE_POLLY=1
3520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522 { (exit 1); exit 1; }; } ;;
3526 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3529 subdirs="$subdirs tools/polly"
3534 # Make sure we can run config.sub.
3535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538 { (exit 1); exit 1; }; }
3540 { echo "$as_me:$LINENO: checking build system type" >&5
3541 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_build+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_build_alias=$build_alias
3546 test "x$ac_build_alias" = x &&
3547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548 test "x$ac_build_alias" = x &&
3549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551 { (exit 1); exit 1; }; }
3552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555 { (exit 1); exit 1; }; }
3558 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559 echo "${ECHO_T}$ac_cv_build" >&6; }
3560 case $ac_cv_build in
3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563 echo "$as_me: error: invalid value of canonical build" >&2;}
3564 { (exit 1); exit 1; }; };;
3567 ac_save_IFS=$IFS; IFS='-'
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3580 { echo "$as_me:$LINENO: checking host system type" >&5
3581 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582 if test "${ac_cv_host+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 if test "x$host_alias" = x; then
3586 ac_cv_host=$ac_cv_build
3588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591 { (exit 1); exit 1; }; }
3595 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596 echo "${ECHO_T}$ac_cv_host" >&6; }
3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600 echo "$as_me: error: invalid value of canonical host" >&2;}
3601 { (exit 1); exit 1; }; };;
3604 ac_save_IFS=$IFS; IFS='-'
3610 # Remember, the first character of IFS is used to create $*,
3611 # except with old shells:
3614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3617 { echo "$as_me:$LINENO: checking target system type" >&5
3618 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619 if test "${ac_cv_target+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test "x$target_alias" = x; then
3623 ac_cv_target=$ac_cv_host
3625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628 { (exit 1); exit 1; }; }
3632 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633 echo "${ECHO_T}$ac_cv_target" >&6; }
3634 case $ac_cv_target in
3636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637 echo "$as_me: error: invalid value of canonical target" >&2;}
3638 { (exit 1); exit 1; }; };;
3640 target=$ac_cv_target
3641 ac_save_IFS=$IFS; IFS='-'
3647 # Remember, the first character of IFS is used to create $*,
3648 # except with old shells:
3651 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3654 # The aliases save the names the user supplied, while $host etc.
3655 # will get canonicalized.
3656 test -n "$target_alias" &&
3657 test "$program_prefix$program_suffix$program_transform_name" = \
3659 program_prefix=${target_alias}-
3661 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663 if test "${llvm_cv_os_type+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="AIX"
3671 llvm_cv_platform_type="Unix" ;;
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="IRIX"
3676 llvm_cv_platform_type="Unix" ;;
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Cygwin"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,-all_load"
3684 llvm_cv_no_link_all_option="-Wl,-noall_load"
3685 llvm_cv_os_type="Darwin"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,-all_load"
3689 llvm_cv_no_link_all_option="-Wl,-noall_load"
3690 llvm_cv_os_type="Minix"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="FreeBSD"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="OpenBSD"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="NetBSD"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="DragonFly"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="HP-UX"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Interix"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Linux"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,-z,allextract"
3729 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730 llvm_cv_os_type="SunOS"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,-z,allextract"
3734 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735 llvm_cv_os_type="AuroraUX"
3736 llvm_cv_platform_type="Unix" ;;
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Win32"
3741 llvm_cv_platform_type="Win32" ;;
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="MingW"
3746 llvm_cv_platform_type="Win32" ;;
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Haiku"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Freestanding"
3756 llvm_cv_platform_type="Unix" ;;
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="Freestanding"
3761 llvm_cv_platform_type="Unix" ;;
3763 llvm_cv_link_all_option=""
3764 llvm_cv_no_link_all_option=""
3765 llvm_cv_os_type="Unknown"
3766 llvm_cv_platform_type="Unknown" ;;
3769 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3772 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774 if test "${llvm_cv_target_os_type+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 llvm_cv_target_os_type="AIX" ;;
3781 llvm_cv_target_os_type="IRIX" ;;
3783 llvm_cv_target_os_type="Cygwin" ;;
3785 llvm_cv_target_os_type="Darwin" ;;
3787 llvm_cv_target_os_type="Minix" ;;
3789 llvm_cv_target_os_type="FreeBSD" ;;
3791 llvm_cv_target_os_type="OpenBSD" ;;
3793 llvm_cv_target_os_type="NetBSD" ;;
3795 llvm_cv_target_os_type="DragonFly" ;;
3797 llvm_cv_target_os_type="HP-UX" ;;
3799 llvm_cv_target_os_type="Interix" ;;
3801 llvm_cv_target_os_type="Linux" ;;
3803 llvm_cv_target_os_type="SunOS" ;;
3805 llvm_cv_target_os_type="AuroraUX" ;;
3807 llvm_cv_target_os_type="Win32" ;;
3809 llvm_cv_target_os_type="MingW" ;;
3811 llvm_cv_target_os_type="Haiku" ;;
3813 llvm_cv_target_os_type="RTEMS" ;;
3815 llvm_cv_target_os_type="NativeClient" ;;
3817 llvm_cv_target_os_type="Freestanding" ;;
3819 llvm_cv_target_os_type="Unknown" ;;
3822 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3825 if test "$llvm_cv_os_type" = "Unknown" ; then
3826 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828 { (exit 1); exit 1; }; }
3833 HOST_OS=$llvm_cv_os_type
3835 TARGET_OS=$llvm_cv_target_os_type
3838 LINKALL=$llvm_cv_link_all_option
3840 NOLINKALL=$llvm_cv_no_link_all_option
3843 case $llvm_cv_platform_type in
3846 cat >>confdefs.h <<\_ACEOF
3847 #define LLVM_ON_UNIX 1
3857 cat >>confdefs.h <<\_ACEOF
3858 #define LLVM_ON_WIN32 1
3868 { echo "$as_me:$LINENO: checking target architecture" >&5
3869 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870 if test "${llvm_cv_target_arch+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 i?86-*) llvm_cv_target_arch="x86" ;;
3875 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3876 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3877 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3878 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3879 arm*-*) llvm_cv_target_arch="ARM" ;;
3880 mips-*) llvm_cv_target_arch="Mips" ;;
3881 xcore-*) llvm_cv_target_arch="XCore" ;;
3882 msp430-*) llvm_cv_target_arch="MSP430" ;;
3883 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3884 ptx-*) llvm_cv_target_arch="PTX" ;;
3885 *) llvm_cv_target_arch="Unknown" ;;
3888 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3891 if test "$llvm_cv_target_arch" = "Unknown" ; then
3892 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3896 # Determine the LLVM native architecture for the target
3897 case "$llvm_cv_target_arch" in
3898 x86) LLVM_NATIVE_ARCH="X86" ;;
3899 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3900 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3903 ARCH=$llvm_cv_target_arch
3908 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 # Extract the first word of "grep ggrep" to use in msg output
3914 if test -z "$GREP"; then
3915 set dummy grep ggrep; ac_prog_name=$2
3916 if test "${ac_cv_path_GREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_path_GREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925 test -z "$as_dir" && as_dir=.
3926 for ac_prog in grep ggrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
3931 # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 echo 'GREP' >> "conftest.nl"
3944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946 ac_count=`expr $ac_count + 1`
3947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP="$ac_path_GREP"
3950 ac_path_GREP_max=$ac_count
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959 $ac_path_GREP_found && break 3
3969 GREP="$ac_cv_path_GREP"
3970 if test -z "$GREP"; then
3971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3977 ac_cv_path_GREP=$GREP
3982 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3984 GREP="$ac_cv_path_GREP"
3987 { echo "$as_me:$LINENO: checking for egrep" >&5
3988 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3995 # Extract the first word of "egrep" to use in msg output
3996 if test -z "$EGREP"; then
3997 set dummy egrep; ac_prog_name=$2
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
4013 # Check for GNU $ac_path_EGREP
4014 case `"$ac_path_EGREP" --version 2>&1` in
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 echo 'EGREP' >> "conftest.nl"
4026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 ac_count=`expr $ac_count + 1`
4029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 $ac_path_EGREP_found && break 3
4051 EGREP="$ac_cv_path_EGREP"
4052 if test -z "$EGREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4059 ac_cv_path_EGREP=$EGREP
4065 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4067 EGREP="$ac_cv_path_EGREP"
4070 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072 if test "${ac_cv_header_stdc+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4128 ac_cv_header_stdc=yes
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_cv_header_stdc=no
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then
4153 ac_cv_header_stdc=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then
4174 ac_cv_header_stdc=no
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4197 # define ISLOWER(c) \
4198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
4211 || toupper (i) != TOUPPER (i))
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4238 echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4243 ac_cv_header_stdc=no
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
4274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4288 #include <$ac_header>
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4299 grep -v '^ *+' conftest.er1 >conftest.err
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4324 eval "$as_ac_Header=yes"
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 eval "$as_ac_Header=no"
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_res=`eval echo '${'$as_ac_Header'}'`
4335 { echo "$as_me:$LINENO: result: $ac_res" >&5
4336 echo "${ECHO_T}$ac_res" >&6; }
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338 cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_bigendian+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 # See if sys/param.h defines the BYTE_ORDER macro.
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <sys/types.h>
4360 #include <sys/param.h>
4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4407 # It does; now see whether it defined to BIG_ENDIAN or not.
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 #include <sys/param.h>
4420 #if BYTE_ORDER != BIG_ENDIAN
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4437 grep -v '^ *+' conftest.er1 >conftest.err
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4462 ac_cv_c_bigendian=yes
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_cv_c_bigendian=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 # It does not; compile a test program.
4476 if test "$cross_compiling" = yes; then
4477 # try to guess the endianness by grepping values into an object file
4478 ac_cv_c_bigendian=unknown
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4494 _ascii (); _ebcdic ();
4499 rm -f conftest.$ac_objext
4500 if { (ac_try="$ac_compile"
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_compile") 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4534 ac_cv_c_bigendian=yes
4536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537 if test "$ac_cv_c_bigendian" = unknown; then
4538 ac_cv_c_bigendian=no
4540 # finding both strings is unlikely to happen, but who knows?
4541 ac_cv_c_bigendian=unknown
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 cat >conftest.$ac_ext <<_ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 $ac_includes_default
4564 /* Are we little or big endian? From Harbison&Steele. */
4568 char c[sizeof (long int)];
4571 return u.c[sizeof (long int) - 1] == 1;
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_c_bigendian=no
4599 echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4604 ac_cv_c_bigendian=yes
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616 case $ac_cv_c_bigendian in
4624 { { echo "$as_me:$LINENO: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626 echo "$as_me: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4632 if test "$cross_compiling" = yes; then
4633 LLVM_CROSS_COMPILING=1
4636 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638 if test "${ac_cv_build_exeext+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642 ac_cv_build_exeext=.exe
4644 ac_build_prefix=${build_alias}-
4646 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647 set dummy ${ac_build_prefix}gcc; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -n "$BUILD_CC"; then
4654 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 BUILD_CC=$ac_cv_prog_BUILD_CC
4674 if test -n "$BUILD_CC"; then
4675 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676 echo "${ECHO_T}$BUILD_CC" >&6; }
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4683 if test -z "$BUILD_CC"; then
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685 set dummy gcc; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test -n "$BUILD_CC"; then
4692 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_BUILD_CC="gcc"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 BUILD_CC=$ac_cv_prog_BUILD_CC
4712 if test -n "$BUILD_CC"; then
4713 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714 echo "${ECHO_T}$BUILD_CC" >&6; }
4716 { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4721 if test -z "$BUILD_CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723 set dummy cc; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$BUILD_CC"; then
4730 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4744 ac_cv_prog_BUILD_CC="cc"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_BUILD_CC
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set BUILD_CC to just the basename; use the full file name.
4761 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4766 BUILD_CC=$ac_cv_prog_BUILD_CC
4767 if test -n "$BUILD_CC"; then
4768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769 echo "${ECHO_T}$BUILD_CC" >&6; }
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4778 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780 { (exit 1); exit 1; }; }
4781 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4783 echo 'int main () { return 0; }' > conftest.$ac_ext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4786 (eval $ac_build_link) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
4790 for file in conftest.*; do
4792 *.c | *.o | *.obj | *.dSYM) ;;
4793 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4797 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799 { (exit 1); exit 1; }; }
4802 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4807 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4808 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4810 ac_build_exeext=$BUILD_EXEEXT
4812 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}g++; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 if test -n "$BUILD_CXX"; then
4821 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841 if test -n "$BUILD_CXX"; then
4842 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843 echo "${ECHO_T}$BUILD_CXX" >&6; }
4845 { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4850 if test -z "$BUILD_CXX"; then
4851 # Extract the first word of "g++", so it can be a program name with args.
4852 set dummy g++; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 if test -n "$BUILD_CXX"; then
4859 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_BUILD_CXX="g++"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879 if test -n "$BUILD_CXX"; then
4880 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881 echo "${ECHO_T}$BUILD_CXX" >&6; }
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4888 if test -z "$BUILD_CXX"; then
4889 # Extract the first word of "c++", so it can be a program name with args.
4890 set dummy c++; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 if test -n "$BUILD_CXX"; then
4897 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908 ac_prog_rejected=yes
4911 ac_cv_prog_BUILD_CXX="c++"
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CXX
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CXX to just the basename; use the full file name.
4928 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4933 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934 if test -n "$BUILD_CXX"; then
4935 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936 echo "${ECHO_T}$BUILD_CXX" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4946 LLVM_CROSS_COMPILING=0
4950 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4961 # Check whether --enable-optimized was given.
4962 if test "${enable_optimized+set}" = set; then
4963 enableval=$enable_optimized;
4968 if test ${enableval} = "no" ; then
4972 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4976 # Check whether --enable-profiling was given.
4977 if test "${enable_profiling+set}" = set; then
4978 enableval=$enable_profiling;
4983 if test ${enableval} = "no" ; then
4987 ENABLE_PROFILING=ENABLE_PROFILING=1
4991 # Check whether --enable-assertions was given.
4992 if test "${enable_assertions+set}" = set; then
4993 enableval=$enable_assertions;
4998 if test ${enableval} = "yes" ; then
5002 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5006 # Check whether --enable-expensive-checks was given.
5007 if test "${enable_expensive_checks+set}" = set; then
5008 enableval=$enable_expensive_checks;
5013 if test ${enableval} = "yes" ; then
5014 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5016 EXPENSIVE_CHECKS=yes
5019 ENABLE_EXPENSIVE_CHECKS=
5025 # Check whether --enable-debug-runtime was given.
5026 if test "${enable_debug_runtime+set}" = set; then
5027 enableval=$enable_debug_runtime;
5032 if test ${enableval} = "no" ; then
5036 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5040 # Check whether --enable-debug-symbols was given.
5041 if test "${enable_debug_symbols+set}" = set; then
5042 enableval=$enable_debug_symbols;
5047 if test ${enableval} = "no" ; then
5051 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5055 # Check whether --enable-jit was given.
5056 if test "${enable_jit+set}" = set; then
5057 enableval=$enable_jit;
5062 if test ${enableval} = "no"
5067 case "$llvm_cv_target_arch" in
5068 x86) TARGET_HAS_JIT=1
5070 Sparc) TARGET_HAS_JIT=0
5072 PowerPC) TARGET_HAS_JIT=1
5074 x86_64) TARGET_HAS_JIT=1
5076 Alpha) TARGET_HAS_JIT=0
5078 ARM) TARGET_HAS_JIT=1
5080 Mips) TARGET_HAS_JIT=1
5082 XCore) TARGET_HAS_JIT=0
5084 MSP430) TARGET_HAS_JIT=0
5086 MBlaze) TARGET_HAS_JIT=0
5088 PTX) TARGET_HAS_JIT=0
5095 # Check whether --enable-docs was given.
5096 if test "${enable_docs+set}" = set; then
5097 enableval=$enable_docs;
5102 case "$enableval" in
5107 default) ENABLE_DOCS=1
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5110 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5114 # Check whether --enable-doxygen was given.
5115 if test "${enable_doxygen+set}" = set; then
5116 enableval=$enable_doxygen;
5121 case "$enableval" in
5122 yes) ENABLE_DOXYGEN=1
5124 no) ENABLE_DOXYGEN=0
5126 default) ENABLE_DOXYGEN=0
5128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5133 # Check whether --enable-threads was given.
5134 if test "${enable_threads+set}" = set; then
5135 enableval=$enable_threads;
5140 case "$enableval" in
5141 yes) ENABLE_THREADS=1
5143 no) ENABLE_THREADS=0
5145 default) ENABLE_THREADS=1
5147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5148 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
5152 cat >>confdefs.h <<_ACEOF
5153 #define ENABLE_THREADS $ENABLE_THREADS
5157 # Check whether --enable-pthreads was given.
5158 if test "${enable_pthreads+set}" = set; then
5159 enableval=$enable_pthreads;
5164 case "$enableval" in
5165 yes) ENABLE_PTHREADS=1
5167 no) ENABLE_PTHREADS=0
5169 default) ENABLE_PTHREADS=1
5171 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5172 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5173 { (exit 1); exit 1; }; } ;;
5176 # Check whether --enable-pic was given.
5177 if test "${enable_pic+set}" = set; then
5178 enableval=$enable_pic;
5183 case "$enableval" in
5188 default) ENABLE_PIC=1
5190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5191 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5192 { (exit 1); exit 1; }; } ;;
5195 cat >>confdefs.h <<_ACEOF
5196 #define ENABLE_PIC $ENABLE_PIC
5200 # Check whether --enable-shared was given.
5201 if test "${enable_shared+set}" = set; then
5202 enableval=$enable_shared;
5207 case "$enableval" in
5208 yes) ENABLE_SHARED=1
5212 default) ENABLE_SHARED=0
5214 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5215 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5216 { (exit 1); exit 1; }; } ;;
5219 # Check whether --enable-embed-stdcxx was given.
5220 if test "${enable_embed_stdcxx+set}" = set; then
5221 enableval=$enable_embed_stdcxx;
5226 case "$enableval" in
5227 yes) ENABLE_EMBED_STDCXX=1
5229 no) ENABLE_EMBED_STDCXX=0
5231 default) ENABLE_EMBED_STDCXX=0
5233 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5234 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5235 { (exit 1); exit 1; }; } ;;
5238 # Check whether --enable-timestamps was given.
5239 if test "${enable_timestamps+set}" = set; then
5240 enableval=$enable_timestamps;
5245 case "$enableval" in
5246 yes) ENABLE_TIMESTAMPS=1
5248 no) ENABLE_TIMESTAMPS=0
5250 default) ENABLE_TIMESTAMPS=1
5252 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5253 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5257 cat >>confdefs.h <<_ACEOF
5258 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5263 # Check whether --enable-targets was given.
5264 if test "${enable_targets+set}" = set; then
5265 enableval=$enable_targets;
5270 if test "$enableval" = host-only ; then
5273 case "$enableval" in
5274 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5275 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5277 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5279 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5280 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5281 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5282 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5283 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5284 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5285 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5287 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5288 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5289 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5290 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5291 host) case "$llvm_cv_target_arch" in
5292 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5294 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5295 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5296 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5297 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5298 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5299 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5300 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5301 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5302 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5303 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5304 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5305 echo "$as_me: error: Can not set target to build" >&2;}
5306 { (exit 1); exit 1; }; } ;;
5308 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5309 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5310 { (exit 1); exit 1; }; } ;;
5315 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5318 # Determine whether we are building LLVM support for the native architecture.
5319 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5320 for a_target in $TARGETS_TO_BUILD; do
5321 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5323 cat >>confdefs.h <<_ACEOF
5324 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5327 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5328 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5329 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5330 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5331 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5332 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5335 cat >>confdefs.h <<_ACEOF
5336 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5340 cat >>confdefs.h <<_ACEOF
5341 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5345 cat >>confdefs.h <<_ACEOF
5346 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5354 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5364 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5365 # target feature def files.
5366 LLVM_ENUM_TARGETS=""
5367 LLVM_ENUM_ASM_PRINTERS=""
5368 LLVM_ENUM_ASM_PARSERS=""
5369 LLVM_ENUM_DISASSEMBLERS=""
5370 for target_to_build in $TARGETS_TO_BUILD; do
5371 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5372 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5373 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5375 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5376 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5378 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5379 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5387 # Check whether --enable-cbe-printf-a was given.
5388 if test "${enable_cbe_printf_a+set}" = set; then
5389 enableval=$enable_cbe_printf_a;
5394 case "$enableval" in
5395 yes) ENABLE_CBE_PRINTF_A=1
5397 no) ENABLE_CBE_PRINTF_A=0
5399 default) ENABLE_CBE_PRINTF_A=1
5401 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5402 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5403 { (exit 1); exit 1; }; } ;;
5406 cat >>confdefs.h <<_ACEOF
5407 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5412 # Check whether --with-optimize-option was given.
5413 if test "${with_optimize_option+set}" = set; then
5414 withval=$with_optimize_option;
5419 { echo "$as_me:$LINENO: checking optimization flags" >&5
5420 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5423 case "$llvm_cv_os_type" in
5424 FreeBSD) optimize_option=-O2 ;;
5425 MingW) optimize_option=-O2 ;;
5426 *) optimize_option=-O3 ;;
5428 *) optimize_option="$withval" ;;
5430 OPTIMIZE_OPTION=$optimize_option
5432 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5433 echo "${ECHO_T}$optimize_option" >&6; }
5436 # Check whether --with-extra-options was given.
5437 if test "${with_extra_options+set}" = set; then
5438 withval=$with_extra_options;
5444 default) EXTRA_OPTIONS= ;;
5445 *) EXTRA_OPTIONS=$withval ;;
5447 EXTRA_OPTIONS=$EXTRA_OPTIONS
5451 # Check whether --with-extra-ld-options was given.
5452 if test "${with_extra_ld_options+set}" = set; then
5453 withval=$with_extra_ld_options;
5459 default) EXTRA_LD_OPTIONS= ;;
5460 *) EXTRA_LD_OPTIONS=$withval ;;
5462 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5465 # Check whether --enable-bindings was given.
5466 if test "${enable_bindings+set}" = set; then
5467 enableval=$enable_bindings;
5472 BINDINGS_TO_BUILD=""
5473 case "$enableval" in
5474 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5475 all ) BINDINGS_TO_BUILD="ocaml" ;;
5476 none | no) BINDINGS_TO_BUILD="" ;;
5477 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5478 case "$a_binding" in
5479 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5480 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5481 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5482 { (exit 1); exit 1; }; } ;;
5489 # Check whether --with-ocaml-libdir was given.
5490 if test "${with_ocaml_libdir+set}" = set; then
5491 withval=$with_ocaml_libdir;
5497 auto) with_ocaml_libdir="$withval" ;;
5498 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5499 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5500 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5501 { (exit 1); exit 1; }; } ;;
5505 # Check whether --with-clang-srcdir was given.
5506 if test "${with_clang_srcdir+set}" = set; then
5507 withval=$with_clang_srcdir;
5513 -) clang_src_root="" ;;
5514 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5515 *) clang_src_root="$ac_pwd/$withval" ;;
5517 CLANG_SRC_ROOT=$clang_src_root
5521 # Check whether --with-clang-resource-dir was given.
5522 if test "${with_clang_resource_dir+set}" = set; then
5523 withval=$with_clang_resource_dir;
5529 cat >>confdefs.h <<_ACEOF
5530 #define CLANG_RESOURCE_DIR "$withval"
5535 # Check whether --with-c-include-dirs was given.
5536 if test "${with_c_include_dirs+set}" = set; then
5537 withval=$with_c_include_dirs;
5543 cat >>confdefs.h <<_ACEOF
5544 #define C_INCLUDE_DIRS "$withval"
5549 # Check whether --with-cxx-include-root was given.
5550 if test "${with_cxx_include_root+set}" = set; then
5551 withval=$with_cxx_include_root;
5557 cat >>confdefs.h <<_ACEOF
5558 #define CXX_INCLUDE_ROOT "$withval"
5563 # Check whether --with-cxx-include-arch was given.
5564 if test "${with_cxx_include_arch+set}" = set; then
5565 withval=$with_cxx_include_arch;
5571 cat >>confdefs.h <<_ACEOF
5572 #define CXX_INCLUDE_ARCH "$withval"
5577 # Check whether --with-cxx-include-32bit-dir was given.
5578 if test "${with_cxx_include_32bit_dir+set}" = set; then
5579 withval=$with_cxx_include_32bit_dir;
5585 cat >>confdefs.h <<_ACEOF
5586 #define CXX_INCLUDE_32BIT_DIR "$withval"
5591 # Check whether --with-cxx-include-64bit-dir was given.
5592 if test "${with_cxx_include_64bit_dir+set}" = set; then
5593 withval=$with_cxx_include_64bit_dir;
5599 cat >>confdefs.h <<_ACEOF
5600 #define CXX_INCLUDE_64BIT_DIR "$withval"
5605 # Check whether --with-binutils-include was given.
5606 if test "${with_binutils_include+set}" = set; then
5607 withval=$with_binutils_include;
5613 default) WITH_BINUTILS_INCDIR=default ;;
5614 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5615 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5616 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5617 { (exit 1); exit 1; }; } ;;
5619 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5620 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5622 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5623 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5624 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5625 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5626 { (exit 1); exit 1; }; };
5631 # Check whether --with-bug-report-url was given.
5632 if test "${with_bug_report_url+set}" = set; then
5633 withval=$with_bug_report_url;
5635 withval="http://llvm.org/bugs/"
5639 cat >>confdefs.h <<_ACEOF
5640 #define BUG_REPORT_URL "$withval"
5644 # Check whether --enable-libffi was given.
5645 if test "${enable_libffi+set}" = set; then
5646 enableval=$enable_libffi; case "$enableval" in
5647 yes) llvm_cv_enable_libffi="yes" ;;
5648 no) llvm_cv_enable_libffi="no" ;;
5649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5650 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5651 { (exit 1); exit 1; }; } ;;
5654 llvm_cv_enable_libffi=no
5659 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5660 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5661 if test "${lt_cv_path_NM+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 if test -n "$NM"; then
5665 # Let the user override the test.
5668 lt_nm_to_check="${ac_tool_prefix}nm"
5669 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5670 lt_nm_to_check="$lt_nm_to_check nm"
5672 for lt_tmp_nm in $lt_nm_to_check; do
5673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5674 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5676 test -z "$ac_dir" && ac_dir=.
5677 tmp_nm="$ac_dir/$lt_tmp_nm"
5678 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5679 # Check to see if the nm accepts a BSD-compat flag.
5680 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5681 # nm: unknown option "B" ignored
5682 # Tru64's nm complains that /dev/null is an invalid object file
5683 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5684 */dev/null* | *'Invalid file or object type'*)
5685 lt_cv_path_NM="$tmp_nm -B"
5689 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5691 lt_cv_path_NM="$tmp_nm -p"
5695 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696 continue # so that we can try to find one that supports BSD flags
5705 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5708 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5709 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5714 { echo "$as_me:$LINENO: checking for GNU make" >&5
5715 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5716 if test "${llvm_cv_gnu_make_command+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 llvm_cv_gnu_make_command=''
5720 for a in "$MAKE" make gmake gnumake ; do
5721 if test -z "$a" ; then continue ; fi ;
5722 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5724 llvm_cv_gnu_make_command=$a ;
5729 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5730 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5731 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5735 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5736 echo "${ECHO_T}\"Not found\"" >&6; };
5740 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5741 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5743 if test "$LN_S" = "ln -s"; then
5744 { echo "$as_me:$LINENO: result: yes" >&5
5745 echo "${ECHO_T}yes" >&6; }
5747 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5748 echo "${ECHO_T}no, using $LN_S" >&6; }
5751 # Extract the first word of "cmp", so it can be a program name with args.
5752 set dummy cmp; ac_word=$2
5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755 if test "${ac_cv_path_CMP+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5783 if test -n "$CMP"; then
5784 { echo "$as_me:$LINENO: result: $CMP" >&5
5785 echo "${ECHO_T}$CMP" >&6; }
5787 { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5792 # Extract the first word of "cp", so it can be a program name with args.
5793 set dummy cp; 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_CP+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 ac_cv_path_CP="$CP" # 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_CP="$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_CP" && ac_cv_path_CP="cp"
5824 if test -n "$CP"; then
5825 { echo "$as_me:$LINENO: result: $CP" >&5
5826 echo "${ECHO_T}$CP" >&6; }
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 # Extract the first word of "date", so it can be a program name with args.
5834 set dummy date; 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_DATE+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 ac_cv_path_DATE="$DATE" # 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_DATE="$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_DATE" && ac_cv_path_DATE="date"
5864 DATE=$ac_cv_path_DATE
5865 if test -n "$DATE"; then
5866 { echo "$as_me:$LINENO: result: $DATE" >&5
5867 echo "${ECHO_T}$DATE" >&6; }
5869 { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5874 # Extract the first word of "find", so it can be a program name with args.
5875 set dummy find; 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_FIND+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 ac_cv_path_FIND="$FIND" # 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_FIND="$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_FIND" && ac_cv_path_FIND="find"
5905 FIND=$ac_cv_path_FIND
5906 if test -n "$FIND"; then
5907 { echo "$as_me:$LINENO: result: $FIND" >&5
5908 echo "${ECHO_T}$FIND" >&6; }
5910 { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5915 # Extract the first word of "grep", so it can be a program name with args.
5916 set dummy grep; 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_GREP+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 ac_cv_path_GREP="$GREP" # 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_GREP="$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_GREP" && ac_cv_path_GREP="grep"
5946 GREP=$ac_cv_path_GREP
5947 if test -n "$GREP"; then
5948 { echo "$as_me:$LINENO: result: $GREP" >&5
5949 echo "${ECHO_T}$GREP" >&6; }
5951 { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5956 # Extract the first word of "mkdir", so it can be a program name with args.
5957 set dummy mkdir; 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_MKDIR+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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_MKDIR" && ac_cv_path_MKDIR="mkdir"
5987 MKDIR=$ac_cv_path_MKDIR
5988 if test -n "$MKDIR"; then
5989 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5990 echo "${ECHO_T}$MKDIR" >&6; }
5992 { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5997 # Extract the first word of "mv", so it can be a program name with args.
5998 set dummy mv; 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_MV+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 ac_cv_path_MV="$MV" # 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_MV="$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_MV" && ac_cv_path_MV="mv"
6029 if test -n "$MV"; then
6030 { echo "$as_me:$LINENO: result: $MV" >&5
6031 echo "${ECHO_T}$MV" >&6; }
6033 { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6038 if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_RANLIB+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 if test -n "$RANLIB"; then
6047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 RANLIB=$ac_cv_prog_RANLIB
6067 if test -n "$RANLIB"; then
6068 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6069 echo "${ECHO_T}$RANLIB" >&6; }
6071 { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6077 if test -z "$ac_cv_prog_RANLIB"; then
6078 ac_ct_RANLIB=$RANLIB
6079 # Extract the first word of "ranlib", so it can be a program name with args.
6080 set dummy ranlib; ac_word=$2
6081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 if test -n "$ac_ct_RANLIB"; then
6087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_ac_ct_RANLIB="ranlib"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6107 if test -n "$ac_ct_RANLIB"; then
6108 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6109 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6111 { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6115 if test "x$ac_ct_RANLIB" = x; then
6118 case $cross_compiling:$ac_tool_warned in
6120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet. If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&5
6123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet. If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126 ac_tool_warned=yes ;;
6128 RANLIB=$ac_ct_RANLIB
6131 RANLIB="$ac_cv_prog_RANLIB"
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}ar; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_prog_AR+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 if test -n "$AR"; then
6143 ac_cv_prog_AR="$AR" # Let the user override the test.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_AR="${ac_tool_prefix}ar"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 if test -n "$AR"; then
6164 { echo "$as_me:$LINENO: result: $AR" >&5
6165 echo "${ECHO_T}$AR" >&6; }
6167 { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6173 if test -z "$ac_cv_prog_AR"; then
6175 # Extract the first word of "ar", so it can be a program name with args.
6176 set dummy ar; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 if test -n "$ac_ct_AR"; then
6183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_prog_ac_ct_AR="ar"
6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6203 if test -n "$ac_ct_AR"; then
6204 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6205 echo "${ECHO_T}$ac_ct_AR" >&6; }
6207 { echo "$as_me:$LINENO: result: no" >&5
6208 echo "${ECHO_T}no" >&6; }
6211 if test "x$ac_ct_AR" = x; then
6214 case $cross_compiling:$ac_tool_warned in
6216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet. If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&5
6219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet. If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222 ac_tool_warned=yes ;;
6230 if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}strip; ac_word=$2
6233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235 if test "${ac_cv_prog_STRIP+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 if test -n "$STRIP"; then
6239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 STRIP=$ac_cv_prog_STRIP
6259 if test -n "$STRIP"; then
6260 { echo "$as_me:$LINENO: result: $STRIP" >&5
6261 echo "${ECHO_T}$STRIP" >&6; }
6263 { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6269 if test -z "$ac_cv_prog_STRIP"; then
6271 # Extract the first word of "strip", so it can be a program name with args.
6272 set dummy strip; 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_prog_ac_ct_STRIP+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 if test -n "$ac_ct_STRIP"; then
6279 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_ac_ct_STRIP="strip"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6299 if test -n "$ac_ct_STRIP"; then
6300 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6301 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6307 if test "x$ac_ct_STRIP" = x; then
6310 case $cross_compiling:$ac_tool_warned in
6312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6313 whose name does not start with the host triplet. If you think this
6314 configuration is useful to you, please write to autoconf@gnu.org." >&5
6315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6316 whose name does not start with the host triplet. If you think this
6317 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6318 ac_tool_warned=yes ;;
6323 STRIP="$ac_cv_prog_STRIP"
6326 # Extract the first word of "rm", so it can be a program name with args.
6327 set dummy rm; ac_word=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_path_RM+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6358 if test -n "$RM"; then
6359 { echo "$as_me:$LINENO: result: $RM" >&5
6360 echo "${ECHO_T}$RM" >&6; }
6362 { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6367 # Extract the first word of "sed", so it can be a program name with args.
6368 set dummy sed; ac_word=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_path_SED+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6399 if test -n "$SED"; then
6400 { echo "$as_me:$LINENO: result: $SED" >&5
6401 echo "${ECHO_T}$SED" >&6; }
6403 { echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6; }
6408 # Extract the first word of "tar", so it can be a program name with args.
6409 set dummy tar; ac_word=$2
6410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6412 if test "${ac_cv_path_TAR+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6427 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6440 if test -n "$TAR"; then
6441 { echo "$as_me:$LINENO: result: $TAR" >&5
6442 echo "${ECHO_T}$TAR" >&6; }
6444 { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6449 # Extract the first word of "pwd", so it can be a program name with args.
6450 set dummy pwd; ac_word=$2
6451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6453 if test "${ac_cv_path_BINPWD+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6480 BINPWD=$ac_cv_path_BINPWD
6481 if test -n "$BINPWD"; then
6482 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6483 echo "${ECHO_T}$BINPWD" >&6; }
6485 { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
6491 # Extract the first word of "Graphviz", so it can be a program name with args.
6492 set dummy Graphviz; ac_word=$2
6493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6495 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6510 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6522 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6523 if test -n "$GRAPHVIZ"; then
6524 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6525 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6527 { echo "$as_me:$LINENO: result: no" >&5
6528 echo "${ECHO_T}no" >&6; }
6532 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6534 cat >>confdefs.h <<\_ACEOF
6535 #define HAVE_GRAPHVIZ 1
6538 if test "$llvm_cv_os_type" = "MingW" ; then
6539 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6542 cat >>confdefs.h <<_ACEOF
6543 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6547 # Extract the first word of "dot", so it can be a program name with args.
6548 set dummy dot; ac_word=$2
6549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551 if test "${ac_cv_path_DOT+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6579 if test -n "$DOT"; then
6580 { echo "$as_me:$LINENO: result: $DOT" >&5
6581 echo "${ECHO_T}$DOT" >&6; }
6583 { echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6; }
6588 if test "$DOT" != "echo dot" ; then
6590 cat >>confdefs.h <<\_ACEOF
6594 if test "$llvm_cv_os_type" = "MingW" ; then
6595 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6598 cat >>confdefs.h <<_ACEOF
6599 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6603 # Extract the first word of "fdp", so it can be a program name with args.
6604 set dummy fdp; ac_word=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_path_FDP+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6635 if test -n "$FDP"; then
6636 { echo "$as_me:$LINENO: result: $FDP" >&5
6637 echo "${ECHO_T}$FDP" >&6; }
6639 { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6644 if test "$FDP" != "echo fdp" ; then
6646 cat >>confdefs.h <<\_ACEOF
6650 if test "$llvm_cv_os_type" = "MingW" ; then
6651 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6654 cat >>confdefs.h <<_ACEOF
6655 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6659 # Extract the first word of "neato", so it can be a program name with args.
6660 set dummy neato; ac_word=$2
6661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6663 if test "${ac_cv_path_NEATO+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6690 NEATO=$ac_cv_path_NEATO
6691 if test -n "$NEATO"; then
6692 { echo "$as_me:$LINENO: result: $NEATO" >&5
6693 echo "${ECHO_T}$NEATO" >&6; }
6695 { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6700 if test "$NEATO" != "echo neato" ; then
6702 cat >>confdefs.h <<\_ACEOF
6703 #define HAVE_NEATO 1
6706 if test "$llvm_cv_os_type" = "MingW" ; then
6707 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6710 cat >>confdefs.h <<_ACEOF
6711 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6715 # Extract the first word of "twopi", so it can be a program name with args.
6716 set dummy twopi; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_path_TWOPI+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6746 TWOPI=$ac_cv_path_TWOPI
6747 if test -n "$TWOPI"; then
6748 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6749 echo "${ECHO_T}$TWOPI" >&6; }
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6756 if test "$TWOPI" != "echo twopi" ; then
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_TWOPI 1
6762 if test "$llvm_cv_os_type" = "MingW" ; then
6763 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6766 cat >>confdefs.h <<_ACEOF
6767 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6771 # Extract the first word of "circo", so it can be a program name with args.
6772 set dummy circo; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_CIRCO+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6802 CIRCO=$ac_cv_path_CIRCO
6803 if test -n "$CIRCO"; then
6804 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6805 echo "${ECHO_T}$CIRCO" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 if test "$CIRCO" != "echo circo" ; then
6814 cat >>confdefs.h <<\_ACEOF
6815 #define HAVE_CIRCO 1
6818 if test "$llvm_cv_os_type" = "MingW" ; then
6819 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6822 cat >>confdefs.h <<_ACEOF
6823 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6827 for ac_prog in gv gsview32
6829 # Extract the first word of "$ac_prog", so it can be a program name with args.
6830 set dummy $ac_prog; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_GV+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 if test -n "$GV"; then
6861 { echo "$as_me:$LINENO: result: $GV" >&5
6862 echo "${ECHO_T}$GV" >&6; }
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6869 test -n "$GV" && break
6871 test -n "$GV" || GV="echo gv"
6873 if test "$GV" != "echo gv" ; then
6875 cat >>confdefs.h <<\_ACEOF
6879 if test "$llvm_cv_os_type" = "MingW" ; then
6880 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6883 cat >>confdefs.h <<_ACEOF
6884 #define LLVM_PATH_GV "$GV${EXEEXT}"
6888 # Extract the first word of "dotty", so it can be a program name with args.
6889 set dummy dotty; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_DOTTY+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6919 DOTTY=$ac_cv_path_DOTTY
6920 if test -n "$DOTTY"; then
6921 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6922 echo "${ECHO_T}$DOTTY" >&6; }
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6929 if test "$DOTTY" != "echo dotty" ; then
6931 cat >>confdefs.h <<\_ACEOF
6932 #define HAVE_DOTTY 1
6935 if test "$llvm_cv_os_type" = "MingW" ; then
6936 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6939 cat >>confdefs.h <<_ACEOF
6940 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6944 # Extract the first word of "xdot.py", so it can be a program name with args.
6945 set dummy xdot.py; ac_word=$2
6946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6975 XDOT_PY=$ac_cv_path_XDOT_PY
6976 if test -n "$XDOT_PY"; then
6977 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6978 echo "${ECHO_T}$XDOT_PY" >&6; }
6980 { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6985 if test "$XDOT_PY" != "echo xdot.py" ; then
6987 cat >>confdefs.h <<\_ACEOF
6988 #define HAVE_XDOT_PY 1
6991 if test "$llvm_cv_os_type" = "MingW" ; then
6992 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6995 cat >>confdefs.h <<_ACEOF
6996 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7002 # Extract the first word of "perl", so it can be a program name with args.
7003 set dummy perl; ac_word=$2
7004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006 if test "${ac_cv_path_PERL+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7033 PERL=$ac_cv_path_PERL
7034 if test -n "$PERL"; then
7035 { echo "$as_me:$LINENO: result: $PERL" >&5
7036 echo "${ECHO_T}$PERL" >&6; }
7038 { echo "$as_me:$LINENO: result: no" >&5
7039 echo "${ECHO_T}no" >&6; }
7043 if test "$PERL" != "none"; then
7044 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7045 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7046 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7047 { echo "$as_me:$LINENO: result: yes" >&5
7048 echo "${ECHO_T}yes" >&6; }
7051 { echo "$as_me:$LINENO: result: not found" >&5
7052 echo "${ECHO_T}not found" >&6; }
7057 if test x"$PERL" = xnone; then
7060 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7061 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7062 { (exit 1); exit 1; }; }
7068 # Find a good install program. We prefer a C program (faster),
7069 # so one script is as good as another. But avoid the broken or
7070 # incompatible versions:
7071 # SysV /etc/install, /usr/sbin/install
7072 # SunOS /usr/etc/install
7073 # IRIX /sbin/install
7075 # AmigaOS /C/install, which installs bootblocks on floppy discs
7076 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7077 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7078 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7079 # OS/2's system install, which has a completely different semantic
7080 # ./install, which can be erroneously created by make from ./install.sh.
7081 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7082 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7083 if test -z "$INSTALL"; then
7084 if test "${ac_cv_path_install+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir=.
7092 # Account for people who put trailing slashes in PATH elements.
7094 ./ | .// | /cC/* | \
7095 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7096 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7099 # OSF1 and SCO ODT 3.0 have their own names for install.
7100 # Don't use installbsd from OSF since it installs stuff as root
7102 for ac_prog in ginstall scoinst install; do
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7105 if test $ac_prog = install &&
7106 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7107 # AIX install. It has an incompatible calling convention.
7109 elif test $ac_prog = install &&
7110 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7111 # program-specific install script used by HP pwplus--don't use.
7114 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7127 if test "${ac_cv_path_install+set}" = set; then
7128 INSTALL=$ac_cv_path_install
7130 # As a last resort, use the slow shell script. Don't cache a
7131 # value for INSTALL within a source directory, because that will
7132 # break other packages using the cache if that directory is
7133 # removed, or if the value is a relative name.
7134 INSTALL=$ac_install_sh
7137 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7138 echo "${ECHO_T}$INSTALL" >&6; }
7140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7141 # It thinks the first close brace ends the variable substitution.
7142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7149 [\\/$]* | ?:[\\/]* ) ;;
7150 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7153 # Extract the first word of "bzip2", so it can be a program name with args.
7154 set dummy bzip2; ac_word=$2
7155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7157 if test "${ac_cv_path_BZIP2+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 BZIP2=$ac_cv_path_BZIP2
7184 if test -n "$BZIP2"; then
7185 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7186 echo "${ECHO_T}$BZIP2" >&6; }
7188 { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7193 # Extract the first word of "cat", so it can be a program name with args.
7194 set dummy cat; ac_word=$2
7195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7197 if test "${ac_cv_path_CAT+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 if test -n "$CAT"; then
7225 { echo "$as_me:$LINENO: result: $CAT" >&5
7226 echo "${ECHO_T}$CAT" >&6; }
7228 { echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6; }
7233 # Extract the first word of "doxygen", so it can be a program name with args.
7234 set dummy doxygen; ac_word=$2
7235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7237 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 DOXYGEN=$ac_cv_path_DOXYGEN
7264 if test -n "$DOXYGEN"; then
7265 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7266 echo "${ECHO_T}$DOXYGEN" >&6; }
7268 { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7273 # Extract the first word of "groff", so it can be a program name with args.
7274 set dummy groff; ac_word=$2
7275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7277 if test "${ac_cv_path_GROFF+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 GROFF=$ac_cv_path_GROFF
7304 if test -n "$GROFF"; then
7305 { echo "$as_me:$LINENO: result: $GROFF" >&5
7306 echo "${ECHO_T}$GROFF" >&6; }
7308 { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7313 # Extract the first word of "gzip", so it can be a program name with args.
7314 set dummy gzip; ac_word=$2
7315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 GZIPBIN=$ac_cv_path_GZIPBIN
7344 if test -n "$GZIPBIN"; then
7345 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7346 echo "${ECHO_T}$GZIPBIN" >&6; }
7348 { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7353 # Extract the first word of "pod2html", so it can be a program name with args.
7354 set dummy pod2html; ac_word=$2
7355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357 if test "${ac_cv_path_POD2HTML+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 POD2HTML=$ac_cv_path_POD2HTML
7384 if test -n "$POD2HTML"; then
7385 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7386 echo "${ECHO_T}$POD2HTML" >&6; }
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7393 # Extract the first word of "pod2man", so it can be a program name with args.
7394 set dummy pod2man; ac_word=$2
7395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397 if test "${ac_cv_path_POD2MAN+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7412 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 POD2MAN=$ac_cv_path_POD2MAN
7424 if test -n "$POD2MAN"; then
7425 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7426 echo "${ECHO_T}$POD2MAN" >&6; }
7428 { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7433 # Extract the first word of "pdfroff", so it can be a program name with args.
7434 set dummy pdfroff; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_PDFROFF+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 PDFROFF=$ac_cv_path_PDFROFF
7464 if test -n "$PDFROFF"; then
7465 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7466 echo "${ECHO_T}$PDFROFF" >&6; }
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7473 # Extract the first word of "runtest", so it can be a program name with args.
7474 set dummy runtest; ac_word=$2
7475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7477 if test "${ac_cv_path_RUNTEST+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7492 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 RUNTEST=$ac_cv_path_RUNTEST
7504 if test -n "$RUNTEST"; then
7505 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7506 echo "${ECHO_T}$RUNTEST" >&6; }
7508 { echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6; }
7515 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7516 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7518 # Check whether --with-tclinclude was given.
7519 if test "${with_tclinclude+set}" = set; then
7520 withval=$with_tclinclude; with_tclinclude=${withval}
7525 if test "${ac_cv_path_tclsh+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 if test x"${with_tclinclude}" != x ; then
7530 if test -f ${with_tclinclude}/tclsh ; then
7531 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7532 elif test -f ${with_tclinclude}/src/tclsh ; then
7533 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7535 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7536 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7537 { (exit 1); exit 1; }; }
7543 if test x"${ac_cv_path_tclsh}" = x ; then
7544 { echo "$as_me:$LINENO: result: none" >&5
7545 echo "${ECHO_T}none" >&6; }
7546 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
7548 # Extract the first word of "$ac_prog", so it can be a program name with args.
7549 set dummy $ac_prog; 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_TCLSH+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 ac_cv_path_TCLSH="$TCLSH" # 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_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 TCLSH=$ac_cv_path_TCLSH
7579 if test -n "$TCLSH"; then
7580 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7581 echo "${ECHO_T}$TCLSH" >&6; }
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7588 test -n "$TCLSH" && break
7591 if test x"${TCLSH}" = x ; then
7592 ac_cv_path_tclsh='';
7594 ac_cv_path_tclsh="${TCLSH}";
7597 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7598 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7599 TCLSH="${ac_cv_path_tclsh}"
7603 # Extract the first word of "zip", so it can be a program name with args.
7604 set dummy zip; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_ZIP+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 if test -n "$ZIP"; then
7635 { echo "$as_me:$LINENO: result: $ZIP" >&5
7636 echo "${ECHO_T}$ZIP" >&6; }
7638 { echo "$as_me:$LINENO: result: no" >&5
7639 echo "${ECHO_T}no" >&6; }
7643 for ac_prog in ocamlc
7645 # Extract the first word of "$ac_prog", so it can be a program name with args.
7646 set dummy $ac_prog; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_path_OCAMLC+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7664 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 OCAMLC=$ac_cv_path_OCAMLC
7676 if test -n "$OCAMLC"; then
7677 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7678 echo "${ECHO_T}$OCAMLC" >&6; }
7680 { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7685 test -n "$OCAMLC" && break
7688 for ac_prog in ocamlopt
7690 # Extract the first word of "$ac_prog", so it can be a program name with args.
7691 set dummy $ac_prog; ac_word=$2
7692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 OCAMLOPT=$ac_cv_path_OCAMLOPT
7721 if test -n "$OCAMLOPT"; then
7722 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7723 echo "${ECHO_T}$OCAMLOPT" >&6; }
7725 { echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6; }
7730 test -n "$OCAMLOPT" && break
7733 for ac_prog in ocamldep
7735 # Extract the first word of "$ac_prog", so it can be a program name with args.
7736 set dummy $ac_prog; ac_word=$2
7737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 OCAMLDEP=$ac_cv_path_OCAMLDEP
7766 if test -n "$OCAMLDEP"; then
7767 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7768 echo "${ECHO_T}$OCAMLDEP" >&6; }
7770 { echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6; }
7775 test -n "$OCAMLDEP" && break
7778 for ac_prog in ocamldoc
7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy $ac_prog; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 OCAMLDOC=$ac_cv_path_OCAMLDOC
7811 if test -n "$OCAMLDOC"; then
7812 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7813 echo "${ECHO_T}$OCAMLDOC" >&6; }
7815 { echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6; }
7820 test -n "$OCAMLDOC" && break
7823 for ac_prog in gas as
7825 # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829 if test "${ac_cv_path_GAS+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 if test -n "$GAS"; then
7857 { echo "$as_me:$LINENO: result: $GAS" >&5
7858 echo "${ECHO_T}$GAS" >&6; }
7860 { echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6; }
7865 test -n "$GAS" && break
7869 { echo "$as_me:$LINENO: checking for linker version" >&5
7870 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7871 if test "${llvm_cv_link_version+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 version_string="$(ld -v 2>&1 | head -1)"
7878 if (echo "$version_string" | grep -q "ld64"); then
7879 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7881 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7885 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7886 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7888 cat >>confdefs.h <<_ACEOF
7889 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7894 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7895 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7896 if test "${llvm_cv_link_use_r+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7906 CFLAGS="$CFLAGS -Wl,-R."
7907 cat >conftest.$ac_ext <<_ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923 if { (ac_try="$ac_link"
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_link") 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7937 { (case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_try") 2>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; } &&
7946 { ac_try='test -s conftest$ac_exeext'
7947 { (case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_try") 2>&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then
7956 llvm_cv_link_use_r=yes
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 llvm_cv_link_use_r=no
7964 rm -f core conftest.err conftest.$ac_objext \
7965 conftest$ac_exeext conftest.$ac_ext
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7976 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7977 if test "$llvm_cv_link_use_r" = yes ; then
7979 cat >>confdefs.h <<\_ACEOF
7980 #define HAVE_LINK_R 1
7986 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7987 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7988 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (ac_try="$ac_link"
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_link") 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8029 { (case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_try") 2>&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; } &&
8038 { ac_try='test -s conftest$ac_exeext'
8039 { (case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_try") 2>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 llvm_cv_link_use_export_dynamic=yes
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 llvm_cv_link_use_export_dynamic=no
8056 rm -f core conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8060 ac_cpp='$CPP $CPPFLAGS'
8061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8068 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8069 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8071 cat >>confdefs.h <<\_ACEOF
8072 #define HAVE_LINK_EXPORT_DYNAMIC 1
8078 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8079 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8080 if test "${llvm_cv_link_use_version_script+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 ac_cpp='$CPP $CPPFLAGS'
8085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8091 # The following code is from the autoconf manual,
8092 # "11.13: Limitations of Usual Tools".
8093 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8094 # Use mktemp if possible; otherwise fall back on mkdir,
8095 # with $RANDOM to make collisions less likely.
8099 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8101 test -n "$tmp" && test -d "$tmp"
8103 tmp=$TMPDIR/foo$$-$RANDOM
8104 (umask 077 && mkdir "$tmp")
8107 echo "{" > "$tmp/export.map"
8108 echo " global: main;" >> "$tmp/export.map"
8109 echo " local: *;" >> "$tmp/export.map"
8110 echo "};" >> "$tmp/export.map"
8112 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (ac_try="$ac_link"
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_link") 2>conftest.er1
8137 grep -v '^ *+' conftest.er1 >conftest.err
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8143 { (case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148 (eval "$ac_try") 2>&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try='test -s conftest$ac_exeext'
8153 { (case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_try") 2>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 llvm_cv_link_use_version_script=yes
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 llvm_cv_link_use_version_script=no
8170 rm -f core conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172 rm "$tmp/export.map"
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8183 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8184 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8185 if test "$llvm_cv_link_use_version_script" = yes ; then
8186 HAVE_LINK_VERSION_SCRIPT=1
8193 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8194 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8195 if test "${ac_cv_c_const+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 cat >conftest.$ac_ext <<_ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8208 /* FIXME: Include the comments suggested by Paul. */
8210 /* Ultrix mips cc rejects this. */
8211 typedef int charset[2];
8213 /* SunOS 4.1.1 cc rejects this. */
8214 char const *const *ccp;
8216 /* NEC SVR4.0.2 mips cc rejects this. */
8217 struct point {int x, y;};
8218 static struct point const zero = {0,0};
8219 /* AIX XL C 1.02.0.0 rejects this.
8220 It does not let you subtract one const X* pointer from another in
8221 an arm of an if-expression whose if-part is not a constant
8223 const char *g = "string";
8224 ccp = &g + (g ? g-g : 0);
8225 /* HPUX 7.0 cc rejects these. */
8228 ccp = (char const *const *) p;
8229 { /* SCO 3.2v4 cc rejects this. */
8231 char const *s = 0 ? (char *) 0 : (char const *) 0;
8236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8238 const int *foo = &x[0];
8241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8242 typedef const int *iptr;
8246 { /* AIX XL C 1.02.0.0 rejects this saying
8247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8248 struct s { int j; const int *ap[3]; };
8249 struct s *b; b->j = 5;
8251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8255 return !x[0] && !zero.x;
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8277 { (case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_try") 2>&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; } &&
8286 { ac_try='test -s conftest.$ac_objext'
8287 { (case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_try") 2>&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8307 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8308 if test $ac_cv_c_const = no; then
8310 cat >>confdefs.h <<\_ACEOF
8322 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8323 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8324 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8325 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 cat >conftest.$ac_ext <<_ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8335 #include <sys/types.h>
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362 { (case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_try") 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest.$ac_objext'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 eval "$as_ac_Header=yes"
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8386 eval "$as_ac_Header=no"
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 ac_res=`eval echo '${'$as_ac_Header'}'`
8392 { echo "$as_me:$LINENO: result: $ac_res" >&5
8393 echo "${ECHO_T}$ac_res" >&6; }
8394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8395 cat >>confdefs.h <<_ACEOF
8396 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8399 ac_header_dirent=$ac_hdr; break
8403 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8404 if test $ac_header_dirent = dirent.h; then
8405 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8406 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8407 if test "${ac_cv_search_opendir+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 ac_func_search_save_LIBS=$LIBS
8411 cat >conftest.$ac_ext <<_ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8418 /* Override any GCC internal prototype to avoid an error.
8419 Use char because int might match the return type of a GCC
8420 builtin and then its argument prototype would still apply. */
8433 for ac_lib in '' dir; do
8434 if test -z "$ac_lib"; then
8435 ac_res="none required"
8438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_link") 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455 { (case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_try") 2>&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_try") 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_search_opendir=$ac_res
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8482 rm -f core conftest.err conftest.$ac_objext \
8484 if test "${ac_cv_search_opendir+set}" = set; then
8488 if test "${ac_cv_search_opendir+set}" = set; then
8491 ac_cv_search_opendir=no
8494 LIBS=$ac_func_search_save_LIBS
8496 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8497 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8498 ac_res=$ac_cv_search_opendir
8499 if test "$ac_res" != no; then
8500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8505 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8506 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8507 if test "${ac_cv_search_opendir+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 ac_func_search_save_LIBS=$LIBS
8511 cat >conftest.$ac_ext <<_ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8518 /* Override any GCC internal prototype to avoid an error.
8519 Use char because int might match the return type of a GCC
8520 builtin and then its argument prototype would still apply. */
8533 for ac_lib in '' x; do
8534 if test -z "$ac_lib"; then
8535 ac_res="none required"
8538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (ac_try="$ac_link"
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_link") 2>conftest.er1
8549 grep -v '^ *+' conftest.er1 >conftest.err
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555 { (case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_try") 2>&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_try") 2>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 ac_cv_search_opendir=$ac_res
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8582 rm -f core conftest.err conftest.$ac_objext \
8584 if test "${ac_cv_search_opendir+set}" = set; then
8588 if test "${ac_cv_search_opendir+set}" = set; then
8591 ac_cv_search_opendir=no
8594 LIBS=$ac_func_search_save_LIBS
8596 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8597 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8598 ac_res=$ac_cv_search_opendir
8599 if test "$ac_res" != no; then
8600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8607 for ac_header in dlfcn.h
8609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 ac_res=`eval echo '${'$as_ac_Header'}'`
8617 { echo "$as_me:$LINENO: result: $ac_res" >&5
8618 echo "${ECHO_T}$ac_res" >&6; }
8620 # Is the header compilable?
8621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629 $ac_includes_default
8630 #include <$ac_header>
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8641 grep -v '^ *+' conftest.er1 >conftest.err
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8647 { (case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_try") 2>&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_try") 2>&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_header_compiler=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 ac_header_compiler=no
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8676 echo "${ECHO_T}$ac_header_compiler" >&6; }
8678 # Is the header present?
8679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8681 cat >conftest.$ac_ext <<_ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8687 #include <$ac_header>
8689 if { (ac_try="$ac_cpp conftest.$ac_ext"
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8697 grep -v '^ *+' conftest.er1 >conftest.err
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } >/dev/null; then
8702 if test -s conftest.err; then
8703 ac_cpp_err=$ac_c_preproc_warn_flag
8704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8711 if test -z "$ac_cpp_err"; then
8712 ac_header_preproc=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_header_preproc=no
8720 rm -f conftest.err conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8722 echo "${ECHO_T}$ac_header_preproc" >&6; }
8724 # So? What about this header?
8725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8731 ac_header_preproc=yes
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8747 ## ----------------------------------- ##
8748 ## Report this to llvmbugs@cs.uiuc.edu ##
8749 ## ----------------------------------- ##
8751 ) | sed "s/^/$as_me: WARNING: /" >&2
8754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 eval "$as_ac_Header=\$ac_header_preproc"
8761 ac_res=`eval echo '${'$as_ac_Header'}'`
8762 { echo "$as_me:$LINENO: result: $ac_res" >&5
8763 echo "${ECHO_T}$ac_res" >&6; }
8766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8767 cat >>confdefs.h <<_ACEOF
8768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775 # Check whether --enable-ltdl-install was given.
8776 if test "${enable_ltdl_install+set}" = set; then
8777 enableval=$enable_ltdl_install;
8783 if test x"${enable_ltdl_install-no}" != xno; then
8785 INSTALL_LTDL_FALSE='#'
8787 INSTALL_LTDL_TRUE='#'
8793 if test x"${enable_ltdl_convenience-no}" != xno; then
8794 CONVENIENCE_LTDL_TRUE=
8795 CONVENIENCE_LTDL_FALSE='#'
8797 CONVENIENCE_LTDL_TRUE='#'
8798 CONVENIENCE_LTDL_FALSE=
8802 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8803 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8805 libname_spec='lib$name'
8813 shlibpath_overrides_runpath=unknown
8815 dynamic_linker="$host_os ld.so"
8816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8817 if test "$GCC" = yes; then
8818 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8819 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8820 # if the path contains ";" then we assume it to be the separator
8821 # otherwise default to the standard path separator (i.e. ":") - it is
8822 # assumed that no part of a normal pathname contains ";" but that should
8823 # okay in the real world where ";" in dirpaths is itself problematic.
8824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8831 need_lib_prefix=unknown
8832 hardcode_into_libs=no
8834 # when you set need_version to no, make sure it does not cause -set_version
8835 # flags to be left without arguments
8836 need_version=unknown
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8842 shlibpath_var=LIBPATH
8844 # AIX 3 has no versioning support, so we append a major version to the name.
8845 soname_spec='${libname}${release}${shared_ext}$major'
8852 hardcode_into_libs=yes
8853 if test "$host_cpu" = ia64; then
8854 # AIX 5 supports IA64
8855 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8856 shlibpath_var=LD_LIBRARY_PATH
8858 # With GCC up to 2.95.x, collect2 would create an import file
8859 # for dependence libraries. The import file would start with
8860 # the line `#! .'. This would cause the generated library to
8861 # depend on `.', always an invalid library. This was fixed in
8862 # development snapshots of GCC prior to 3.0.
8864 aix4 | aix4.[01] | aix4.[01].*)
8865 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8867 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8874 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8875 # soname into executable. Probably we can add versioning support to
8876 # collect2, so additional links can be useful in future.
8877 if test "$aix_use_runtimelinking" = yes; then
8878 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8879 # instead of lib<name>.a to let people know that these are not
8880 # typical AIX shared libraries.
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883 # We preserve .a as extension for shared libraries through AIX4.2
8884 # and later when we are not doing run time linking.
8885 library_names_spec='${libname}${release}.a $libname.a'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8888 shlibpath_var=LIBPATH
8893 library_names_spec='$libname.ixlibrary $libname.a'
8894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8895 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'
8899 library_names_spec='${libname}${shared_ext}'
8900 dynamic_linker="$host_os ld.so"
8901 shlibpath_var=LIBRARY_PATH
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8910 shlibpath_var=LD_LIBRARY_PATH
8911 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8912 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8913 # the default ld.so.conf also contains /usr/contrib/lib and
8914 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8915 # libtool to hard-code these into programs
8918 cygwin* | mingw* | pw32*)
8919 version_type=windows
8924 case $GCC,$host_os in
8925 yes,cygwin* | yes,mingw* | yes,pw32*)
8926 library_names_spec='$libname.dll.a'
8927 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8928 postinstall_cmds='base_file=`basename \${file}`~
8929 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8930 dldir=$destdir/`dirname \$dlpath`~
8931 test -d \$dldir || mkdir -p \$dldir~
8932 $install_prog $dir/$dlname \$dldir/$dlname~
8933 chmod a+x \$dldir/$dlname'
8934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8935 dlpath=$dir/\$dldll~
8937 shlibpath_overrides_runpath=yes
8941 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8942 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8943 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8946 # MinGW DLLs use traditional 'lib' prefix
8947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8949 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8950 # It is most probably a Windows format PATH printed by
8951 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8952 # path with ; separators, and with drive letters. We can handle the
8953 # drive letters (cygwin fileutils understands them), so leave them,
8954 # especially as we might pass files found there to a mingw objdump,
8955 # which wouldn't understand a cygwinified path. Ahh.
8956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8962 # pw32 DLLs use 'pw' prefix rather than 'lib'
8963 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8972 dynamic_linker='Win32 ld.exe'
8973 # FIXME: first we should search . and the directory the executable is in
8977 darwin* | rhapsody*)
8978 dynamic_linker="$host_os dyld"
8982 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8983 soname_spec='${libname}${release}${major}$shared_ext'
8984 shlibpath_overrides_runpath=yes
8985 shlibpath_var=DYLD_LIBRARY_PATH
8986 shrext_cmds='.dylib'
8987 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8988 if test "$GCC" = yes; then
8989 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"`
8991 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8993 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=no
9017 hardcode_into_libs=yes
9018 dynamic_linker='GNU ld.so'
9021 freebsd* | dragonfly*)
9022 # DragonFly does not have aout. When/if they implement a new
9023 # versioning mechanism, adjust this.
9024 if test -x /usr/bin/objformat; then
9025 objformat=`/usr/bin/objformat`
9028 freebsd[123].*) objformat=aout ;;
9032 version_type=freebsd-$objformat
9033 case $version_type in
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9044 shlibpath_var=LD_LIBRARY_PATH
9047 shlibpath_overrides_runpath=yes
9049 freebsd3.[01]* | freebsdelf3.[01]*)
9050 shlibpath_overrides_runpath=yes
9051 hardcode_into_libs=yes
9053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9055 shlibpath_overrides_runpath=no
9056 hardcode_into_libs=yes
9058 freebsd*) # from 4.6 on
9059 shlibpath_overrides_runpath=yes
9060 hardcode_into_libs=yes
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 hardcode_into_libs=yes
9075 hpux9* | hpux10* | hpux11*)
9076 # Give a soname corresponding to the major version so that dld.sl refuses to
9077 # link against other versions.
9084 hardcode_into_libs=yes
9085 dynamic_linker="$host_os dld.so"
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 soname_spec='${libname}${release}${shared_ext}$major'
9090 if test "X$HPUX_IA64_MODE" = X32; then
9091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9099 hardcode_into_libs=yes
9100 dynamic_linker="$host_os dld.sl"
9101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9110 dynamic_linker="$host_os dld.sl"
9111 shlibpath_var=SHLIB_PATH
9112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9117 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9118 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=no
9130 hardcode_into_libs=yes
9133 irix5* | irix6* | nonstopux*)
9135 nonstopux*) version_type=nonstopux ;;
9137 if test "$lt_cv_prog_gnu_ld" = yes; then
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9148 irix5* | nonstopux*)
9152 case $LD in # libtool.m4 will add one of these switches to LD
9153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9154 libsuff= shlibsuff= libmagic=32-bit;;
9155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9156 libsuff=32 shlibsuff=N32 libmagic=N32;;
9157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9158 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9159 *) libsuff= shlibsuff= libmagic=never-match;;
9163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9164 shlibpath_overrides_runpath=no
9165 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9166 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9167 hardcode_into_libs=yes
9170 # No shared lib support for Linux oldld, aout, or coff.
9171 linux*oldld* | linux*aout* | linux*coff*)
9175 # This must be Linux ELF.
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 shlibpath_overrides_runpath=no
9185 # This implies no fast_install, which is unacceptable.
9186 # Some rework will be needed to allow for fast_install
9187 # before this can be enabled.
9188 hardcode_into_libs=yes
9190 # Append ld.so.conf contents to the search path
9191 if test -f /etc/ld.so.conf; then
9192 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' ' '`
9193 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9196 # We used to test for /lib/ld.so.1 and disable shared libraries on
9197 # powerpc, because MkLinux only supported shared libraries with the
9198 # GNU dynamic linker. Since this was broken with cross compilers,
9199 # most powerpc-linux boxes support dynamic linking these days and
9200 # people can always --disable-shared, the test was removed, and we
9201 # assume the GNU/Linux dynamic linker is in use.
9202 dynamic_linker='GNU/Linux ld.so'
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=no
9213 hardcode_into_libs=yes
9214 dynamic_linker='GNU ld.so'
9221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9224 dynamic_linker='NetBSD (a.out) ld.so'
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 dynamic_linker='NetBSD ld.elf_so'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=yes
9232 hardcode_into_libs=yes
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=yes
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=yes
9254 sys_lib_dlsearch_path_spec="/usr/lib"
9256 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9258 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9259 *) need_version=no ;;
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9266 openbsd2.[89] | openbsd2.[89].*)
9267 shlibpath_overrides_runpath=no
9270 shlibpath_overrides_runpath=yes
9274 shlibpath_overrides_runpath=yes
9279 libname_spec='$name'
9282 library_names_spec='$libname${shared_ext} $libname.a'
9283 dynamic_linker='OS/2 ld.exe'
9284 shlibpath_var=LIBPATH
9287 osf3* | osf4* | osf5*)
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9295 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9307 # ldd complains unless libraries are executable
9308 postinstall_cmds='chmod +x $lib'
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 shlibpath_overrides_runpath=yes
9317 if test "$with_gnu_ld" = yes; then
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 case $host_vendor in
9330 shlibpath_overrides_runpath=no
9332 export_dynamic_flag_spec='${wl}-Blargedynsym'
9333 runpath_var=LD_RUN_PATH
9341 shlibpath_overrides_runpath=no
9342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9348 if test -d /usr/nec ;then
9350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9351 soname_spec='$libname${shared_ext}.$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9357 version_type=freebsd-elf
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 hardcode_into_libs=yes
9364 if test "$with_gnu_ld" = yes; then
9365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9366 shlibpath_overrides_runpath=no
9368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9369 shlibpath_overrides_runpath=yes
9372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9376 sys_lib_dlsearch_path_spec='/usr/lib'
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LD_LIBRARY_PATH
9390 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9391 echo "${ECHO_T}$dynamic_linker" >&6; }
9392 test "$dynamic_linker" = no && can_build_shared=no
9394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9395 if test "$GCC" = yes; then
9396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9400 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9401 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9402 if test "${libltdl_cv_shlibext+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 eval libltdl_cv_shlibext=$shrext_cmds
9410 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9411 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9412 if test -n "$libltdl_cv_shlibext"; then
9414 cat >>confdefs.h <<_ACEOF
9415 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9421 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9422 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9423 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 libltdl_cv_shlibpath_var="$shlibpath_var"
9428 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9429 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9430 if test -n "$libltdl_cv_shlibpath_var"; then
9432 cat >>confdefs.h <<_ACEOF
9433 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9439 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9440 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9441 if test "${libltdl_cv_sys_search_path+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9446 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9447 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9448 if test -n "$libltdl_cv_sys_search_path"; then
9450 for dir in $libltdl_cv_sys_search_path; do
9451 if test -z "$sys_search_path"; then
9452 sys_search_path="$dir"
9454 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9458 cat >>confdefs.h <<_ACEOF
9459 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9464 { echo "$as_me:$LINENO: checking for objdir" >&5
9465 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9466 if test "${libltdl_cv_objdir+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 libltdl_cv_objdir="$objdir"
9470 if test -n "$objdir"; then
9473 rm -f .libs 2>/dev/null
9474 mkdir .libs 2>/dev/null
9475 if test -d .libs; then
9476 libltdl_cv_objdir=.libs
9478 # MS-DOS does not allow filenames that begin with a dot.
9479 libltdl_cv_objdir=_libs
9481 rmdir .libs 2>/dev/null
9485 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9486 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9488 cat >>confdefs.h <<_ACEOF
9489 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9497 # Check for command to grab the raw symbol name followed by C symbol from nm.
9498 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9499 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9500 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 # These are sane defaults that work on at least a few old systems.
9505 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9507 # Character class describing NM global symbol codes.
9508 symcode='[BCDEGRST]'
9510 # Regexp to match symbols that can be accessed directly from C.
9511 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9513 # Transform an extracted symbol line into a proper C declaration
9514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9516 # Transform an extracted symbol line into symbol name and symbol address
9517 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'"
9519 # Define system-specific variables.
9524 cygwin* | mingw* | pw32*)
9525 symcode='[ABCDGISTW]'
9527 hpux*) # Its linker distinguishes data from code symbols
9528 if test "$host_cpu" = ia64; then
9529 symcode='[ABCDEGRST]'
9531 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9532 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'"
9535 if test "$host_cpu" = ia64; then
9536 symcode='[ABCDGIRSTW]'
9537 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9538 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'"
9542 symcode='[BCDEGRST]'
9545 symcode='[BCDEGQRST]'
9556 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9564 # Handle CRLF in mingw tool chain
9568 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9572 # If we're using GNU nm, then use its standard symbol codes.
9573 case `$NM -V 2>&1` in
9574 *GNU* | *'with BFD'*)
9575 symcode='[ABCDGIRSTW]' ;;
9578 # Try without a prefix undercore, then with it.
9579 for ac_symprfx in "" "_"; do
9581 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9582 symxfrm="\\1 $ac_symprfx\\2 \\2"
9584 # Write the raw and C identifiers.
9585 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9587 # Check to see that the pipe works correctly.
9591 cat > conftest.$ac_ext <<EOF
9596 void nm_test_func(){}
9600 int main(){nm_test_var='a';nm_test_func();return(0);}
9603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9604 (eval $ac_compile) 2>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; then
9608 # Now try to grab the symbols.
9610 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9611 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && test -s "$nlist"; then
9615 # Try sorting and uniquifying the output.
9616 if sort "$nlist" | uniq > "$nlist"T; then
9617 mv -f "$nlist"T "$nlist"
9622 # Make sure that we snagged all the symbols we need.
9623 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9624 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9625 cat <<EOF > conftest.$ac_ext
9631 # Now generate the symbol file.
9632 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9634 cat <<EOF >> conftest.$ac_ext
9635 #if defined (__STDC__) && __STDC__
9636 # define lt_ptr_t void *
9638 # define lt_ptr_t char *
9642 /* The mapping between symbol names and symbols. */
9647 lt_preloaded_symbols[] =
9650 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9651 cat <<\EOF >> conftest.$ac_ext
9659 # Now try linking the two files.
9660 mv conftest.$ac_objext conftstm.$ac_objext
9661 lt_save_LIBS="$LIBS"
9662 lt_save_CFLAGS="$CFLAGS"
9663 LIBS="conftstm.$ac_objext"
9664 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9672 LIBS="$lt_save_LIBS"
9673 CFLAGS="$lt_save_CFLAGS"
9675 echo "cannot find nm_test_func in $nlist" >&5
9678 echo "cannot find nm_test_var in $nlist" >&5
9681 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9684 echo "$progname: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9687 rm -f conftest* conftst*
9689 # Do not use the global_symbol_pipe unless it works.
9690 if test "$pipe_works" = yes; then
9693 lt_cv_sys_global_symbol_pipe=
9699 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9700 lt_cv_sys_global_symbol_to_cdecl=
9702 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9703 { echo "$as_me:$LINENO: result: failed" >&5
9704 echo "${ECHO_T}failed" >&6; }
9706 { echo "$as_me:$LINENO: result: ok" >&5
9707 echo "${ECHO_T}ok" >&6; }
9711 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9712 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9713 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9717 libltdl_cv_preloaded_symbols=yes
9719 libltdl_cv_preloaded_symbols=no
9723 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9724 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9725 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9727 cat >>confdefs.h <<\_ACEOF
9728 #define HAVE_PRELOADED_SYMBOLS 1
9736 ac_cpp='$CPP $CPPFLAGS'
9737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9742 { echo "$as_me:$LINENO: checking for shl_load" >&5
9743 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9744 if test "${ac_cv_func_shl_load+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9755 #define shl_load innocuous_shl_load
9757 /* System header to define __stub macros and hopefully few prototypes,
9758 which can conflict with char shl_load (); below.
9759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9760 <limits.h> exists even on freestanding compilers. */
9763 # include <limits.h>
9765 # include <assert.h>
9770 /* Override any GCC internal prototype to avoid an error.
9771 Use char because int might match the return type of a GCC
9772 builtin and then its argument prototype would still apply. */
9777 /* The GNU C library defines this for functions which it implements
9778 to always fail with ENOSYS. Some functions are actually named
9779 something starting with __ and the normal name is an alias. */
9780 #if defined __stub_shl_load || defined __stub___shl_load
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (ac_try="$ac_link"
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_link") 2>conftest.er1
9801 grep -v '^ *+' conftest.er1 >conftest.err
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_try") 2>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 ac_cv_func_shl_load=yes
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9831 ac_cv_func_shl_load=no
9834 rm -f core conftest.err conftest.$ac_objext \
9835 conftest$ac_exeext conftest.$ac_ext
9837 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9838 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9839 if test $ac_cv_func_shl_load = yes; then
9841 cat >>confdefs.h <<\_ACEOF
9842 #define HAVE_SHL_LOAD 1
9846 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9847 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9848 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 ac_check_lib_save_LIBS=$LIBS
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest$ac_exeext'
9900 { (case "(($ac_try" in
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_try") 2>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_cv_lib_dld_shl_load=yes
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_cv_lib_dld_shl_load=no
9917 rm -f core conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9921 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9922 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9923 if test $ac_cv_lib_dld_shl_load = yes; then
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_SHL_LOAD 1
9929 LIBADD_DL="$LIBADD_DL -ldld"
9931 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9932 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9933 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 ac_check_lib_save_LIBS=$LIBS
9938 cat >conftest.$ac_ext <<_ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9945 /* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_link") 2>conftest.er1
9969 grep -v '^ *+' conftest.er1 >conftest.err
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; } &&
9984 { ac_try='test -s conftest$ac_exeext'
9985 { (case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_try") 2>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; }; then
9994 ac_cv_lib_dl_dlopen=yes
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9999 ac_cv_lib_dl_dlopen=no
10002 rm -f core conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 LIBS=$ac_check_lib_save_LIBS
10006 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10007 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10008 if test $ac_cv_lib_dl_dlopen = yes; then
10010 cat >>confdefs.h <<\_ACEOF
10011 #define HAVE_LIBDL 1
10014 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10016 cat >conftest.$ac_ext <<_ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10023 # include <dlfcn.h>
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_link") 2>conftest.er1
10043 grep -v '^ *+' conftest.er1 >conftest.err
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10049 { (case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_try") 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10069 cat >>confdefs.h <<\_ACEOF
10070 #define HAVE_LIBDL 1
10072 libltdl_cv_func_dlopen="yes"
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10078 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10079 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-lsvld $LIBS"
10084 cat >conftest.$ac_ext <<_ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>conftest.er1
10115 grep -v '^ *+' conftest.er1 >conftest.err
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121 { (case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_try") 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_lib_svld_dlopen=yes
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10145 ac_cv_lib_svld_dlopen=no
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10152 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10153 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10154 if test $ac_cv_lib_svld_dlopen = yes; then
10156 cat >>confdefs.h <<\_ACEOF
10157 #define HAVE_LIBDL 1
10160 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10162 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10163 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10164 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 ac_check_lib_save_LIBS=$LIBS
10169 cat >conftest.$ac_ext <<_ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10176 /* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10186 return dld_link ();
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_link") 2>conftest.er1
10200 grep -v '^ *+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206 { (case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_try") 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_lib_dld_dld_link=yes
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 ac_cv_lib_dld_dld_link=no
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 LIBS=$ac_check_lib_save_LIBS
10237 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10238 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10239 if test $ac_cv_lib_dld_dld_link = yes; then
10241 cat >>confdefs.h <<\_ACEOF
10245 LIBADD_DL="$LIBADD_DL -ldld"
10247 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10248 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10249 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 cat >conftest.$ac_ext <<_ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10260 #define _dyld_func_lookup innocuous__dyld_func_lookup
10262 /* System header to define __stub macros and hopefully few prototypes,
10263 which can conflict with char _dyld_func_lookup (); below.
10264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10265 <limits.h> exists even on freestanding compilers. */
10268 # include <limits.h>
10270 # include <assert.h>
10273 #undef _dyld_func_lookup
10275 /* Override any GCC internal prototype to avoid an error.
10276 Use char because int might match the return type of a GCC
10277 builtin and then its argument prototype would still apply. */
10281 char _dyld_func_lookup ();
10282 /* The GNU C library defines this for functions which it implements
10283 to always fail with ENOSYS. Some functions are actually named
10284 something starting with __ and the normal name is an alias. */
10285 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10292 return _dyld_func_lookup ();
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (ac_try="$ac_link"
10299 case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_link") 2>conftest.er1
10306 grep -v '^ *+' conftest.er1 >conftest.err
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10312 { (case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_try") 2>&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; } &&
10321 { ac_try='test -s conftest$ac_exeext'
10322 { (case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_try") 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 ac_cv_func__dyld_func_lookup=yes
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ac_cv_func__dyld_func_lookup=no
10339 rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10342 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10343 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10344 if test $ac_cv_func__dyld_func_lookup = yes; then
10346 cat >>confdefs.h <<\_ACEOF
10347 #define HAVE_DYLD 1
10361 rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10373 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10375 lt_save_LIBS="$LIBS"
10376 LIBS="$LIBS $LIBADD_DL"
10378 for ac_func in dlerror
10380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 cat >conftest.$ac_ext <<_ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10394 #define $ac_func innocuous_$ac_func
10396 /* System header to define __stub macros and hopefully few prototypes,
10397 which can conflict with char $ac_func (); below.
10398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10399 <limits.h> exists even on freestanding compilers. */
10402 # include <limits.h>
10404 # include <assert.h>
10409 /* Override any GCC internal prototype to avoid an error.
10410 Use char because int might match the return type of a GCC
10411 builtin and then its argument prototype would still apply. */
10416 /* The GNU C library defines this for functions which it implements
10417 to always fail with ENOSYS. Some functions are actually named
10418 something starting with __ and the normal name is an alias. */
10419 #if defined __stub_$ac_func || defined __stub___$ac_func
10426 return $ac_func ();
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_link") 2>conftest.er1
10440 grep -v '^ *+' conftest.er1 >conftest.err
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446 { (case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_try") 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; } &&
10455 { ac_try='test -s conftest$ac_exeext'
10456 { (case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_try") 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 eval "$as_ac_var=yes"
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 eval "$as_ac_var=no"
10473 rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10476 ac_res=`eval echo '${'$as_ac_var'}'`
10477 { echo "$as_me:$LINENO: result: $ac_res" >&5
10478 echo "${ECHO_T}$ac_res" >&6; }
10479 if test `eval echo '${'$as_ac_var'}'` = yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10487 LIBS="$lt_save_LIBS"
10490 ac_cpp='$CPP $CPPFLAGS'
10491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10497 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10498 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10499 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 ac_cv_sys_symbol_underscore=no
10503 cat > conftest.$ac_ext <<EOF
10504 void nm_test_func(){}
10505 int main(){nm_test_func;return 0;}
10507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10508 (eval $ac_compile) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; then
10512 # Now try to grab the symbols.
10513 ac_nlist=conftest.nm
10514 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10515 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } && test -s "$ac_nlist"; then
10519 # See whether the symbols have a leading underscore.
10520 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10521 ac_cv_sys_symbol_underscore=yes
10523 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10526 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10530 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10533 echo "configure: failed program was:" >&5
10539 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10540 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10543 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10544 if test x"$libltdl_cv_func_dlopen" = xyes ||
10545 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10546 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10547 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10548 if test "${libltdl_cv_need_uscore+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 libltdl_cv_need_uscore=unknown
10553 LIBS="$LIBS $LIBADD_DL"
10554 if test "$cross_compiling" = yes; then :
10555 libltdl_cv_need_uscore=cross
10557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10558 lt_status=$lt_dlunknown
10559 cat > conftest.$ac_ext <<EOF
10560 #line 10560 "configure"
10561 #include "confdefs.h"
10570 # define LT_DLGLOBAL RTLD_GLOBAL
10573 # define LT_DLGLOBAL DL_GLOBAL
10575 # define LT_DLGLOBAL 0
10579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10580 find out it does not work in some platform. */
10581 #ifndef LT_DLLAZY_OR_NOW
10583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10586 # define LT_DLLAZY_OR_NOW DL_LAZY
10589 # define LT_DLLAZY_OR_NOW RTLD_NOW
10592 # define LT_DLLAZY_OR_NOW DL_NOW
10594 # define LT_DLLAZY_OR_NOW 0
10602 extern "C" void exit (int);
10605 void fnord() { int i=42;}
10608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10609 int status = $lt_dlunknown;
10613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10614 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10615 /* dlclose (self); */
10623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10624 (eval $ac_link) 2>&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10628 (./conftest; exit; ) >&5 2>/dev/null
10630 case x$lt_status in
10631 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10632 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10633 x$lt_dlunknown|x*) ;;
10636 # compilation failed
10645 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10646 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10650 if test x"$libltdl_cv_need_uscore" = xyes; then
10652 cat >>confdefs.h <<\_ACEOF
10653 #define NEED_USCORE 1
10659 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10660 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10661 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 # PORTME does your system automatically load deplibs for dlopen?
10665 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10666 # For now, we just catch OSes we know something about -- in the
10667 # future, we'll try test this programmatically.
10668 libltdl_cv_sys_dlopen_deplibs=unknown
10670 aix3*|aix4.1.*|aix4.2.*)
10671 # Unknown whether this is true for these versions of AIX, but
10672 # we want this `case' here to explicitly catch those versions.
10673 libltdl_cv_sys_dlopen_deplibs=unknown
10676 libltdl_cv_sys_dlopen_deplibs=yes
10679 # Assuming the user has installed a libdl from somewhere, this is true
10680 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10681 libltdl_cv_sys_dlopen_deplibs=yes
10683 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10684 # GNU and its variants, using gnu ld.so (Glibc)
10685 libltdl_cv_sys_dlopen_deplibs=yes
10688 libltdl_cv_sys_dlopen_deplibs=yes
10691 libltdl_cv_sys_dlopen_deplibs=yes
10693 irix[12345]*|irix6.[01]*)
10694 # Catch all versions of IRIX before 6.2, and indicate that we don't
10695 # know how it worked for any of those versions.
10696 libltdl_cv_sys_dlopen_deplibs=unknown
10699 # The case above catches anything before 6.2, and it's known that
10700 # at 6.2 and later dlopen does load deplibs.
10701 libltdl_cv_sys_dlopen_deplibs=yes
10704 libltdl_cv_sys_dlopen_deplibs=yes
10707 libltdl_cv_sys_dlopen_deplibs=yes
10710 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10711 # it did *not* use an RPATH in a shared library to find objects the
10712 # library depends on, so we explicitly say `no'.
10713 libltdl_cv_sys_dlopen_deplibs=no
10715 osf5.0|osf5.0a|osf5.1)
10716 # dlopen *does* load deplibs and with the right loader patch applied
10717 # it even uses RPATH in a shared library to search for shared objects
10718 # that the library depends on, but there's no easy way to know if that
10719 # patch is installed. Since this is the case, all we can really
10720 # say is unknown -- it depends on the patch being installed. If
10721 # it is, this changes to `yes'. Without it, it would be `no'.
10722 libltdl_cv_sys_dlopen_deplibs=unknown
10725 # the two cases above should catch all versions of osf <= 5.1. Read
10726 # the comments above for what we know about them.
10727 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10728 # is used to find them so we can finally say `yes'.
10729 libltdl_cv_sys_dlopen_deplibs=yes
10732 libltdl_cv_sys_dlopen_deplibs=yes
10734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10735 libltdl_cv_sys_dlopen_deplibs=yes
10740 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10741 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10742 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10744 cat >>confdefs.h <<\_ACEOF
10745 #define LTDL_DLOPEN_DEPLIBS 1
10751 for ac_header in argz.h
10753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 ac_res=`eval echo '${'$as_ac_Header'}'`
10761 { echo "$as_me:$LINENO: result: $ac_res" >&5
10762 echo "${ECHO_T}$ac_res" >&6; }
10764 # Is the header compilable?
10765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10767 cat >conftest.$ac_ext <<_ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773 $ac_includes_default
10774 #include <$ac_header>
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_compile") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_header_compiler=yes
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_header_compiler=no
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10820 echo "${ECHO_T}$ac_header_compiler" >&6; }
10822 # Is the header present?
10823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10825 cat >conftest.$ac_ext <<_ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 #include <$ac_header>
10833 if { (ac_try="$ac_cpp conftest.$ac_ext"
10834 case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10841 grep -v '^ *+' conftest.er1 >conftest.err
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } >/dev/null; then
10846 if test -s conftest.err; then
10847 ac_cpp_err=$ac_c_preproc_warn_flag
10848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10855 if test -z "$ac_cpp_err"; then
10856 ac_header_preproc=yes
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 ac_header_preproc=no
10864 rm -f conftest.err conftest.$ac_ext
10865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10866 echo "${ECHO_T}$ac_header_preproc" >&6; }
10868 # So? What about this header?
10869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10875 ac_header_preproc=yes
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10891 ## ----------------------------------- ##
10892 ## Report this to llvmbugs@cs.uiuc.edu ##
10893 ## ----------------------------------- ##
10895 ) | sed "s/^/$as_me: WARNING: /" >&2
10898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 eval "$as_ac_Header=\$ac_header_preproc"
10905 ac_res=`eval echo '${'$as_ac_Header'}'`
10906 { echo "$as_me:$LINENO: result: $ac_res" >&5
10907 echo "${ECHO_T}$ac_res" >&6; }
10910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10911 cat >>confdefs.h <<_ACEOF
10912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10920 { echo "$as_me:$LINENO: checking for error_t" >&5
10921 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10922 if test "${ac_cv_type_error_t+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10935 typedef error_t ac__type_new_;
10939 if ((ac__type_new_ *) 0)
10941 if (sizeof (ac__type_new_))
10947 rm -f conftest.$ac_objext
10948 if { (ac_try="$ac_compile"
10949 case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_compile") 2>conftest.er1
10956 grep -v '^ *+' conftest.er1 >conftest.err
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10962 { (case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_try") 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; } &&
10971 { ac_try='test -s conftest.$ac_objext'
10972 { (case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_try") 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_cv_type_error_t=yes
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_cv_type_error_t=no
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10991 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10992 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10993 if test $ac_cv_type_error_t = yes; then
10995 cat >>confdefs.h <<_ACEOF
10996 #define HAVE_ERROR_T 1
11002 cat >>confdefs.h <<\_ACEOF
11003 #define error_t int
11014 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 cat >conftest.$ac_ext <<_ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11030 #define $ac_func innocuous_$ac_func
11032 /* System header to define __stub macros and hopefully few prototypes,
11033 which can conflict with char $ac_func (); below.
11034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035 <limits.h> exists even on freestanding compilers. */
11038 # include <limits.h>
11040 # include <assert.h>
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11052 /* The GNU C library defines this for functions which it implements
11053 to always fail with ENOSYS. Some functions are actually named
11054 something starting with __ and the normal name is an alias. */
11055 #if defined __stub_$ac_func || defined __stub___$ac_func
11062 return $ac_func ();
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (ac_try="$ac_link"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_link") 2>conftest.er1
11076 grep -v '^ *+' conftest.er1 >conftest.err
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11082 { (case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_try") 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest$ac_exeext'
11092 { (case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_try") 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 eval "$as_ac_var=yes"
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106 eval "$as_ac_var=no"
11109 rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11112 ac_res=`eval echo '${'$as_ac_var'}'`
11113 { echo "$as_me:$LINENO: result: $ac_res" >&5
11114 echo "${ECHO_T}$ac_res" >&6; }
11115 if test `eval echo '${'$as_ac_var'}'` = yes; then
11116 cat >>confdefs.h <<_ACEOF
11117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11150 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 ac_res=`eval echo '${'$as_ac_Header'}'`
11161 { echo "$as_me:$LINENO: result: $ac_res" >&5
11162 echo "${ECHO_T}$ac_res" >&6; }
11164 # Is the header compilable?
11165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 $ac_includes_default
11174 #include <$ac_header>
11176 rm -f conftest.$ac_objext
11177 if { (ac_try="$ac_compile"
11178 case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_compile") 2>conftest.er1
11185 grep -v '^ *+' conftest.er1 >conftest.err
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11191 { (case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_try") 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest.$ac_objext'
11201 { (case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_try") 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_header_compiler=yes
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 ac_header_compiler=no
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220 echo "${ECHO_T}$ac_header_compiler" >&6; }
11222 # Is the header present?
11223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11225 cat >conftest.$ac_ext <<_ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 #include <$ac_header>
11233 if { (ac_try="$ac_cpp conftest.$ac_ext"
11234 case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11241 grep -v '^ *+' conftest.er1 >conftest.err
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } >/dev/null; then
11246 if test -s conftest.err; then
11247 ac_cpp_err=$ac_c_preproc_warn_flag
11248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11255 if test -z "$ac_cpp_err"; then
11256 ac_header_preproc=yes
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_header_preproc=no
11264 rm -f conftest.err conftest.$ac_ext
11265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266 echo "${ECHO_T}$ac_header_preproc" >&6; }
11268 # So? What about this header?
11269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275 ac_header_preproc=yes
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11291 ## ----------------------------------- ##
11292 ## Report this to llvmbugs@cs.uiuc.edu ##
11293 ## ----------------------------------- ##
11295 ) | sed "s/^/$as_me: WARNING: /" >&2
11298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 eval "$as_ac_Header=\$ac_header_preproc"
11305 ac_res=`eval echo '${'$as_ac_Header'}'`
11306 { echo "$as_me:$LINENO: result: $ac_res" >&5
11307 echo "${ECHO_T}$ac_res" >&6; }
11310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11311 cat >>confdefs.h <<_ACEOF
11312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11323 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 ac_res=`eval echo '${'$as_ac_Header'}'`
11333 { echo "$as_me:$LINENO: result: $ac_res" >&5
11334 echo "${ECHO_T}$ac_res" >&6; }
11336 # Is the header compilable?
11337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11339 cat >conftest.$ac_ext <<_ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 $ac_includes_default
11346 #include <$ac_header>
11348 rm -f conftest.$ac_objext
11349 if { (ac_try="$ac_compile"
11350 case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_compile") 2>conftest.er1
11357 grep -v '^ *+' conftest.er1 >conftest.err
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11363 { (case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_try") 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; } &&
11372 { ac_try='test -s conftest.$ac_objext'
11373 { (case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_try") 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_header_compiler=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_header_compiler=no
11390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11392 echo "${ECHO_T}$ac_header_compiler" >&6; }
11394 # Is the header present?
11395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11397 cat >conftest.$ac_ext <<_ACEOF
11400 cat confdefs.h >>conftest.$ac_ext
11401 cat >>conftest.$ac_ext <<_ACEOF
11402 /* end confdefs.h. */
11403 #include <$ac_header>
11405 if { (ac_try="$ac_cpp conftest.$ac_ext"
11406 case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11413 grep -v '^ *+' conftest.er1 >conftest.err
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } >/dev/null; then
11418 if test -s conftest.err; then
11419 ac_cpp_err=$ac_c_preproc_warn_flag
11420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11427 if test -z "$ac_cpp_err"; then
11428 ac_header_preproc=yes
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11433 ac_header_preproc=no
11436 rm -f conftest.err conftest.$ac_ext
11437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438 echo "${ECHO_T}$ac_header_preproc" >&6; }
11440 # So? What about this header?
11441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11447 ac_header_preproc=yes
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11463 ## ----------------------------------- ##
11464 ## Report this to llvmbugs@cs.uiuc.edu ##
11465 ## ----------------------------------- ##
11467 ) | sed "s/^/$as_me: WARNING: /" >&2
11470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 eval "$as_ac_Header=\$ac_header_preproc"
11477 ac_res=`eval echo '${'$as_ac_Header'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11483 cat >>confdefs.h <<_ACEOF
11484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11493 for ac_header in string.h strings.h
11495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11506 # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11516 #include <$ac_header>
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_try") 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 ac_header_compiler=yes
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 ac_header_compiler=no
11560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11562 echo "${ECHO_T}$ac_header_compiler" >&6; }
11564 # Is the header present?
11565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11567 cat >conftest.$ac_ext <<_ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 #include <$ac_header>
11575 if { (ac_try="$ac_cpp conftest.$ac_ext"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11583 grep -v '^ *+' conftest.er1 >conftest.err
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } >/dev/null; then
11588 if test -s conftest.err; then
11589 ac_cpp_err=$ac_c_preproc_warn_flag
11590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11597 if test -z "$ac_cpp_err"; then
11598 ac_header_preproc=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_header_preproc=no
11606 rm -f conftest.err conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608 echo "${ECHO_T}$ac_header_preproc" >&6; }
11610 # So? What about this header?
11611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11633 ## ----------------------------------- ##
11634 ## Report this to llvmbugs@cs.uiuc.edu ##
11635 ## ----------------------------------- ##
11637 ) | sed "s/^/$as_me: WARNING: /" >&2
11640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 eval "$as_ac_Header=\$ac_header_preproc"
11647 ac_res=`eval echo '${'$as_ac_Header'}'`
11648 { echo "$as_me:$LINENO: result: $ac_res" >&5
11649 echo "${ECHO_T}$ac_res" >&6; }
11652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653 cat >>confdefs.h <<_ACEOF
11654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11664 for ac_func in strchr index
11666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11680 #define $ac_func innocuous_$ac_func
11682 /* System header to define __stub macros and hopefully few prototypes,
11683 which can conflict with char $ac_func (); below.
11684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11685 <limits.h> exists even on freestanding compilers. */
11688 # include <limits.h>
11690 # include <assert.h>
11695 /* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11702 /* The GNU C library defines this for functions which it implements
11703 to always fail with ENOSYS. Some functions are actually named
11704 something starting with __ and the normal name is an alias. */
11705 #if defined __stub_$ac_func || defined __stub___$ac_func
11712 return $ac_func ();
11717 rm -f conftest.$ac_objext conftest$ac_exeext
11718 if { (ac_try="$ac_link"
11719 case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_link") 2>conftest.er1
11726 grep -v '^ *+' conftest.er1 >conftest.err
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11732 { (case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_try") 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest$ac_exeext'
11742 { (case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_try") 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 eval "$as_ac_var=yes"
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 eval "$as_ac_var=no"
11759 rm -f core conftest.err conftest.$ac_objext \
11760 conftest$ac_exeext conftest.$ac_ext
11762 ac_res=`eval echo '${'$as_ac_var'}'`
11763 { echo "$as_me:$LINENO: result: $ac_res" >&5
11764 echo "${ECHO_T}$ac_res" >&6; }
11765 if test `eval echo '${'$as_ac_var'}'` = yes; then
11766 cat >>confdefs.h <<_ACEOF
11767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11775 for ac_func in strrchr rindex
11777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 cat >conftest.$ac_ext <<_ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11791 #define $ac_func innocuous_$ac_func
11793 /* System header to define __stub macros and hopefully few prototypes,
11794 which can conflict with char $ac_func (); below.
11795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11796 <limits.h> exists even on freestanding compilers. */
11799 # include <limits.h>
11801 # include <assert.h>
11806 /* Override any GCC internal prototype to avoid an error.
11807 Use char because int might match the return type of a GCC
11808 builtin and then its argument prototype would still apply. */
11813 /* The GNU C library defines this for functions which it implements
11814 to always fail with ENOSYS. Some functions are actually named
11815 something starting with __ and the normal name is an alias. */
11816 #if defined __stub_$ac_func || defined __stub___$ac_func
11823 return $ac_func ();
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (ac_try="$ac_link"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11843 { (case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_try") 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest$ac_exeext'
11853 { (case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_try") 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 eval "$as_ac_var=yes"
11864 echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11867 eval "$as_ac_var=no"
11870 rm -f core conftest.err conftest.$ac_objext \
11871 conftest$ac_exeext conftest.$ac_ext
11873 ac_res=`eval echo '${'$as_ac_var'}'`
11874 { echo "$as_me:$LINENO: result: $ac_res" >&5
11875 echo "${ECHO_T}$ac_res" >&6; }
11876 if test `eval echo '${'$as_ac_var'}'` = yes; then
11877 cat >>confdefs.h <<_ACEOF
11878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11886 for ac_func in memcpy bcopy
11888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 cat >conftest.$ac_ext <<_ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11902 #define $ac_func innocuous_$ac_func
11904 /* System header to define __stub macros and hopefully few prototypes,
11905 which can conflict with char $ac_func (); below.
11906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11907 <limits.h> exists even on freestanding compilers. */
11910 # include <limits.h>
11912 # include <assert.h>
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11924 /* The GNU C library defines this for functions which it implements
11925 to always fail with ENOSYS. Some functions are actually named
11926 something starting with __ and the normal name is an alias. */
11927 #if defined __stub_$ac_func || defined __stub___$ac_func
11934 return $ac_func ();
11939 rm -f conftest.$ac_objext conftest$ac_exeext
11940 if { (ac_try="$ac_link"
11941 case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_link") 2>conftest.er1
11948 grep -v '^ *+' conftest.er1 >conftest.err
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11954 { (case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_try") 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; } &&
11963 { ac_try='test -s conftest$ac_exeext'
11964 { (case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 eval "$as_ac_var=yes"
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 eval "$as_ac_var=no"
11981 rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11984 ac_res=`eval echo '${'$as_ac_var'}'`
11985 { echo "$as_me:$LINENO: result: $ac_res" >&5
11986 echo "${ECHO_T}$ac_res" >&6; }
11987 if test `eval echo '${'$as_ac_var'}'` = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11997 for ac_func in memmove strcmp
11999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12013 #define $ac_func innocuous_$ac_func
12015 /* System header to define __stub macros and hopefully few prototypes,
12016 which can conflict with char $ac_func (); below.
12017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12018 <limits.h> exists even on freestanding compilers. */
12021 # include <limits.h>
12023 # include <assert.h>
12028 /* Override any GCC internal prototype to avoid an error.
12029 Use char because int might match the return type of a GCC
12030 builtin and then its argument prototype would still apply. */
12035 /* The GNU C library defines this for functions which it implements
12036 to always fail with ENOSYS. Some functions are actually named
12037 something starting with __ and the normal name is an alias. */
12038 #if defined __stub_$ac_func || defined __stub___$ac_func
12045 return $ac_func ();
12050 rm -f conftest.$ac_objext conftest$ac_exeext
12051 if { (ac_try="$ac_link"
12052 case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_link") 2>conftest.er1
12059 grep -v '^ *+' conftest.er1 >conftest.err
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
12064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12065 { (case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_try") 2>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; } &&
12074 { ac_try='test -s conftest$ac_exeext'
12075 { (case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_try") 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 eval "$as_ac_var=yes"
12086 echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 eval "$as_ac_var=no"
12092 rm -f core conftest.err conftest.$ac_objext \
12093 conftest$ac_exeext conftest.$ac_ext
12095 ac_res=`eval echo '${'$as_ac_var'}'`
12096 { echo "$as_me:$LINENO: result: $ac_res" >&5
12097 echo "${ECHO_T}$ac_res" >&6; }
12098 if test `eval echo '${'$as_ac_var'}'` = yes; then
12099 cat >>confdefs.h <<_ACEOF
12100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12109 for ac_func in closedir opendir readdir
12111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12125 #define $ac_func innocuous_$ac_func
12127 /* System header to define __stub macros and hopefully few prototypes,
12128 which can conflict with char $ac_func (); below.
12129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12130 <limits.h> exists even on freestanding compilers. */
12133 # include <limits.h>
12135 # include <assert.h>
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12147 /* The GNU C library defines this for functions which it implements
12148 to always fail with ENOSYS. Some functions are actually named
12149 something starting with __ and the normal name is an alias. */
12150 #if defined __stub_$ac_func || defined __stub___$ac_func
12157 return $ac_func ();
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (ac_try="$ac_link"
12164 case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_link") 2>conftest.er1
12171 grep -v '^ *+' conftest.er1 >conftest.err
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12177 { (case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_try") 2>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest$ac_exeext'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; }; then
12196 eval "$as_ac_var=yes"
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 eval "$as_ac_var=no"
12204 rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12207 ac_res=`eval echo '${'$as_ac_var'}'`
12208 { echo "$as_me:$LINENO: result: $ac_res" >&5
12209 echo "${ECHO_T}$ac_res" >&6; }
12210 if test `eval echo '${'$as_ac_var'}'` = yes; then
12211 cat >>confdefs.h <<_ACEOF
12212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12220 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12221 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12234 if test "$GCC" != "yes" && test "$ICC" != "yes"
12236 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12237 echo "$as_me: error: gcc|icc required but not found" >&2;}
12238 { (exit 1); exit 1; }; }
12241 if test "$GXX" != "yes" && test "$IXX" != "yes"
12243 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12244 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12245 { (exit 1); exit 1; }; }
12248 if test "$GCC" = "yes"
12250 cat >conftest.$ac_ext <<_ACEOF
12251 #if !defined(__GNUC__) || __GNUC__ < 3
12252 #error Unsupported GCC version
12256 rm -f conftest.$ac_objext
12257 if { (ac_try="$ac_compile"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_compile") 2>conftest.er1
12265 grep -v '^ *+' conftest.er1 >conftest.err
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12271 { (case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_try") 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; } &&
12280 { ac_try='test -s conftest.$ac_objext'
12281 { (case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_try") 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12295 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12296 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12297 { (exit 1); exit 1; }; }
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 if test -z "$llvm_cv_gnu_make_command"
12305 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12306 echo "$as_me: error: GNU Make required but not found" >&2;}
12307 { (exit 1); exit 1; }; }
12310 { echo "$as_me:$LINENO: result: ok" >&5
12311 echo "${ECHO_T}ok" >&6; }
12313 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12314 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12315 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12317 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12319 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12320 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12324 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12325 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12326 if test "${ac_cv_lib_m_sin+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 ac_check_lib_save_LIBS=$LIBS
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12353 rm -f conftest.$ac_objext conftest$ac_exeext
12354 if { (ac_try="$ac_link"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_link") 2>conftest.er1
12362 grep -v '^ *+' conftest.er1 >conftest.err
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12368 { (case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_try") 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest$ac_exeext'
12378 { (case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_try") 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 ac_cv_lib_m_sin=yes
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12395 rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 LIBS=$ac_check_lib_save_LIBS
12399 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12400 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12401 if test $ac_cv_lib_m_sin = yes; then
12402 cat >>confdefs.h <<_ACEOF
12403 #define HAVE_LIBM 1
12410 if test "$llvm_cv_os_type" = "MingW" ; then
12412 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12413 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12414 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-limagehlp $LIBS"
12419 cat >conftest.$ac_ext <<_ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (ac_try="$ac_link"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_link") 2>conftest.er1
12444 grep -v '^ *+' conftest.er1 >conftest.err
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_try") 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_cv_lib_imagehlp_main=yes
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12474 ac_cv_lib_imagehlp_main=no
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12481 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12482 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12483 if test $ac_cv_lib_imagehlp_main = yes; then
12484 cat >>confdefs.h <<_ACEOF
12485 #define HAVE_LIBIMAGEHLP 1
12488 LIBS="-limagehlp $LIBS"
12493 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12494 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12495 if test "${ac_cv_lib_psapi_main+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 ac_check_lib_save_LIBS=$LIBS
12499 LIBS="-lpsapi $LIBS"
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_link") 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_lib_psapi_main=yes
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_cv_lib_psapi_main=no
12558 rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_check_lib_save_LIBS
12562 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12563 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12564 if test $ac_cv_lib_psapi_main = yes; then
12565 cat >>confdefs.h <<_ACEOF
12566 #define HAVE_LIBPSAPI 1
12569 LIBS="-lpsapi $LIBS"
12575 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12576 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12577 if test "${ac_cv_search_dlopen+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 ac_func_search_save_LIBS=$LIBS
12581 cat >conftest.$ac_ext <<_ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12603 for ac_lib in '' dl; do
12604 if test -z "$ac_lib"; then
12605 ac_res="none required"
12608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12625 { (case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_try") 2>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest$ac_exeext'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_cv_search_dlopen=$ac_res
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12652 rm -f core conftest.err conftest.$ac_objext \
12654 if test "${ac_cv_search_dlopen+set}" = set; then
12658 if test "${ac_cv_search_dlopen+set}" = set; then
12661 ac_cv_search_dlopen=no
12663 rm conftest.$ac_ext
12664 LIBS=$ac_func_search_save_LIBS
12666 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12667 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12668 ac_res=$ac_cv_search_dlopen
12669 if test "$ac_res" != no; then
12670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12672 cat >>confdefs.h <<\_ACEOF
12673 #define HAVE_DLOPEN 1
12677 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12678 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12682 if test "$llvm_cv_enable_libffi" = "yes" ; then
12683 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12684 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12685 if test "${ac_cv_search_ffi_call+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 ac_func_search_save_LIBS=$LIBS
12689 cat >conftest.$ac_ext <<_ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12696 /* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12706 return ffi_call ();
12711 for ac_lib in '' ffi; do
12712 if test -z "$ac_lib"; then
12713 ac_res="none required"
12716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12718 rm -f conftest.$ac_objext conftest$ac_exeext
12719 if { (ac_try="$ac_link"
12720 case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_link") 2>conftest.er1
12727 grep -v '^ *+' conftest.er1 >conftest.err
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12733 { (case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_try") 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } &&
12742 { ac_try='test -s conftest$ac_exeext'
12743 { (case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_try") 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 ac_cv_search_ffi_call=$ac_res
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12760 rm -f core conftest.err conftest.$ac_objext \
12762 if test "${ac_cv_search_ffi_call+set}" = set; then
12766 if test "${ac_cv_search_ffi_call+set}" = set; then
12769 ac_cv_search_ffi_call=no
12771 rm conftest.$ac_ext
12772 LIBS=$ac_func_search_save_LIBS
12774 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12775 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12776 ac_res=$ac_cv_search_ffi_call
12777 if test "$ac_res" != no; then
12778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12780 cat >>confdefs.h <<\_ACEOF
12781 #define HAVE_FFI_CALL 1
12785 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12786 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12787 { (exit 1); exit 1; }; }
12792 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12793 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12794 if test "${ac_cv_search_mallinfo+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 ac_func_search_save_LIBS=$LIBS
12798 cat >conftest.$ac_ext <<_ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12815 return mallinfo ();
12820 for ac_lib in '' malloc; do
12821 if test -z "$ac_lib"; then
12822 ac_res="none required"
12825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12827 rm -f conftest.$ac_objext conftest$ac_exeext
12828 if { (ac_try="$ac_link"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_link") 2>conftest.er1
12836 grep -v '^ *+' conftest.er1 >conftest.err
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_try") 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 ac_cv_search_mallinfo=$ac_res
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12869 rm -f core conftest.err conftest.$ac_objext \
12871 if test "${ac_cv_search_mallinfo+set}" = set; then
12875 if test "${ac_cv_search_mallinfo+set}" = set; then
12878 ac_cv_search_mallinfo=no
12880 rm conftest.$ac_ext
12881 LIBS=$ac_func_search_save_LIBS
12883 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12884 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12885 ac_res=$ac_cv_search_mallinfo
12886 if test "$ac_res" != no; then
12887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12889 cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_MALLINFO 1
12896 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12898 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12899 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12900 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lpthread $LIBS"
12905 cat >conftest.$ac_ext <<_ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12918 char pthread_mutex_init ();
12922 return pthread_mutex_init ();
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (ac_try="$ac_link"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>conftest.er1
12936 grep -v '^ *+' conftest.er1 >conftest.err
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12942 { (case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_try") 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; } &&
12951 { ac_try='test -s conftest$ac_exeext'
12952 { (case "(($ac_try" in
12953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957 (eval "$ac_try") 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_cv_lib_pthread_pthread_mutex_init=yes
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12966 ac_cv_lib_pthread_pthread_mutex_init=no
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12973 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12974 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12975 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12976 cat >>confdefs.h <<_ACEOF
12977 #define HAVE_LIBPTHREAD 1
12980 LIBS="-lpthread $LIBS"
12984 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12985 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12986 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 ac_func_search_save_LIBS=$LIBS
12990 cat >conftest.$ac_ext <<_ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12997 /* Override any GCC internal prototype to avoid an error.
12998 Use char because int might match the return type of a GCC
12999 builtin and then its argument prototype would still apply. */
13003 char pthread_mutex_lock ();
13007 return pthread_mutex_lock ();
13012 for ac_lib in '' pthread; do
13013 if test -z "$ac_lib"; then
13014 ac_res="none required"
13017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13019 rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (ac_try="$ac_link"
13021 case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_link") 2>conftest.er1
13028 grep -v '^ *+' conftest.er1 >conftest.err
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13034 { (case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_try") 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; } &&
13043 { ac_try='test -s conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_search_pthread_mutex_lock=$ac_res
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13061 rm -f core conftest.err conftest.$ac_objext \
13063 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13067 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13070 ac_cv_search_pthread_mutex_lock=no
13072 rm conftest.$ac_ext
13073 LIBS=$ac_func_search_save_LIBS
13075 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13076 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13077 ac_res=$ac_cv_search_pthread_mutex_lock
13078 if test "$ac_res" != no; then
13079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13081 cat >>confdefs.h <<\_ACEOF
13082 #define HAVE_PTHREAD_MUTEX_LOCK 1
13087 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13088 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13089 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 ac_func_search_save_LIBS=$LIBS
13093 cat >conftest.$ac_ext <<_ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13106 char pthread_rwlock_init ();
13110 return pthread_rwlock_init ();
13115 for ac_lib in '' pthread; do
13116 if test -z "$ac_lib"; then
13117 ac_res="none required"
13120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_link") 2>conftest.er1
13131 grep -v '^ *+' conftest.er1 >conftest.err
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_try") 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_search_pthread_rwlock_init=$ac_res
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13164 rm -f core conftest.err conftest.$ac_objext \
13166 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13170 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13173 ac_cv_search_pthread_rwlock_init=no
13175 rm conftest.$ac_ext
13176 LIBS=$ac_func_search_save_LIBS
13178 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13179 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13180 ac_res=$ac_cv_search_pthread_rwlock_init
13181 if test "$ac_res" != no; then
13182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_PTHREAD_RWLOCK_INIT 1
13190 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13191 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13192 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 ac_func_search_save_LIBS=$LIBS
13196 cat >conftest.$ac_ext <<_ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13203 /* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13209 char pthread_getspecific ();
13213 return pthread_getspecific ();
13218 for ac_lib in '' pthread; do
13219 if test -z "$ac_lib"; then
13220 ac_res="none required"
13223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13225 rm -f conftest.$ac_objext conftest$ac_exeext
13226 if { (ac_try="$ac_link"
13227 case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_link") 2>conftest.er1
13234 grep -v '^ *+' conftest.er1 >conftest.err
13236 cat conftest.err >&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } &&
13239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13240 { (case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_try") 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; } &&
13249 { ac_try='test -s conftest$ac_exeext'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_search_pthread_getspecific=$ac_res
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13267 rm -f core conftest.err conftest.$ac_objext \
13269 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13273 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13276 ac_cv_search_pthread_getspecific=no
13278 rm conftest.$ac_ext
13279 LIBS=$ac_func_search_save_LIBS
13281 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13282 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13283 ac_res=$ac_cv_search_pthread_getspecific
13284 if test "$ac_res" != no; then
13285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_PTHREAD_GETSPECIFIC 1
13296 # Check whether --with-udis86 was given.
13297 if test "${with_udis86+set}" = set; then
13298 withval=$with_udis86;
13303 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13306 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13307 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13308 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-ludis86 $LIBS"
13313 cat >conftest.$ac_ext <<_ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13320 /* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (ac_try="$ac_link"
13337 case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_link") 2>conftest.er1
13344 grep -v '^ *+' conftest.er1 >conftest.err
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; } &&
13359 { ac_try='test -s conftest$ac_exeext'
13360 { (case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_try") 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 ac_cv_lib_udis86_ud_init=yes
13371 echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13374 ac_cv_lib_udis86_ud_init=no
13377 rm -f core conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
13379 LIBS=$ac_check_lib_save_LIBS
13381 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13382 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13383 if test $ac_cv_lib_udis86_ud_init = yes; then
13384 cat >>confdefs.h <<_ACEOF
13385 #define HAVE_LIBUDIS86 1
13388 LIBS="-ludis86 $LIBS"
13392 echo "Error! You need to have libudis86 around."
13404 cat >>confdefs.h <<_ACEOF
13405 #define USE_UDIS86 $USE_UDIS86
13410 # Check whether --with-oprofile was given.
13411 if test "${with_oprofile+set}" = set; then
13412 withval=$with_oprofile;
13416 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13417 no) llvm_cv_oppath=
13420 *) llvm_cv_oppath="${withval}/lib/oprofile"
13421 CPPFLAGS="-I${withval}/include";;
13423 if test -n "$llvm_cv_oppath" ; then
13424 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13425 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13426 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13427 if test "${ac_cv_search_bfd_init+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 ac_func_search_save_LIBS=$LIBS
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13438 /* Override any GCC internal prototype to avoid an error.
13439 Use char because int might match the return type of a GCC
13440 builtin and then its argument prototype would still apply. */
13448 return bfd_init ();
13453 for ac_lib in '' bfd; do
13454 if test -z "$ac_lib"; then
13455 ac_res="none required"
13458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (ac_try="$ac_link"
13462 case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_link") 2>conftest.er1
13469 grep -v '^ *+' conftest.er1 >conftest.err
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
13474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13475 { (case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_try") 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest$ac_exeext'
13485 { (case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_try") 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_cv_search_bfd_init=$ac_res
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13502 rm -f core conftest.err conftest.$ac_objext \
13504 if test "${ac_cv_search_bfd_init+set}" = set; then
13508 if test "${ac_cv_search_bfd_init+set}" = set; then
13511 ac_cv_search_bfd_init=no
13513 rm conftest.$ac_ext
13514 LIBS=$ac_func_search_save_LIBS
13516 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13517 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13518 ac_res=$ac_cv_search_bfd_init
13519 if test "$ac_res" != no; then
13520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13524 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13525 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13526 if test "${ac_cv_search_op_open_agent+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 ac_func_search_save_LIBS=$LIBS
13530 cat >conftest.$ac_ext <<_ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13537 /* Override any GCC internal prototype to avoid an error.
13538 Use char because int might match the return type of a GCC
13539 builtin and then its argument prototype would still apply. */
13543 char op_open_agent ();
13547 return op_open_agent ();
13552 for ac_lib in '' opagent; do
13553 if test -z "$ac_lib"; then
13554 ac_res="none required"
13557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (ac_try="$ac_link"
13561 case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_link") 2>conftest.er1
13568 grep -v '^ *+' conftest.er1 >conftest.err
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13574 { (case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_try") 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest$ac_exeext'
13584 { (case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_try") 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 ac_cv_search_op_open_agent=$ac_res
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13601 rm -f core conftest.err conftest.$ac_objext \
13603 if test "${ac_cv_search_op_open_agent+set}" = set; then
13607 if test "${ac_cv_search_op_open_agent+set}" = set; then
13610 ac_cv_search_op_open_agent=no
13612 rm conftest.$ac_ext
13613 LIBS=$ac_func_search_save_LIBS
13615 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13616 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13617 ac_res=$ac_cv_search_op_open_agent
13618 if test "$ac_res" != no; then
13619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13623 echo "Error! You need to have libopagent around."
13628 if test "${ac_cv_header_opagent_h+set}" = set; then
13629 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13630 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13631 if test "${ac_cv_header_opagent_h+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13635 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13637 # Is the header compilable?
13638 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13639 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13640 cat >conftest.$ac_ext <<_ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646 $ac_includes_default
13647 #include <opagent.h>
13649 rm -f conftest.$ac_objext
13650 if { (ac_try="$ac_compile"
13651 case "(($ac_try" in
13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 *) ac_try_echo=$ac_try;;
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_compile") 2>conftest.er1
13658 grep -v '^ *+' conftest.er1 >conftest.err
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13664 { (case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_try") 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try='test -s conftest.$ac_objext'
13674 { (case "(($ac_try" in
13675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676 *) ac_try_echo=$ac_try;;
13678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679 (eval "$ac_try") 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_header_compiler=yes
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13688 ac_header_compiler=no
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13693 echo "${ECHO_T}$ac_header_compiler" >&6; }
13695 # Is the header present?
13696 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13697 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13698 cat >conftest.$ac_ext <<_ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 #include <opagent.h>
13706 if { (ac_try="$ac_cpp conftest.$ac_ext"
13707 case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13714 grep -v '^ *+' conftest.er1 >conftest.err
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } >/dev/null; then
13719 if test -s conftest.err; then
13720 ac_cpp_err=$ac_c_preproc_warn_flag
13721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13728 if test -z "$ac_cpp_err"; then
13729 ac_header_preproc=yes
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_header_preproc=no
13737 rm -f conftest.err conftest.$ac_ext
13738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739 echo "${ECHO_T}$ac_header_preproc" >&6; }
13741 # So? What about this header?
13742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13744 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13745 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13747 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13748 ac_header_preproc=yes
13751 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13752 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13754 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13756 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13758 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13760 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13762 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13764 ## ----------------------------------- ##
13765 ## Report this to llvmbugs@cs.uiuc.edu ##
13766 ## ----------------------------------- ##
13768 ) | sed "s/^/$as_me: WARNING: /" >&2
13771 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13772 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13773 if test "${ac_cv_header_opagent_h+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 ac_cv_header_opagent_h=$ac_header_preproc
13778 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13779 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13782 if test $ac_cv_header_opagent_h = yes; then
13786 echo "Error! You need to have opagent.h around."
13802 cat >>confdefs.h <<_ACEOF
13803 #define USE_OPROFILE $USE_OPROFILE
13813 ac_header_dirent=no
13814 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13815 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13816 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13817 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 cat >conftest.$ac_ext <<_ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 #include <sys/types.h>
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854 { (case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_try") 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; } &&
13863 { ac_try='test -s conftest.$ac_objext'
13864 { (case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_try") 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 eval "$as_ac_Header=yes"
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13878 eval "$as_ac_Header=no"
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 ac_res=`eval echo '${'$as_ac_Header'}'`
13884 { echo "$as_me:$LINENO: result: $ac_res" >&5
13885 echo "${ECHO_T}$ac_res" >&6; }
13886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13887 cat >>confdefs.h <<_ACEOF
13888 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13891 ac_header_dirent=$ac_hdr; break
13895 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13896 if test $ac_header_dirent = dirent.h; then
13897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13899 if test "${ac_cv_search_opendir+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 ac_func_search_save_LIBS=$LIBS
13903 cat >conftest.$ac_ext <<_ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13910 /* Override any GCC internal prototype to avoid an error.
13911 Use char because int might match the return type of a GCC
13912 builtin and then its argument prototype would still apply. */
13925 for ac_lib in '' dir; do
13926 if test -z "$ac_lib"; then
13927 ac_res="none required"
13930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13932 rm -f conftest.$ac_objext conftest$ac_exeext
13933 if { (ac_try="$ac_link"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_link") 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest$ac_exeext'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_search_opendir=$ac_res
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13974 rm -f core conftest.err conftest.$ac_objext \
13976 if test "${ac_cv_search_opendir+set}" = set; then
13980 if test "${ac_cv_search_opendir+set}" = set; then
13983 ac_cv_search_opendir=no
13985 rm conftest.$ac_ext
13986 LIBS=$ac_func_search_save_LIBS
13988 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13989 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13990 ac_res=$ac_cv_search_opendir
13991 if test "$ac_res" != no; then
13992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13997 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13998 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13999 if test "${ac_cv_search_opendir+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 ac_func_search_save_LIBS=$LIBS
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14025 for ac_lib in '' x; do
14026 if test -z "$ac_lib"; then
14027 ac_res="none required"
14030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14032 rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (ac_try="$ac_link"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_link") 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest$ac_exeext'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_search_opendir=$ac_res
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14074 rm -f core conftest.err conftest.$ac_objext \
14076 if test "${ac_cv_search_opendir+set}" = set; then
14080 if test "${ac_cv_search_opendir+set}" = set; then
14083 ac_cv_search_opendir=no
14085 rm conftest.$ac_ext
14086 LIBS=$ac_func_search_save_LIBS
14088 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14089 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14090 ac_res=$ac_cv_search_opendir
14091 if test "$ac_res" != no; then
14092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14098 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14099 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14100 if test "${ac_cv_header_mmap_anon+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 ac_cpp='$CPP $CPPFLAGS'
14105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14109 cat >conftest.$ac_ext <<_ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 #include <sys/mman.h>
14116 #include <unistd.h>
14121 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14126 rm -f conftest.$ac_objext
14127 if { (ac_try="$ac_compile"
14128 case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_compile") 2>conftest.er1
14135 grep -v '^ *+' conftest.er1 >conftest.err
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
14140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14141 { (case "(($ac_try" in
14142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143 *) ac_try_echo=$ac_try;;
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146 (eval "$ac_try") 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest.$ac_objext'
14151 { (case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_try") 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14160 ac_cv_header_mmap_anon=yes
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14165 ac_cv_header_mmap_anon=no
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 ac_cpp='$CPP $CPPFLAGS'
14171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14177 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14178 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14179 if test "$ac_cv_header_mmap_anon" = yes; then
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_MMAP_ANONYMOUS 1
14187 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14188 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14189 if test "${ac_cv_header_stat_broken+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 cat >conftest.$ac_ext <<_ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 #include <sys/types.h>
14199 #include <sys/stat.h>
14201 #if defined S_ISBLK && defined S_IFDIR
14202 # if S_ISBLK (S_IFDIR)
14207 #if defined S_ISBLK && defined S_IFCHR
14208 # if S_ISBLK (S_IFCHR)
14213 #if defined S_ISLNK && defined S_IFREG
14214 # if S_ISLNK (S_IFREG)
14219 #if defined S_ISSOCK && defined S_IFREG
14220 # if S_ISSOCK (S_IFREG)
14226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14227 $EGREP "You lose" >/dev/null 2>&1; then
14228 ac_cv_header_stat_broken=yes
14230 ac_cv_header_stat_broken=no
14235 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14236 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14237 if test $ac_cv_header_stat_broken = yes; then
14239 cat >>confdefs.h <<\_ACEOF
14240 #define STAT_MACROS_BROKEN 1
14245 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14246 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14247 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 cat >conftest.$ac_ext <<_ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 #include <sys/types.h>
14257 #include <sys/wait.h>
14258 #ifndef WEXITSTATUS
14259 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14262 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14270 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14275 rm -f conftest.$ac_objext
14276 if { (ac_try="$ac_compile"
14277 case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_compile") 2>conftest.er1
14284 grep -v '^ *+' conftest.er1 >conftest.err
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_cv_header_sys_wait_h=yes
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14314 ac_cv_header_sys_wait_h=no
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14320 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14321 if test $ac_cv_header_sys_wait_h = yes; then
14323 cat >>confdefs.h <<\_ACEOF
14324 #define HAVE_SYS_WAIT_H 1
14329 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14330 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14331 if test "${ac_cv_header_time+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 cat >conftest.$ac_ext <<_ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 #include <sys/types.h>
14341 #include <sys/time.h>
14347 if ((struct tm *) 0)
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_compile") 2>conftest.er1
14362 grep -v '^ *+' conftest.er1 >conftest.err
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368 { (case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_try") 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (case "(($ac_try" in
14379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_try") 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 ac_cv_header_time=yes
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 ac_cv_header_time=no
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14398 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14399 if test $ac_cv_header_time = yes; then
14401 cat >>confdefs.h <<\_ACEOF
14402 #define TIME_WITH_SYS_TIME 1
14414 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 ac_res=`eval echo '${'$as_ac_Header'}'`
14424 { echo "$as_me:$LINENO: result: $ac_res" >&5
14425 echo "${ECHO_T}$ac_res" >&6; }
14427 # Is the header compilable?
14428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14430 cat >conftest.$ac_ext <<_ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 $ac_includes_default
14437 #include <$ac_header>
14439 rm -f conftest.$ac_objext
14440 if { (ac_try="$ac_compile"
14441 case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_compile") 2>conftest.er1
14448 grep -v '^ *+' conftest.er1 >conftest.err
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } &&
14453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14454 { (case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459 (eval "$ac_try") 2>&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; } &&
14463 { ac_try='test -s conftest.$ac_objext'
14464 { (case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_try") 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_header_compiler=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ac_header_compiler=no
14481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14483 echo "${ECHO_T}$ac_header_compiler" >&6; }
14485 # Is the header present?
14486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14488 cat >conftest.$ac_ext <<_ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14494 #include <$ac_header>
14496 if { (ac_try="$ac_cpp conftest.$ac_ext"
14497 case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14504 grep -v '^ *+' conftest.er1 >conftest.err
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } >/dev/null; then
14509 if test -s conftest.err; then
14510 ac_cpp_err=$ac_c_preproc_warn_flag
14511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14518 if test -z "$ac_cpp_err"; then
14519 ac_header_preproc=yes
14521 echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14524 ac_header_preproc=no
14527 rm -f conftest.err conftest.$ac_ext
14528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14529 echo "${ECHO_T}$ac_header_preproc" >&6; }
14531 # So? What about this header?
14532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14538 ac_header_preproc=yes
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14554 ## ----------------------------------- ##
14555 ## Report this to llvmbugs@cs.uiuc.edu ##
14556 ## ----------------------------------- ##
14558 ) | sed "s/^/$as_me: WARNING: /" >&2
14561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 eval "$as_ac_Header=\$ac_header_preproc"
14568 ac_res=`eval echo '${'$as_ac_Header'}'`
14569 { echo "$as_me:$LINENO: result: $ac_res" >&5
14570 echo "${ECHO_T}$ac_res" >&6; }
14573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14574 cat >>confdefs.h <<_ACEOF
14575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14588 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 ac_res=`eval echo '${'$as_ac_Header'}'`
14598 { echo "$as_me:$LINENO: result: $ac_res" >&5
14599 echo "${ECHO_T}$ac_res" >&6; }
14601 # Is the header compilable?
14602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14604 cat >conftest.$ac_ext <<_ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 $ac_includes_default
14611 #include <$ac_header>
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_compile") 2>conftest.er1
14622 grep -v '^ *+' conftest.er1 >conftest.err
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest.$ac_objext'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_header_compiler=yes
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_header_compiler=no
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657 echo "${ECHO_T}$ac_header_compiler" >&6; }
14659 # Is the header present?
14660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14662 cat >conftest.$ac_ext <<_ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <$ac_header>
14670 if { (ac_try="$ac_cpp conftest.$ac_ext"
14671 case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14678 grep -v '^ *+' conftest.er1 >conftest.err
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } >/dev/null; then
14683 if test -s conftest.err; then
14684 ac_cpp_err=$ac_c_preproc_warn_flag
14685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14692 if test -z "$ac_cpp_err"; then
14693 ac_header_preproc=yes
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 ac_header_preproc=no
14701 rm -f conftest.err conftest.$ac_ext
14702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14703 echo "${ECHO_T}$ac_header_preproc" >&6; }
14705 # So? What about this header?
14706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14712 ac_header_preproc=yes
14715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14728 ## ----------------------------------- ##
14729 ## Report this to llvmbugs@cs.uiuc.edu ##
14730 ## ----------------------------------- ##
14732 ) | sed "s/^/$as_me: WARNING: /" >&2
14735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 eval "$as_ac_Header=\$ac_header_preproc"
14742 ac_res=`eval echo '${'$as_ac_Header'}'`
14743 { echo "$as_me:$LINENO: result: $ac_res" >&5
14744 echo "${ECHO_T}$ac_res" >&6; }
14747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14748 cat >>confdefs.h <<_ACEOF
14749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14758 for ac_header in utime.h windows.h
14760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 ac_res=`eval echo '${'$as_ac_Header'}'`
14768 { echo "$as_me:$LINENO: result: $ac_res" >&5
14769 echo "${ECHO_T}$ac_res" >&6; }
14771 # Is the header compilable?
14772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14774 cat >conftest.$ac_ext <<_ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14780 $ac_includes_default
14781 #include <$ac_header>
14783 rm -f conftest.$ac_objext
14784 if { (ac_try="$ac_compile"
14785 case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_compile") 2>conftest.er1
14792 grep -v '^ *+' conftest.er1 >conftest.err
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14798 { (case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_try") 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_try") 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_header_compiler=yes
14819 echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14822 ac_header_compiler=no
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14827 echo "${ECHO_T}$ac_header_compiler" >&6; }
14829 # Is the header present?
14830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14832 cat >conftest.$ac_ext <<_ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838 #include <$ac_header>
14840 if { (ac_try="$ac_cpp conftest.$ac_ext"
14841 case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14848 grep -v '^ *+' conftest.er1 >conftest.err
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } >/dev/null; then
14853 if test -s conftest.err; then
14854 ac_cpp_err=$ac_c_preproc_warn_flag
14855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14862 if test -z "$ac_cpp_err"; then
14863 ac_header_preproc=yes
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 ac_header_preproc=no
14871 rm -f conftest.err conftest.$ac_ext
14872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14873 echo "${ECHO_T}$ac_header_preproc" >&6; }
14875 # So? What about this header?
14876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14882 ac_header_preproc=yes
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14898 ## ----------------------------------- ##
14899 ## Report this to llvmbugs@cs.uiuc.edu ##
14900 ## ----------------------------------- ##
14902 ) | sed "s/^/$as_me: WARNING: /" >&2
14905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 eval "$as_ac_Header=\$ac_header_preproc"
14912 ac_res=`eval echo '${'$as_ac_Header'}'`
14913 { echo "$as_me:$LINENO: result: $ac_res" >&5
14914 echo "${ECHO_T}$ac_res" >&6; }
14917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14918 cat >>confdefs.h <<_ACEOF
14919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14931 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 ac_res=`eval echo '${'$as_ac_Header'}'`
14941 { echo "$as_me:$LINENO: result: $ac_res" >&5
14942 echo "${ECHO_T}$ac_res" >&6; }
14944 # Is the header compilable?
14945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 $ac_includes_default
14954 #include <$ac_header>
14956 rm -f conftest.$ac_objext
14957 if { (ac_try="$ac_compile"
14958 case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963 (eval "$ac_compile") 2>conftest.er1
14965 grep -v '^ *+' conftest.er1 >conftest.err
14967 cat conftest.err >&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } &&
14970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14971 { (case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_try") 2>&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; } &&
14980 { ac_try='test -s conftest.$ac_objext'
14981 { (case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_try") 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 ac_header_compiler=yes
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 ac_header_compiler=no
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15000 echo "${ECHO_T}$ac_header_compiler" >&6; }
15002 # Is the header present?
15003 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15005 cat >conftest.$ac_ext <<_ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15011 #include <$ac_header>
15013 if { (ac_try="$ac_cpp conftest.$ac_ext"
15014 case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15021 grep -v '^ *+' conftest.er1 >conftest.err
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } >/dev/null; then
15026 if test -s conftest.err; then
15027 ac_cpp_err=$ac_c_preproc_warn_flag
15028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15035 if test -z "$ac_cpp_err"; then
15036 ac_header_preproc=yes
15038 echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15041 ac_header_preproc=no
15044 rm -f conftest.err conftest.$ac_ext
15045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15046 echo "${ECHO_T}$ac_header_preproc" >&6; }
15048 # So? What about this header?
15049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15055 ac_header_preproc=yes
15058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15071 ## ----------------------------------- ##
15072 ## Report this to llvmbugs@cs.uiuc.edu ##
15073 ## ----------------------------------- ##
15075 ) | sed "s/^/$as_me: WARNING: /" >&2
15078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 eval "$as_ac_Header=\$ac_header_preproc"
15085 ac_res=`eval echo '${'$as_ac_Header'}'`
15086 { echo "$as_me:$LINENO: result: $ac_res" >&5
15087 echo "${ECHO_T}$ac_res" >&6; }
15090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15091 cat >>confdefs.h <<_ACEOF
15092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15103 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 ac_res=`eval echo '${'$as_ac_Header'}'`
15113 { echo "$as_me:$LINENO: result: $ac_res" >&5
15114 echo "${ECHO_T}$ac_res" >&6; }
15116 # Is the header compilable?
15117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15119 cat >conftest.$ac_ext <<_ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 $ac_includes_default
15126 #include <$ac_header>
15128 rm -f conftest.$ac_objext
15129 if { (ac_try="$ac_compile"
15130 case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_compile") 2>conftest.er1
15137 grep -v '^ *+' conftest.er1 >conftest.err
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } &&
15142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15143 { (case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_try") 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; } &&
15152 { ac_try='test -s conftest.$ac_objext'
15153 { (case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_try") 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 ac_header_compiler=yes
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 ac_header_compiler=no
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15172 echo "${ECHO_T}$ac_header_compiler" >&6; }
15174 # Is the header present?
15175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 #include <$ac_header>
15185 if { (ac_try="$ac_cpp conftest.$ac_ext"
15186 case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15193 grep -v '^ *+' conftest.er1 >conftest.err
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } >/dev/null; then
15198 if test -s conftest.err; then
15199 ac_cpp_err=$ac_c_preproc_warn_flag
15200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15207 if test -z "$ac_cpp_err"; then
15208 ac_header_preproc=yes
15210 echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15213 ac_header_preproc=no
15216 rm -f conftest.err conftest.$ac_ext
15217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15218 echo "${ECHO_T}$ac_header_preproc" >&6; }
15220 # So? What about this header?
15221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15227 ac_header_preproc=yes
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15243 ## ----------------------------------- ##
15244 ## Report this to llvmbugs@cs.uiuc.edu ##
15245 ## ----------------------------------- ##
15247 ) | sed "s/^/$as_me: WARNING: /" >&2
15250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 eval "$as_ac_Header=\$ac_header_preproc"
15257 ac_res=`eval echo '${'$as_ac_Header'}'`
15258 { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15263 cat >>confdefs.h <<_ACEOF
15264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15272 for ac_header in valgrind/valgrind.h
15274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 ac_res=`eval echo '${'$as_ac_Header'}'`
15282 { echo "$as_me:$LINENO: result: $ac_res" >&5
15283 echo "${ECHO_T}$ac_res" >&6; }
15285 # Is the header compilable?
15286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15288 cat >conftest.$ac_ext <<_ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h. */
15294 $ac_includes_default
15295 #include <$ac_header>
15297 rm -f conftest.$ac_objext
15298 if { (ac_try="$ac_compile"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_compile") 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312 { (case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_try") 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_header_compiler=yes
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_header_compiler=no
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15341 echo "${ECHO_T}$ac_header_compiler" >&6; }
15343 # Is the header present?
15344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15346 cat >conftest.$ac_ext <<_ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 #include <$ac_header>
15354 if { (ac_try="$ac_cpp conftest.$ac_ext"
15355 case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15362 grep -v '^ *+' conftest.er1 >conftest.err
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } >/dev/null; then
15367 if test -s conftest.err; then
15368 ac_cpp_err=$ac_c_preproc_warn_flag
15369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15376 if test -z "$ac_cpp_err"; then
15377 ac_header_preproc=yes
15379 echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15382 ac_header_preproc=no
15385 rm -f conftest.err conftest.$ac_ext
15386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15387 echo "${ECHO_T}$ac_header_preproc" >&6; }
15389 # So? What about this header?
15390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15396 ac_header_preproc=yes
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15412 ## ----------------------------------- ##
15413 ## Report this to llvmbugs@cs.uiuc.edu ##
15414 ## ----------------------------------- ##
15416 ) | sed "s/^/$as_me: WARNING: /" >&2
15419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15422 echo $ECHO_N "(cached) $ECHO_C" >&6
15424 eval "$as_ac_Header=\$ac_header_preproc"
15426 ac_res=`eval echo '${'$as_ac_Header'}'`
15427 { echo "$as_me:$LINENO: result: $ac_res" >&5
15428 echo "${ECHO_T}$ac_res" >&6; }
15431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15441 for ac_header in fenv.h
15443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 ac_res=`eval echo '${'$as_ac_Header'}'`
15451 { echo "$as_me:$LINENO: result: $ac_res" >&5
15452 echo "${ECHO_T}$ac_res" >&6; }
15454 # Is the header compilable?
15455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15457 cat >conftest.$ac_ext <<_ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15463 $ac_includes_default
15464 #include <$ac_header>
15466 rm -f conftest.$ac_objext
15467 if { (ac_try="$ac_compile"
15468 case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_compile") 2>conftest.er1
15475 grep -v '^ *+' conftest.er1 >conftest.err
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15481 { (case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_try") 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } &&
15490 { ac_try='test -s conftest.$ac_objext'
15491 { (case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_try") 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_header_compiler=yes
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_header_compiler=no
15508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15510 echo "${ECHO_T}$ac_header_compiler" >&6; }
15512 # Is the header present?
15513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15515 cat >conftest.$ac_ext <<_ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 #include <$ac_header>
15523 if { (ac_try="$ac_cpp conftest.$ac_ext"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15531 grep -v '^ *+' conftest.er1 >conftest.err
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } >/dev/null; then
15536 if test -s conftest.err; then
15537 ac_cpp_err=$ac_c_preproc_warn_flag
15538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15545 if test -z "$ac_cpp_err"; then
15546 ac_header_preproc=yes
15548 echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15551 ac_header_preproc=no
15554 rm -f conftest.err conftest.$ac_ext
15555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15556 echo "${ECHO_T}$ac_header_preproc" >&6; }
15558 # So? What about this header?
15559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15565 ac_header_preproc=yes
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15581 ## ----------------------------------- ##
15582 ## Report this to llvmbugs@cs.uiuc.edu ##
15583 ## ----------------------------------- ##
15585 ) | sed "s/^/$as_me: WARNING: /" >&2
15588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 eval "$as_ac_Header=\$ac_header_preproc"
15595 ac_res=`eval echo '${'$as_ac_Header'}'`
15596 { echo "$as_me:$LINENO: result: $ac_res" >&5
15597 echo "${ECHO_T}$ac_res" >&6; }
15600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15609 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15611 for ac_header in pthread.h
15613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 ac_res=`eval echo '${'$as_ac_Header'}'`
15621 { echo "$as_me:$LINENO: result: $ac_res" >&5
15622 echo "${ECHO_T}$ac_res" >&6; }
15624 # Is the header compilable?
15625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15627 cat >conftest.$ac_ext <<_ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15633 $ac_includes_default
15634 #include <$ac_header>
15636 rm -f conftest.$ac_objext
15637 if { (ac_try="$ac_compile"
15638 case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_compile") 2>conftest.er1
15645 grep -v '^ *+' conftest.er1 >conftest.err
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15651 { (case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656 (eval "$ac_try") 2>&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; } &&
15660 { ac_try='test -s conftest.$ac_objext'
15661 { (case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_try") 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_header_compiler=yes
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_header_compiler=no
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15680 echo "${ECHO_T}$ac_header_compiler" >&6; }
15682 # Is the header present?
15683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15685 cat >conftest.$ac_ext <<_ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691 #include <$ac_header>
15693 if { (ac_try="$ac_cpp conftest.$ac_ext"
15694 case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15701 grep -v '^ *+' conftest.er1 >conftest.err
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } >/dev/null; then
15706 if test -s conftest.err; then
15707 ac_cpp_err=$ac_c_preproc_warn_flag
15708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15715 if test -z "$ac_cpp_err"; then
15716 ac_header_preproc=yes
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 ac_header_preproc=no
15724 rm -f conftest.err conftest.$ac_ext
15725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15726 echo "${ECHO_T}$ac_header_preproc" >&6; }
15728 # So? What about this header?
15729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15735 ac_header_preproc=yes
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15751 ## ----------------------------------- ##
15752 ## Report this to llvmbugs@cs.uiuc.edu ##
15753 ## ----------------------------------- ##
15755 ) | sed "s/^/$as_me: WARNING: /" >&2
15758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 eval "$as_ac_Header=\$ac_header_preproc"
15765 ac_res=`eval echo '${'$as_ac_Header'}'`
15766 { echo "$as_me:$LINENO: result: $ac_res" >&5
15767 echo "${ECHO_T}$ac_res" >&6; }
15770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15771 cat >>confdefs.h <<_ACEOF
15772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15788 if test "$llvm_cv_enable_libffi" = "yes" ; then
15791 for ac_header in ffi.h ffi/ffi.h
15793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 ac_res=`eval echo '${'$as_ac_Header'}'`
15801 { echo "$as_me:$LINENO: result: $ac_res" >&5
15802 echo "${ECHO_T}$ac_res" >&6; }
15804 # Is the header compilable?
15805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15807 cat >conftest.$ac_ext <<_ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15813 $ac_includes_default
15814 #include <$ac_header>
15816 rm -f conftest.$ac_objext
15817 if { (ac_try="$ac_compile"
15818 case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_compile") 2>conftest.er1
15825 grep -v '^ *+' conftest.er1 >conftest.err
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15831 { (case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836 (eval "$ac_try") 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; } &&
15840 { ac_try='test -s conftest.$ac_objext'
15841 { (case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_try") 2>&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15850 ac_header_compiler=yes
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 ac_header_compiler=no
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15860 echo "${ECHO_T}$ac_header_compiler" >&6; }
15862 # Is the header present?
15863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15865 cat >conftest.$ac_ext <<_ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 #include <$ac_header>
15873 if { (ac_try="$ac_cpp conftest.$ac_ext"
15874 case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15881 grep -v '^ *+' conftest.er1 >conftest.err
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } >/dev/null; then
15886 if test -s conftest.err; then
15887 ac_cpp_err=$ac_c_preproc_warn_flag
15888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15895 if test -z "$ac_cpp_err"; then
15896 ac_header_preproc=yes
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 ac_header_preproc=no
15904 rm -f conftest.err conftest.$ac_ext
15905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15906 echo "${ECHO_T}$ac_header_preproc" >&6; }
15908 # So? What about this header?
15909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15915 ac_header_preproc=yes
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15931 ## ----------------------------------- ##
15932 ## Report this to llvmbugs@cs.uiuc.edu ##
15933 ## ----------------------------------- ##
15935 ) | sed "s/^/$as_me: WARNING: /" >&2
15938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 eval "$as_ac_Header=\$ac_header_preproc"
15945 ac_res=`eval echo '${'$as_ac_Header'}'`
15946 { echo "$as_me:$LINENO: result: $ac_res" >&5
15947 echo "${ECHO_T}$ac_res" >&6; }
15950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15951 cat >>confdefs.h <<_ACEOF
15952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15962 for ac_header in CrashReporterClient.h
15964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 ac_res=`eval echo '${'$as_ac_Header'}'`
15972 { echo "$as_me:$LINENO: result: $ac_res" >&5
15973 echo "${ECHO_T}$ac_res" >&6; }
15975 # Is the header compilable?
15976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15978 cat >conftest.$ac_ext <<_ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 $ac_includes_default
15985 #include <$ac_header>
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15994 (eval "$ac_compile") 2>conftest.er1
15996 grep -v '^ *+' conftest.er1 >conftest.err
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest.$ac_objext'
16012 { (case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_try") 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_header_compiler=yes
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 ac_header_compiler=no
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16031 echo "${ECHO_T}$ac_header_compiler" >&6; }
16033 # Is the header present?
16034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 #include <$ac_header>
16044 if { (ac_try="$ac_cpp conftest.$ac_ext"
16045 case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16052 grep -v '^ *+' conftest.er1 >conftest.err
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } >/dev/null; then
16057 if test -s conftest.err; then
16058 ac_cpp_err=$ac_c_preproc_warn_flag
16059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16066 if test -z "$ac_cpp_err"; then
16067 ac_header_preproc=yes
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_header_preproc=no
16075 rm -f conftest.err conftest.$ac_ext
16076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16077 echo "${ECHO_T}$ac_header_preproc" >&6; }
16079 # So? What about this header?
16080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16086 ac_header_preproc=yes
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16102 ## ----------------------------------- ##
16103 ## Report this to llvmbugs@cs.uiuc.edu ##
16104 ## ----------------------------------- ##
16106 ) | sed "s/^/$as_me: WARNING: /" >&2
16109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 eval "$as_ac_Header=\$ac_header_preproc"
16116 ac_res=`eval echo '${'$as_ac_Header'}'`
16117 { echo "$as_me:$LINENO: result: $ac_res" >&5
16118 echo "${ECHO_T}$ac_res" >&6; }
16121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16122 cat >>confdefs.h <<_ACEOF
16123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16131 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16132 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16133 cat >conftest.$ac_ext <<_ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16139 extern const char *__crashreporter_info__;
16141 __crashreporter_info__ = "test";
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (ac_try="$ac_link"
16148 case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_link") 2>conftest.er1
16155 grep -v '^ *+' conftest.er1 >conftest.err
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16161 { (case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_try") 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; } &&
16170 { ac_try='test -s conftest$ac_exeext'
16171 { (case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_try") 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
16180 { echo "$as_me:$LINENO: result: yes" >&5
16181 echo "${ECHO_T}yes" >&6; }
16183 cat >>confdefs.h <<\_ACEOF
16184 #define HAVE_CRASHREPORTER_INFO 1
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 { echo "$as_me:$LINENO: result: no" >&5
16192 echo "${ECHO_T}no" >&6; }
16194 cat >>confdefs.h <<\_ACEOF
16195 #define HAVE_CRASHREPORTER_INFO 0
16200 rm -f core conftest.err conftest.$ac_objext \
16201 conftest$ac_exeext conftest.$ac_ext
16206 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16207 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16208 if test "${ac_cv_huge_val_sanity+set}" = set; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 ac_cpp='$CXXCPP $CPPFLAGS'
16214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16218 ac_save_CXXFLAGS=$CXXFLAGS
16220 if test "$cross_compiling" = yes; then
16221 ac_cv_huge_val_sanity=yes
16223 cat >conftest.$ac_ext <<_ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16233 double x = HUGE_VAL; return x != x;
16238 rm -f conftest$ac_exeext
16239 if { (ac_try="$ac_link"
16240 case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_link") 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16249 { (case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_try") 2>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_cv_huge_val_sanity=yes
16260 echo "$as_me: program exited with status $ac_status" >&5
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 ( exit $ac_status )
16265 ac_cv_huge_val_sanity=no
16267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16271 CXXFLAGS=$ac_save_CXXFLAGS
16273 ac_cpp='$CPP $CPPFLAGS'
16274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16280 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16281 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16282 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16285 { echo "$as_me:$LINENO: checking for pid_t" >&5
16286 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16287 if test "${ac_cv_type_pid_t+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 $ac_includes_default
16297 typedef pid_t ac__type_new_;
16301 if ((ac__type_new_ *) 0)
16303 if (sizeof (ac__type_new_))
16309 rm -f conftest.$ac_objext
16310 if { (ac_try="$ac_compile"
16311 case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_compile") 2>conftest.er1
16318 grep -v '^ *+' conftest.er1 >conftest.err
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16324 { (case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_try") 2>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; } &&
16333 { ac_try='test -s conftest.$ac_objext'
16334 { (case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339 (eval "$ac_try") 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 ac_cv_type_pid_t=yes
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 ac_cv_type_pid_t=no
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16354 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16355 if test $ac_cv_type_pid_t = yes; then
16359 cat >>confdefs.h <<_ACEOF
16365 { echo "$as_me:$LINENO: checking for size_t" >&5
16366 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16367 if test "${ac_cv_type_size_t+set}" = set; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 cat >conftest.$ac_ext <<_ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16376 $ac_includes_default
16377 typedef size_t ac__type_new_;
16381 if ((ac__type_new_ *) 0)
16383 if (sizeof (ac__type_new_))
16389 rm -f conftest.$ac_objext
16390 if { (ac_try="$ac_compile"
16391 case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_compile") 2>conftest.er1
16398 grep -v '^ *+' conftest.er1 >conftest.err
16400 cat conftest.err >&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } &&
16403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16404 { (case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_try") 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; } &&
16413 { ac_try='test -s conftest.$ac_objext'
16414 { (case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_try") 2>&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_cv_type_size_t=yes
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16428 ac_cv_type_size_t=no
16431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16434 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16435 if test $ac_cv_type_size_t = yes; then
16439 cat >>confdefs.h <<_ACEOF
16440 #define size_t unsigned int
16446 cat >>confdefs.h <<_ACEOF
16447 #define RETSIGTYPE void
16450 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16451 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16452 if test "${ac_cv_struct_tm+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16455 cat >conftest.$ac_ext <<_ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 #include <sys/types.h>
16467 struct tm *tp; tp->tm_sec;
16472 rm -f conftest.$ac_objext
16473 if { (ac_try="$ac_compile"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_compile") 2>conftest.er1
16481 grep -v '^ *+' conftest.er1 >conftest.err
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16487 { (case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_try") 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
16497 { (case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_try") 2>&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_struct_tm=time.h
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16511 ac_cv_struct_tm=sys/time.h
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16517 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16518 if test $ac_cv_struct_tm = sys/time.h; then
16520 cat >>confdefs.h <<\_ACEOF
16521 #define TM_IN_SYS_TIME 1
16526 { echo "$as_me:$LINENO: checking for int64_t" >&5
16527 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16528 if test "${ac_cv_type_int64_t+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 cat >conftest.$ac_ext <<_ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 $ac_includes_default
16538 typedef int64_t ac__type_new_;
16542 if ((ac__type_new_ *) 0)
16544 if (sizeof (ac__type_new_))
16550 rm -f conftest.$ac_objext
16551 if { (ac_try="$ac_compile"
16552 case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_compile") 2>conftest.er1
16559 grep -v '^ *+' conftest.er1 >conftest.err
16561 cat conftest.err >&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
16564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16565 { (case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_try") 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580 (eval "$ac_try") 2>&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 ac_cv_type_int64_t=yes
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 ac_cv_type_int64_t=no
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16595 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16596 if test $ac_cv_type_int64_t = yes; then
16598 cat >>confdefs.h <<_ACEOF
16599 #define HAVE_INT64_T 1
16604 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16605 echo "$as_me: error: Type int64_t required but not found" >&2;}
16606 { (exit 1); exit 1; }; }
16609 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16610 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16611 if test "${ac_cv_type_uint64_t+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 cat >conftest.$ac_ext <<_ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16620 $ac_includes_default
16621 typedef uint64_t ac__type_new_;
16625 if ((ac__type_new_ *) 0)
16627 if (sizeof (ac__type_new_))
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_compile") 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest.$ac_objext'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_cv_type_uint64_t=yes
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_cv_type_uint64_t=no
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16677 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16678 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16679 if test $ac_cv_type_uint64_t = yes; then
16681 cat >>confdefs.h <<_ACEOF
16682 #define HAVE_UINT64_T 1
16687 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16688 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16689 if test "${ac_cv_type_u_int64_t+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 cat >conftest.$ac_ext <<_ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 $ac_includes_default
16699 typedef u_int64_t ac__type_new_;
16703 if ((ac__type_new_ *) 0)
16705 if (sizeof (ac__type_new_))
16711 rm -f conftest.$ac_objext
16712 if { (ac_try="$ac_compile"
16713 case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718 (eval "$ac_compile") 2>conftest.er1
16720 grep -v '^ *+' conftest.er1 >conftest.err
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
16725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16726 { (case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_try") 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try='test -s conftest.$ac_objext'
16736 { (case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741 (eval "$ac_try") 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16745 ac_cv_type_u_int64_t=yes
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16750 ac_cv_type_u_int64_t=no
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16756 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16757 if test $ac_cv_type_u_int64_t = yes; then
16759 cat >>confdefs.h <<_ACEOF
16760 #define HAVE_U_INT64_T 1
16765 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16766 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16767 { (exit 1); exit 1; }; }
16781 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16797 #define $ac_func innocuous_$ac_func
16799 /* System header to define __stub macros and hopefully few prototypes,
16800 which can conflict with char $ac_func (); below.
16801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16802 <limits.h> exists even on freestanding compilers. */
16805 # include <limits.h>
16807 # include <assert.h>
16812 /* Override any GCC internal prototype to avoid an error.
16813 Use char because int might match the return type of a GCC
16814 builtin and then its argument prototype would still apply. */
16819 /* The GNU C library defines this for functions which it implements
16820 to always fail with ENOSYS. Some functions are actually named
16821 something starting with __ and the normal name is an alias. */
16822 #if defined __stub_$ac_func || defined __stub___$ac_func
16829 return $ac_func ();
16834 rm -f conftest.$ac_objext conftest$ac_exeext
16835 if { (ac_try="$ac_link"
16836 case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_link") 2>conftest.er1
16843 grep -v '^ *+' conftest.er1 >conftest.err
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16849 { (case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854 (eval "$ac_try") 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest$ac_exeext'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 eval "$as_ac_var=yes"
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 eval "$as_ac_var=no"
16876 rm -f core conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
16879 ac_res=`eval echo '${'$as_ac_var'}'`
16880 { echo "$as_me:$LINENO: result: $ac_res" >&5
16881 echo "${ECHO_T}$ac_res" >&6; }
16882 if test `eval echo '${'$as_ac_var'}'` = yes; then
16883 cat >>confdefs.h <<_ACEOF
16884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16894 for ac_func in powf fmodf strtof round
16896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 cat >conftest.$ac_ext <<_ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16910 #define $ac_func innocuous_$ac_func
16912 /* System header to define __stub macros and hopefully few prototypes,
16913 which can conflict with char $ac_func (); below.
16914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16915 <limits.h> exists even on freestanding compilers. */
16918 # include <limits.h>
16920 # include <assert.h>
16925 /* Override any GCC internal prototype to avoid an error.
16926 Use char because int might match the return type of a GCC
16927 builtin and then its argument prototype would still apply. */
16932 /* The GNU C library defines this for functions which it implements
16933 to always fail with ENOSYS. Some functions are actually named
16934 something starting with __ and the normal name is an alias. */
16935 #if defined __stub_$ac_func || defined __stub___$ac_func
16942 return $ac_func ();
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (ac_try="$ac_link"
16949 case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_link") 2>conftest.er1
16956 grep -v '^ *+' conftest.er1 >conftest.err
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16962 { (case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_try") 2>&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; } &&
16971 { ac_try='test -s conftest$ac_exeext'
16972 { (case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_try") 2>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; }; then
16981 eval "$as_ac_var=yes"
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16986 eval "$as_ac_var=no"
16989 rm -f core conftest.err conftest.$ac_objext \
16990 conftest$ac_exeext conftest.$ac_ext
16992 ac_res=`eval echo '${'$as_ac_var'}'`
16993 { echo "$as_me:$LINENO: result: $ac_res" >&5
16994 echo "${ECHO_T}$ac_res" >&6; }
16995 if test `eval echo '${'$as_ac_var'}'` = yes; then
16996 cat >>confdefs.h <<_ACEOF
16997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17008 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 cat >conftest.$ac_ext <<_ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17024 #define $ac_func innocuous_$ac_func
17026 /* System header to define __stub macros and hopefully few prototypes,
17027 which can conflict with char $ac_func (); below.
17028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17029 <limits.h> exists even on freestanding compilers. */
17032 # include <limits.h>
17034 # include <assert.h>
17039 /* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17046 /* The GNU C library defines this for functions which it implements
17047 to always fail with ENOSYS. Some functions are actually named
17048 something starting with __ and the normal name is an alias. */
17049 #if defined __stub_$ac_func || defined __stub___$ac_func
17056 return $ac_func ();
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076 { (case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_try") 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest$ac_exeext'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 eval "$as_ac_var=yes"
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17100 eval "$as_ac_var=no"
17103 rm -f core conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17106 ac_res=`eval echo '${'$as_ac_var'}'`
17107 { echo "$as_me:$LINENO: result: $ac_res" >&5
17108 echo "${ECHO_T}$ac_res" >&6; }
17109 if test `eval echo '${'$as_ac_var'}'` = yes; then
17110 cat >>confdefs.h <<_ACEOF
17111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17120 for ac_func in isatty mkdtemp mkstemp
17122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17128 cat >conftest.$ac_ext <<_ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17136 #define $ac_func innocuous_$ac_func
17138 /* System header to define __stub macros and hopefully few prototypes,
17139 which can conflict with char $ac_func (); below.
17140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17141 <limits.h> exists even on freestanding compilers. */
17144 # include <limits.h>
17146 # include <assert.h>
17151 /* Override any GCC internal prototype to avoid an error.
17152 Use char because int might match the return type of a GCC
17153 builtin and then its argument prototype would still apply. */
17158 /* The GNU C library defines this for functions which it implements
17159 to always fail with ENOSYS. Some functions are actually named
17160 something starting with __ and the normal name is an alias. */
17161 #if defined __stub_$ac_func || defined __stub___$ac_func
17168 return $ac_func ();
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (ac_try="$ac_link"
17175 case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_link") 2>conftest.er1
17182 grep -v '^ *+' conftest.er1 >conftest.err
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17188 { (case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_try") 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; } &&
17197 { ac_try='test -s conftest$ac_exeext'
17198 { (case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_try") 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
17207 eval "$as_ac_var=yes"
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17212 eval "$as_ac_var=no"
17215 rm -f core conftest.err conftest.$ac_objext \
17216 conftest$ac_exeext conftest.$ac_ext
17218 ac_res=`eval echo '${'$as_ac_var'}'`
17219 { echo "$as_me:$LINENO: result: $ac_res" >&5
17220 echo "${ECHO_T}$ac_res" >&6; }
17221 if test `eval echo '${'$as_ac_var'}'` = yes; then
17222 cat >>confdefs.h <<_ACEOF
17223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17235 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 cat >conftest.$ac_ext <<_ACEOF
17246 cat confdefs.h >>conftest.$ac_ext
17247 cat >>conftest.$ac_ext <<_ACEOF
17248 /* end confdefs.h. */
17249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17251 #define $ac_func innocuous_$ac_func
17253 /* System header to define __stub macros and hopefully few prototypes,
17254 which can conflict with char $ac_func (); below.
17255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17256 <limits.h> exists even on freestanding compilers. */
17259 # include <limits.h>
17261 # include <assert.h>
17266 /* Override any GCC internal prototype to avoid an error.
17267 Use char because int might match the return type of a GCC
17268 builtin and then its argument prototype would still apply. */
17273 /* The GNU C library defines this for functions which it implements
17274 to always fail with ENOSYS. Some functions are actually named
17275 something starting with __ and the normal name is an alias. */
17276 #if defined __stub_$ac_func || defined __stub___$ac_func
17283 return $ac_func ();
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (ac_try="$ac_link"
17290 case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_link") 2>conftest.er1
17297 grep -v '^ *+' conftest.er1 >conftest.err
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17303 { (case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_try") 2>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; } &&
17312 { ac_try='test -s conftest$ac_exeext'
17313 { (case "(($ac_try" in
17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318 (eval "$ac_try") 2>&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
17322 eval "$as_ac_var=yes"
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17327 eval "$as_ac_var=no"
17330 rm -f core conftest.err conftest.$ac_objext \
17331 conftest$ac_exeext conftest.$ac_ext
17333 ac_res=`eval echo '${'$as_ac_var'}'`
17334 { echo "$as_me:$LINENO: result: $ac_res" >&5
17335 echo "${ECHO_T}$ac_res" >&6; }
17336 if test `eval echo '${'$as_ac_var'}'` = yes; then
17337 cat >>confdefs.h <<_ACEOF
17338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17347 for ac_func in strerror strerror_r setenv
17349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 cat >conftest.$ac_ext <<_ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17363 #define $ac_func innocuous_$ac_func
17365 /* System header to define __stub macros and hopefully few prototypes,
17366 which can conflict with char $ac_func (); below.
17367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17368 <limits.h> exists even on freestanding compilers. */
17371 # include <limits.h>
17373 # include <assert.h>
17378 /* Override any GCC internal prototype to avoid an error.
17379 Use char because int might match the return type of a GCC
17380 builtin and then its argument prototype would still apply. */
17385 /* The GNU C library defines this for functions which it implements
17386 to always fail with ENOSYS. Some functions are actually named
17387 something starting with __ and the normal name is an alias. */
17388 #if defined __stub_$ac_func || defined __stub___$ac_func
17395 return $ac_func ();
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (ac_try="$ac_link"
17402 case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_link") 2>conftest.er1
17409 grep -v '^ *+' conftest.er1 >conftest.err
17411 cat conftest.err >&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } &&
17414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17415 { (case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_try") 2>&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; } &&
17424 { ac_try='test -s conftest$ac_exeext'
17425 { (case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_try") 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 eval "$as_ac_var=yes"
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 eval "$as_ac_var=no"
17442 rm -f core conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17445 ac_res=`eval echo '${'$as_ac_var'}'`
17446 { echo "$as_me:$LINENO: result: $ac_res" >&5
17447 echo "${ECHO_T}$ac_res" >&6; }
17448 if test `eval echo '${'$as_ac_var'}'` = yes; then
17449 cat >>confdefs.h <<_ACEOF
17450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17460 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 cat >conftest.$ac_ext <<_ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17476 #define $ac_func innocuous_$ac_func
17478 /* System header to define __stub macros and hopefully few prototypes,
17479 which can conflict with char $ac_func (); below.
17480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481 <limits.h> exists even on freestanding compilers. */
17484 # include <limits.h>
17486 # include <assert.h>
17491 /* Override any GCC internal prototype to avoid an error.
17492 Use char because int might match the return type of a GCC
17493 builtin and then its argument prototype would still apply. */
17498 /* The GNU C library defines this for functions which it implements
17499 to always fail with ENOSYS. Some functions are actually named
17500 something starting with __ and the normal name is an alias. */
17501 #if defined __stub_$ac_func || defined __stub___$ac_func
17508 return $ac_func ();
17513 rm -f conftest.$ac_objext conftest$ac_exeext
17514 if { (ac_try="$ac_link"
17515 case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_link") 2>conftest.er1
17522 grep -v '^ *+' conftest.er1 >conftest.err
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17528 { (case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533 (eval "$ac_try") 2>&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; } &&
17537 { ac_try='test -s conftest$ac_exeext'
17538 { (case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_try") 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 eval "$as_ac_var=yes"
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 eval "$as_ac_var=no"
17555 rm -f core conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17558 ac_res=`eval echo '${'$as_ac_var'}'`
17559 { echo "$as_me:$LINENO: result: $ac_res" >&5
17560 echo "${ECHO_T}$ac_res" >&6; }
17561 if test `eval echo '${'$as_ac_var'}'` = yes; then
17562 cat >>confdefs.h <<_ACEOF
17563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17574 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 cat >conftest.$ac_ext <<_ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17590 #define $ac_func innocuous_$ac_func
17592 /* System header to define __stub macros and hopefully few prototypes,
17593 which can conflict with char $ac_func (); below.
17594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17595 <limits.h> exists even on freestanding compilers. */
17598 # include <limits.h>
17600 # include <assert.h>
17605 /* Override any GCC internal prototype to avoid an error.
17606 Use char because int might match the return type of a GCC
17607 builtin and then its argument prototype would still apply. */
17612 /* The GNU C library defines this for functions which it implements
17613 to always fail with ENOSYS. Some functions are actually named
17614 something starting with __ and the normal name is an alias. */
17615 #if defined __stub_$ac_func || defined __stub___$ac_func
17622 return $ac_func ();
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (ac_try="$ac_link"
17629 case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_link") 2>conftest.er1
17636 grep -v '^ *+' conftest.er1 >conftest.err
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } &&
17641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17642 { (case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_try") 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try='test -s conftest$ac_exeext'
17652 { (case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_try") 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 eval "$as_ac_var=yes"
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 eval "$as_ac_var=no"
17669 rm -f core conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17672 ac_res=`eval echo '${'$as_ac_var'}'`
17673 { echo "$as_me:$LINENO: result: $ac_res" >&5
17674 echo "${ECHO_T}$ac_res" >&6; }
17675 if test `eval echo '${'$as_ac_var'}'` = yes; then
17676 cat >>confdefs.h <<_ACEOF
17677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17683 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17684 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17685 if test "${llvm_cv_c_printf_a+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 ac_cpp='$CPP $CPPFLAGS'
17690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17694 if test "$cross_compiling" = yes; then
17695 llvmac_cv_c_printf_a=no
17697 cat >conftest.$ac_ext <<_ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17706 #include <stdlib.h>
17712 volatile double A, B;
17716 sprintf(Buffer, "%a", A);
17720 if (A != 0x1.999999999999ap-4)
17727 rm -f conftest$ac_exeext
17728 if { (ac_try="$ac_link"
17729 case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_link") 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747 llvm_cv_c_printf_a=yes
17749 echo "$as_me: program exited with status $ac_status" >&5
17750 echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17753 ( exit $ac_status )
17754 llvmac_cv_c_printf_a=no
17756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17761 ac_cpp='$CPP $CPPFLAGS'
17762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17767 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17768 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17769 if test "$llvm_cv_c_printf_a" = "yes"; then
17771 cat >>confdefs.h <<\_ACEOF
17772 #define HAVE_PRINTF_A 1
17778 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17779 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17780 if test "${ac_cv_func_rand48+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 ac_cpp='$CXXCPP $CPPFLAGS'
17785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17789 cat >conftest.$ac_ext <<_ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h. */
17795 #include <stdlib.h>
17799 srand48(0);lrand48();drand48();
17804 rm -f conftest.$ac_objext
17805 if { (ac_try="$ac_compile"
17806 case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_compile") 2>conftest.er1
17813 grep -v '^ *+' conftest.er1 >conftest.err
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17819 { (case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_try") 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_func_rand48=yes
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 ac_cv_func_rand48=no
17846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848 ac_cpp='$CPP $CPPFLAGS'
17849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17854 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17855 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17857 if test "$ac_cv_func_rand48" = "yes" ; then
17859 cat >>confdefs.h <<\_ACEOF
17860 #define HAVE_RAND48 1
17866 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17867 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17868 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 cat >conftest.$ac_ext <<_ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17877 $ac_includes_default
17882 char *p = (char *) strerror_s;
17890 rm -f conftest.$ac_objext
17891 if { (ac_try="$ac_compile"
17892 case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_compile") 2>conftest.er1
17899 grep -v '^ *+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905 { (case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_try") 2>&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest.$ac_objext'
17915 { (case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_try") 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_have_decl_strerror_s=yes
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_cv_have_decl_strerror_s=no
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17935 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17936 if test $ac_cv_have_decl_strerror_s = yes; then
17938 cat >>confdefs.h <<_ACEOF
17939 #define HAVE_DECL_STRERROR_S 1
17944 cat >>confdefs.h <<_ACEOF
17945 #define HAVE_DECL_STRERROR_S 0
17953 if test "$llvm_cv_os_type" = "MingW" ; then
17954 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17955 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17956 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 ac_check_lib_save_LIBS=$LIBS
17961 cat >conftest.$ac_ext <<_ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17968 /* Override any GCC internal prototype to avoid an error.
17969 Use char because int might match the return type of a GCC
17970 builtin and then its argument prototype would still apply. */
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (ac_try="$ac_link"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_link") 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17998 { (case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_try") 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest$ac_exeext'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_lib_gcc__alloca=yes
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_cv_lib_gcc__alloca=no
18025 rm -f core conftest.err conftest.$ac_objext \
18026 conftest$ac_exeext conftest.$ac_ext
18027 LIBS=$ac_check_lib_save_LIBS
18029 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18030 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18031 if test $ac_cv_lib_gcc__alloca = yes; then
18033 cat >>confdefs.h <<\_ACEOF
18034 #define HAVE__ALLOCA 1
18039 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18040 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18041 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 ac_check_lib_save_LIBS=$LIBS
18046 cat >conftest.$ac_ext <<_ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18053 /* Override any GCC internal prototype to avoid an error.
18054 Use char because int might match the return type of a GCC
18055 builtin and then its argument prototype would still apply. */
18063 return __alloca ();
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (ac_try="$ac_link"
18070 case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_link") 2>conftest.er1
18077 grep -v '^ *+' conftest.er1 >conftest.err
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
18082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18083 { (case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_try") 2>&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest$ac_exeext'
18093 { (case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_try") 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_cv_lib_gcc___alloca=yes
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 ac_cv_lib_gcc___alloca=no
18110 rm -f core conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18112 LIBS=$ac_check_lib_save_LIBS
18114 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18115 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18116 if test $ac_cv_lib_gcc___alloca = yes; then
18118 cat >>confdefs.h <<\_ACEOF
18119 #define HAVE___ALLOCA 1
18124 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18125 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18126 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18127 echo $ECHO_N "(cached) $ECHO_C" >&6
18129 ac_check_lib_save_LIBS=$LIBS
18131 cat >conftest.$ac_ext <<_ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18138 /* Override any GCC internal prototype to avoid an error.
18139 Use char because int might match the return type of a GCC
18140 builtin and then its argument prototype would still apply. */
18148 return __chkstk ();
18153 rm -f conftest.$ac_objext conftest$ac_exeext
18154 if { (ac_try="$ac_link"
18155 case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_link") 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18168 { (case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_try") 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try='test -s conftest$ac_exeext'
18178 { (case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_try") 2>&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); }; }; then
18187 ac_cv_lib_gcc___chkstk=yes
18189 echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18192 ac_cv_lib_gcc___chkstk=no
18195 rm -f core conftest.err conftest.$ac_objext \
18196 conftest$ac_exeext conftest.$ac_ext
18197 LIBS=$ac_check_lib_save_LIBS
18199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18200 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18201 if test $ac_cv_lib_gcc___chkstk = yes; then
18203 cat >>confdefs.h <<\_ACEOF
18204 #define HAVE___CHKSTK 1
18209 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18210 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18211 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 ac_check_lib_save_LIBS=$LIBS
18216 cat >conftest.$ac_ext <<_ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18223 /* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18233 return ___chkstk ();
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18247 grep -v '^ *+' conftest.er1 >conftest.err
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
18263 { (case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_try") 2>&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272 ac_cv_lib_gcc____chkstk=yes
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 ac_cv_lib_gcc____chkstk=no
18280 rm -f core conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18282 LIBS=$ac_check_lib_save_LIBS
18284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18285 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18286 if test $ac_cv_lib_gcc____chkstk = yes; then
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE____CHKSTK 1
18295 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18296 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18297 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18298 echo $ECHO_N "(cached) $ECHO_C" >&6
18300 ac_check_lib_save_LIBS=$LIBS
18302 cat >conftest.$ac_ext <<_ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18309 /* Override any GCC internal prototype to avoid an error.
18310 Use char because int might match the return type of a GCC
18311 builtin and then its argument prototype would still apply. */
18319 return __ashldi3 ();
18324 rm -f conftest.$ac_objext conftest$ac_exeext
18325 if { (ac_try="$ac_link"
18326 case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_link") 2>conftest.er1
18333 grep -v '^ *+' conftest.er1 >conftest.err
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18339 { (case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_try") 2>&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest$ac_exeext'
18349 { (case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_try") 2>&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18358 ac_cv_lib_gcc___ashldi3=yes
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18363 ac_cv_lib_gcc___ashldi3=no
18366 rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18368 LIBS=$ac_check_lib_save_LIBS
18370 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18371 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18372 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18374 cat >>confdefs.h <<\_ACEOF
18375 #define HAVE___ASHLDI3 1
18380 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18381 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18382 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18385 ac_check_lib_save_LIBS=$LIBS
18387 cat >conftest.$ac_ext <<_ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18394 /* Override any GCC internal prototype to avoid an error.
18395 Use char because int might match the return type of a GCC
18396 builtin and then its argument prototype would still apply. */
18404 return __ashrdi3 ();
18409 rm -f conftest.$ac_objext conftest$ac_exeext
18410 if { (ac_try="$ac_link"
18411 case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_link") 2>conftest.er1
18418 grep -v '^ *+' conftest.er1 >conftest.err
18420 cat conftest.err >&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
18423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18424 { (case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_try") 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try='test -s conftest$ac_exeext'
18434 { (case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_try") 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_cv_lib_gcc___ashrdi3=yes
18445 echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18448 ac_cv_lib_gcc___ashrdi3=no
18451 rm -f core conftest.err conftest.$ac_objext \
18452 conftest$ac_exeext conftest.$ac_ext
18453 LIBS=$ac_check_lib_save_LIBS
18455 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18456 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18457 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18459 cat >>confdefs.h <<\_ACEOF
18460 #define HAVE___ASHRDI3 1
18465 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18466 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18467 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 ac_check_lib_save_LIBS=$LIBS
18472 cat >conftest.$ac_ext <<_ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18479 /* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18489 return __divdi3 ();
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18503 grep -v '^ *+' conftest.er1 >conftest.err
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_cv_lib_gcc___divdi3=yes
18530 echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18533 ac_cv_lib_gcc___divdi3=no
18536 rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext conftest.$ac_ext
18538 LIBS=$ac_check_lib_save_LIBS
18540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18541 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18542 if test $ac_cv_lib_gcc___divdi3 = yes; then
18544 cat >>confdefs.h <<\_ACEOF
18545 #define HAVE___DIVDI3 1
18550 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18551 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18552 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 ac_check_lib_save_LIBS=$LIBS
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18564 /* Override any GCC internal prototype to avoid an error.
18565 Use char because int might match the return type of a GCC
18566 builtin and then its argument prototype would still apply. */
18574 return __fixdfdi ();
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (ac_try="$ac_link"
18581 case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_link") 2>conftest.er1
18588 grep -v '^ *+' conftest.er1 >conftest.err
18590 cat conftest.err >&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
18593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest$ac_exeext'
18604 { (case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_try") 2>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; }; then
18613 ac_cv_lib_gcc___fixdfdi=yes
18615 echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18618 ac_cv_lib_gcc___fixdfdi=no
18621 rm -f core conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
18623 LIBS=$ac_check_lib_save_LIBS
18625 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18626 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18627 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18629 cat >>confdefs.h <<\_ACEOF
18630 #define HAVE___FIXDFDI 1
18635 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18636 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18637 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18640 ac_check_lib_save_LIBS=$LIBS
18642 cat >conftest.$ac_ext <<_ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18649 /* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18659 return __fixsfdi ();
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679 { (case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_try") 2>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 ac_cv_lib_gcc___fixsfdi=yes
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18703 ac_cv_lib_gcc___fixsfdi=no
18706 rm -f core conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext conftest.$ac_ext
18708 LIBS=$ac_check_lib_save_LIBS
18710 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18711 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18712 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18714 cat >>confdefs.h <<\_ACEOF
18715 #define HAVE___FIXSFDI 1
18720 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18721 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18722 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 ac_check_lib_save_LIBS=$LIBS
18727 cat >conftest.$ac_ext <<_ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18734 /* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18740 char __floatdidf ();
18744 return __floatdidf ();
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (ac_try="$ac_link"
18751 case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_link") 2>conftest.er1
18758 grep -v '^ *+' conftest.er1 >conftest.err
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18764 { (case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_try") 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; } &&
18773 { ac_try='test -s conftest$ac_exeext'
18774 { (case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_try") 2>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_lib_gcc___floatdidf=yes
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 ac_cv_lib_gcc___floatdidf=no
18791 rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18795 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18796 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18797 if test $ac_cv_lib_gcc___floatdidf = yes; then
18799 cat >>confdefs.h <<\_ACEOF
18800 #define HAVE___FLOATDIDF 1
18805 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18806 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18807 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18810 ac_check_lib_save_LIBS=$LIBS
18812 cat >conftest.$ac_ext <<_ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18819 /* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18829 return __lshrdi3 ();
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849 { (case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_try") 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_try") 2>&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 ac_cv_lib_gcc___lshrdi3=yes
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_cv_lib_gcc___lshrdi3=no
18876 rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18878 LIBS=$ac_check_lib_save_LIBS
18880 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18881 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18882 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18884 cat >>confdefs.h <<\_ACEOF
18885 #define HAVE___LSHRDI3 1
18890 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18891 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18892 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18895 ac_check_lib_save_LIBS=$LIBS
18897 cat >conftest.$ac_ext <<_ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h. */
18904 /* Override any GCC internal prototype to avoid an error.
18905 Use char because int might match the return type of a GCC
18906 builtin and then its argument prototype would still apply. */
18914 return __moddi3 ();
18919 rm -f conftest.$ac_objext conftest$ac_exeext
18920 if { (ac_try="$ac_link"
18921 case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_link") 2>conftest.er1
18928 grep -v '^ *+' conftest.er1 >conftest.err
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18934 { (case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939 (eval "$ac_try") 2>&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try='test -s conftest$ac_exeext'
18944 { (case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_try") 2>&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 ac_cv_lib_gcc___moddi3=yes
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18958 ac_cv_lib_gcc___moddi3=no
18961 rm -f core conftest.err conftest.$ac_objext \
18962 conftest$ac_exeext conftest.$ac_ext
18963 LIBS=$ac_check_lib_save_LIBS
18965 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18966 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18967 if test $ac_cv_lib_gcc___moddi3 = yes; then
18969 cat >>confdefs.h <<\_ACEOF
18970 #define HAVE___MODDI3 1
18975 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18976 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18977 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 ac_check_lib_save_LIBS=$LIBS
18982 cat >conftest.$ac_ext <<_ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18989 /* Override any GCC internal prototype to avoid an error.
18990 Use char because int might match the return type of a GCC
18991 builtin and then its argument prototype would still apply. */
18999 return __udivdi3 ();
19004 rm -f conftest.$ac_objext conftest$ac_exeext
19005 if { (ac_try="$ac_link"
19006 case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_link") 2>conftest.er1
19013 grep -v '^ *+' conftest.er1 >conftest.err
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
19018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19019 { (case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_try") 2>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest$ac_exeext'
19029 { (case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_try") 2>&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_cv_lib_gcc___udivdi3=yes
19040 echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19043 ac_cv_lib_gcc___udivdi3=no
19046 rm -f core conftest.err conftest.$ac_objext \
19047 conftest$ac_exeext conftest.$ac_ext
19048 LIBS=$ac_check_lib_save_LIBS
19050 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19051 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19052 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19054 cat >>confdefs.h <<\_ACEOF
19055 #define HAVE___UDIVDI3 1
19060 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19061 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19062 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19065 ac_check_lib_save_LIBS=$LIBS
19067 cat >conftest.$ac_ext <<_ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19074 /* Override any GCC internal prototype to avoid an error.
19075 Use char because int might match the return type of a GCC
19076 builtin and then its argument prototype would still apply. */
19084 return __umoddi3 ();
19089 rm -f conftest.$ac_objext conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>conftest.er1
19098 grep -v '^ *+' conftest.er1 >conftest.err
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest$ac_exeext'
19114 { (case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_try") 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_cv_lib_gcc___umoddi3=yes
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19128 ac_cv_lib_gcc___umoddi3=no
19131 rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19136 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19137 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE___UMODDI3 1
19146 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19147 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19148 if test "${ac_cv_lib_gcc___main+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19151 ac_check_lib_save_LIBS=$LIBS
19153 cat >conftest.$ac_ext <<_ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19160 /* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (ac_try="$ac_link"
19177 case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_link") 2>conftest.er1
19184 grep -v '^ *+' conftest.er1 >conftest.err
19186 cat conftest.err >&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
19189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest$ac_exeext'
19200 { (case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_try") 2>&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 ac_cv_lib_gcc___main=yes
19211 echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19214 ac_cv_lib_gcc___main=no
19217 rm -f core conftest.err conftest.$ac_objext \
19218 conftest$ac_exeext conftest.$ac_ext
19219 LIBS=$ac_check_lib_save_LIBS
19221 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19222 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19223 if test $ac_cv_lib_gcc___main = yes; then
19225 cat >>confdefs.h <<\_ACEOF
19226 #define HAVE___MAIN 1
19231 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19232 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19233 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 ac_check_lib_save_LIBS=$LIBS
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19245 /* Override any GCC internal prototype to avoid an error.
19246 Use char because int might match the return type of a GCC
19247 builtin and then its argument prototype would still apply. */
19255 return __cmpdi2 ();
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (ac_try="$ac_link"
19262 case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_link") 2>conftest.er1
19269 grep -v '^ *+' conftest.er1 >conftest.err
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest$ac_exeext'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_cv_lib_gcc___cmpdi2=yes
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 ac_cv_lib_gcc___cmpdi2=no
19302 rm -f core conftest.err conftest.$ac_objext \
19303 conftest$ac_exeext conftest.$ac_ext
19304 LIBS=$ac_check_lib_save_LIBS
19306 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19307 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19308 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19310 cat >>confdefs.h <<\_ACEOF
19311 #define HAVE___CMPDI2 1
19318 if test "$llvm_cv_os_type" = "MingW" ; then
19319 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19320 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19321 cat >conftest.$ac_ext <<_ACEOF
19322 #include <windows.h>
19323 #include <imagehlp.h>
19324 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19325 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19327 rm -f conftest.$ac_objext
19328 if { (ac_try="$ac_compile"
19329 case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_compile") 2>conftest.er1
19336 grep -v '^ *+' conftest.er1 >conftest.err
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19342 { (case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_try") 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest.$ac_objext'
19352 { (case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_try") 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19362 { echo "$as_me:$LINENO: result: yes" >&5
19363 echo "${ECHO_T}yes" >&6; }
19364 llvm_cv_win32_elmcb_pcstr="PCSTR"
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19371 { echo "$as_me:$LINENO: result: no" >&5
19372 echo "${ECHO_T}no" >&6; }
19373 llvm_cv_win32_elmcb_pcstr="PSTR"
19377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19379 cat >>confdefs.h <<_ACEOF
19380 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19386 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19387 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19388 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 ac_cpp='$CXXCPP $CPPFLAGS'
19393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19397 cat >conftest.$ac_ext <<_ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19412 rm -f conftest.$ac_objext
19413 if { (ac_try="$ac_compile"
19414 case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_compile") 2>conftest.er1
19421 grep -v '^ *+' conftest.er1 >conftest.err
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
19426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19427 { (case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_try") 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest.$ac_objext'
19437 { (case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_try") 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 ac_cv_func_isnan_in_math_h=yes
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 ac_cv_func_isnan_in_math_h=no
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19456 ac_cpp='$CPP $CPPFLAGS'
19457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19462 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19463 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19466 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19468 cat >>confdefs.h <<\_ACEOF
19469 #define HAVE_ISNAN_IN_MATH_H 1
19474 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19475 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19476 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 ac_cpp='$CXXCPP $CPPFLAGS'
19481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19485 cat >conftest.$ac_ext <<_ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19500 rm -f conftest.$ac_objext
19501 if { (ac_try="$ac_compile"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_compile") 2>conftest.er1
19509 grep -v '^ *+' conftest.er1 >conftest.err
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
19514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } &&
19524 { ac_try='test -s conftest.$ac_objext'
19525 { (case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_try") 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19534 ac_cv_func_isnan_in_cmath=yes
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 ac_cv_func_isnan_in_cmath=no
19542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19544 ac_cpp='$CPP $CPPFLAGS'
19545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19550 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19551 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19553 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19555 cat >>confdefs.h <<\_ACEOF
19556 #define HAVE_ISNAN_IN_CMATH 1
19561 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19562 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19563 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 ac_cpp='$CXXCPP $CPPFLAGS'
19568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19572 cat >conftest.$ac_ext <<_ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19582 float f; std::isnan(f);
19587 rm -f conftest.$ac_objext
19588 if { (ac_try="$ac_compile"
19589 case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19596 grep -v '^ *+' conftest.er1 >conftest.err
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19602 { (case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest.$ac_objext'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_cv_func_std_isnan_in_cmath=yes
19623 echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 ac_cv_func_std_isnan_in_cmath=no
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 ac_cpp='$CPP $CPPFLAGS'
19632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19637 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19638 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19640 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19642 cat >>confdefs.h <<\_ACEOF
19643 #define HAVE_STD_ISNAN_IN_CMATH 1
19649 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19650 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19651 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 ac_cpp='$CXXCPP $CPPFLAGS'
19656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19660 cat >conftest.$ac_ext <<_ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19675 rm -f conftest.$ac_objext
19676 if { (ac_try="$ac_compile"
19677 case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_compile") 2>conftest.er1
19684 grep -v '^ *+' conftest.er1 >conftest.err
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
19689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19690 { (case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_try") 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest.$ac_objext'
19700 { (case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_try") 2>&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_cv_func_isinf_in_math_h=yes
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19714 ac_cv_func_isinf_in_math_h=no
19717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19719 ac_cpp='$CPP $CPPFLAGS'
19720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19725 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19726 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19728 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19730 cat >>confdefs.h <<\_ACEOF
19731 #define HAVE_ISINF_IN_MATH_H 1
19736 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19737 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19738 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 ac_cpp='$CXXCPP $CPPFLAGS'
19743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19771 grep -v '^ *+' conftest.er1 >conftest.err
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 ac_cv_func_isinf_in_cmath=yes
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_cv_func_isinf_in_cmath=no
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 ac_cpp='$CPP $CPPFLAGS'
19807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19812 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19813 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19815 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19817 cat >>confdefs.h <<\_ACEOF
19818 #define HAVE_ISINF_IN_CMATH 1
19823 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19824 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19825 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 ac_cpp='$CXXCPP $CPPFLAGS'
19830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19844 float f; std::isinf(f)}
19849 rm -f conftest.$ac_objext
19850 if { (ac_try="$ac_compile"
19851 case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_compile") 2>conftest.er1
19858 grep -v '^ *+' conftest.er1 >conftest.err
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
19863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19864 { (case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_try") 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } &&
19873 { ac_try='test -s conftest.$ac_objext'
19874 { (case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_try") 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_cv_func_std_isinf_in_cmath=yes
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 ac_cv_func_std_isinf_in_cmath=no
19891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19893 ac_cpp='$CPP $CPPFLAGS'
19894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19899 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19900 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19902 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19904 cat >>confdefs.h <<\_ACEOF
19905 #define HAVE_STD_ISINF_IN_CMATH 1
19910 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19911 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19912 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 ac_cpp='$CXXCPP $CPPFLAGS'
19917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 #include <ieeefp.h>
19931 float f; finite(f);
19936 rm -f conftest.$ac_objext
19937 if { (ac_try="$ac_compile"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_compile") 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest.$ac_objext'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 ac_cv_func_finite_in_ieeefp_h=yes
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 ac_cv_func_finite_in_ieeefp_h=no
19978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980 ac_cpp='$CPP $CPPFLAGS'
19981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19986 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19987 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19989 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19991 cat >>confdefs.h <<\_ACEOF
19992 #define HAVE_FINITE_IN_IEEEFP_H 1
19999 if test "$llvm_cv_platform_type" = "Unix" ; then
20002 for ac_header in stdlib.h unistd.h
20004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20009 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 ac_res=`eval echo '${'$as_ac_Header'}'`
20012 { echo "$as_me:$LINENO: result: $ac_res" >&5
20013 echo "${ECHO_T}$ac_res" >&6; }
20015 # Is the header compilable?
20016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 $ac_includes_default
20025 #include <$ac_header>
20027 rm -f conftest.$ac_objext
20028 if { (ac_try="$ac_compile"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_compile") 2>conftest.er1
20036 grep -v '^ *+' conftest.er1 >conftest.err
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20042 { (case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_try") 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest.$ac_objext'
20052 { (case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_try") 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_header_compiler=yes
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_header_compiler=no
20069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20071 echo "${ECHO_T}$ac_header_compiler" >&6; }
20073 # Is the header present?
20074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 #include <$ac_header>
20084 if { (ac_try="$ac_cpp conftest.$ac_ext"
20085 case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20092 grep -v '^ *+' conftest.er1 >conftest.err
20094 cat conftest.err >&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } >/dev/null; then
20097 if test -s conftest.err; then
20098 ac_cpp_err=$ac_c_preproc_warn_flag
20099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20106 if test -z "$ac_cpp_err"; then
20107 ac_header_preproc=yes
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112 ac_header_preproc=no
20115 rm -f conftest.err conftest.$ac_ext
20116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20117 echo "${ECHO_T}$ac_header_preproc" >&6; }
20119 # So? What about this header?
20120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20126 ac_header_preproc=yes
20129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20142 ## ----------------------------------- ##
20143 ## Report this to llvmbugs@cs.uiuc.edu ##
20144 ## ----------------------------------- ##
20146 ) | sed "s/^/$as_me: WARNING: /" >&2
20149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 eval "$as_ac_Header=\$ac_header_preproc"
20156 ac_res=`eval echo '${'$as_ac_Header'}'`
20157 { echo "$as_me:$LINENO: result: $ac_res" >&5
20158 echo "${ECHO_T}$ac_res" >&6; }
20161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20162 cat >>confdefs.h <<_ACEOF
20163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20171 for ac_func in getpagesize
20173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20179 cat >conftest.$ac_ext <<_ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20187 #define $ac_func innocuous_$ac_func
20189 /* System header to define __stub macros and hopefully few prototypes,
20190 which can conflict with char $ac_func (); below.
20191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20192 <limits.h> exists even on freestanding compilers. */
20195 # include <limits.h>
20197 # include <assert.h>
20202 /* Override any GCC internal prototype to avoid an error.
20203 Use char because int might match the return type of a GCC
20204 builtin and then its argument prototype would still apply. */
20209 /* The GNU C library defines this for functions which it implements
20210 to always fail with ENOSYS. Some functions are actually named
20211 something starting with __ and the normal name is an alias. */
20212 #if defined __stub_$ac_func || defined __stub___$ac_func
20219 return $ac_func ();
20224 rm -f conftest.$ac_objext conftest$ac_exeext
20225 if { (ac_try="$ac_link"
20226 case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231 (eval "$ac_link") 2>conftest.er1
20233 grep -v '^ *+' conftest.er1 >conftest.err
20235 cat conftest.err >&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } &&
20238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20239 { (case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_try") 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest$ac_exeext'
20249 { (case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_try") 2>&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 eval "$as_ac_var=yes"
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 eval "$as_ac_var=no"
20266 rm -f core conftest.err conftest.$ac_objext \
20267 conftest$ac_exeext conftest.$ac_ext
20269 ac_res=`eval echo '${'$as_ac_var'}'`
20270 { echo "$as_me:$LINENO: result: $ac_res" >&5
20271 echo "${ECHO_T}$ac_res" >&6; }
20272 if test `eval echo '${'$as_ac_var'}'` = yes; then
20273 cat >>confdefs.h <<_ACEOF
20274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20280 { echo "$as_me:$LINENO: checking for working mmap" >&5
20281 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20282 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 if test "$cross_compiling" = yes; then
20286 ac_cv_func_mmap_fixed_mapped=no
20288 cat >conftest.$ac_ext <<_ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 $ac_includes_default
20295 /* malloc might have been renamed as rpl_malloc. */
20298 /* Thanks to Mike Haertel and Jim Avera for this test.
20299 Here is a matrix of mmap possibilities:
20300 mmap private not fixed
20301 mmap private fixed at somewhere currently unmapped
20302 mmap private fixed at somewhere already mapped
20303 mmap shared not fixed
20304 mmap shared fixed at somewhere currently unmapped
20305 mmap shared fixed at somewhere already mapped
20306 For private mappings, we should verify that changes cannot be read()
20307 back from the file, nor mmap's back from the file at a different
20308 address. (There have been systems where private was not correctly
20309 implemented like the infamous i386 svr4.0, and systems where the
20310 VM page cache was not coherent with the file system buffer cache
20311 like early versions of FreeBSD and possibly contemporary NetBSD.)
20312 For shared mappings, we should conversely verify that changes get
20313 propagated back to all the places they're supposed to be.
20315 Grep wants private fixed already mapped.
20316 The main things grep needs to know about mmap are:
20317 * does it exist and is it safe to write into the mmap'd area
20318 * how to use it (BSD variants) */
20321 #include <sys/mman.h>
20323 #if !STDC_HEADERS && !HAVE_STDLIB_H
20327 /* This mess was copied from the GNU getpagesize.h. */
20328 #if !HAVE_GETPAGESIZE
20329 /* Assume that all systems that can run configure have sys/param.h. */
20330 # if !HAVE_SYS_PARAM_H
20331 # define HAVE_SYS_PARAM_H 1
20334 # ifdef _SC_PAGESIZE
20335 # define getpagesize() sysconf(_SC_PAGESIZE)
20336 # else /* no _SC_PAGESIZE */
20337 # if HAVE_SYS_PARAM_H
20338 # include <sys/param.h>
20339 # ifdef EXEC_PAGESIZE
20340 # define getpagesize() EXEC_PAGESIZE
20341 # else /* no EXEC_PAGESIZE */
20343 # define getpagesize() NBPG * CLSIZE
20346 # endif /* no CLSIZE */
20347 # else /* no NBPG */
20349 # define getpagesize() NBPC
20350 # else /* no NBPC */
20352 # define getpagesize() PAGESIZE
20353 # endif /* PAGESIZE */
20354 # endif /* no NBPC */
20355 # endif /* no NBPG */
20356 # endif /* no EXEC_PAGESIZE */
20357 # else /* no HAVE_SYS_PARAM_H */
20358 # define getpagesize() 8192 /* punt totally */
20359 # endif /* no HAVE_SYS_PARAM_H */
20360 # endif /* no _SC_PAGESIZE */
20362 #endif /* no HAVE_GETPAGESIZE */
20367 char *data, *data2, *data3;
20371 pagesize = getpagesize ();
20373 /* First, make a file with some known garbage in it. */
20374 data = (char *) malloc (pagesize);
20377 for (i = 0; i < pagesize; ++i)
20378 *(data + i) = rand ();
20380 fd = creat ("conftest.mmap", 0600);
20383 if (write (fd, data, pagesize) != pagesize)
20387 /* Next, try to mmap the file at a fixed address which already has
20388 something else allocated at it. If we can, also make sure that
20389 we see the same garbage. */
20390 fd = open ("conftest.mmap", O_RDWR);
20393 data2 = (char *) malloc (2 * pagesize);
20396 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20397 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20398 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20400 for (i = 0; i < pagesize; ++i)
20401 if (*(data + i) != *(data2 + i))
20404 /* Finally, make sure that changes to the mapped area do not
20405 percolate back to the file as seen by read(). (This is a bug on
20406 some variants of i386 svr4.0.) */
20407 for (i = 0; i < pagesize; ++i)
20408 *(data2 + i) = *(data2 + i) + 1;
20409 data3 = (char *) malloc (pagesize);
20412 if (read (fd, data3, pagesize) != pagesize)
20414 for (i = 0; i < pagesize; ++i)
20415 if (*(data + i) != *(data3 + i))
20421 rm -f conftest$ac_exeext
20422 if { (ac_try="$ac_link"
20423 case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_link") 2>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20432 { (case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_try") 2>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 ac_cv_func_mmap_fixed_mapped=yes
20443 echo "$as_me: program exited with status $ac_status" >&5
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ( exit $ac_status )
20448 ac_cv_func_mmap_fixed_mapped=no
20450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20455 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20456 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20457 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20459 cat >>confdefs.h <<\_ACEOF
20460 #define HAVE_MMAP 1
20464 rm -f conftest.mmap
20466 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20467 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20468 if test "${ac_cv_func_mmap_file+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 ac_cpp='$CPP $CPPFLAGS'
20473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20477 if test "$cross_compiling" = yes; then
20478 ac_cv_func_mmap_file=no
20480 cat >conftest.$ac_ext <<_ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20488 #include <sys/types.h>
20489 #include <sys/mman.h>
20497 fd = creat ("foo",0777);
20498 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20500 return (fd != (int) MAP_FAILED);
20505 rm -f conftest$ac_exeext
20506 if { (ac_try="$ac_link"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_link") 2>&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20516 { (case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_try") 2>&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
20525 ac_cv_func_mmap_file=yes
20527 echo "$as_me: program exited with status $ac_status" >&5
20528 echo "$as_me: failed program was:" >&5
20529 sed 's/^/| /' conftest.$ac_ext >&5
20531 ( exit $ac_status )
20532 ac_cv_func_mmap_file=no
20534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20539 ac_cpp='$CPP $CPPFLAGS'
20540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20546 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20547 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20548 if test "$ac_cv_func_mmap_file" = yes; then
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_MMAP_FILE
20558 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20559 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20560 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 if test "$llvm_cv_os_type" = "Interix" ; then
20564 ac_cv_need_dev_zero_for_mmap=yes
20566 ac_cv_need_dev_zero_for_mmap=no
20570 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20571 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20572 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20574 cat >>confdefs.h <<\_ACEOF
20575 #define NEED_DEV_ZERO_FOR_MMAP 1
20580 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20582 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20583 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20585 if test "$ac_cv_func_mmap_file" = "no"
20587 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20588 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20592 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20593 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20595 ac_cpp='$CXXCPP $CPPFLAGS'
20596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20600 cat >conftest.$ac_ext <<_ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20607 volatile unsigned long val = 1;
20608 __sync_synchronize();
20609 __sync_val_compare_and_swap(&val, 1, 0);
20610 __sync_add_and_fetch(&val, 1);
20611 __sync_sub_and_fetch(&val, 1);
20616 rm -f conftest.$ac_objext conftest$ac_exeext
20617 if { (ac_try="$ac_link"
20618 case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_link") 2>conftest.er1
20625 grep -v '^ *+' conftest.er1 >conftest.err
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } &&
20630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20631 { (case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_try") 2>&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; } &&
20640 { ac_try='test -s conftest$ac_exeext'
20641 { (case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_try") 2>&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20651 ac_cpp='$CPP $CPPFLAGS'
20652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20656 { echo "$as_me:$LINENO: result: yes" >&5
20657 echo "${ECHO_T}yes" >&6; }
20659 cat >>confdefs.h <<\_ACEOF
20660 #define LLVM_HAS_ATOMICS 1
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 { echo "$as_me:$LINENO: result: no" >&5
20668 echo "${ECHO_T}no" >&6; }
20670 cat >>confdefs.h <<\_ACEOF
20671 #define LLVM_HAS_ATOMICS 0
20674 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20675 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20678 rm -f core conftest.err conftest.$ac_objext \
20679 conftest$ac_exeext conftest.$ac_ext
20682 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20683 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20684 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20685 if test "${llvm_cv_linux_mixed+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20689 ac_cpp='$CPP $CPPFLAGS'
20690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20701 error: Not x86-64 even if uname says so!
20712 rm -f conftest.$ac_objext
20713 if { (ac_try="$ac_compile"
20714 case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_compile") 2>conftest.er1
20721 grep -v '^ *+' conftest.er1 >conftest.err
20723 cat conftest.err >&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } &&
20726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20727 { (case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732 (eval "$ac_try") 2>&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
20736 { ac_try='test -s conftest.$ac_objext'
20737 { (case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_try") 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 llvm_cv_linux_mixed=no
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 llvm_cv_linux_mixed=yes
20754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20756 ac_cpp='$CPP $CPPFLAGS'
20757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20763 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20764 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20766 if test "$llvm_cv_linux_mixed" = "yes"; then
20767 llvm_cv_target_arch="x86"
20773 for ac_func in __dso_handle
20775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 cat >conftest.$ac_ext <<_ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20789 #define $ac_func innocuous_$ac_func
20791 /* System header to define __stub macros and hopefully few prototypes,
20792 which can conflict with char $ac_func (); below.
20793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20794 <limits.h> exists even on freestanding compilers. */
20797 # include <limits.h>
20799 # include <assert.h>
20804 /* Override any GCC internal prototype to avoid an error.
20805 Use char because int might match the return type of a GCC
20806 builtin and then its argument prototype would still apply. */
20811 /* The GNU C library defines this for functions which it implements
20812 to always fail with ENOSYS. Some functions are actually named
20813 something starting with __ and the normal name is an alias. */
20814 #if defined __stub_$ac_func || defined __stub___$ac_func
20821 return $ac_func ();
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (ac_try="$ac_link"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_link") 2>conftest.er1
20835 grep -v '^ *+' conftest.er1 >conftest.err
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } &&
20840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20841 { (case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_try") 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest$ac_exeext'
20851 { (case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_try") 2>&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 eval "$as_ac_var=yes"
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 eval "$as_ac_var=no"
20868 rm -f core conftest.err conftest.$ac_objext \
20869 conftest$ac_exeext conftest.$ac_ext
20871 ac_res=`eval echo '${'$as_ac_var'}'`
20872 { echo "$as_me:$LINENO: result: $ac_res" >&5
20873 echo "${ECHO_T}$ac_res" >&6; }
20874 if test `eval echo '${'$as_ac_var'}'` = yes; then
20875 cat >>confdefs.h <<_ACEOF
20876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20883 SHLIBEXT=$libltdl_cv_shlibext
20886 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20889 # Translate the various configuration directories and other basic
20890 # information into substitutions that will end up in Makefile.config.in
20891 # that these configured values can be used by the makefiles
20892 if test "${prefix}" = "NONE" ; then
20893 prefix="/usr/local"
20895 eval LLVM_PREFIX="${prefix}";
20896 eval LLVM_BINDIR="${prefix}/bin";
20897 eval LLVM_LIBDIR="${prefix}/lib";
20898 eval LLVM_DATADIR="${prefix}/share/llvm";
20899 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20900 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20901 eval LLVM_INCLUDEDIR="${prefix}/include";
20902 eval LLVM_INFODIR="${prefix}/info";
20903 eval LLVM_MANDIR="${prefix}/man";
20904 LLVM_CONFIGTIME=`date`
20916 # Place the various directores into the config.h file as #defines so that we
20917 # can know about the installation paths within LLVM.
20919 cat >>confdefs.h <<_ACEOF
20920 #define LLVM_PREFIX "$LLVM_PREFIX"
20924 cat >>confdefs.h <<_ACEOF
20925 #define LLVM_BINDIR "$LLVM_BINDIR"
20929 cat >>confdefs.h <<_ACEOF
20930 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20934 cat >>confdefs.h <<_ACEOF
20935 #define LLVM_DATADIR "$LLVM_DATADIR"
20939 cat >>confdefs.h <<_ACEOF
20940 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20944 cat >>confdefs.h <<_ACEOF
20945 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20949 cat >>confdefs.h <<_ACEOF
20950 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20954 cat >>confdefs.h <<_ACEOF
20955 #define LLVM_INFODIR "$LLVM_INFODIR"
20959 cat >>confdefs.h <<_ACEOF
20960 #define LLVM_MANDIR "$LLVM_MANDIR"
20964 cat >>confdefs.h <<_ACEOF
20965 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20969 cat >>confdefs.h <<_ACEOF
20970 #define LLVM_HOSTTRIPLE "$host"
20974 # Determine which bindings to build.
20975 if test "$BINDINGS_TO_BUILD" = auto ; then
20976 BINDINGS_TO_BUILD=""
20977 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20978 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20981 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20984 # This isn't really configurey, but it avoids having to repeat the list in
20989 # Do any work necessary to ensure that bindings have what they need.
20990 binding_prereqs_failed=0
20991 for a_binding in $BINDINGS_TO_BUILD ; do
20992 case "$a_binding" in
20994 if test "x$OCAMLC" = x ; then
20995 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20996 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20997 binding_prereqs_failed=1
20999 if test "x$OCAMLDEP" = x ; then
21000 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21001 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21002 binding_prereqs_failed=1
21004 if test "x$OCAMLOPT" = x ; then
21005 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21006 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21008 if test "x$with_ocaml_libdir" != xauto ; then
21009 OCAML_LIBDIR=$with_ocaml_libdir
21012 ocaml_stdlib="`"$OCAMLC" -where`"
21013 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21015 # ocaml stdlib is beneath our prefix; use stdlib
21016 OCAML_LIBDIR=$ocaml_stdlib
21019 # ocaml stdlib is outside our prefix; use libdir/ocaml
21020 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21027 if test "$binding_prereqs_failed" = 1 ; then
21028 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21029 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21030 { (exit 1); exit 1; }; }
21033 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21034 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21035 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21039 ac_cpp='$CXXCPP $CPPFLAGS'
21040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21044 oldcxxflags="$CXXFLAGS"
21045 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21061 rm -f conftest.$ac_objext
21062 if { (ac_try="$ac_compile"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_compile") 2>conftest.er1
21070 grep -v '^ *+' conftest.er1 >conftest.err
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
21075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21076 { (case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_try") 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; } &&
21085 { ac_try='test -s conftest.$ac_objext'
21086 { (case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_try") 2>&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; }; then
21095 llvm_cv_cxx_visibility_inlines_hidden=yes
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21100 llvm_cv_cxx_visibility_inlines_hidden=no
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104 CXXFLAGS="$oldcxxflags"
21106 ac_cpp='$CPP $CPPFLAGS'
21107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21113 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21114 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21115 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21116 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21119 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21124 if test "$llvm_cv_link_use_r" = "yes" ; then
21131 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21132 RDYNAMIC="-Wl,-export-dynamic"
21139 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21146 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21148 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21150 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21152 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21154 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21157 ac_config_files="$ac_config_files Makefile.config"
21160 ac_config_files="$ac_config_files llvm.spec"
21163 ac_config_files="$ac_config_files docs/doxygen.cfg"
21165 if test -f ${srcdir}/tools/clang/README.txt; then
21166 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21170 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21173 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21176 ac_config_commands="$ac_config_commands setup"
21178 ac_config_commands="$ac_config_commands Makefile"
21181 ac_config_commands="$ac_config_commands Makefile.common"
21184 ac_config_commands="$ac_config_commands examples/Makefile"
21187 ac_config_commands="$ac_config_commands lib/Makefile"
21190 ac_config_commands="$ac_config_commands runtime/Makefile"
21193 ac_config_commands="$ac_config_commands test/Makefile"
21196 ac_config_commands="$ac_config_commands test/Makefile.tests"
21199 ac_config_commands="$ac_config_commands unittests/Makefile"
21202 ac_config_commands="$ac_config_commands tools/Makefile"
21205 ac_config_commands="$ac_config_commands utils/Makefile"
21208 ac_config_commands="$ac_config_commands projects/Makefile"
21211 ac_config_commands="$ac_config_commands bindings/Makefile"
21214 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21218 cat >confcache <<\_ACEOF
21219 # This file is a shell script that caches the results of configure
21220 # tests run on this system so they can be shared between configure
21221 # scripts and configure runs, see configure's option --config-cache.
21222 # It is not useful on other systems. If it contains results you don't
21223 # want to keep, you may remove or edit it.
21225 # config.status only pays attention to the cache file if you give it
21226 # the --recheck option to rerun configure.
21228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21230 # following values.
21234 # The following way of writing the cache mishandles newlines in values,
21235 # but we know of no workaround that is simple, portable, and efficient.
21236 # So, we kill variables containing newlines.
21237 # Ultrix sh set writes to stderr and can't be redirected directly,
21238 # and sets the high bit in the cache file unless we assign to the vars.
21240 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21241 eval ac_val=\$$ac_var
21245 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21246 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21249 _ | IFS | as_nl) ;; #(
21250 *) $as_unset $ac_var ;;
21256 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21257 *${as_nl}ac_space=\ *)
21258 # `set' does not quote correctly, so add quotes (double-quote
21259 # substitution turns \\\\ into \\, and sed turns \\ into \).
21262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21265 # `set' quotes correctly as required by POSIX, so do not add quotes.
21266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21277 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21279 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21280 if test -w "$cache_file"; then
21281 test "x$cache_file" != "x/dev/null" &&
21282 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21283 echo "$as_me: updating cache $cache_file" >&6;}
21284 cat confcache >$cache_file
21286 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21287 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21293 # Let make expand exec_prefix.
21294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21296 DEFS=-DHAVE_CONFIG_H
21300 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21301 # 1. Remove the extension, and $U if already installed.
21302 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21303 ac_i=`echo "$ac_i" | sed "$ac_script"`
21304 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21305 # will be set to the directory where LIBOBJS objects are built.
21306 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21307 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21309 LIBOBJS=$ac_libobjs
21311 LTLIBOBJS=$ac_ltlibobjs
21314 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21315 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21316 Usually this means the macro was only invoked conditionally." >&5
21317 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21318 Usually this means the macro was only invoked conditionally." >&2;}
21319 { (exit 1); exit 1; }; }
21321 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21322 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21323 Usually this means the macro was only invoked conditionally." >&5
21324 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21325 Usually this means the macro was only invoked conditionally." >&2;}
21326 { (exit 1); exit 1; }; }
21329 : ${CONFIG_STATUS=./config.status}
21330 ac_clean_files_save=$ac_clean_files
21331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21332 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21333 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21334 cat >$CONFIG_STATUS <<_ACEOF
21336 # Generated by $as_me.
21337 # Run this file to recreate the current configuration.
21338 # Compiler output produced by configure, useful for debugging
21339 # configure, is in config.log if it exists.
21342 ac_cs_recheck=false
21344 SHELL=\${CONFIG_SHELL-$SHELL}
21347 cat >>$CONFIG_STATUS <<\_ACEOF
21348 ## --------------------- ##
21349 ## M4sh Initialization. ##
21350 ## --------------------- ##
21352 # Be Bourne compatible
21353 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21356 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21357 # is contrary to our usage. Disable this feature.
21358 alias -g '${1+"$@"}'='"$@"'
21359 setopt NO_GLOB_SUBST
21361 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21363 BIN_SH=xpg4; export BIN_SH # for Tru64
21364 DUALCASE=1; export DUALCASE # for MKS sh
21368 # Avoid depending upon Character Ranges.
21369 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21372 as_cr_digits='0123456789'
21373 as_cr_alnum=$as_cr_Letters$as_cr_digits
21375 # The user is always right.
21376 if test "${PATH_SEPARATOR+set}" != set; then
21377 echo "#! /bin/sh" >conf$$.sh
21378 echo "exit 0" >>conf$$.sh
21380 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21388 # Support unset when possible.
21389 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21397 # We need space, tab and new line, in precisely that order. Quoting is
21398 # there to prevent editors from complaining about space-tab.
21399 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21400 # splitting by setting IFS to empty value.)
21405 # Find who we are. Look in the path if we contain no directory separator.
21407 *[\\/]* ) as_myself=$0 ;;
21408 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21409 for as_dir in $PATH
21412 test -z "$as_dir" && as_dir=.
21413 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21419 # We did not find ourselves, most probably we were run as `sh COMMAND'
21420 # in which case we are not to be found in the path.
21421 if test "x$as_myself" = x; then
21424 if test ! -f "$as_myself"; then
21425 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21426 { (exit 1); exit 1; }
21429 # Work around bugs in pre-3.0 UWIN ksh.
21430 for as_var in ENV MAIL MAILPATH
21431 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21439 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21440 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21441 LC_TELEPHONE LC_TIME
21443 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21444 eval $as_var=C; export $as_var
21446 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21450 # Required to use basename.
21451 if expr a : '\(a\)' >/dev/null 2>&1 &&
21452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21459 as_basename=basename
21465 # Name of the executable.
21466 as_me=`$as_basename -- "$0" ||
21467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21468 X"$0" : 'X\(//\)$' \| \
21469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21471 sed '/^.*\/\([^/][^/]*\)\/*$/{
21490 as_lineno_1=$LINENO
21491 as_lineno_2=$LINENO
21492 test "x$as_lineno_1" != "x$as_lineno_2" &&
21493 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21495 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21496 # uniformly replaced by the line number. The first 'sed' inserts a
21497 # line-number line after each line using $LINENO; the second 'sed'
21498 # does the real work. The second script uses 'N' to pair each
21499 # line-number line with the line containing $LINENO, and appends
21500 # trailing '-' during substitution so that $LINENO is not a special
21501 # case at line end.
21502 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21503 # scripts with optimization help from Paolo Bonzini. Blame Lee
21504 # E. McMahon (1931-1989) for sed's syntax. :-)
21516 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21519 ' >$as_me.lineno &&
21520 chmod +x "$as_me.lineno" ||
21521 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21522 { (exit 1); exit 1; }; }
21524 # Don't try to exec as it changes $[0], causing all sort of problems
21525 # (the dirname of $[0] is not the place where we might find the
21526 # original and so on. Autoconf is especially sensitive to this).
21527 . "./$as_me.lineno"
21528 # Exit status is that of the last command.
21533 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21539 ECHO_C= ECHO_N= ECHO_T=
21540 case `echo -n x` in
21542 case `echo 'x\c'` in
21543 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21550 if expr a : '\(a\)' >/dev/null 2>&1 &&
21551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21557 rm -f conf$$ conf$$.exe conf$$.file
21558 if test -d conf$$.dir; then
21559 rm -f conf$$.dir/conf$$.file
21565 if ln -s conf$$.file conf$$ 2>/dev/null; then
21567 # ... but there are two gotchas:
21568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21570 # In both cases, we have to default to `cp -p'.
21571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21573 elif ln conf$$.file conf$$ 2>/dev/null; then
21578 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21579 rmdir conf$$.dir 2>/dev/null
21581 if mkdir -p . 2>/dev/null; then
21584 test -d ./-p && rmdir ./-p
21588 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21589 # systems may use methods other than mode bits to determine executability.
21590 cat >conf$$.file <<_ASEOF
21594 chmod +x conf$$.file
21595 if test -x conf$$.file >/dev/null 2>&1; then
21596 as_executable_p="test -x"
21602 # Sed expression to map a string onto a valid CPP name.
21603 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21605 # Sed expression to map a string onto a valid variable name.
21606 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21611 # Save the log message, to keep $[0] and so on meaningful, and to
21612 # report actual input values of CONFIG_FILES etc. instead of their
21613 # values after options handling.
21615 This file was extended by llvm $as_me 3.1svn, which was
21616 generated by GNU Autoconf 2.60. Invocation command line was
21618 CONFIG_FILES = $CONFIG_FILES
21619 CONFIG_HEADERS = $CONFIG_HEADERS
21620 CONFIG_LINKS = $CONFIG_LINKS
21621 CONFIG_COMMANDS = $CONFIG_COMMANDS
21624 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21629 cat >>$CONFIG_STATUS <<_ACEOF
21630 # Files that config.status was made for.
21631 config_files="$ac_config_files"
21632 config_headers="$ac_config_headers"
21633 config_commands="$ac_config_commands"
21637 cat >>$CONFIG_STATUS <<\_ACEOF
21639 \`$as_me' instantiates files from templates according to the
21640 current configuration.
21642 Usage: $0 [OPTIONS] [FILE]...
21644 -h, --help print this help, then exit
21645 -V, --version print version number, then exit
21646 -q, --quiet do not print progress messages
21647 -d, --debug don't remove temporary files
21648 --recheck update $as_me by reconfiguring in the same conditions
21649 --file=FILE[:TEMPLATE]
21650 instantiate the configuration file FILE
21651 --header=FILE[:TEMPLATE]
21652 instantiate the configuration header FILE
21654 Configuration files:
21657 Configuration headers:
21660 Configuration commands:
21663 Report bugs to <bug-autoconf@gnu.org>."
21666 cat >>$CONFIG_STATUS <<_ACEOF
21668 llvm config.status 3.1svn
21669 configured by $0, generated by GNU Autoconf 2.60,
21670 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21672 Copyright (C) 2006 Free Software Foundation, Inc.
21673 This config.status script is free software; the Free Software Foundation
21674 gives unlimited permission to copy, distribute and modify it."
21681 cat >>$CONFIG_STATUS <<\_ACEOF
21682 # If no file are specified by the user, then we need to provide default
21683 # value. By we need to know if files were specified by the user.
21689 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21690 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21701 # Handling of the options.
21702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21705 echo "$ac_cs_version"; exit ;;
21706 --debug | --debu | --deb | --de | --d | -d )
21708 --file | --fil | --fi | --f )
21710 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21711 ac_need_defaults=false;;
21712 --header | --heade | --head | --hea )
21714 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21715 ac_need_defaults=false;;
21717 # Conflict between --help and --header
21718 { echo "$as_me: error: ambiguous option: $1
21719 Try \`$0 --help' for more information." >&2
21720 { (exit 1); exit 1; }; };;
21721 --help | --hel | -h )
21722 echo "$ac_cs_usage"; exit ;;
21723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21724 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21727 # This is an error.
21728 -*) { echo "$as_me: error: unrecognized option: $1
21729 Try \`$0 --help' for more information." >&2
21730 { (exit 1); exit 1; }; } ;;
21732 *) ac_config_targets="$ac_config_targets $1"
21733 ac_need_defaults=false ;;
21739 ac_configure_extra_args=
21741 if $ac_cs_silent; then
21743 ac_configure_extra_args="$ac_configure_extra_args --silent"
21747 cat >>$CONFIG_STATUS <<_ACEOF
21748 if \$ac_cs_recheck; then
21749 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21750 CONFIG_SHELL=$SHELL
21751 export CONFIG_SHELL
21752 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21756 cat >>$CONFIG_STATUS <<\_ACEOF
21760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21761 ## Running $as_me. ##
21767 cat >>$CONFIG_STATUS <<_ACEOF
21771 llvm_src="${srcdir}"
21775 cat >>$CONFIG_STATUS <<\_ACEOF
21777 # Handling of arguments.
21778 for ac_config_target in $ac_config_targets
21780 case $ac_config_target in
21781 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21782 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21783 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21784 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21785 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21786 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21787 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21788 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21789 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21790 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21791 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21792 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21793 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21794 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21795 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21796 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21797 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21798 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21799 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21800 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21801 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21802 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21803 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21804 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21805 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21806 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21807 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21809 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21810 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21811 { (exit 1); exit 1; }; };;
21816 # If the user did not use the arguments to specify the items to instantiate,
21817 # then the envvar interface is used. Set only those that are not.
21818 # We use the long form for the default assignment because of an extremely
21819 # bizarre bug on SunOS 4.1.3.
21820 if $ac_need_defaults; then
21821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21822 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21823 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21826 # Have a temporary directory for convenience. Make it in the build tree
21827 # simply because there is no reason against having it here, and in addition,
21828 # creating and moving files from /tmp can sometimes cause problems.
21829 # Hook for its removal unless debugging.
21830 # Note that there is a small window in which the directory will not be cleaned:
21831 # after its creation but before its name has been assigned to `$tmp'.
21835 trap 'exit_status=$?
21836 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21838 trap '{ (exit 1); exit 1; }' 1 2 13 15
21840 # Create a (secure) tmp directory for tmp files.
21843 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21844 test -n "$tmp" && test -d "$tmp"
21847 tmp=./conf$$-$RANDOM
21848 (umask 077 && mkdir "$tmp")
21851 echo "$me: cannot create a temporary directory in ." >&2
21852 { (exit 1); exit 1; }
21856 # Set up the sed scripts for CONFIG_FILES section.
21859 # No need to generate the scripts if there are no CONFIG_FILES.
21860 # This happens for instance when ./config.status config.h
21861 if test -n "$CONFIG_FILES"; then
21868 for ac_last_try in false false false false false :; do
21869 cat >conf$$subs.sed <<_ACEOF
21870 SHELL!$SHELL$ac_delim
21871 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21872 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21873 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21874 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21875 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21876 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21877 exec_prefix!$exec_prefix$ac_delim
21878 prefix!$prefix$ac_delim
21879 program_transform_name!$program_transform_name$ac_delim
21880 bindir!$bindir$ac_delim
21881 sbindir!$sbindir$ac_delim
21882 libexecdir!$libexecdir$ac_delim
21883 datarootdir!$datarootdir$ac_delim
21884 datadir!$datadir$ac_delim
21885 sysconfdir!$sysconfdir$ac_delim
21886 sharedstatedir!$sharedstatedir$ac_delim
21887 localstatedir!$localstatedir$ac_delim
21888 includedir!$includedir$ac_delim
21889 oldincludedir!$oldincludedir$ac_delim
21890 docdir!$docdir$ac_delim
21891 infodir!$infodir$ac_delim
21892 htmldir!$htmldir$ac_delim
21893 dvidir!$dvidir$ac_delim
21894 pdfdir!$pdfdir$ac_delim
21895 psdir!$psdir$ac_delim
21896 libdir!$libdir$ac_delim
21897 localedir!$localedir$ac_delim
21898 mandir!$mandir$ac_delim
21899 DEFS!$DEFS$ac_delim
21900 ECHO_C!$ECHO_C$ac_delim
21901 ECHO_N!$ECHO_N$ac_delim
21902 ECHO_T!$ECHO_T$ac_delim
21903 LIBS!$LIBS$ac_delim
21904 build_alias!$build_alias$ac_delim
21905 host_alias!$host_alias$ac_delim
21906 target_alias!$target_alias$ac_delim
21907 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21909 CFLAGS!$CFLAGS$ac_delim
21910 LDFLAGS!$LDFLAGS$ac_delim
21911 CPPFLAGS!$CPPFLAGS$ac_delim
21912 ac_ct_CC!$ac_ct_CC$ac_delim
21913 EXEEXT!$EXEEXT$ac_delim
21914 OBJEXT!$OBJEXT$ac_delim
21916 CXXFLAGS!$CXXFLAGS$ac_delim
21917 ac_ct_CXX!$ac_ct_CXX$ac_delim
21919 subdirs!$subdirs$ac_delim
21920 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21921 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21922 build!$build$ac_delim
21923 build_cpu!$build_cpu$ac_delim
21924 build_vendor!$build_vendor$ac_delim
21925 build_os!$build_os$ac_delim
21926 host!$host$ac_delim
21927 host_cpu!$host_cpu$ac_delim
21928 host_vendor!$host_vendor$ac_delim
21929 host_os!$host_os$ac_delim
21930 target!$target$ac_delim
21931 target_cpu!$target_cpu$ac_delim
21932 target_vendor!$target_vendor$ac_delim
21933 target_os!$target_os$ac_delim
21935 HOST_OS!$HOST_OS$ac_delim
21936 TARGET_OS!$TARGET_OS$ac_delim
21937 LINKALL!$LINKALL$ac_delim
21938 NOLINKALL!$NOLINKALL$ac_delim
21939 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21940 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21941 ARCH!$ARCH$ac_delim
21942 ENDIAN!$ENDIAN$ac_delim
21943 GREP!$GREP$ac_delim
21944 EGREP!$EGREP$ac_delim
21945 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21946 BUILD_CC!$BUILD_CC$ac_delim
21947 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21948 BUILD_CXX!$BUILD_CXX$ac_delim
21949 CVSBUILD!$CVSBUILD$ac_delim
21950 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21951 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21952 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21953 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21954 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21955 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21956 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21958 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21959 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21960 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21961 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21962 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21963 ENABLE_PIC!$ENABLE_PIC$ac_delim
21964 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21965 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21966 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21969 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21971 elif $ac_last_try; then
21972 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21973 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21974 { (exit 1); exit 1; }; }
21976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21980 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21981 if test -n "$ac_eof"; then
21982 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21983 ac_eof=`expr $ac_eof + 1`
21986 cat >>$CONFIG_STATUS <<_ACEOF
21987 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21991 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21992 s/^/s,@/; s/!/@,|#_!!_#|/
21995 s/'"$ac_delim"'$/,g/; t
21997 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21998 ' >>$CONFIG_STATUS <conf$$subs.sed
21999 rm -f conf$$subs.sed
22000 cat >>$CONFIG_STATUS <<_ACEOF
22006 for ac_last_try in false false false false false :; do
22007 cat >conf$$subs.sed <<_ACEOF
22008 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22009 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22010 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22011 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22012 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22013 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22014 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22015 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22016 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22017 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22018 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22020 ifGNUmake!$ifGNUmake$ac_delim
22021 LN_S!$LN_S$ac_delim
22024 DATE!$DATE$ac_delim
22025 FIND!$FIND$ac_delim
22026 MKDIR!$MKDIR$ac_delim
22028 RANLIB!$RANLIB$ac_delim
22030 STRIP!$STRIP$ac_delim
22034 BINPWD!$BINPWD$ac_delim
22035 GRAPHVIZ!$GRAPHVIZ$ac_delim
22038 NEATO!$NEATO$ac_delim
22039 TWOPI!$TWOPI$ac_delim
22040 CIRCO!$CIRCO$ac_delim
22042 DOTTY!$DOTTY$ac_delim
22043 XDOT_PY!$XDOT_PY$ac_delim
22044 PERL!$PERL$ac_delim
22045 HAVE_PERL!$HAVE_PERL$ac_delim
22046 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22047 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22048 INSTALL_DATA!$INSTALL_DATA$ac_delim
22049 BZIP2!$BZIP2$ac_delim
22051 DOXYGEN!$DOXYGEN$ac_delim
22052 GROFF!$GROFF$ac_delim
22053 GZIPBIN!$GZIPBIN$ac_delim
22054 POD2HTML!$POD2HTML$ac_delim
22055 POD2MAN!$POD2MAN$ac_delim
22056 PDFROFF!$PDFROFF$ac_delim
22057 RUNTEST!$RUNTEST$ac_delim
22058 TCLSH!$TCLSH$ac_delim
22060 OCAMLC!$OCAMLC$ac_delim
22061 OCAMLOPT!$OCAMLOPT$ac_delim
22062 OCAMLDEP!$OCAMLDEP$ac_delim
22063 OCAMLDOC!$OCAMLDOC$ac_delim
22065 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22066 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22067 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22068 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22069 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22070 LIBADD_DL!$LIBADD_DL$ac_delim
22071 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22072 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22073 USE_UDIS86!$USE_UDIS86$ac_delim
22074 USE_OPROFILE!$USE_OPROFILE$ac_delim
22075 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22076 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22077 MMAP_FILE!$MMAP_FILE$ac_delim
22078 SHLIBEXT!$SHLIBEXT$ac_delim
22079 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22080 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22081 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22082 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22083 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22084 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22085 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22086 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22087 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22088 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22089 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22090 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22091 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22092 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22093 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22094 RPATH!$RPATH$ac_delim
22095 RDYNAMIC!$RDYNAMIC$ac_delim
22096 LIBOBJS!$LIBOBJS$ac_delim
22097 LTLIBOBJS!$LTLIBOBJS$ac_delim
22100 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22102 elif $ac_last_try; then
22103 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22104 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22105 { (exit 1); exit 1; }; }
22107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22111 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22112 if test -n "$ac_eof"; then
22113 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22114 ac_eof=`expr $ac_eof + 1`
22117 cat >>$CONFIG_STATUS <<_ACEOF
22118 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22122 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22123 s/^/s,@/; s/!/@,|#_!!_#|/
22126 s/'"$ac_delim"'$/,g/; t
22128 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22129 ' >>$CONFIG_STATUS <conf$$subs.sed
22130 rm -f conf$$subs.sed
22131 cat >>$CONFIG_STATUS <<_ACEOF
22138 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22139 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22140 # trailing colons and then remove the whole line if VPATH becomes empty
22141 # (actually we leave an empty line to preserve line numbers).
22142 if test "x$srcdir" = x.; then
22143 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22144 s/:*\$(srcdir):*/:/
22145 s/:*\${srcdir}:*/:/
22147 s/^\([^=]*=[ ]*\):*/\1/
22153 cat >>$CONFIG_STATUS <<\_ACEOF
22154 fi # test -n "$CONFIG_FILES"
22157 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22160 :[FHLC]) ac_mode=$ac_tag; continue;;
22162 case $ac_mode$ac_tag in
22164 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22165 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22166 { (exit 1); exit 1; }; };;
22167 :[FH]-) ac_tag=-:-;;
22168 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22185 -) ac_f="$tmp/stdin";;
22186 *) # Look for the file first in the build tree, then in the source tree
22187 # (if the path is not absolute). The absolute path cannot be DOS-style,
22188 # because $ac_f cannot contain `:'.
22192 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22194 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22195 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22196 { (exit 1); exit 1; }; };;
22198 ac_file_inputs="$ac_file_inputs $ac_f"
22201 # Let's still pretend it is `configure' which instantiates (i.e., don't
22202 # use $as_me), people would be surprised to read:
22203 # /* config.h. Generated by config.status. */
22204 configure_input="Generated from "`IFS=:
22205 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22206 if test x"$ac_file" != x-; then
22207 configure_input="$ac_file. $configure_input"
22208 { echo "$as_me:$LINENO: creating $ac_file" >&5
22209 echo "$as_me: creating $ac_file" >&6;}
22213 *:-:* | *:-) cat >"$tmp/stdin";;
22218 ac_dir=`$as_dirname -- "$ac_file" ||
22219 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220 X"$ac_file" : 'X\(//\)[^/]' \| \
22221 X"$ac_file" : 'X\(//\)$' \| \
22222 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22228 /^X\(\/\/\)[^/].*/{
22243 -*) as_dir=./$as_dir;;
22245 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22249 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22250 *) as_qdir=$as_dir;;
22252 as_dirs="'$as_qdir' $as_dirs"
22253 as_dir=`$as_dirname -- "$as_dir" ||
22254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22255 X"$as_dir" : 'X\(//\)[^/]' \| \
22256 X"$as_dir" : 'X\(//\)$' \| \
22257 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22263 /^X\(\/\/\)[^/].*/{
22276 test -d "$as_dir" && break
22278 test -z "$as_dirs" || eval "mkdir $as_dirs"
22279 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22280 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22281 { (exit 1); exit 1; }; }; }
22285 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22287 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22288 # A ".." for each directory in $ac_dir_suffix.
22289 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22290 case $ac_top_builddir_sub in
22291 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22292 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22295 ac_abs_top_builddir=$ac_pwd
22296 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22297 # for backward compatibility:
22298 ac_top_builddir=$ac_top_build_prefix
22301 .) # We are building in place.
22303 ac_top_srcdir=$ac_top_builddir_sub
22304 ac_abs_top_srcdir=$ac_pwd ;;
22305 [\\/]* | ?:[\\/]* ) # Absolute name.
22306 ac_srcdir=$srcdir$ac_dir_suffix;
22307 ac_top_srcdir=$srcdir
22308 ac_abs_top_srcdir=$srcdir ;;
22309 *) # Relative name.
22310 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22311 ac_top_srcdir=$ac_top_build_prefix$srcdir
22312 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22314 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22324 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22325 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22329 cat >>$CONFIG_STATUS <<\_ACEOF
22330 # If the template does not know about datarootdir, expand it.
22331 # FIXME: This hack should be removed a few years after 2.60.
22332 ac_datarootdir_hack=; ac_datarootdir_seen=
22334 case `sed -n '/datarootdir/ {
22343 ' $ac_file_inputs` in
22344 *datarootdir*) ac_datarootdir_seen=yes;;
22345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22346 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22347 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22349 cat >>$CONFIG_STATUS <<_ACEOF
22350 ac_datarootdir_hack='
22351 s&@datadir@&$datadir&g
22352 s&@docdir@&$docdir&g
22353 s&@infodir@&$infodir&g
22354 s&@localedir@&$localedir&g
22355 s&@mandir@&$mandir&g
22356 s&\\\${datarootdir}&$datarootdir&g' ;;
22360 # Neutralize VPATH when `$srcdir' = `.'.
22361 # Shell code in configure.ac might set extrasub.
22362 # FIXME: do we really want to maintain this feature?
22363 cat >>$CONFIG_STATUS <<_ACEOF
22367 cat >>$CONFIG_STATUS <<\_ACEOF
22369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22370 s&@configure_input@&$configure_input&;t t
22371 s&@top_builddir@&$ac_top_builddir_sub&;t t
22372 s&@srcdir@&$ac_srcdir&;t t
22373 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22374 s&@top_srcdir@&$ac_top_srcdir&;t t
22375 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22376 s&@builddir@&$ac_builddir&;t t
22377 s&@abs_builddir@&$ac_abs_builddir&;t t
22378 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22379 s&@INSTALL@&$ac_INSTALL&;t t
22380 $ac_datarootdir_hack
22381 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22383 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22384 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22385 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22386 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22387 which seems to be undefined. Please make sure it is defined." >&5
22388 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22389 which seems to be undefined. Please make sure it is defined." >&2;}
22393 -) cat "$tmp/out"; rm -f "$tmp/out";;
22394 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22403 # Transform confdefs.h into a sed script `conftest.defines', that
22404 # substitutes the proper values into config.h.in to produce config.h.
22405 rm -f conftest.defines conftest.tail
22406 # First, append a space to every undef/define line, to ease matching.
22407 echo 's/$/ /' >conftest.defines
22408 # Then, protect against being on the right side of a sed subst, or in
22409 # an unquoted here document, in config.status. If some macros were
22410 # called several times there might be several #defines for the same
22411 # symbol, which is useless. But do not sort them, since the last
22412 # AC_DEFINE must be honored.
22413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22414 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22415 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22416 # PARAMS is the parameter list in the macro definition--in most cases, it's
22417 # just an empty string.
22418 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22419 ac_dB='\\)[ (].*,\\1define\\2'
22427 s/^[ ]*#[ ]*define[ ][ ]*//
22432 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22433 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22434 ' >>conftest.defines
22436 # Remove the space that was appended to ease matching.
22437 # Then replace #undef with comments. This is necessary, for
22438 # example, in the case of _POSIX_SOURCE, which is predefined and required
22439 # on some systems where configure will not decide to define it.
22440 # (The regexp can be short, since the line contains either #define or #undef.)
22442 s,^[ #]*u.*,/* & */,' >>conftest.defines
22444 # Break up conftest.defines:
22445 ac_max_sed_lines=50
22447 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22448 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22449 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22451 ac_in='$ac_file_inputs'
22452 ac_out='"$tmp/out1"'
22453 ac_nxt='"$tmp/out2"'
22457 # Write a here document:
22458 cat >>$CONFIG_STATUS <<_ACEOF
22459 # First, check the format of the line:
22460 cat >"\$tmp/defines.sed" <<\\CEOF
22461 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22462 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22466 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22468 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22469 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22470 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22471 grep . conftest.tail >/dev/null || break
22472 rm -f conftest.defines
22473 mv conftest.tail conftest.defines
22475 rm -f conftest.defines conftest.tail
22477 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22478 cat >>$CONFIG_STATUS <<\_ACEOF
22479 if test x"$ac_file" != x-; then
22480 echo "/* $configure_input */" >"$tmp/config.h"
22481 cat "$ac_result" >>"$tmp/config.h"
22482 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22483 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22484 echo "$as_me: $ac_file is unchanged" >&6;}
22487 mv "$tmp/config.h" $ac_file
22490 echo "/* $configure_input */"
22496 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22497 echo "$as_me: executing $ac_file commands" >&6;}
22502 case $ac_file$ac_mode in
22503 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22504 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22505 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22506 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22507 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22508 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22509 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22510 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22511 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22512 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22513 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22514 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22515 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22516 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22517 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22518 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22519 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22520 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22521 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22522 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22523 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22524 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22525 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22526 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22527 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22528 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22534 { (exit 0); exit 0; }
22536 chmod +x $CONFIG_STATUS
22537 ac_clean_files=$ac_clean_files_save
22540 # configure is writing to config.log, and then calls config.status.
22541 # config.status does its own redirection, appending to config.log.
22542 # Unfortunately, on DOS this fails, as config.log is still kept open
22543 # by configure, so config.status won't be able to write to it; its
22544 # output is simply discarded. So we exec the FD to /dev/null,
22545 # effectively closing config.log, so it can be properly (re)opened and
22546 # appended to by config.status. When coming back to configure, we
22547 # need to make the FD available again.
22548 if test "$no_create" != yes; then
22550 ac_config_status_args=
22551 test "$silent" = yes &&
22552 ac_config_status_args="$ac_config_status_args --quiet"
22554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22557 # would make configure fail if this is the last instruction.
22558 $ac_cs_success || { (exit 1); exit 1; }
22562 # CONFIG_SUBDIRS section.
22564 if test "$no_recursion" != yes; then
22566 # Remove --cache-file and --srcdir arguments so they do not pile up.
22567 ac_sub_configure_args=
22569 eval "set x $ac_configure_args"
22573 if test -n "$ac_prev"; then
22578 -cache-file | --cache-file | --cache-fil | --cache-fi \
22579 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22580 ac_prev=cache_file ;;
22581 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22582 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22585 --config-cache | -C)
22587 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22589 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22591 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22593 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22597 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22599 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22603 # Always prepend --prefix to ensure using the same prefix
22604 # in subdir configurations.
22605 ac_arg="--prefix=$prefix"
22607 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22609 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22612 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22614 # Do not complain, so a configure script can configure whichever
22615 # parts of a large source tree are present.
22616 test -d "$srcdir/$ac_dir" || continue
22618 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22619 echo "$as_me:$LINENO: $ac_msg" >&5
22623 -*) as_dir=./$as_dir;;
22625 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22629 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22630 *) as_qdir=$as_dir;;
22632 as_dirs="'$as_qdir' $as_dirs"
22633 as_dir=`$as_dirname -- "$as_dir" ||
22634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22635 X"$as_dir" : 'X\(//\)[^/]' \| \
22636 X"$as_dir" : 'X\(//\)$' \| \
22637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22643 /^X\(\/\/\)[^/].*/{
22656 test -d "$as_dir" && break
22658 test -z "$as_dirs" || eval "mkdir $as_dirs"
22659 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22660 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22661 { (exit 1); exit 1; }; }; }
22665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22667 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22668 # A ".." for each directory in $ac_dir_suffix.
22669 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22670 case $ac_top_builddir_sub in
22671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22675 ac_abs_top_builddir=$ac_pwd
22676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22677 # for backward compatibility:
22678 ac_top_builddir=$ac_top_build_prefix
22681 .) # We are building in place.
22683 ac_top_srcdir=$ac_top_builddir_sub
22684 ac_abs_top_srcdir=$ac_pwd ;;
22685 [\\/]* | ?:[\\/]* ) # Absolute name.
22686 ac_srcdir=$srcdir$ac_dir_suffix;
22687 ac_top_srcdir=$srcdir
22688 ac_abs_top_srcdir=$srcdir ;;
22689 *) # Relative name.
22690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22691 ac_top_srcdir=$ac_top_build_prefix$srcdir
22692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22699 # Check for guested configure; otherwise get Cygnus style configure.
22700 if test -f "$ac_srcdir/configure.gnu"; then
22701 ac_sub_configure=$ac_srcdir/configure.gnu
22702 elif test -f "$ac_srcdir/configure"; then
22703 ac_sub_configure=$ac_srcdir/configure
22704 elif test -f "$ac_srcdir/configure.in"; then
22705 # This should be Cygnus configure.
22706 ac_sub_configure=$ac_aux_dir/configure
22708 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22709 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22713 # The recursion is here.
22714 if test -n "$ac_sub_configure"; then
22715 # Make the cache file name correct relative to the subdirectory.
22716 case $cache_file in
22717 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22718 *) # Relative name.
22719 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22722 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22723 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22724 # The eval makes quoting arguments work.
22725 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22726 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22727 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22728 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22729 { (exit 1); exit 1; }; }