2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
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
685 ENABLE_EXPENSIVE_CHECKS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
772 NO_MISSING_FIELD_INITIALIZERS
784 LLVMCC_DISABLEOPT_FLAGS
800 ENABLE_VISIBILITY_INLINES_HIDDEN
806 ac_precious_vars='build_alias
817 ac_subdirs_all='projects/llvm-gcc
821 projects/llvm-poolalloc
824 projects/llvm-stacker
832 # Initialize some variables set by options.
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name=s,x,x,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-pic Build LLVM with Position Independent Code (default
1424 --enable-shared Build a shared library and link tools against it
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
1428 --enable-timestamps Enable embedding timestamp information in build
1430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
1439 --enable-libffi Check for the presence of libffi (default is NO)
1440 --enable-ltdl-install install libltdl
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1447 --with-llvmgcc Specify location of llvm-gcc driver (default
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1451 --with-clang Specify location of clang compiler (default is
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1464 --with-c-include-dirs Colon separated list of directories clang will
1466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org)
1476 --with-tclinclude directory where tcl headers are
1477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
1479 --with-udis86=<path> Use udis86 external x86 disassembler library
1480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1497 Report bugs to <llvmbugs@cs.uiuc.edu>.
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" || continue
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1525 .) # We are building in place.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1558 llvm configure 3.0svn
1559 generated by GNU Autoconf 2.60
1561 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1562 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1566 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1574 It was created by llvm $as_me 3.0svn, which was
1575 generated by GNU Autoconf 2.60. Invocation command line was
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1600 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1635 ac_must_keep_next=false
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664 -* ) ac_must_keep_next=true ;;
1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log. We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1691 # The following way of writing the cache mishandles newlines in values,
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1728 for ac_var in $ac_subst_vars
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 echo "$ac_var='\''$ac_val'\''"
1738 if test -n "$ac_subst_files"; then
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1745 for ac_var in $ac_subst_files
1747 eval ac_val=\$$ac_var
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 echo "$ac_var='\''$ac_val'\''"
1756 if test -s confdefs.h; then
1766 test "$ac_signal" != 0 &&
1767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774 for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1782 # Predefined preprocessor variables.
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812 set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1830 if test -r "$cache_file"; then
1831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1847 # Check that the precious variables saved in the cache have kept the same
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
1855 case $ac_old_set,$ac_new_set in
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870 echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872 echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 *) ac_arg=$ac_var=$ac_new_val ;;
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1888 if $ac_cache_corrupted; then
1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938 if test -f "$ac_dir/install-sh"; then
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 elif test -f "$ac_dir/install.sh"; then
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 elif test -f "$ac_dir/shtool"; then
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 if test ${srcdir} != "." ; then
1969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
1978 if test -d ${srcdir}/projects/llvm-gcc ; then
1979 subdirs="$subdirs projects/llvm-gcc"
1983 if test -d ${srcdir}/projects/test-suite ; then
1984 subdirs="$subdirs projects/test-suite"
1988 if test -d ${srcdir}/projects/llvm-test ; then
1989 subdirs="$subdirs projects/llvm-test"
1993 if test -d ${srcdir}/projects/poolalloc ; then
1994 subdirs="$subdirs projects/poolalloc"
1998 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1999 subdirs="$subdirs projects/llvm-poolalloc"
2003 for i in `ls ${srcdir}/projects`
2005 if test -d ${srcdir}/projects/${i} ; then
2007 sample) subdirs="$subdirs projects/sample"
2009 privbracket) subdirs="$subdirs projects/privbracket"
2011 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2013 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2015 llvm-java) subdirs="$subdirs projects/llvm-java"
2017 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2019 safecode) subdirs="$subdirs projects/safecode"
2021 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2029 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2030 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2036 # Check whether --enable-polly was given.
2037 if test "${enable_polly+set}" = set; then
2038 enableval=$enable_polly;
2043 case "$enableval" in
2048 default) ENABLE_POLLY=1
2050 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2051 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2052 { (exit 1); exit 1; }; } ;;
2056 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2059 subdirs="$subdirs tools/polly"
2064 # Make sure we can run config.sub.
2065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2066 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068 { (exit 1); exit 1; }; }
2070 { echo "$as_me:$LINENO: checking build system type" >&5
2071 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2072 if test "${ac_cv_build+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 ac_build_alias=$build_alias
2076 test "x$ac_build_alias" = x &&
2077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078 test "x$ac_build_alias" = x &&
2079 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081 { (exit 1); exit 1; }; }
2082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2083 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085 { (exit 1); exit 1; }; }
2088 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089 echo "${ECHO_T}$ac_cv_build" >&6; }
2090 case $ac_cv_build in
2092 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093 echo "$as_me: error: invalid value of canonical build" >&2;}
2094 { (exit 1); exit 1; }; };;
2097 ac_save_IFS=$IFS; IFS='-'
2103 # Remember, the first character of IFS is used to create $*,
2104 # except with old shells:
2107 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2110 { echo "$as_me:$LINENO: checking host system type" >&5
2111 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2112 if test "${ac_cv_host+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test "x$host_alias" = x; then
2116 ac_cv_host=$ac_cv_build
2118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2119 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121 { (exit 1); exit 1; }; }
2125 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126 echo "${ECHO_T}$ac_cv_host" >&6; }
2129 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130 echo "$as_me: error: invalid value of canonical host" >&2;}
2131 { (exit 1); exit 1; }; };;
2134 ac_save_IFS=$IFS; IFS='-'
2140 # Remember, the first character of IFS is used to create $*,
2141 # except with old shells:
2144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147 { echo "$as_me:$LINENO: checking target system type" >&5
2148 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_target+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 if test "x$target_alias" = x; then
2153 ac_cv_target=$ac_cv_host
2155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2156 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2157 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2158 { (exit 1); exit 1; }; }
2162 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2163 echo "${ECHO_T}$ac_cv_target" >&6; }
2164 case $ac_cv_target in
2166 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2167 echo "$as_me: error: invalid value of canonical target" >&2;}
2168 { (exit 1); exit 1; }; };;
2170 target=$ac_cv_target
2171 ac_save_IFS=$IFS; IFS='-'
2177 # Remember, the first character of IFS is used to create $*,
2178 # except with old shells:
2181 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2184 # The aliases save the names the user supplied, while $host etc.
2185 # will get canonicalized.
2186 test -n "$target_alias" &&
2187 test "$program_prefix$program_suffix$program_transform_name" = \
2189 program_prefix=${target_alias}-
2191 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2192 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2193 if test "${llvm_cv_os_type+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="AIX"
2201 llvm_cv_platform_type="Unix" ;;
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="IRIX"
2206 llvm_cv_platform_type="Unix" ;;
2208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210 llvm_cv_os_type="Cygwin"
2211 llvm_cv_platform_type="Unix" ;;
2213 llvm_cv_link_all_option="-Wl,-all_load"
2214 llvm_cv_no_link_all_option="-Wl,-noall_load"
2215 llvm_cv_os_type="Darwin"
2216 llvm_cv_platform_type="Unix" ;;
2218 llvm_cv_link_all_option="-Wl,-all_load"
2219 llvm_cv_no_link_all_option="-Wl,-noall_load"
2220 llvm_cv_os_type="Minix"
2221 llvm_cv_platform_type="Unix" ;;
2223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225 llvm_cv_os_type="FreeBSD"
2226 llvm_cv_platform_type="Unix" ;;
2228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230 llvm_cv_os_type="OpenBSD"
2231 llvm_cv_platform_type="Unix" ;;
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="NetBSD"
2236 llvm_cv_platform_type="Unix" ;;
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="DragonFly"
2241 llvm_cv_platform_type="Unix" ;;
2243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245 llvm_cv_os_type="HP-UX"
2246 llvm_cv_platform_type="Unix" ;;
2248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250 llvm_cv_os_type="Interix"
2251 llvm_cv_platform_type="Unix" ;;
2253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255 llvm_cv_os_type="Linux"
2256 llvm_cv_platform_type="Unix" ;;
2258 llvm_cv_link_all_option="-Wl,-z,allextract"
2259 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2260 llvm_cv_os_type="SunOS"
2261 llvm_cv_platform_type="Unix" ;;
2263 llvm_cv_link_all_option="-Wl,-z,allextract"
2264 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2265 llvm_cv_os_type="AuroraUX"
2266 llvm_cv_platform_type="Unix" ;;
2268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270 llvm_cv_os_type="Win32"
2271 llvm_cv_platform_type="Win32" ;;
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="MingW"
2276 llvm_cv_platform_type="Win32" ;;
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="Haiku"
2281 llvm_cv_platform_type="Unix" ;;
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Freestanding"
2286 llvm_cv_platform_type="Unix" ;;
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="Freestanding"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option=""
2294 llvm_cv_no_link_all_option=""
2295 llvm_cv_os_type="Unknown"
2296 llvm_cv_platform_type="Unknown" ;;
2299 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2302 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2303 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2304 if test "${llvm_cv_target_os_type+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 llvm_cv_target_os_type="AIX" ;;
2311 llvm_cv_target_os_type="IRIX" ;;
2313 llvm_cv_target_os_type="Cygwin" ;;
2315 llvm_cv_target_os_type="Darwin" ;;
2317 llvm_cv_target_os_type="Minix" ;;
2319 llvm_cv_target_os_type="FreeBSD" ;;
2321 llvm_cv_target_os_type="OpenBSD" ;;
2323 llvm_cv_target_os_type="NetBSD" ;;
2325 llvm_cv_target_os_type="DragonFly" ;;
2327 llvm_cv_target_os_type="HP-UX" ;;
2329 llvm_cv_target_os_type="Interix" ;;
2331 llvm_cv_target_os_type="Linux" ;;
2333 llvm_cv_target_os_type="SunOS" ;;
2335 llvm_cv_target_os_type="AuroraUX" ;;
2337 llvm_cv_target_os_type="Win32" ;;
2339 llvm_cv_target_os_type="MingW" ;;
2341 llvm_cv_target_os_type="Haiku" ;;
2343 llvm_cv_target_os_type="RTEMS" ;;
2345 llvm_cv_target_os_type="Freestanding" ;;
2347 llvm_cv_target_os_type="Unknown" ;;
2350 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2351 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2353 if test "$llvm_cv_os_type" = "Unknown" ; then
2354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2356 { (exit 1); exit 1; }; }
2361 HOST_OS=$llvm_cv_os_type
2363 TARGET_OS=$llvm_cv_target_os_type
2366 LINKALL=$llvm_cv_link_all_option
2368 NOLINKALL=$llvm_cv_no_link_all_option
2371 case $llvm_cv_platform_type in
2374 cat >>confdefs.h <<\_ACEOF
2375 #define LLVM_ON_UNIX 1
2385 cat >>confdefs.h <<\_ACEOF
2386 #define LLVM_ON_WIN32 1
2396 { echo "$as_me:$LINENO: checking target architecture" >&5
2397 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2398 if test "${llvm_cv_target_arch+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 i?86-*) llvm_cv_target_arch="x86" ;;
2403 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2404 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2405 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2406 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2407 arm*-*) llvm_cv_target_arch="ARM" ;;
2408 mips-*) llvm_cv_target_arch="Mips" ;;
2409 xcore-*) llvm_cv_target_arch="XCore" ;;
2410 msp430-*) llvm_cv_target_arch="MSP430" ;;
2411 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2412 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2413 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2414 ptx-*) llvm_cv_target_arch="PTX" ;;
2415 *) llvm_cv_target_arch="Unknown" ;;
2418 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2419 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2421 if test "$llvm_cv_target_arch" = "Unknown" ; then
2422 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2423 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2426 # Determine the LLVM native architecture for the target
2427 case "$llvm_cv_target_arch" in
2428 x86) LLVM_NATIVE_ARCH="X86" ;;
2429 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2430 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2433 ARCH=$llvm_cv_target_arch
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 if test -n "$CC"; then
2471 { echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6; }
2474 { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2480 if test -z "$ac_cv_prog_CC"; then
2482 # Extract the first word of "gcc", so it can be a program name with args.
2483 set dummy gcc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$ac_ct_CC"; then
2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_ac_ct_CC="gcc"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512 echo "${ECHO_T}$ac_ct_CC" >&6; }
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2518 if test "x$ac_ct_CC" = x; then
2521 case $cross_compiling:$ac_tool_warned in
2523 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet. If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&5
2526 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2529 ac_tool_warned=yes ;;
2537 if test -z "$CC"; then
2538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}cc; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_CC="${ac_tool_prefix}cc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 if test -n "$CC"; then
2568 { echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6; }
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2578 if test -z "$CC"; then
2579 # Extract the first word of "cc", so it can be a program name with args.
2580 set dummy cc; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2598 ac_prog_rejected=yes
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 if test $ac_prog_rejected = yes; then
2610 # We found a bogon in the path, so make sure we never use it.
2611 set dummy $ac_cv_prog_CC
2613 if test $# != 0; then
2614 # We chose a different compiler from the bogus one.
2615 # However, it has the same basename, so the bogon will be chosen
2616 # first if we set CC to just the basename; use the full file name.
2618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2624 if test -n "$CC"; then
2625 { echo "$as_me:$LINENO: result: $CC" >&5
2626 echo "${ECHO_T}$CC" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2634 if test -z "$CC"; then
2635 if test -n "$ac_tool_prefix"; then
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 if test -n "$CC"; then
2667 { echo "$as_me:$LINENO: result: $CC" >&5
2668 echo "${ECHO_T}$CC" >&6; }
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2675 test -n "$CC" && break
2678 if test -z "$CC"; then
2680 for ac_prog in cl.exe
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_ac_ct_CC="$ac_prog"
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712 echo "${ECHO_T}$ac_ct_CC" >&6; }
2714 { echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6; }
2719 test -n "$ac_ct_CC" && break
2722 if test "x$ac_ct_CC" = x; then
2725 case $cross_compiling:$ac_tool_warned in
2727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2728 whose name does not start with the host triplet. If you think this
2729 configuration is useful to you, please write to autoconf@gnu.org." >&5
2730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2731 whose name does not start with the host triplet. If you think this
2732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2733 ac_tool_warned=yes ;;
2742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&5
2744 echo "$as_me: error: no acceptable C compiler found in \$PATH
2745 See \`config.log' for more details." >&2;}
2746 { (exit 1); exit 1; }; }
2748 # Provide some information about the compiler.
2749 echo "$as_me:$LINENO: checking for C compiler version" >&5
2750 ac_compiler=`set X $ac_compile; echo $2`
2751 { (ac_try="$ac_compiler --version >&5"
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler --version >&5") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2761 { (ac_try="$ac_compiler -v >&5"
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compiler -v >&5") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2771 { (ac_try="$ac_compiler -V >&5"
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compiler -V >&5") 2>&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }
2782 cat >conftest.$ac_ext <<_ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2797 ac_clean_files_save=$ac_clean_files
2798 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2799 # Try to create an executable without -o first, disregard a.out.
2800 # It will help us diagnose broken compilers, and finding out an intuition
2802 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2803 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2804 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2806 # List of possible output files, starting from the most likely.
2807 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2808 # only as a last resort. b.out is created by i960 compilers.
2809 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2811 # The IRIX 6 linker writes into existing files which may not be
2812 # executable, retaining their permissions. Remove them first so a
2813 # subsequent execution test works.
2815 for ac_file in $ac_files
2818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2819 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2824 if { (ac_try="$ac_link_default"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_link_default") 2>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; then
2834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2837 # so that the user can short-circuit this test for compilers unknown to
2839 for ac_file in $ac_files
2841 test -f "$ac_file" || continue
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2846 # We found the default executable, but exeext='' is most
2850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2854 # We set ac_cv_exeext here because the later test for it is not
2855 # safe: cross compilers may not add the suffix if given an `-o'
2856 # argument, so we may need to know it at that point already.
2857 # Even if this section looks crufty: it has the advantage of
2864 test "$ac_cv_exeext" = no && ac_cv_exeext=
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&2;}
2874 { (exit 77); exit 77; }; }
2877 ac_exeext=$ac_cv_exeext
2878 { echo "$as_me:$LINENO: result: $ac_file" >&5
2879 echo "${ECHO_T}$ac_file" >&6; }
2881 # Check that the compiler produces executables we can run. If not, either
2882 # the compiler is broken, or we cross compile.
2883 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2885 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886 # If not cross compiling, check that we can run a simple program.
2887 if test "$cross_compiling" != yes; then
2888 if { ac_try='./$ac_file'
2889 { (case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_try") 2>&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 if test "$cross_compiling" = maybe; then
2903 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot run C compiled programs.
2907 If you meant to cross compile, use \`--host'.
2908 See \`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2913 { echo "$as_me:$LINENO: result: yes" >&5
2914 echo "${ECHO_T}yes" >&6; }
2916 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2917 ac_clean_files=$ac_clean_files_save
2918 # Check that the compiler produces executables we can run. If not, either
2919 # the compiler is broken, or we cross compile.
2920 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2921 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2922 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2923 echo "${ECHO_T}$cross_compiling" >&6; }
2925 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2926 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2927 if { (ac_try="$ac_link"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_link") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
2937 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2938 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2939 # work properly (i.e., refer to `conftest.exe'), while it won't with
2941 for ac_file in conftest.exe conftest conftest.*; do
2942 test -f "$ac_file" || continue
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2945 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2951 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2954 See \`config.log' for more details." >&2;}
2955 { (exit 1); exit 1; }; }
2958 rm -f conftest$ac_cv_exeext
2959 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2960 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2962 rm -f conftest.$ac_ext
2963 EXEEXT=$ac_cv_exeext
2965 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2966 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2967 if test "${ac_cv_objext+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2985 rm -f conftest.o conftest.obj
2986 if { (ac_try="$ac_compile"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; then
2996 for ac_file in conftest.o conftest.obj conftest.*; do
2997 test -f "$ac_file" || continue;
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3011 See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
3015 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3017 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3018 echo "${ECHO_T}$ac_cv_objext" >&6; }
3019 OBJEXT=$ac_cv_objext
3021 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3023 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
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_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3090 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3091 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3092 GCC=`test $ac_compiler_gnu = yes && echo yes`
3093 ac_test_CFLAGS=${CFLAGS+set}
3094 ac_save_CFLAGS=$CFLAGS
3095 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3096 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3097 if test "${ac_cv_prog_cc_g+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 ac_save_c_werror_flag=$ac_c_werror_flag
3101 ac_c_werror_flag=yes
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3128 grep -v '^ *+' conftest.er1 >conftest.err
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3245 { (case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_try") 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_try") 2>&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 ac_c_werror_flag=$ac_save_c_werror_flag
3281 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3282 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3283 if test "$ac_test_CFLAGS" = set; then
3284 CFLAGS=$ac_save_CFLAGS
3285 elif test $ac_cv_prog_cc_g = yes; then
3286 if test "$GCC" = yes; then
3292 if test "$GCC" = yes; then
3298 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3299 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3300 if test "${ac_cv_prog_cc_c89+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 ac_cv_prog_cc_c89=no
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3313 #include <sys/types.h>
3314 #include <sys/stat.h>
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3329 s = g (p, va_arg (v,int));
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335 function prototypes and stuff, but not '\xHH' hex character constants.
3336 These don't provoke an error unfortunately, instead are silently treated
3337 as 'x'. The following induces an error, until -std is added to get
3338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339 array size at least. It's necessary to write '\x00'==0 to get something
3340 that's true only with -std. */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344 inside strings and character constants. */
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3365 CC="$ac_save_CC $ac_arg"
3366 rm -f conftest.$ac_objext
3367 if { (ac_try="$ac_compile"
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_compile") 2>conftest.er1
3375 grep -v '^ *+' conftest.er1 >conftest.err
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (case "(($ac_try" in
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_try") 2>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 ac_cv_prog_cc_c89=$ac_arg
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3408 rm -f core conftest.err conftest.$ac_objext
3409 test "x$ac_cv_prog_cc_c89" != "xno" && break
3411 rm -f conftest.$ac_ext
3416 case "x$ac_cv_prog_cc_c89" in
3418 { echo "$as_me:$LINENO: result: none needed" >&5
3419 echo "${ECHO_T}none needed" >&6; } ;;
3421 { echo "$as_me:$LINENO: result: unsupported" >&5
3422 echo "${ECHO_T}unsupported" >&6; } ;;
3424 CC="$CC $ac_cv_prog_cc_c89"
3425 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3426 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 ac_cpp='$CPP $CPPFLAGS'
3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3443 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3444 # On Suns, sometimes $CPP names a directory.
3445 if test -n "$CPP" && test -d "$CPP"; then
3448 if test -z "$CPP"; then
3449 if test "${ac_cv_prog_CPP+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 # Double quotes because CPP needs to be expanded
3453 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3456 for ac_c_preproc_warn_flag in '' yes
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461 # <limits.h> exists even on freestanding compilers.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3471 # include <limits.h>
3473 # include <assert.h>
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499 if test -z "$ac_cpp_err"; then
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Broken: fails on valid input.
3509 rm -f conftest.err conftest.$ac_ext
3511 # OK, works on sane cases. Now check whether nonexistent headers
3512 # can be detected and how.
3513 cat >conftest.$ac_ext <<_ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 #include <ac_nonexistent.h>
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null; then
3534 if test -s conftest.err; then
3535 ac_cpp_err=$ac_c_preproc_warn_flag
3536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3543 if test -z "$ac_cpp_err"; then
3544 # Broken: success on invalid input.
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 # Passes both tests.
3555 rm -f conftest.err conftest.$ac_ext
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.err conftest.$ac_ext
3560 if $ac_preproc_ok; then
3572 { echo "$as_me:$LINENO: result: $CPP" >&5
3573 echo "${ECHO_T}$CPP" >&6; }
3575 for ac_c_preproc_warn_flag in '' yes
3577 # Use a header file that comes with gcc, so configuring glibc
3578 # with a fresh cross-compiler works.
3579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580 # <limits.h> exists even on freestanding compilers.
3581 # On the NeXT, cc -E runs the code through the compiler's parser,
3582 # not just through cpp. "Syntax error" is here to catch this case.
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3590 # include <limits.h>
3592 # include <assert.h>
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 if test -z "$ac_cpp_err"; then
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Broken: fails on valid input.
3628 rm -f conftest.err conftest.$ac_ext
3630 # OK, works on sane cases. Now check whether nonexistent headers
3631 # can be detected and how.
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638 #include <ac_nonexistent.h>
3640 if { (ac_try="$ac_cpp conftest.$ac_ext"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev/null; then
3653 if test -s conftest.err; then
3654 ac_cpp_err=$ac_c_preproc_warn_flag
3655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3662 if test -z "$ac_cpp_err"; then
3663 # Broken: success on invalid input.
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 # Passes both tests.
3674 rm -f conftest.err conftest.$ac_ext
3677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678 rm -f conftest.err conftest.$ac_ext
3679 if $ac_preproc_ok; then
3682 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log' for more details." >&5
3684 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3685 See \`config.log' for more details." >&2;}
3686 { (exit 1); exit 1; }; }
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3697 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 # Extract the first word of "grep ggrep" to use in msg output
3702 if test -z "$GREP"; then
3703 set dummy grep ggrep; ac_prog_name=$2
3704 if test "${ac_cv_path_GREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_path_GREP_found=false
3708 # Loop through the user's path and test for each of PROGNAME-LIST
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 test -z "$as_dir" && as_dir=.
3714 for ac_prog in grep ggrep; do
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3717 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3718 # Check for GNU ac_path_GREP and select it if it is found.
3719 # Check for GNU $ac_path_GREP
3720 case `"$ac_path_GREP" --version 2>&1` in
3722 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3725 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728 cat "conftest.in" "conftest.in" >"conftest.tmp"
3729 mv "conftest.tmp" "conftest.in"
3730 cp "conftest.in" "conftest.nl"
3731 echo 'GREP' >> "conftest.nl"
3732 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3734 ac_count=`expr $ac_count + 1`
3735 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3736 # Best one so far, save it but keep looking for a better one
3737 ac_cv_path_GREP="$ac_path_GREP"
3738 ac_path_GREP_max=$ac_count
3740 # 10*(2^10) chars as input seems more than enough
3741 test $ac_count -gt 10 && break
3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 $ac_path_GREP_found && break 3
3757 GREP="$ac_cv_path_GREP"
3758 if test -z "$GREP"; then
3759 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761 { (exit 1); exit 1; }; }
3765 ac_cv_path_GREP=$GREP
3770 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3771 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3772 GREP="$ac_cv_path_GREP"
3775 { echo "$as_me:$LINENO: checking for egrep" >&5
3776 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_EGREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3781 then ac_cv_path_EGREP="$GREP -E"
3783 # Extract the first word of "egrep" to use in msg output
3784 if test -z "$EGREP"; then
3785 set dummy egrep; ac_prog_name=$2
3786 if test "${ac_cv_path_EGREP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 ac_path_EGREP_found=false
3790 # Loop through the user's path and test for each of PROGNAME-LIST
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3795 test -z "$as_dir" && as_dir=.
3796 for ac_prog in egrep; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3799 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3800 # Check for GNU ac_path_EGREP and select it if it is found.
3801 # Check for GNU $ac_path_EGREP
3802 case `"$ac_path_EGREP" --version 2>&1` in
3804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3807 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3810 cat "conftest.in" "conftest.in" >"conftest.tmp"
3811 mv "conftest.tmp" "conftest.in"
3812 cp "conftest.in" "conftest.nl"
3813 echo 'EGREP' >> "conftest.nl"
3814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3816 ac_count=`expr $ac_count + 1`
3817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3818 # Best one so far, save it but keep looking for a better one
3819 ac_cv_path_EGREP="$ac_path_EGREP"
3820 ac_path_EGREP_max=$ac_count
3822 # 10*(2^10) chars as input seems more than enough
3823 test $ac_count -gt 10 && break
3825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829 $ac_path_EGREP_found && break 3
3839 EGREP="$ac_cv_path_EGREP"
3840 if test -z "$EGREP"; then
3841 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3842 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3843 { (exit 1); exit 1; }; }
3847 ac_cv_path_EGREP=$EGREP
3853 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3854 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3855 EGREP="$ac_cv_path_EGREP"
3858 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3859 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3860 if test "${ac_cv_header_stdc+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
3891 grep -v '^ *+' conftest.er1 >conftest.err
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3897 { (case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_try") 2>&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_try") 2>&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 ac_cv_header_stdc=yes
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 ac_cv_header_stdc=no
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938 $EGREP "memchr" >/dev/null 2>&1; then
3941 ac_cv_header_stdc=no
3947 if test $ac_cv_header_stdc = yes; then
3948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959 $EGREP "free" >/dev/null 2>&1; then
3962 ac_cv_header_stdc=no
3968 if test $ac_cv_header_stdc = yes; then
3969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3970 if test "$cross_compiling" = yes; then
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3981 #if ((' ' & 0x0FF) == 0x020)
3982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3985 # define ISLOWER(c) \
3986 (('a' <= (c) && (c) <= 'i') \
3987 || ('j' <= (c) && (c) <= 'r') \
3988 || ('s' <= (c) && (c) <= 'z'))
3989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3997 for (i = 0; i < 256; i++)
3998 if (XOR (islower (i), ISLOWER (i))
3999 || toupper (i) != TOUPPER (i))
4004 rm -f conftest$ac_exeext
4005 if { (ac_try="$ac_link"
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011 (eval "$ac_link") 2>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015 { (case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_try") 2>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4026 echo "$as_me: program exited with status $ac_status" >&5
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4031 ac_cv_header_stdc=no
4033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4039 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4040 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4041 if test $ac_cv_header_stdc = yes; then
4043 cat >>confdefs.h <<\_ACEOF
4044 #define STDC_HEADERS 1
4049 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4060 inttypes.h stdint.h unistd.h
4062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 $ac_includes_default
4076 #include <$ac_header>
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4087 grep -v '^ *+' conftest.er1 >conftest.err
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 eval "$as_ac_Header=yes"
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 eval "$as_ac_Header=no"
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 ac_res=`eval echo '${'$as_ac_Header'}'`
4123 { echo "$as_me:$LINENO: result: $ac_res" >&5
4124 echo "${ECHO_T}$ac_res" >&6; }
4125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4126 cat >>confdefs.h <<_ACEOF
4127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4135 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4136 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4137 if test "${ac_cv_c_bigendian+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 # See if sys/param.h defines the BYTE_ORDER macro.
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <sys/types.h>
4148 #include <sys/param.h>
4153 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176 { (case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_try") 2>&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 # It does; now see whether it defined to BIG_ENDIAN or not.
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 #include <sys/types.h>
4203 #include <sys/param.h>
4208 #if BYTE_ORDER != BIG_ENDIAN
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4225 grep -v '^ *+' conftest.er1 >conftest.err
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 ac_cv_c_bigendian=yes
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 ac_cv_c_bigendian=no
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 # It does not; compile a test program.
4264 if test "$cross_compiling" = yes; then
4265 # try to guess the endianness by grepping values into an object file
4266 ac_cv_c_bigendian=unknown
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4274 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4275 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4276 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4277 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4278 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4282 _ascii (); _ebcdic ();
4287 rm -f conftest.$ac_objext
4288 if { (ac_try="$ac_compile"
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4296 grep -v '^ *+' conftest.er1 >conftest.err
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4302 { (case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_try") 2>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_try") 2>&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4322 ac_cv_c_bigendian=yes
4324 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4325 if test "$ac_cv_c_bigendian" = unknown; then
4326 ac_cv_c_bigendian=no
4328 # finding both strings is unlikely to happen, but who knows?
4329 ac_cv_c_bigendian=unknown
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 $ac_includes_default
4352 /* Are we little or big endian? From Harbison&Steele. */
4356 char c[sizeof (long int)];
4359 return u.c[sizeof (long int) - 1] == 1;
4365 rm -f conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_link") 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4376 { (case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_try") 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_cv_c_bigendian=no
4387 echo "$as_me: program exited with status $ac_status" >&5
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4392 ac_cv_c_bigendian=yes
4394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4403 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4404 case $ac_cv_c_bigendian in
4412 { { echo "$as_me:$LINENO: error: unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4414 echo "$as_me: error: unknown endianness
4415 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4416 { (exit 1); exit 1; }; } ;;
4420 if test "$cross_compiling" = yes; then
4421 LLVM_CROSS_COMPILING=1
4424 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4425 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4426 if test "${ac_cv_build_exeext+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4430 ac_cv_build_exeext=.exe
4432 ac_build_prefix=${build_alias}-
4434 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4435 set dummy ${ac_build_prefix}gcc; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 BUILD_CC=$ac_cv_prog_BUILD_CC
4462 if test -n "$BUILD_CC"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464 echo "${ECHO_T}$BUILD_CC" >&6; }
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "gcc", so it can be a program name with args.
4473 set dummy gcc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_BUILD_CC="gcc"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 BUILD_CC=$ac_cv_prog_BUILD_CC
4500 if test -n "$BUILD_CC"; then
4501 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4502 echo "${ECHO_T}$BUILD_CC" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4509 if test -z "$BUILD_CC"; then
4510 # Extract the first word of "cc", so it can be a program name with args.
4511 set dummy cc; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 if test -n "$BUILD_CC"; then
4518 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4529 ac_prog_rejected=yes
4532 ac_cv_prog_BUILD_CC="cc"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 if test $ac_prog_rejected = yes; then
4541 # We found a bogon in the path, so make sure we never use it.
4542 set dummy $ac_cv_prog_BUILD_CC
4544 if test $# != 0; then
4545 # We chose a different compiler from the bogus one.
4546 # However, it has the same basename, so the bogon will be chosen
4547 # first if we set BUILD_CC to just the basename; use the full file name.
4549 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4554 BUILD_CC=$ac_cv_prog_BUILD_CC
4555 if test -n "$BUILD_CC"; then
4556 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4557 echo "${ECHO_T}$BUILD_CC" >&6; }
4559 { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4566 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4567 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4568 { (exit 1); exit 1; }; }
4569 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4571 echo 'int main () { return 0; }' > conftest.$ac_ext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4574 (eval $ac_build_link) 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; then
4578 for file in conftest.*; do
4580 *.c | *.o | *.obj | *.dSYM) ;;
4581 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4585 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4586 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4587 { (exit 1); exit 1; }; }
4590 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4595 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4596 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4597 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4598 ac_build_exeext=$BUILD_EXEEXT
4600 ac_build_prefix=${build_alias}-
4601 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4602 set dummy ${ac_build_prefix}g++; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test -n "$BUILD_CXX"; then
4609 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629 if test -n "$BUILD_CXX"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631 echo "${ECHO_T}$BUILD_CXX" >&6; }
4633 { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4638 if test -z "$BUILD_CXX"; then
4639 # Extract the first word of "g++", so it can be a program name with args.
4640 set dummy g++; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 if test -n "$BUILD_CXX"; then
4647 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_BUILD_CXX="g++"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4667 if test -n "$BUILD_CXX"; then
4668 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4669 echo "${ECHO_T}$BUILD_CXX" >&6; }
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4676 if test -z "$BUILD_CXX"; then
4677 # Extract the first word of "c++", so it can be a program name with args.
4678 set dummy c++; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 if test -n "$BUILD_CXX"; then
4685 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4696 ac_prog_rejected=yes
4699 ac_cv_prog_BUILD_CXX="c++"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_BUILD_CXX
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set BUILD_CXX to just the basename; use the full file name.
4716 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4721 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4722 if test -n "$BUILD_CXX"; then
4723 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4724 echo "${ECHO_T}$BUILD_CXX" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4734 LLVM_CROSS_COMPILING=0
4738 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4749 # Check whether --enable-optimized was given.
4750 if test "${enable_optimized+set}" = set; then
4751 enableval=$enable_optimized;
4756 if test ${enableval} = "no" ; then
4760 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4764 # Check whether --enable-profiling was given.
4765 if test "${enable_profiling+set}" = set; then
4766 enableval=$enable_profiling;
4771 if test ${enableval} = "no" ; then
4775 ENABLE_PROFILING=ENABLE_PROFILING=1
4779 # Check whether --enable-assertions was given.
4780 if test "${enable_assertions+set}" = set; then
4781 enableval=$enable_assertions;
4786 if test ${enableval} = "yes" ; then
4790 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4794 # Check whether --enable-expensive-checks was given.
4795 if test "${enable_expensive_checks+set}" = set; then
4796 enableval=$enable_expensive_checks;
4801 if test ${enableval} = "yes" ; then
4802 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4804 EXPENSIVE_CHECKS=yes
4807 ENABLE_EXPENSIVE_CHECKS=
4813 # Check whether --enable-debug-runtime was given.
4814 if test "${enable_debug_runtime+set}" = set; then
4815 enableval=$enable_debug_runtime;
4820 if test ${enableval} = "no" ; then
4824 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4828 # Check whether --enable-debug-symbols was given.
4829 if test "${enable_debug_symbols+set}" = set; then
4830 enableval=$enable_debug_symbols;
4835 if test ${enableval} = "no" ; then
4839 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4843 # Check whether --enable-jit was given.
4844 if test "${enable_jit+set}" = set; then
4845 enableval=$enable_jit;
4850 if test ${enableval} = "no"
4855 case "$llvm_cv_target_arch" in
4856 x86) TARGET_HAS_JIT=1
4858 Sparc) TARGET_HAS_JIT=0
4860 PowerPC) TARGET_HAS_JIT=1
4862 x86_64) TARGET_HAS_JIT=1
4864 Alpha) TARGET_HAS_JIT=0
4866 ARM) TARGET_HAS_JIT=1
4868 Mips) TARGET_HAS_JIT=1
4870 XCore) TARGET_HAS_JIT=0
4872 MSP430) TARGET_HAS_JIT=0
4874 SystemZ) TARGET_HAS_JIT=0
4876 Blackfin) TARGET_HAS_JIT=0
4878 MBlaze) TARGET_HAS_JIT=0
4880 PTX) TARGET_HAS_JIT=0
4887 # Check whether --enable-docs was given.
4888 if test "${enable_docs+set}" = set; then
4889 enableval=$enable_docs;
4894 case "$enableval" in
4899 default) ENABLE_DOCS=1
4901 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4902 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4903 { (exit 1); exit 1; }; } ;;
4906 # Check whether --enable-doxygen was given.
4907 if test "${enable_doxygen+set}" = set; then
4908 enableval=$enable_doxygen;
4913 case "$enableval" in
4914 yes) ENABLE_DOXYGEN=1
4916 no) ENABLE_DOXYGEN=0
4918 default) ENABLE_DOXYGEN=0
4920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4921 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4925 # Check whether --enable-threads was given.
4926 if test "${enable_threads+set}" = set; then
4927 enableval=$enable_threads;
4932 case "$enableval" in
4933 yes) ENABLE_THREADS=1
4935 no) ENABLE_THREADS=0
4937 default) ENABLE_THREADS=1
4939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4940 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4944 cat >>confdefs.h <<_ACEOF
4945 #define ENABLE_THREADS $ENABLE_THREADS
4949 # Check whether --enable-pthreads was given.
4950 if test "${enable_pthreads+set}" = set; then
4951 enableval=$enable_pthreads;
4956 case "$enableval" in
4957 yes) ENABLE_PTHREADS=1
4959 no) ENABLE_PTHREADS=0
4961 default) ENABLE_PTHREADS=1
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4968 # Check whether --enable-pic was given.
4969 if test "${enable_pic+set}" = set; then
4970 enableval=$enable_pic;
4975 case "$enableval" in
4980 default) ENABLE_PIC=1
4982 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4983 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4984 { (exit 1); exit 1; }; } ;;
4987 cat >>confdefs.h <<_ACEOF
4988 #define ENABLE_PIC $ENABLE_PIC
4992 # Check whether --enable-shared was given.
4993 if test "${enable_shared+set}" = set; then
4994 enableval=$enable_shared;
4999 case "$enableval" in
5000 yes) ENABLE_SHARED=1
5004 default) ENABLE_SHARED=0
5006 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5007 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5008 { (exit 1); exit 1; }; } ;;
5011 # Check whether --enable-embed-stdcxx was given.
5012 if test "${enable_embed_stdcxx+set}" = set; then
5013 enableval=$enable_embed_stdcxx;
5018 case "$enableval" in
5019 yes) ENABLE_EMBED_STDCXX=1
5021 no) ENABLE_EMBED_STDCXX=0
5023 default) ENABLE_EMBED_STDCXX=1
5025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5026 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5030 # Check whether --enable-timestamps was given.
5031 if test "${enable_timestamps+set}" = set; then
5032 enableval=$enable_timestamps;
5037 case "$enableval" in
5038 yes) ENABLE_TIMESTAMPS=1
5040 no) ENABLE_TIMESTAMPS=0
5042 default) ENABLE_TIMESTAMPS=1
5044 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5045 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5046 { (exit 1); exit 1; }; } ;;
5049 cat >>confdefs.h <<_ACEOF
5050 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5055 # Check whether --enable-targets was given.
5056 if test "${enable_targets+set}" = set; then
5057 enableval=$enable_targets;
5062 if test "$enableval" = host-only ; then
5065 case "$enableval" in
5066 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5067 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5069 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5070 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5071 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5072 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5073 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5074 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5075 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5076 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5077 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5078 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5079 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5080 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5081 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5082 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5083 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5084 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5085 host) case "$llvm_cv_target_arch" in
5086 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5087 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5088 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5089 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5090 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5091 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5092 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5093 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5094 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5095 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5096 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5097 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5098 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5099 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5100 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5101 echo "$as_me: error: Can not set target to build" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5104 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5105 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5106 { (exit 1); exit 1; }; } ;;
5111 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5114 # Determine whether we are building LLVM support for the native architecture.
5115 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5116 for a_target in $TARGETS_TO_BUILD; do
5117 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5119 cat >>confdefs.h <<_ACEOF
5120 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5123 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5124 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5125 LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo"
5126 LLVM_NATIVE_MCCODEGENINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCCodeGenInfo"
5127 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5128 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5129 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5132 cat >>confdefs.h <<_ACEOF
5133 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5137 cat >>confdefs.h <<_ACEOF
5138 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5142 cat >>confdefs.h <<_ACEOF
5143 #define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO
5147 cat >>confdefs.h <<_ACEOF
5148 #define LLVM_NATIVE_MCCODEGENINFO $LLVM_NATIVE_MCCODEGENINFO
5152 cat >>confdefs.h <<_ACEOF
5153 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5156 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5158 cat >>confdefs.h <<_ACEOF
5159 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5166 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5167 # target feature def files.
5168 LLVM_ENUM_TARGETS=""
5169 LLVM_ENUM_ASM_PRINTERS=""
5170 LLVM_ENUM_ASM_PARSERS=""
5171 LLVM_ENUM_DISASSEMBLERS=""
5172 for target_to_build in $TARGETS_TO_BUILD; do
5173 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5174 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5175 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5177 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5178 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5180 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5181 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5189 # Check whether --enable-cbe-printf-a was given.
5190 if test "${enable_cbe_printf_a+set}" = set; then
5191 enableval=$enable_cbe_printf_a;
5196 case "$enableval" in
5197 yes) ENABLE_CBE_PRINTF_A=1
5199 no) ENABLE_CBE_PRINTF_A=0
5201 default) ENABLE_CBE_PRINTF_A=1
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 cat >>confdefs.h <<_ACEOF
5209 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5214 # Check whether --with-llvmgccdir was given.
5215 if test "${with_llvmgccdir+set}" = set; then
5216 withval=$with_llvmgccdir;
5222 default) WITH_LLVMGCCDIR=default ;;
5223 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5224 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5225 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5230 # Check whether --with-llvmgcc was given.
5231 if test "${with_llvmgcc+set}" = set; then
5232 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5238 # Check whether --with-llvmgxx was given.
5239 if test "${with_llvmgxx+set}" = set; then
5240 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5245 if test -n "$LLVMGCC"; then
5246 LLVMGCCCOMMAND="$LLVMGCC"
5249 if test -n "$LLVMGXX"; then
5250 LLVMGXXCOMMAND="$LLVMGXX"
5253 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5254 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5255 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5256 { (exit 1); exit 1; }; };
5259 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5260 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5261 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5262 { (exit 1); exit 1; }; };
5266 # Check whether --with-clang was given.
5267 if test "${with_clang+set}" = set; then
5268 withval=$with_clang;
5275 # Check whether --with-built-clang was given.
5276 if test "${with_built_clang+set}" = set; then
5277 withval=$with_built_clang;
5279 with_built_clang=check
5283 { echo "$as_me:$LINENO: checking clang compiler" >&5
5284 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5287 if test "$with_clang" != "default"; then
5288 WITH_CLANGPATH="$with_clang"
5289 if ! test -x "$WITH_CLANGPATH"; then
5290 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5291 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5292 { (exit 1); exit 1; }; }
5294 elif test "$with_built_clang" = "yes"; then
5296 elif test "$with_built_clang" = "no"; then
5299 if test "$with_built_clang" != "check"; then
5300 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5301 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5302 { (exit 1); exit 1; }; }
5305 if test -f ${srcdir}/tools/clang/README.txt; then
5310 if ! test -z "$WITH_CLANGPATH"; then
5311 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5312 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5313 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5314 elif test "$WITH_BUILT_CLANG" = "1"; then
5315 { echo "$as_me:$LINENO: result: built" >&5
5316 echo "${ECHO_T}built" >&6; }
5318 { echo "$as_me:$LINENO: result: none" >&5
5319 echo "${ECHO_T}none" >&6; }
5321 CLANGPATH=$WITH_CLANGPATH
5323 CLANGXXPATH=$WITH_CLANGXXPATH
5325 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5329 # Check whether --with-optimize-option was given.
5330 if test "${with_optimize_option+set}" = set; then
5331 withval=$with_optimize_option;
5336 { echo "$as_me:$LINENO: checking optimization flags" >&5
5337 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5340 case "$llvm_cv_os_type" in
5341 FreeBSD) optimize_option=-O2 ;;
5342 MingW) optimize_option=-O2 ;;
5343 *) optimize_option=-O3 ;;
5345 *) optimize_option="$withval" ;;
5347 OPTIMIZE_OPTION=$optimize_option
5349 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5350 echo "${ECHO_T}$optimize_option" >&6; }
5353 # Check whether --with-extra-options was given.
5354 if test "${with_extra_options+set}" = set; then
5355 withval=$with_extra_options;
5361 default) EXTRA_OPTIONS= ;;
5362 *) EXTRA_OPTIONS=$withval ;;
5364 EXTRA_OPTIONS=$EXTRA_OPTIONS
5368 # Check whether --with-extra-ld-options was given.
5369 if test "${with_extra_ld_options+set}" = set; then
5370 withval=$with_extra_ld_options;
5376 default) EXTRA_LD_OPTIONS= ;;
5377 *) EXTRA_LD_OPTIONS=$withval ;;
5379 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5382 # Check whether --enable-bindings was given.
5383 if test "${enable_bindings+set}" = set; then
5384 enableval=$enable_bindings;
5389 BINDINGS_TO_BUILD=""
5390 case "$enableval" in
5391 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5392 all ) BINDINGS_TO_BUILD="ocaml" ;;
5393 none | no) BINDINGS_TO_BUILD="" ;;
5394 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5395 case "$a_binding" in
5396 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5397 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5398 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5399 { (exit 1); exit 1; }; } ;;
5406 # Check whether --with-ocaml-libdir was given.
5407 if test "${with_ocaml_libdir+set}" = set; then
5408 withval=$with_ocaml_libdir;
5414 auto) with_ocaml_libdir="$withval" ;;
5415 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5416 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5417 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5418 { (exit 1); exit 1; }; } ;;
5422 # Check whether --with-clang-resource-dir was given.
5423 if test "${with_clang_resource_dir+set}" = set; then
5424 withval=$with_clang_resource_dir;
5430 cat >>confdefs.h <<_ACEOF
5431 #define CLANG_RESOURCE_DIR "$withval"
5436 # Check whether --with-c-include-dirs was given.
5437 if test "${with_c_include_dirs+set}" = set; then
5438 withval=$with_c_include_dirs;
5444 cat >>confdefs.h <<_ACEOF
5445 #define C_INCLUDE_DIRS "$withval"
5450 # Check whether --with-cxx-include-root was given.
5451 if test "${with_cxx_include_root+set}" = set; then
5452 withval=$with_cxx_include_root;
5458 cat >>confdefs.h <<_ACEOF
5459 #define CXX_INCLUDE_ROOT "$withval"
5464 # Check whether --with-cxx-include-arch was given.
5465 if test "${with_cxx_include_arch+set}" = set; then
5466 withval=$with_cxx_include_arch;
5472 cat >>confdefs.h <<_ACEOF
5473 #define CXX_INCLUDE_ARCH "$withval"
5478 # Check whether --with-cxx-include-32bit-dir was given.
5479 if test "${with_cxx_include_32bit_dir+set}" = set; then
5480 withval=$with_cxx_include_32bit_dir;
5486 cat >>confdefs.h <<_ACEOF
5487 #define CXX_INCLUDE_32BIT_DIR "$withval"
5492 # Check whether --with-cxx-include-64bit-dir was given.
5493 if test "${with_cxx_include_64bit_dir+set}" = set; then
5494 withval=$with_cxx_include_64bit_dir;
5500 cat >>confdefs.h <<_ACEOF
5501 #define CXX_INCLUDE_64BIT_DIR "$withval"
5506 # Check whether --with-binutils-include was given.
5507 if test "${with_binutils_include+set}" = set; then
5508 withval=$with_binutils_include;
5514 default) WITH_BINUTILS_INCDIR=default ;;
5515 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5516 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5517 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5518 { (exit 1); exit 1; }; } ;;
5520 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5521 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5523 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5524 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5525 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5526 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5527 { (exit 1); exit 1; }; };
5532 # Check whether --with-bug-report-url was given.
5533 if test "${with_bug_report_url+set}" = set; then
5534 withval=$with_bug_report_url;
5536 withval="http://llvm.org"
5540 cat >>confdefs.h <<_ACEOF
5541 #define BUG_REPORT_URL "$withval"
5545 # Check whether --enable-libffi was given.
5546 if test "${enable_libffi+set}" = set; then
5547 enableval=$enable_libffi; case "$enableval" in
5548 yes) llvm_cv_enable_libffi="yes" ;;
5549 no) llvm_cv_enable_libffi="no" ;;
5550 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5551 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5552 { (exit 1); exit 1; }; } ;;
5555 llvm_cv_enable_libffi=no
5561 ac_cpp='$CPP $CPPFLAGS'
5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5566 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5567 # On Suns, sometimes $CPP names a directory.
5568 if test -n "$CPP" && test -d "$CPP"; then
5571 if test -z "$CPP"; then
5572 if test "${ac_cv_prog_CPP+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 # Double quotes because CPP needs to be expanded
5576 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5579 for ac_c_preproc_warn_flag in '' yes
5581 # Use a header file that comes with gcc, so configuring glibc
5582 # with a fresh cross-compiler works.
5583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584 # <limits.h> exists even on freestanding compilers.
5585 # On the NeXT, cc -E runs the code through the compiler's parser,
5586 # not just through cpp. "Syntax error" is here to catch this case.
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5594 # include <limits.h>
5596 # include <assert.h>
5600 if { (ac_try="$ac_cpp conftest.$ac_ext"
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } >/dev/null; then
5613 if test -s conftest.err; then
5614 ac_cpp_err=$ac_c_preproc_warn_flag
5615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5622 if test -z "$ac_cpp_err"; then
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5628 # Broken: fails on valid input.
5632 rm -f conftest.err conftest.$ac_ext
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <ac_nonexistent.h>
5644 if { (ac_try="$ac_cpp conftest.$ac_ext"
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5652 grep -v '^ *+' conftest.er1 >conftest.err
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } >/dev/null; then
5657 if test -s conftest.err; then
5658 ac_cpp_err=$ac_c_preproc_warn_flag
5659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5666 if test -z "$ac_cpp_err"; then
5667 # Broken: success on invalid input.
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 # Passes both tests.
5678 rm -f conftest.err conftest.$ac_ext
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then
5695 { echo "$as_me:$LINENO: result: $CPP" >&5
5696 echo "${ECHO_T}$CPP" >&6; }
5698 for ac_c_preproc_warn_flag in '' yes
5700 # Use a header file that comes with gcc, so configuring glibc
5701 # with a fresh cross-compiler works.
5702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703 # <limits.h> exists even on freestanding compilers.
5704 # On the NeXT, cc -E runs the code through the compiler's parser,
5705 # not just through cpp. "Syntax error" is here to catch this case.
5706 cat >conftest.$ac_ext <<_ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5713 # include <limits.h>
5715 # include <assert.h>
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev/null; then
5732 if test -s conftest.err; then
5733 ac_cpp_err=$ac_c_preproc_warn_flag
5734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5741 if test -z "$ac_cpp_err"; then
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5747 # Broken: fails on valid input.
5751 rm -f conftest.err conftest.$ac_ext
5753 # OK, works on sane cases. Now check whether nonexistent headers
5754 # can be detected and how.
5755 cat >conftest.$ac_ext <<_ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 #include <ac_nonexistent.h>
5763 if { (ac_try="$ac_cpp conftest.$ac_ext"
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5771 grep -v '^ *+' conftest.er1 >conftest.err
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } >/dev/null; then
5776 if test -s conftest.err; then
5777 ac_cpp_err=$ac_c_preproc_warn_flag
5778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5785 if test -z "$ac_cpp_err"; then
5786 # Broken: success on invalid input.
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 # Passes both tests.
5797 rm -f conftest.err conftest.$ac_ext
5800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5801 rm -f conftest.err conftest.$ac_ext
5802 if $ac_preproc_ok; then
5805 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5806 See \`config.log' for more details." >&5
5807 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5808 See \`config.log' for more details." >&2;}
5809 { (exit 1); exit 1; }; }
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5819 ac_cpp='$CPP $CPPFLAGS'
5820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823 if test -n "$ac_tool_prefix"; then
5826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830 if test "${ac_cv_prog_CC+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 if test -n "$CC"; then
5834 ac_cv_prog_CC="$CC" # Let the user override the test.
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 if test -n "$CC"; then
5855 { echo "$as_me:$LINENO: result: $CC" >&5
5856 echo "${ECHO_T}$CC" >&6; }
5858 { echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6; }
5863 test -n "$CC" && break
5866 if test -z "$CC"; then
5870 # Extract the first word of "$ac_prog", so it can be a program name with args.
5871 set dummy $ac_prog; ac_word=$2
5872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 if test -n "$ac_ct_CC"; then
5878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5887 ac_cv_prog_ac_ct_CC="$ac_prog"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5898 if test -n "$ac_ct_CC"; then
5899 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5900 echo "${ECHO_T}$ac_ct_CC" >&6; }
5902 { echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6; }
5907 test -n "$ac_ct_CC" && break
5910 if test "x$ac_ct_CC" = x; then
5913 case $cross_compiling:$ac_tool_warned in
5915 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5916 whose name does not start with the host triplet. If you think this
5917 configuration is useful to you, please write to autoconf@gnu.org." >&5
5918 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5919 whose name does not start with the host triplet. If you think this
5920 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5921 ac_tool_warned=yes ;;
5928 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5929 See \`config.log' for more details." >&5
5930 echo "$as_me: error: no acceptable C compiler found in \$PATH
5931 See \`config.log' for more details." >&2;}
5932 { (exit 1); exit 1; }; }
5934 # Provide some information about the compiler.
5935 echo "$as_me:$LINENO: checking for C compiler version" >&5
5936 ac_compiler=`set X $ac_compile; echo $2`
5937 { (ac_try="$ac_compiler --version >&5"
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_compiler --version >&5") 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }
5947 { (ac_try="$ac_compiler -v >&5"
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compiler -v >&5") 2>&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }
5957 { (ac_try="$ac_compiler -V >&5"
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_compiler -V >&5") 2>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }
5968 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6006 { (case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_try") 2>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest.$ac_objext'
6016 { (case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_try") 2>&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6037 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6038 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6039 GCC=`test $ac_compiler_gnu = yes && echo yes`
6040 ac_test_CFLAGS=${CFLAGS+set}
6041 ac_save_CFLAGS=$CFLAGS
6042 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6043 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_cc_g+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 ac_save_c_werror_flag=$ac_c_werror_flag
6048 ac_c_werror_flag=yes
6051 cat >conftest.$ac_ext <<_ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6066 rm -f conftest.$ac_objext
6067 if { (ac_try="$ac_compile"
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_compile") 2>conftest.er1
6075 grep -v '^ *+' conftest.er1 >conftest.err
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6081 { (case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_try") 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest.$ac_objext'
6091 { (case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_try") 2>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6130 grep -v '^ *+' conftest.er1 >conftest.err
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
6135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6136 { (case "(($ac_try" in
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_try") 2>&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_try") 2>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; }; then
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6160 ac_c_werror_flag=$ac_save_c_werror_flag
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6177 rm -f conftest.$ac_objext
6178 if { (ac_try="$ac_compile"
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_compile") 2>conftest.er1
6186 grep -v '^ *+' conftest.er1 >conftest.err
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6192 { (case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_try") 2>&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; } &&
6201 { ac_try='test -s conftest.$ac_objext'
6202 { (case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_try") 2>&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 ac_c_werror_flag=$ac_save_c_werror_flag
6228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6229 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6230 if test "$ac_test_CFLAGS" = set; then
6231 CFLAGS=$ac_save_CFLAGS
6232 elif test $ac_cv_prog_cc_g = yes; then
6233 if test "$GCC" = yes; then
6239 if test "$GCC" = yes; then
6245 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6246 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_cc_c89+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 ac_cv_prog_cc_c89=no
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6260 #include <sys/types.h>
6261 #include <sys/stat.h>
6262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6263 struct buf { int x; };
6264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6265 static char *e (p, i)
6271 static char *f (char * (*g) (char **, int), char **p, ...)
6276 s = g (p, va_arg (v,int));
6281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6282 function prototypes and stuff, but not '\xHH' hex character constants.
6283 These don't provoke an error unfortunately, instead are silently treated
6284 as 'x'. The following induces an error, until -std is added to get
6285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6286 array size at least. It's necessary to write '\x00'==0 to get something
6287 that's true only with -std. */
6288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6291 inside strings and character constants. */
6293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6295 int test (int i, double x);
6296 struct s1 {int (*f) (int a);};
6297 struct s2 {int (*f) (double a);};
6298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6304 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6312 CC="$ac_save_CC $ac_arg"
6313 rm -f conftest.$ac_objext
6314 if { (ac_try="$ac_compile"
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_compile") 2>conftest.er1
6322 grep -v '^ *+' conftest.er1 >conftest.err
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6328 { (case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_try") 2>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; } &&
6337 { ac_try='test -s conftest.$ac_objext'
6338 { (case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_try") 2>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_cv_prog_cc_c89=$ac_arg
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6355 rm -f core conftest.err conftest.$ac_objext
6356 test "x$ac_cv_prog_cc_c89" != "xno" && break
6358 rm -f conftest.$ac_ext
6363 case "x$ac_cv_prog_cc_c89" in
6365 { echo "$as_me:$LINENO: result: none needed" >&5
6366 echo "${ECHO_T}none needed" >&6; } ;;
6368 { echo "$as_me:$LINENO: result: unsupported" >&5
6369 echo "${ECHO_T}unsupported" >&6; } ;;
6371 CC="$CC $ac_cv_prog_cc_c89"
6372 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6373 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6378 ac_cpp='$CPP $CPPFLAGS'
6379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6384 ac_cpp='$CXXCPP $CPPFLAGS'
6385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6388 if test -z "$CXX"; then
6389 if test -n "$CCC"; then
6392 if test -n "$ac_tool_prefix"; then
6395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_prog_CXX+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 if test -n "$CXX"; then
6403 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 if test -n "$CXX"; then
6424 { echo "$as_me:$LINENO: result: $CXX" >&5
6425 echo "${ECHO_T}$CXX" >&6; }
6427 { echo "$as_me:$LINENO: result: no" >&5
6428 echo "${ECHO_T}no" >&6; }
6432 test -n "$CXX" && break
6435 if test -z "$CXX"; then
6439 # Extract the first word of "$ac_prog", so it can be a program name with args.
6440 set dummy $ac_prog; ac_word=$2
6441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6446 if test -n "$ac_ct_CXX"; then
6447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_ac_ct_CXX="$ac_prog"
6457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6467 if test -n "$ac_ct_CXX"; then
6468 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6469 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6471 { echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6; }
6476 test -n "$ac_ct_CXX" && break
6479 if test "x$ac_ct_CXX" = x; then
6482 case $cross_compiling:$ac_tool_warned in
6484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6485 whose name does not start with the host triplet. If you think this
6486 configuration is useful to you, please write to autoconf@gnu.org." >&5
6487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6488 whose name does not start with the host triplet. If you think this
6489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6490 ac_tool_warned=yes ;;
6498 # Provide some information about the compiler.
6499 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6500 ac_compiler=`set X $ac_compile; echo $2`
6501 { (ac_try="$ac_compiler --version >&5"
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compiler --version >&5") 2>&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }
6511 { (ac_try="$ac_compiler -v >&5"
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_compiler -v >&5") 2>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }
6521 { (ac_try="$ac_compiler -V >&5"
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_compiler -V >&5") 2>&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }
6532 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6533 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6534 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6555 rm -f conftest.$ac_objext
6556 if { (ac_try="$ac_compile"
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 (eval "$ac_compile") 2>conftest.er1
6564 grep -v '^ *+' conftest.er1 >conftest.err
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6570 { (case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_try") 2>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try='test -s conftest.$ac_objext'
6580 { (case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_try") 2>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6601 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6602 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6603 GXX=`test $ac_compiler_gnu = yes && echo yes`
6604 ac_test_CXXFLAGS=${CXXFLAGS+set}
6605 ac_save_CXXFLAGS=$CXXFLAGS
6606 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6607 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_cxx_g+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6612 ac_cxx_werror_flag=yes
6615 cat >conftest.$ac_ext <<_ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6630 rm -f conftest.$ac_objext
6631 if { (ac_try="$ac_compile"
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_compile") 2>conftest.er1
6639 grep -v '^ *+' conftest.er1 >conftest.err
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6645 { (case "(($ac_try" in
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650 (eval "$ac_try") 2>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; } &&
6654 { ac_try='test -s conftest.$ac_objext'
6655 { (case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_try") 2>&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 ac_cv_prog_cxx_g=yes
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6685 rm -f conftest.$ac_objext
6686 if { (ac_try="$ac_compile"
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692 (eval "$ac_compile") 2>conftest.er1
6694 grep -v '^ *+' conftest.er1 >conftest.err
6696 cat conftest.err >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6700 { (case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_try") 2>&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest.$ac_objext'
6710 { (case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_try") 2>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6726 cat >conftest.$ac_ext <<_ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6741 rm -f conftest.$ac_objext
6742 if { (ac_try="$ac_compile"
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_compile") 2>conftest.er1
6750 grep -v '^ *+' conftest.er1 >conftest.err
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6756 { (case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_try") 2>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try='test -s conftest.$ac_objext'
6766 { (case "(($ac_try" in
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771 (eval "$ac_try") 2>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_prog_cxx_g=yes
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6792 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6793 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6794 if test "$ac_test_CXXFLAGS" = set; then
6795 CXXFLAGS=$ac_save_CXXFLAGS
6796 elif test $ac_cv_prog_cxx_g = yes; then
6797 if test "$GXX" = yes; then
6803 if test "$GXX" = yes; then
6810 ac_cpp='$CPP $CPPFLAGS'
6811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6816 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6817 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6818 if test "${lt_cv_path_NM+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 if test -n "$NM"; then
6822 # Let the user override the test.
6825 lt_nm_to_check="${ac_tool_prefix}nm"
6826 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6827 lt_nm_to_check="$lt_nm_to_check nm"
6829 for lt_tmp_nm in $lt_nm_to_check; do
6830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6831 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6833 test -z "$ac_dir" && ac_dir=.
6834 tmp_nm="$ac_dir/$lt_tmp_nm"
6835 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6836 # Check to see if the nm accepts a BSD-compat flag.
6837 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6838 # nm: unknown option "B" ignored
6839 # Tru64's nm complains that /dev/null is an invalid object file
6840 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6841 */dev/null* | *'Invalid file or object type'*)
6842 lt_cv_path_NM="$tmp_nm -B"
6846 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6848 lt_cv_path_NM="$tmp_nm -p"
6852 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6853 continue # so that we can try to find one that supports BSD flags
6862 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6865 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6866 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6871 { echo "$as_me:$LINENO: checking for GNU make" >&5
6872 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6873 if test "${llvm_cv_gnu_make_command+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 llvm_cv_gnu_make_command=''
6877 for a in "$MAKE" make gmake gnumake ; do
6878 if test -z "$a" ; then continue ; fi ;
6879 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6881 llvm_cv_gnu_make_command=$a ;
6886 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6887 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6888 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6892 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6893 echo "${ECHO_T}\"Not found\"" >&6; };
6897 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6898 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6900 if test "$LN_S" = "ln -s"; then
6901 { echo "$as_me:$LINENO: result: yes" >&5
6902 echo "${ECHO_T}yes" >&6; }
6904 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6905 echo "${ECHO_T}no, using $LN_S" >&6; }
6908 # Extract the first word of "cmp", so it can be a program name with args.
6909 set dummy cmp; ac_word=$2
6910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912 if test "${ac_cv_path_CMP+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6940 if test -n "$CMP"; then
6941 { echo "$as_me:$LINENO: result: $CMP" >&5
6942 echo "${ECHO_T}$CMP" >&6; }
6944 { echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6; }
6949 # Extract the first word of "cp", so it can be a program name with args.
6950 set dummy cp; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_CP+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6981 if test -n "$CP"; then
6982 { echo "$as_me:$LINENO: result: $CP" >&5
6983 echo "${ECHO_T}$CP" >&6; }
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6990 # Extract the first word of "date", so it can be a program name with args.
6991 set dummy date; ac_word=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_path_DATE+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7021 DATE=$ac_cv_path_DATE
7022 if test -n "$DATE"; then
7023 { echo "$as_me:$LINENO: result: $DATE" >&5
7024 echo "${ECHO_T}$DATE" >&6; }
7026 { echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6; }
7031 # Extract the first word of "find", so it can be a program name with args.
7032 set dummy find; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_path_FIND+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7062 FIND=$ac_cv_path_FIND
7063 if test -n "$FIND"; then
7064 { echo "$as_me:$LINENO: result: $FIND" >&5
7065 echo "${ECHO_T}$FIND" >&6; }
7067 { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7072 # Extract the first word of "grep", so it can be a program name with args.
7073 set dummy grep; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_GREP+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7103 GREP=$ac_cv_path_GREP
7104 if test -n "$GREP"; then
7105 { echo "$as_me:$LINENO: result: $GREP" >&5
7106 echo "${ECHO_T}$GREP" >&6; }
7108 { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7113 # Extract the first word of "mkdir", so it can be a program name with args.
7114 set dummy mkdir; ac_word=$2
7115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7117 if test "${ac_cv_path_MKDIR+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7144 MKDIR=$ac_cv_path_MKDIR
7145 if test -n "$MKDIR"; then
7146 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7147 echo "${ECHO_T}$MKDIR" >&6; }
7149 { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7154 # Extract the first word of "mv", so it can be a program name with args.
7155 set dummy mv; ac_word=$2
7156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158 if test "${ac_cv_path_MV+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7186 if test -n "$MV"; then
7187 { echo "$as_me:$LINENO: result: $MV" >&5
7188 echo "${ECHO_T}$MV" >&6; }
7190 { echo "$as_me:$LINENO: result: no" >&5
7191 echo "${ECHO_T}no" >&6; }
7195 if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7200 if test "${ac_cv_prog_RANLIB+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 if test -n "$RANLIB"; then
7204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 RANLIB=$ac_cv_prog_RANLIB
7224 if test -n "$RANLIB"; then
7225 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7226 echo "${ECHO_T}$RANLIB" >&6; }
7228 { echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6; }
7234 if test -z "$ac_cv_prog_RANLIB"; then
7235 ac_ct_RANLIB=$RANLIB
7236 # Extract the first word of "ranlib", so it can be a program name with args.
7237 set dummy ranlib; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 if test -n "$ac_ct_RANLIB"; then
7244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_ac_ct_RANLIB="ranlib"
7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7264 if test -n "$ac_ct_RANLIB"; then
7265 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7266 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7268 { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7272 if test "x$ac_ct_RANLIB" = x; then
7275 case $cross_compiling:$ac_tool_warned in
7277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7278 whose name does not start with the host triplet. If you think this
7279 configuration is useful to you, please write to autoconf@gnu.org." >&5
7280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7281 whose name does not start with the host triplet. If you think this
7282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7283 ac_tool_warned=yes ;;
7285 RANLIB=$ac_ct_RANLIB
7288 RANLIB="$ac_cv_prog_RANLIB"
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}ar; ac_word=$2
7294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296 if test "${ac_cv_prog_AR+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 if test -n "$AR"; then
7300 ac_cv_prog_AR="$AR" # Let the user override the test.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_prog_AR="${ac_tool_prefix}ar"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 if test -n "$AR"; then
7321 { echo "$as_me:$LINENO: result: $AR" >&5
7322 echo "${ECHO_T}$AR" >&6; }
7324 { echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6; }
7330 if test -z "$ac_cv_prog_AR"; then
7332 # Extract the first word of "ar", so it can be a program name with args.
7333 set dummy ar; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 if test -n "$ac_ct_AR"; then
7340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_ac_ct_AR="ar"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7360 if test -n "$ac_ct_AR"; then
7361 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7362 echo "${ECHO_T}$ac_ct_AR" >&6; }
7364 { echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6; }
7368 if test "x$ac_ct_AR" = x; then
7371 case $cross_compiling:$ac_tool_warned in
7373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7374 whose name does not start with the host triplet. If you think this
7375 configuration is useful to you, please write to autoconf@gnu.org." >&5
7376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7377 whose name does not start with the host triplet. If you think this
7378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7379 ac_tool_warned=yes ;;
7387 # Extract the first word of "rm", so it can be a program name with args.
7388 set dummy rm; ac_word=$2
7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391 if test "${ac_cv_path_RM+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7419 if test -n "$RM"; then
7420 { echo "$as_me:$LINENO: result: $RM" >&5
7421 echo "${ECHO_T}$RM" >&6; }
7423 { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7428 # Extract the first word of "sed", so it can be a program name with args.
7429 set dummy sed; ac_word=$2
7430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7432 if test "${ac_cv_path_SED+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7460 if test -n "$SED"; then
7461 { echo "$as_me:$LINENO: result: $SED" >&5
7462 echo "${ECHO_T}$SED" >&6; }
7464 { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7469 # Extract the first word of "tar", so it can be a program name with args.
7470 set dummy tar; ac_word=$2
7471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473 if test "${ac_cv_path_TAR+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7488 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7501 if test -n "$TAR"; then
7502 { echo "$as_me:$LINENO: result: $TAR" >&5
7503 echo "${ECHO_T}$TAR" >&6; }
7505 { echo "$as_me:$LINENO: result: no" >&5
7506 echo "${ECHO_T}no" >&6; }
7510 # Extract the first word of "pwd", so it can be a program name with args.
7511 set dummy pwd; ac_word=$2
7512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514 if test "${ac_cv_path_BINPWD+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7541 BINPWD=$ac_cv_path_BINPWD
7542 if test -n "$BINPWD"; then
7543 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7544 echo "${ECHO_T}$BINPWD" >&6; }
7546 { echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6; }
7552 # Extract the first word of "Graphviz", so it can be a program name with args.
7553 set dummy Graphviz; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7583 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7584 if test -n "$GRAPHVIZ"; then
7585 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7586 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7588 { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7593 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_GRAPHVIZ 1
7599 if test "$llvm_cv_os_type" = "MingW" ; then
7600 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7603 cat >>confdefs.h <<_ACEOF
7604 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7608 # Extract the first word of "dot", so it can be a program name with args.
7609 set dummy dot; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_DOT+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7640 if test -n "$DOT"; then
7641 { echo "$as_me:$LINENO: result: $DOT" >&5
7642 echo "${ECHO_T}$DOT" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 if test "$DOT" != "echo dot" ; then
7651 cat >>confdefs.h <<\_ACEOF
7655 if test "$llvm_cv_os_type" = "MingW" ; then
7656 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7659 cat >>confdefs.h <<_ACEOF
7660 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7664 # Extract the first word of "fdp", so it can be a program name with args.
7665 set dummy fdp; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_FDP+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7696 if test -n "$FDP"; then
7697 { echo "$as_me:$LINENO: result: $FDP" >&5
7698 echo "${ECHO_T}$FDP" >&6; }
7700 { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7705 if test "$FDP" != "echo fdp" ; then
7707 cat >>confdefs.h <<\_ACEOF
7711 if test "$llvm_cv_os_type" = "MingW" ; then
7712 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7715 cat >>confdefs.h <<_ACEOF
7716 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7720 # Extract the first word of "neato", so it can be a program name with args.
7721 set dummy neato; ac_word=$2
7722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7724 if test "${ac_cv_path_NEATO+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7751 NEATO=$ac_cv_path_NEATO
7752 if test -n "$NEATO"; then
7753 { echo "$as_me:$LINENO: result: $NEATO" >&5
7754 echo "${ECHO_T}$NEATO" >&6; }
7756 { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7761 if test "$NEATO" != "echo neato" ; then
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_NEATO 1
7767 if test "$llvm_cv_os_type" = "MingW" ; then
7768 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7771 cat >>confdefs.h <<_ACEOF
7772 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7776 # Extract the first word of "twopi", so it can be a program name with args.
7777 set dummy twopi; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_path_TWOPI+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7807 TWOPI=$ac_cv_path_TWOPI
7808 if test -n "$TWOPI"; then
7809 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7810 echo "${ECHO_T}$TWOPI" >&6; }
7812 { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7817 if test "$TWOPI" != "echo twopi" ; then
7819 cat >>confdefs.h <<\_ACEOF
7820 #define HAVE_TWOPI 1
7823 if test "$llvm_cv_os_type" = "MingW" ; then
7824 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7827 cat >>confdefs.h <<_ACEOF
7828 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7832 # Extract the first word of "circo", so it can be a program name with args.
7833 set dummy circo; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_path_CIRCO+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7863 CIRCO=$ac_cv_path_CIRCO
7864 if test -n "$CIRCO"; then
7865 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7866 echo "${ECHO_T}$CIRCO" >&6; }
7868 { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7873 if test "$CIRCO" != "echo circo" ; then
7875 cat >>confdefs.h <<\_ACEOF
7876 #define HAVE_CIRCO 1
7879 if test "$llvm_cv_os_type" = "MingW" ; then
7880 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7883 cat >>confdefs.h <<_ACEOF
7884 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7888 for ac_prog in gv gsview32
7890 # Extract the first word of "$ac_prog", so it can be a program name with args.
7891 set dummy $ac_prog; ac_word=$2
7892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7894 if test "${ac_cv_path_GV+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 if test -n "$GV"; then
7922 { echo "$as_me:$LINENO: result: $GV" >&5
7923 echo "${ECHO_T}$GV" >&6; }
7925 { echo "$as_me:$LINENO: result: no" >&5
7926 echo "${ECHO_T}no" >&6; }
7930 test -n "$GV" && break
7932 test -n "$GV" || GV="echo gv"
7934 if test "$GV" != "echo gv" ; then
7936 cat >>confdefs.h <<\_ACEOF
7940 if test "$llvm_cv_os_type" = "MingW" ; then
7941 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7944 cat >>confdefs.h <<_ACEOF
7945 #define LLVM_PATH_GV "$GV${EXEEXT}"
7949 # Extract the first word of "dotty", so it can be a program name with args.
7950 set dummy dotty; ac_word=$2
7951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953 if test "${ac_cv_path_DOTTY+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7968 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7980 DOTTY=$ac_cv_path_DOTTY
7981 if test -n "$DOTTY"; then
7982 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7983 echo "${ECHO_T}$DOTTY" >&6; }
7985 { echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6; }
7990 if test "$DOTTY" != "echo dotty" ; then
7992 cat >>confdefs.h <<\_ACEOF
7993 #define HAVE_DOTTY 1
7996 if test "$llvm_cv_os_type" = "MingW" ; then
7997 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8000 cat >>confdefs.h <<_ACEOF
8001 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
8005 # Extract the first word of "xdot.py", so it can be a program name with args.
8006 set dummy xdot.py; ac_word=$2
8007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8009 if test "${ac_cv_path_XDOT_PY+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8036 XDOT_PY=$ac_cv_path_XDOT_PY
8037 if test -n "$XDOT_PY"; then
8038 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8039 echo "${ECHO_T}$XDOT_PY" >&6; }
8041 { echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6; }
8046 if test "$XDOT_PY" != "echo xdot.py" ; then
8048 cat >>confdefs.h <<\_ACEOF
8049 #define HAVE_XDOT_PY 1
8052 if test "$llvm_cv_os_type" = "MingW" ; then
8053 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8056 cat >>confdefs.h <<_ACEOF
8057 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8063 # Extract the first word of "perl", so it can be a program name with args.
8064 set dummy perl; ac_word=$2
8065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8067 if test "${ac_cv_path_PERL+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8094 PERL=$ac_cv_path_PERL
8095 if test -n "$PERL"; then
8096 { echo "$as_me:$LINENO: result: $PERL" >&5
8097 echo "${ECHO_T}$PERL" >&6; }
8099 { echo "$as_me:$LINENO: result: no" >&5
8100 echo "${ECHO_T}no" >&6; }
8104 if test "$PERL" != "none"; then
8105 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8106 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8107 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8108 { echo "$as_me:$LINENO: result: yes" >&5
8109 echo "${ECHO_T}yes" >&6; }
8112 { echo "$as_me:$LINENO: result: not found" >&5
8113 echo "${ECHO_T}not found" >&6; }
8118 if test x"$PERL" = xnone; then
8121 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8122 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8123 { (exit 1); exit 1; }; }
8129 # Find a good install program. We prefer a C program (faster),
8130 # so one script is as good as another. But avoid the broken or
8131 # incompatible versions:
8132 # SysV /etc/install, /usr/sbin/install
8133 # SunOS /usr/etc/install
8134 # IRIX /sbin/install
8136 # AmigaOS /C/install, which installs bootblocks on floppy discs
8137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8140 # OS/2's system install, which has a completely different semantic
8141 # ./install, which can be erroneously created by make from ./install.sh.
8142 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8143 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8144 if test -z "$INSTALL"; then
8145 if test "${ac_cv_path_install+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 test -z "$as_dir" && as_dir=.
8153 # Account for people who put trailing slashes in PATH elements.
8155 ./ | .// | /cC/* | \
8156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8157 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8160 # OSF1 and SCO ODT 3.0 have their own names for install.
8161 # Don't use installbsd from OSF since it installs stuff as root
8163 for ac_prog in ginstall scoinst install; do
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8166 if test $ac_prog = install &&
8167 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8168 # AIX install. It has an incompatible calling convention.
8170 elif test $ac_prog = install &&
8171 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8172 # program-specific install script used by HP pwplus--don't use.
8175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8188 if test "${ac_cv_path_install+set}" = set; then
8189 INSTALL=$ac_cv_path_install
8191 # As a last resort, use the slow shell script. Don't cache a
8192 # value for INSTALL within a source directory, because that will
8193 # break other packages using the cache if that directory is
8194 # removed, or if the value is a relative name.
8195 INSTALL=$ac_install_sh
8198 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8199 echo "${ECHO_T}$INSTALL" >&6; }
8201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8202 # It thinks the first close brace ends the variable substitution.
8203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8210 [\\/$]* | ?:[\\/]* ) ;;
8211 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8214 # Extract the first word of "bzip2", so it can be a program name with args.
8215 set dummy bzip2; ac_word=$2
8216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218 if test "${ac_cv_path_BZIP2+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 BZIP2=$ac_cv_path_BZIP2
8245 if test -n "$BZIP2"; then
8246 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8247 echo "${ECHO_T}$BZIP2" >&6; }
8249 { echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6; }
8254 # Extract the first word of "cat", so it can be a program name with args.
8255 set dummy cat; ac_word=$2
8256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8258 if test "${ac_cv_path_CAT+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 if test -n "$CAT"; then
8286 { echo "$as_me:$LINENO: result: $CAT" >&5
8287 echo "${ECHO_T}$CAT" >&6; }
8289 { echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6; }
8294 # Extract the first word of "doxygen", so it can be a program name with args.
8295 set dummy doxygen; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 DOXYGEN=$ac_cv_path_DOXYGEN
8325 if test -n "$DOXYGEN"; then
8326 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8327 echo "${ECHO_T}$DOXYGEN" >&6; }
8329 { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8334 # Extract the first word of "groff", so it can be a program name with args.
8335 set dummy groff; ac_word=$2
8336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8338 if test "${ac_cv_path_GROFF+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 GROFF=$ac_cv_path_GROFF
8365 if test -n "$GROFF"; then
8366 { echo "$as_me:$LINENO: result: $GROFF" >&5
8367 echo "${ECHO_T}$GROFF" >&6; }
8369 { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8374 # Extract the first word of "gzip", so it can be a program name with args.
8375 set dummy gzip; ac_word=$2
8376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8378 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8393 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 GZIPBIN=$ac_cv_path_GZIPBIN
8405 if test -n "$GZIPBIN"; then
8406 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8407 echo "${ECHO_T}$GZIPBIN" >&6; }
8409 { echo "$as_me:$LINENO: result: no" >&5
8410 echo "${ECHO_T}no" >&6; }
8414 # Extract the first word of "pod2html", so it can be a program name with args.
8415 set dummy pod2html; ac_word=$2
8416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418 if test "${ac_cv_path_POD2HTML+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8433 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 POD2HTML=$ac_cv_path_POD2HTML
8445 if test -n "$POD2HTML"; then
8446 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8447 echo "${ECHO_T}$POD2HTML" >&6; }
8449 { echo "$as_me:$LINENO: result: no" >&5
8450 echo "${ECHO_T}no" >&6; }
8454 # Extract the first word of "pod2man", so it can be a program name with args.
8455 set dummy pod2man; ac_word=$2
8456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8458 if test "${ac_cv_path_POD2MAN+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 test -z "$as_dir" && as_dir=.
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8473 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 POD2MAN=$ac_cv_path_POD2MAN
8485 if test -n "$POD2MAN"; then
8486 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8487 echo "${ECHO_T}$POD2MAN" >&6; }
8489 { echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6; }
8494 # Extract the first word of "pdfroff", so it can be a program name with args.
8495 set dummy pdfroff; ac_word=$2
8496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8498 if test "${ac_cv_path_PDFROFF+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8524 PDFROFF=$ac_cv_path_PDFROFF
8525 if test -n "$PDFROFF"; then
8526 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8527 echo "${ECHO_T}$PDFROFF" >&6; }
8529 { echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6; }
8534 # Extract the first word of "runtest", so it can be a program name with args.
8535 set dummy runtest; ac_word=$2
8536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8538 if test "${ac_cv_path_RUNTEST+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8553 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 RUNTEST=$ac_cv_path_RUNTEST
8565 if test -n "$RUNTEST"; then
8566 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8567 echo "${ECHO_T}$RUNTEST" >&6; }
8569 { echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6; }
8576 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8577 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8579 # Check whether --with-tclinclude was given.
8580 if test "${with_tclinclude+set}" = set; then
8581 withval=$with_tclinclude; with_tclinclude=${withval}
8586 if test "${ac_cv_path_tclsh+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 if test x"${with_tclinclude}" != x ; then
8591 if test -f ${with_tclinclude}/tclsh ; then
8592 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8593 elif test -f ${with_tclinclude}/src/tclsh ; then
8594 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8596 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8597 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8598 { (exit 1); exit 1; }; }
8604 if test x"${ac_cv_path_tclsh}" = x ; then
8605 { echo "$as_me:$LINENO: result: none" >&5
8606 echo "${ECHO_T}none" >&6; }
8607 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
8609 # Extract the first word of "$ac_prog", so it can be a program name with args.
8610 set dummy $ac_prog; ac_word=$2
8611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8613 if test "${ac_cv_path_TCLSH+set}" = set; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8628 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 TCLSH=$ac_cv_path_TCLSH
8640 if test -n "$TCLSH"; then
8641 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8642 echo "${ECHO_T}$TCLSH" >&6; }
8644 { echo "$as_me:$LINENO: result: no" >&5
8645 echo "${ECHO_T}no" >&6; }
8649 test -n "$TCLSH" && break
8652 if test x"${TCLSH}" = x ; then
8653 ac_cv_path_tclsh='';
8655 ac_cv_path_tclsh="${TCLSH}";
8658 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8659 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8660 TCLSH="${ac_cv_path_tclsh}"
8664 # Extract the first word of "zip", so it can be a program name with args.
8665 set dummy zip; ac_word=$2
8666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8668 if test "${ac_cv_path_ZIP+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8683 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 if test -n "$ZIP"; then
8696 { echo "$as_me:$LINENO: result: $ZIP" >&5
8697 echo "${ECHO_T}$ZIP" >&6; }
8699 { echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6; }
8704 for ac_prog in ocamlc
8706 # Extract the first word of "$ac_prog", so it can be a program name with args.
8707 set dummy $ac_prog; ac_word=$2
8708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8710 if test "${ac_cv_path_OCAMLC+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722 test -z "$as_dir" && as_dir=.
8723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8725 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8736 OCAMLC=$ac_cv_path_OCAMLC
8737 if test -n "$OCAMLC"; then
8738 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8739 echo "${ECHO_T}$OCAMLC" >&6; }
8741 { echo "$as_me:$LINENO: result: no" >&5
8742 echo "${ECHO_T}no" >&6; }
8746 test -n "$OCAMLC" && break
8749 for ac_prog in ocamlopt
8751 # Extract the first word of "$ac_prog", so it can be a program name with args.
8752 set dummy $ac_prog; ac_word=$2
8753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8755 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767 test -z "$as_dir" && as_dir=.
8768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8770 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 OCAMLOPT=$ac_cv_path_OCAMLOPT
8782 if test -n "$OCAMLOPT"; then
8783 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8784 echo "${ECHO_T}$OCAMLOPT" >&6; }
8786 { echo "$as_me:$LINENO: result: no" >&5
8787 echo "${ECHO_T}no" >&6; }
8791 test -n "$OCAMLOPT" && break
8794 for ac_prog in ocamldep
8796 # Extract the first word of "$ac_prog", so it can be a program name with args.
8797 set dummy $ac_prog; ac_word=$2
8798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8800 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8815 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8826 OCAMLDEP=$ac_cv_path_OCAMLDEP
8827 if test -n "$OCAMLDEP"; then
8828 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8829 echo "${ECHO_T}$OCAMLDEP" >&6; }
8831 { echo "$as_me:$LINENO: result: no" >&5
8832 echo "${ECHO_T}no" >&6; }
8836 test -n "$OCAMLDEP" && break
8839 for ac_prog in ocamldoc
8841 # Extract the first word of "$ac_prog", so it can be a program name with args.
8842 set dummy $ac_prog; ac_word=$2
8843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8845 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 test -z "$as_dir" && as_dir=.
8858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8860 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8871 OCAMLDOC=$ac_cv_path_OCAMLDOC
8872 if test -n "$OCAMLDOC"; then
8873 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8874 echo "${ECHO_T}$OCAMLDOC" >&6; }
8876 { echo "$as_me:$LINENO: result: no" >&5
8877 echo "${ECHO_T}no" >&6; }
8881 test -n "$OCAMLDOC" && break
8884 for ac_prog in gas as
8886 # Extract the first word of "$ac_prog", so it can be a program name with args.
8887 set dummy $ac_prog; ac_word=$2
8888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8890 if test "${ac_cv_path_GAS+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8905 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 if test -n "$GAS"; then
8918 { echo "$as_me:$LINENO: result: $GAS" >&5
8919 echo "${ECHO_T}$GAS" >&6; }
8921 { echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6; }
8926 test -n "$GAS" && break
8930 { echo "$as_me:$LINENO: checking for linker version" >&5
8931 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8932 if test "${llvm_cv_link_version+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 version_string="$(ld -v 2>&1 | head -1)"
8939 if (echo "$version_string" | grep -q "ld64"); then
8940 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8942 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8946 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8947 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8949 cat >>confdefs.h <<_ACEOF
8950 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8955 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8956 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8957 if test "${llvm_cv_link_use_r+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_cpp='$CPP $CPPFLAGS'
8962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8967 CFLAGS="$CFLAGS -Wl,-R."
8968 cat >conftest.$ac_ext <<_ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_link") 2>conftest.er1
8992 grep -v '^ *+' conftest.er1 >conftest.err
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8998 { (case "(($ac_try" in
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003 (eval "$ac_try") 2>&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest$ac_exeext'
9008 { (case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_try") 2>&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 llvm_cv_link_use_r=yes
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 llvm_cv_link_use_r=no
9025 rm -f core conftest.err conftest.$ac_objext \
9026 conftest$ac_exeext conftest.$ac_ext
9029 ac_cpp='$CPP $CPPFLAGS'
9030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9036 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9037 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9038 if test "$llvm_cv_link_use_r" = yes ; then
9040 cat >>confdefs.h <<\_ACEOF
9041 #define HAVE_LINK_R 1
9047 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9048 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9049 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 ac_cpp='$CPP $CPPFLAGS'
9054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9059 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9060 cat >conftest.$ac_ext <<_ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (ac_try="$ac_link"
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082 (eval "$ac_link") 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9090 { (case "(($ac_try" in
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_try") 2>&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try='test -s conftest$ac_exeext'
9100 { (case "(($ac_try" in
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_try") 2>&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 llvm_cv_link_use_export_dynamic=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9114 llvm_cv_link_use_export_dynamic=no
9117 rm -f core conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9121 ac_cpp='$CPP $CPPFLAGS'
9122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9128 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9129 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9130 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9132 cat >>confdefs.h <<\_ACEOF
9133 #define HAVE_LINK_EXPORT_DYNAMIC 1
9139 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9140 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9141 if test "${llvm_cv_link_use_version_script+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 ac_cpp='$CPP $CPPFLAGS'
9146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9152 # The following code is from the autoconf manual,
9153 # "11.13: Limitations of Usual Tools".
9154 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9155 # Use mktemp if possible; otherwise fall back on mkdir,
9156 # with $RANDOM to make collisions less likely.
9160 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9162 test -n "$tmp" && test -d "$tmp"
9164 tmp=$TMPDIR/foo$$-$RANDOM
9165 (umask 077 && mkdir "$tmp")
9168 echo "{" > "$tmp/export.map"
9169 echo " global: main;" >> "$tmp/export.map"
9170 echo " local: *;" >> "$tmp/export.map"
9171 echo "};" >> "$tmp/export.map"
9173 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9174 cat >conftest.$ac_ext <<_ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (ac_try="$ac_link"
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196 (eval "$ac_link") 2>conftest.er1
9198 grep -v '^ *+' conftest.er1 >conftest.err
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9204 { (case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_try") 2>&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; } &&
9213 { ac_try='test -s conftest$ac_exeext'
9214 { (case "(($ac_try" in
9215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216 *) ac_try_echo=$ac_try;;
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219 (eval "$ac_try") 2>&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 llvm_cv_link_use_version_script=yes
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 llvm_cv_link_use_version_script=no
9231 rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233 rm "$tmp/export.map"
9237 ac_cpp='$CPP $CPPFLAGS'
9238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9244 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9245 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9246 if test "$llvm_cv_link_use_version_script" = yes ; then
9247 HAVE_LINK_VERSION_SCRIPT=1
9254 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9255 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9256 if test "${ac_cv_c_const+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 cat >conftest.$ac_ext <<_ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9269 /* FIXME: Include the comments suggested by Paul. */
9271 /* Ultrix mips cc rejects this. */
9272 typedef int charset[2];
9274 /* SunOS 4.1.1 cc rejects this. */
9275 char const *const *ccp;
9277 /* NEC SVR4.0.2 mips cc rejects this. */
9278 struct point {int x, y;};
9279 static struct point const zero = {0,0};
9280 /* AIX XL C 1.02.0.0 rejects this.
9281 It does not let you subtract one const X* pointer from another in
9282 an arm of an if-expression whose if-part is not a constant
9284 const char *g = "string";
9285 ccp = &g + (g ? g-g : 0);
9286 /* HPUX 7.0 cc rejects these. */
9289 ccp = (char const *const *) p;
9290 { /* SCO 3.2v4 cc rejects this. */
9292 char const *s = 0 ? (char *) 0 : (char const *) 0;
9297 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9299 const int *foo = &x[0];
9302 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9303 typedef const int *iptr;
9307 { /* AIX XL C 1.02.0.0 rejects this saying
9308 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9309 struct s { int j; const int *ap[3]; };
9310 struct s *b; b->j = 5;
9312 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9316 return !x[0] && !zero.x;
9323 rm -f conftest.$ac_objext
9324 if { (ac_try="$ac_compile"
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_compile") 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9338 { (case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_try") 2>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; } &&
9347 { ac_try='test -s conftest.$ac_objext'
9348 { (case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_try") 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9368 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9369 if test $ac_cv_c_const = no; then
9371 cat >>confdefs.h <<\_ACEOF
9383 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9384 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9385 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9386 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 #include <sys/types.h>
9408 rm -f conftest.$ac_objext
9409 if { (ac_try="$ac_compile"
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_compile") 2>conftest.er1
9417 grep -v '^ *+' conftest.er1 >conftest.err
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } &&
9422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9423 { (case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_try") 2>&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest.$ac_objext'
9433 { (case "(($ac_try" in
9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_try") 2>&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 eval "$as_ac_Header=yes"
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 eval "$as_ac_Header=no"
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 ac_res=`eval echo '${'$as_ac_Header'}'`
9453 { echo "$as_me:$LINENO: result: $ac_res" >&5
9454 echo "${ECHO_T}$ac_res" >&6; }
9455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9456 cat >>confdefs.h <<_ACEOF
9457 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9460 ac_header_dirent=$ac_hdr; break
9464 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9465 if test $ac_header_dirent = dirent.h; then
9466 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9467 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9468 if test "${ac_cv_search_opendir+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 ac_func_search_save_LIBS=$LIBS
9472 cat >conftest.$ac_ext <<_ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9494 for ac_lib in '' dir; do
9495 if test -z "$ac_lib"; then
9496 ac_res="none required"
9499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (ac_try="$ac_link"
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_link") 2>conftest.er1
9510 grep -v '^ *+' conftest.er1 >conftest.err
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9516 { (case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_try") 2>&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest$ac_exeext'
9526 { (case "(($ac_try" in
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531 (eval "$ac_try") 2>&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_cv_search_opendir=$ac_res
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9543 rm -f core conftest.err conftest.$ac_objext \
9545 if test "${ac_cv_search_opendir+set}" = set; then
9549 if test "${ac_cv_search_opendir+set}" = set; then
9552 ac_cv_search_opendir=no
9555 LIBS=$ac_func_search_save_LIBS
9557 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9558 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9559 ac_res=$ac_cv_search_opendir
9560 if test "$ac_res" != no; then
9561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9566 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9567 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9568 if test "${ac_cv_search_opendir+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 ac_func_search_save_LIBS=$LIBS
9572 cat >conftest.$ac_ext <<_ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9594 for ac_lib in '' x; do
9595 if test -z "$ac_lib"; then
9596 ac_res="none required"
9599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9610 grep -v '^ *+' conftest.er1 >conftest.err
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616 { (case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_try") 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_try") 2>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_cv_search_opendir=$ac_res
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9643 rm -f core conftest.err conftest.$ac_objext \
9645 if test "${ac_cv_search_opendir+set}" = set; then
9649 if test "${ac_cv_search_opendir+set}" = set; then
9652 ac_cv_search_opendir=no
9655 LIBS=$ac_func_search_save_LIBS
9657 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9658 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9659 ac_res=$ac_cv_search_opendir
9660 if test "$ac_res" != no; then
9661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9668 for ac_header in dlfcn.h
9670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 ac_res=`eval echo '${'$as_ac_Header'}'`
9678 { echo "$as_me:$LINENO: result: $ac_res" >&5
9679 echo "${ECHO_T}$ac_res" >&6; }
9681 # Is the header compilable?
9682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9684 cat >conftest.$ac_ext <<_ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 $ac_includes_default
9691 #include <$ac_header>
9693 rm -f conftest.$ac_objext
9694 if { (ac_try="$ac_compile"
9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697 *) ac_try_echo=$ac_try;;
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700 (eval "$ac_compile") 2>conftest.er1
9702 grep -v '^ *+' conftest.er1 >conftest.err
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest.$ac_objext'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_header_compiler=yes
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9732 ac_header_compiler=no
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9737 echo "${ECHO_T}$ac_header_compiler" >&6; }
9739 # Is the header present?
9740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 #include <$ac_header>
9750 if { (ac_try="$ac_cpp conftest.$ac_ext"
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null; then
9763 if test -s conftest.err; then
9764 ac_cpp_err=$ac_c_preproc_warn_flag
9765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9772 if test -z "$ac_cpp_err"; then
9773 ac_header_preproc=yes
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_header_preproc=no
9781 rm -f conftest.err conftest.$ac_ext
9782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 echo "${ECHO_T}$ac_header_preproc" >&6; }
9785 # So? What about this header?
9786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9792 ac_header_preproc=yes
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9808 ## ----------------------------------- ##
9809 ## Report this to llvmbugs@cs.uiuc.edu ##
9810 ## ----------------------------------- ##
9812 ) | sed "s/^/$as_me: WARNING: /" >&2
9815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 eval "$as_ac_Header=\$ac_header_preproc"
9822 ac_res=`eval echo '${'$as_ac_Header'}'`
9823 { echo "$as_me:$LINENO: result: $ac_res" >&5
9824 echo "${ECHO_T}$ac_res" >&6; }
9827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9828 cat >>confdefs.h <<_ACEOF
9829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9836 # Check whether --enable-ltdl-install was given.
9837 if test "${enable_ltdl_install+set}" = set; then
9838 enableval=$enable_ltdl_install;
9844 if test x"${enable_ltdl_install-no}" != xno; then
9846 INSTALL_LTDL_FALSE='#'
9848 INSTALL_LTDL_TRUE='#'
9854 if test x"${enable_ltdl_convenience-no}" != xno; then
9855 CONVENIENCE_LTDL_TRUE=
9856 CONVENIENCE_LTDL_FALSE='#'
9858 CONVENIENCE_LTDL_TRUE='#'
9859 CONVENIENCE_LTDL_FALSE=
9863 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9864 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9866 libname_spec='lib$name'
9874 shlibpath_overrides_runpath=unknown
9876 dynamic_linker="$host_os ld.so"
9877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9878 if test "$GCC" = yes; then
9879 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9880 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9881 # if the path contains ";" then we assume it to be the separator
9882 # otherwise default to the standard path separator (i.e. ":") - it is
9883 # assumed that no part of a normal pathname contains ";" but that should
9884 # okay in the real world where ";" in dirpaths is itself problematic.
9885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9890 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9892 need_lib_prefix=unknown
9893 hardcode_into_libs=no
9895 # when you set need_version to no, make sure it does not cause -set_version
9896 # flags to be left without arguments
9897 need_version=unknown
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9903 shlibpath_var=LIBPATH
9905 # AIX 3 has no versioning support, so we append a major version to the name.
9906 soname_spec='${libname}${release}${shared_ext}$major'
9913 hardcode_into_libs=yes
9914 if test "$host_cpu" = ia64; then
9915 # AIX 5 supports IA64
9916 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9917 shlibpath_var=LD_LIBRARY_PATH
9919 # With GCC up to 2.95.x, collect2 would create an import file
9920 # for dependence libraries. The import file would start with
9921 # the line `#! .'. This would cause the generated library to
9922 # depend on `.', always an invalid library. This was fixed in
9923 # development snapshots of GCC prior to 3.0.
9925 aix4 | aix4.[01] | aix4.[01].*)
9926 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9928 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9935 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9936 # soname into executable. Probably we can add versioning support to
9937 # collect2, so additional links can be useful in future.
9938 if test "$aix_use_runtimelinking" = yes; then
9939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9940 # instead of lib<name>.a to let people know that these are not
9941 # typical AIX shared libraries.
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944 # We preserve .a as extension for shared libraries through AIX4.2
9945 # and later when we are not doing run time linking.
9946 library_names_spec='${libname}${release}.a $libname.a'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9949 shlibpath_var=LIBPATH
9954 library_names_spec='$libname.ixlibrary $libname.a'
9955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9956 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'
9960 library_names_spec='${libname}${shared_ext}'
9961 dynamic_linker="$host_os ld.so"
9962 shlibpath_var=LIBRARY_PATH
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9971 shlibpath_var=LD_LIBRARY_PATH
9972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9974 # the default ld.so.conf also contains /usr/contrib/lib and
9975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9976 # libtool to hard-code these into programs
9979 cygwin* | mingw* | pw32*)
9980 version_type=windows
9985 case $GCC,$host_os in
9986 yes,cygwin* | yes,mingw* | yes,pw32*)
9987 library_names_spec='$libname.dll.a'
9988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9989 postinstall_cmds='base_file=`basename \${file}`~
9990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9991 dldir=$destdir/`dirname \$dlpath`~
9992 test -d \$dldir || mkdir -p \$dldir~
9993 $install_prog $dir/$dlname \$dldir/$dlname~
9994 chmod a+x \$dldir/$dlname'
9995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9996 dlpath=$dir/\$dldll~
9998 shlibpath_overrides_runpath=yes
10002 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10004 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10007 # MinGW DLLs use traditional 'lib' prefix
10008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10010 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10011 # It is most probably a Windows format PATH printed by
10012 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10013 # path with ; separators, and with drive letters. We can handle the
10014 # drive letters (cygwin fileutils understands them), so leave them,
10015 # especially as we might pass files found there to a mingw objdump,
10016 # which wouldn't understand a cygwinified path. Ahh.
10017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10023 # pw32 DLLs use 'pw' prefix rather than 'lib'
10024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10030 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10033 dynamic_linker='Win32 ld.exe'
10034 # FIXME: first we should search . and the directory the executable is in
10038 darwin* | rhapsody*)
10039 dynamic_linker="$host_os dyld"
10040 version_type=darwin
10043 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10044 soname_spec='${libname}${release}${major}$shared_ext'
10045 shlibpath_overrides_runpath=yes
10046 shlibpath_var=DYLD_LIBRARY_PATH
10047 shrext_cmds='.dylib'
10048 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10049 if test "$GCC" = yes; then
10050 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"`
10052 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10054 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 shlibpath_var=LD_LIBRARY_PATH
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=no
10078 hardcode_into_libs=yes
10079 dynamic_linker='GNU ld.so'
10082 freebsd* | dragonfly*)
10083 # DragonFly does not have aout. When/if they implement a new
10084 # versioning mechanism, adjust this.
10085 if test -x /usr/bin/objformat; then
10086 objformat=`/usr/bin/objformat`
10089 freebsd[123]*) objformat=aout ;;
10090 *) objformat=elf ;;
10093 version_type=freebsd-$objformat
10094 case $version_type in
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10105 shlibpath_var=LD_LIBRARY_PATH
10108 shlibpath_overrides_runpath=yes
10110 freebsd3.[01]* | freebsdelf3.[01]*)
10111 shlibpath_overrides_runpath=yes
10112 hardcode_into_libs=yes
10114 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10115 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10116 shlibpath_overrides_runpath=no
10117 hardcode_into_libs=yes
10119 freebsd*) # from 4.6 on
10120 shlibpath_overrides_runpath=yes
10121 hardcode_into_libs=yes
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 hardcode_into_libs=yes
10136 hpux9* | hpux10* | hpux11*)
10137 # Give a soname corresponding to the major version so that dld.sl refuses to
10138 # link against other versions.
10145 hardcode_into_libs=yes
10146 dynamic_linker="$host_os dld.so"
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 soname_spec='${libname}${release}${shared_ext}$major'
10151 if test "X$HPUX_IA64_MODE" = X32; then
10152 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10154 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10160 hardcode_into_libs=yes
10161 dynamic_linker="$host_os dld.sl"
10162 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10171 dynamic_linker="$host_os dld.sl"
10172 shlibpath_var=SHLIB_PATH
10173 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10178 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10179 postinstall_cmds='chmod 555 $lib'
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=no
10191 hardcode_into_libs=yes
10194 irix5* | irix6* | nonstopux*)
10196 nonstopux*) version_type=nonstopux ;;
10198 if test "$lt_cv_prog_gnu_ld" = yes; then
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10209 irix5* | nonstopux*)
10210 libsuff= shlibsuff=
10213 case $LD in # libtool.m4 will add one of these switches to LD
10214 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10215 libsuff= shlibsuff= libmagic=32-bit;;
10216 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10217 libsuff=32 shlibsuff=N32 libmagic=N32;;
10218 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10219 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10220 *) libsuff= shlibsuff= libmagic=never-match;;
10224 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10225 shlibpath_overrides_runpath=no
10226 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10227 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10228 hardcode_into_libs=yes
10231 # No shared lib support for Linux oldld, aout, or coff.
10232 linux*oldld* | linux*aout* | linux*coff*)
10236 # This must be Linux ELF.
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 # This implies no fast_install, which is unacceptable.
10247 # Some rework will be needed to allow for fast_install
10248 # before this can be enabled.
10249 hardcode_into_libs=yes
10251 # Append ld.so.conf contents to the search path
10252 if test -f /etc/ld.so.conf; then
10253 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' ' '`
10254 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10257 # We used to test for /lib/ld.so.1 and disable shared libraries on
10258 # powerpc, because MkLinux only supported shared libraries with the
10259 # GNU dynamic linker. Since this was broken with cross compilers,
10260 # most powerpc-linux boxes support dynamic linking these days and
10261 # people can always --disable-shared, the test was removed, and we
10262 # assume the GNU/Linux dynamic linker is in use.
10263 dynamic_linker='GNU/Linux ld.so'
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 shlibpath_overrides_runpath=no
10274 hardcode_into_libs=yes
10275 dynamic_linker='GNU ld.so'
10282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10285 dynamic_linker='NetBSD (a.out) ld.so'
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 dynamic_linker='NetBSD ld.elf_so'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10293 hardcode_into_libs=yes
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=yes
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 shlibpath_overrides_runpath=yes
10315 sys_lib_dlsearch_path_spec="/usr/lib"
10317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10320 *) need_version=no ;;
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10327 openbsd2.[89] | openbsd2.[89].*)
10328 shlibpath_overrides_runpath=no
10331 shlibpath_overrides_runpath=yes
10335 shlibpath_overrides_runpath=yes
10340 libname_spec='$name'
10343 library_names_spec='$libname${shared_ext} $libname.a'
10344 dynamic_linker='OS/2 ld.exe'
10345 shlibpath_var=LIBPATH
10348 osf3* | osf4* | osf5*)
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=yes
10367 hardcode_into_libs=yes
10368 # ldd complains unless libraries are executable
10369 postinstall_cmds='chmod +x $lib'
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10375 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=yes
10378 if test "$with_gnu_ld" = yes; then
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 case $host_vendor in
10391 shlibpath_overrides_runpath=no
10393 export_dynamic_flag_spec='${wl}-Blargedynsym'
10394 runpath_var=LD_RUN_PATH
10402 shlibpath_overrides_runpath=no
10403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10409 if test -d /usr/nec ;then
10411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10412 soname_spec='$libname${shared_ext}.$major'
10413 shlibpath_var=LD_LIBRARY_PATH
10417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10418 version_type=freebsd-elf
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 hardcode_into_libs=yes
10425 if test "$with_gnu_ld" = yes; then
10426 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10427 shlibpath_overrides_runpath=no
10429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10430 shlibpath_overrides_runpath=yes
10433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10437 sys_lib_dlsearch_path_spec='/usr/lib'
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 shlibpath_var=LD_LIBRARY_PATH
10451 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10452 echo "${ECHO_T}$dynamic_linker" >&6; }
10453 test "$dynamic_linker" = no && can_build_shared=no
10455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10456 if test "$GCC" = yes; then
10457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10461 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10462 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10463 if test "${libltdl_cv_shlibext+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 eval libltdl_cv_shlibext=$shrext_cmds
10471 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10472 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10473 if test -n "$libltdl_cv_shlibext"; then
10475 cat >>confdefs.h <<_ACEOF
10476 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10482 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10483 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10484 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 libltdl_cv_shlibpath_var="$shlibpath_var"
10489 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10490 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10491 if test -n "$libltdl_cv_shlibpath_var"; then
10493 cat >>confdefs.h <<_ACEOF
10494 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10500 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10501 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10502 if test "${libltdl_cv_sys_search_path+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10507 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10508 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10509 if test -n "$libltdl_cv_sys_search_path"; then
10511 for dir in $libltdl_cv_sys_search_path; do
10512 if test -z "$sys_search_path"; then
10513 sys_search_path="$dir"
10515 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10519 cat >>confdefs.h <<_ACEOF
10520 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10525 { echo "$as_me:$LINENO: checking for objdir" >&5
10526 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10527 if test "${libltdl_cv_objdir+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 libltdl_cv_objdir="$objdir"
10531 if test -n "$objdir"; then
10534 rm -f .libs 2>/dev/null
10535 mkdir .libs 2>/dev/null
10536 if test -d .libs; then
10537 libltdl_cv_objdir=.libs
10539 # MS-DOS does not allow filenames that begin with a dot.
10540 libltdl_cv_objdir=_libs
10542 rmdir .libs 2>/dev/null
10546 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10547 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10549 cat >>confdefs.h <<_ACEOF
10550 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10558 # Check for command to grab the raw symbol name followed by C symbol from nm.
10559 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10560 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10561 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 # These are sane defaults that work on at least a few old systems.
10566 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10568 # Character class describing NM global symbol codes.
10569 symcode='[BCDEGRST]'
10571 # Regexp to match symbols that can be accessed directly from C.
10572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10574 # Transform an extracted symbol line into a proper C declaration
10575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10577 # Transform an extracted symbol line into symbol name and symbol address
10578 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'"
10580 # Define system-specific variables.
10585 cygwin* | mingw* | pw32*)
10586 symcode='[ABCDGISTW]'
10588 hpux*) # Its linker distinguishes data from code symbols
10589 if test "$host_cpu" = ia64; then
10590 symcode='[ABCDEGRST]'
10592 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10593 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'"
10596 if test "$host_cpu" = ia64; then
10597 symcode='[ABCDGIRSTW]'
10598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10599 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'"
10602 irix* | nonstopux*)
10603 symcode='[BCDEGRST]'
10606 symcode='[BCDEGQRST]'
10617 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10625 # Handle CRLF in mingw tool chain
10629 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10633 # If we're using GNU nm, then use its standard symbol codes.
10634 case `$NM -V 2>&1` in
10635 *GNU* | *'with BFD'*)
10636 symcode='[ABCDGIRSTW]' ;;
10639 # Try without a prefix undercore, then with it.
10640 for ac_symprfx in "" "_"; do
10642 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10643 symxfrm="\\1 $ac_symprfx\\2 \\2"
10645 # Write the raw and C identifiers.
10646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10648 # Check to see that the pipe works correctly.
10652 cat > conftest.$ac_ext <<EOF
10657 void nm_test_func(){}
10661 int main(){nm_test_var='a';nm_test_func();return(0);}
10664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10665 (eval $ac_compile) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; then
10669 # Now try to grab the symbols.
10671 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10672 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && test -s "$nlist"; then
10676 # Try sorting and uniquifying the output.
10677 if sort "$nlist" | uniq > "$nlist"T; then
10678 mv -f "$nlist"T "$nlist"
10683 # Make sure that we snagged all the symbols we need.
10684 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10685 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10686 cat <<EOF > conftest.$ac_ext
10692 # Now generate the symbol file.
10693 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10695 cat <<EOF >> conftest.$ac_ext
10696 #if defined (__STDC__) && __STDC__
10697 # define lt_ptr_t void *
10699 # define lt_ptr_t char *
10703 /* The mapping between symbol names and symbols. */
10708 lt_preloaded_symbols[] =
10711 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10712 cat <<\EOF >> conftest.$ac_ext
10720 # Now try linking the two files.
10721 mv conftest.$ac_objext conftstm.$ac_objext
10722 lt_save_LIBS="$LIBS"
10723 lt_save_CFLAGS="$CFLAGS"
10724 LIBS="conftstm.$ac_objext"
10725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10733 LIBS="$lt_save_LIBS"
10734 CFLAGS="$lt_save_CFLAGS"
10736 echo "cannot find nm_test_func in $nlist" >&5
10739 echo "cannot find nm_test_var in $nlist" >&5
10742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10745 echo "$progname: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10748 rm -f conftest* conftst*
10750 # Do not use the global_symbol_pipe unless it works.
10751 if test "$pipe_works" = yes; then
10754 lt_cv_sys_global_symbol_pipe=
10760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10761 lt_cv_sys_global_symbol_to_cdecl=
10763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10764 { echo "$as_me:$LINENO: result: failed" >&5
10765 echo "${ECHO_T}failed" >&6; }
10767 { echo "$as_me:$LINENO: result: ok" >&5
10768 echo "${ECHO_T}ok" >&6; }
10772 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10773 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10774 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10778 libltdl_cv_preloaded_symbols=yes
10780 libltdl_cv_preloaded_symbols=no
10784 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10785 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10786 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10788 cat >>confdefs.h <<\_ACEOF
10789 #define HAVE_PRELOADED_SYMBOLS 1
10797 ac_cpp='$CPP $CPPFLAGS'
10798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10803 { echo "$as_me:$LINENO: checking for shl_load" >&5
10804 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10805 if test "${ac_cv_func_shl_load+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 cat >conftest.$ac_ext <<_ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10816 #define shl_load innocuous_shl_load
10818 /* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char shl_load (); below.
10820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821 <limits.h> exists even on freestanding compilers. */
10824 # include <limits.h>
10826 # include <assert.h>
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10838 /* The GNU C library defines this for functions which it implements
10839 to always fail with ENOSYS. Some functions are actually named
10840 something starting with __ and the normal name is an alias. */
10841 #if defined __stub_shl_load || defined __stub___shl_load
10848 return shl_load ();
10853 rm -f conftest.$ac_objext conftest$ac_exeext
10854 if { (ac_try="$ac_link"
10855 case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_link") 2>conftest.er1
10862 grep -v '^ *+' conftest.er1 >conftest.err
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_cv_func_shl_load=yes
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ac_cv_func_shl_load=no
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10898 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10899 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10900 if test $ac_cv_func_shl_load = yes; then
10902 cat >>confdefs.h <<\_ACEOF
10903 #define HAVE_SHL_LOAD 1
10907 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10908 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10909 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 ac_check_lib_save_LIBS=$LIBS
10914 cat >conftest.$ac_ext <<_ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10921 /* Override any GCC internal prototype to avoid an error.
10922 Use char because int might match the return type of a GCC
10923 builtin and then its argument prototype would still apply. */
10931 return shl_load ();
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (ac_try="$ac_link"
10938 case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_link") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 ac_cv_lib_dld_shl_load=yes
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 ac_cv_lib_dld_shl_load=no
10978 rm -f core conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10980 LIBS=$ac_check_lib_save_LIBS
10982 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10983 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10984 if test $ac_cv_lib_dld_shl_load = yes; then
10986 cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_SHL_LOAD 1
10990 LIBADD_DL="$LIBADD_DL -ldld"
10992 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10993 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10994 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 ac_check_lib_save_LIBS=$LIBS
10999 cat >conftest.$ac_ext <<_ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (ac_try="$ac_link"
11023 case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_link") 2>conftest.er1
11030 grep -v '^ *+' conftest.er1 >conftest.err
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_lib_dl_dlopen=yes
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 ac_cv_lib_dl_dlopen=no
11063 rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11068 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11069 if test $ac_cv_lib_dl_dlopen = yes; then
11071 cat >>confdefs.h <<\_ACEOF
11072 #define HAVE_LIBDL 1
11075 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11084 # include <dlfcn.h>
11095 rm -f conftest.$ac_objext conftest$ac_exeext
11096 if { (ac_try="$ac_link"
11097 case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_link") 2>conftest.er1
11104 grep -v '^ *+' conftest.er1 >conftest.err
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; } &&
11119 { ac_try='test -s conftest$ac_exeext'
11120 { (case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_try") 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11130 cat >>confdefs.h <<\_ACEOF
11131 #define HAVE_LIBDL 1
11133 libltdl_cv_func_dlopen="yes"
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11139 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11140 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 ac_check_lib_save_LIBS=$LIBS
11144 LIBS="-lsvld $LIBS"
11145 cat >conftest.$ac_ext <<_ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11167 rm -f conftest.$ac_objext conftest$ac_exeext
11168 if { (ac_try="$ac_link"
11169 case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_link") 2>conftest.er1
11176 grep -v '^ *+' conftest.er1 >conftest.err
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; } &&
11191 { ac_try='test -s conftest$ac_exeext'
11192 { (case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_try") 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 ac_cv_lib_svld_dlopen=yes
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11206 ac_cv_lib_svld_dlopen=no
11209 rm -f core conftest.err conftest.$ac_objext \
11210 conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11213 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11214 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11215 if test $ac_cv_lib_svld_dlopen = yes; then
11217 cat >>confdefs.h <<\_ACEOF
11218 #define HAVE_LIBDL 1
11221 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11223 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11224 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11225 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 ac_check_lib_save_LIBS=$LIBS
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11247 return dld_link ();
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (ac_try="$ac_link"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_link") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest$ac_exeext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_cv_lib_dld_dld_link=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_cv_lib_dld_dld_link=no
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296 LIBS=$ac_check_lib_save_LIBS
11298 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11299 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11300 if test $ac_cv_lib_dld_dld_link = yes; then
11302 cat >>confdefs.h <<\_ACEOF
11306 LIBADD_DL="$LIBADD_DL -ldld"
11308 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11309 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11310 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11321 #define _dyld_func_lookup innocuous__dyld_func_lookup
11323 /* System header to define __stub macros and hopefully few prototypes,
11324 which can conflict with char _dyld_func_lookup (); below.
11325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11326 <limits.h> exists even on freestanding compilers. */
11329 # include <limits.h>
11331 # include <assert.h>
11334 #undef _dyld_func_lookup
11336 /* Override any GCC internal prototype to avoid an error.
11337 Use char because int might match the return type of a GCC
11338 builtin and then its argument prototype would still apply. */
11342 char _dyld_func_lookup ();
11343 /* The GNU C library defines this for functions which it implements
11344 to always fail with ENOSYS. Some functions are actually named
11345 something starting with __ and the normal name is an alias. */
11346 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11353 return _dyld_func_lookup ();
11358 rm -f conftest.$ac_objext conftest$ac_exeext
11359 if { (ac_try="$ac_link"
11360 case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_link") 2>conftest.er1
11367 grep -v '^ *+' conftest.er1 >conftest.err
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11382 { ac_try='test -s conftest$ac_exeext'
11383 { (case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_try") 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_func__dyld_func_lookup=yes
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 ac_cv_func__dyld_func_lookup=no
11400 rm -f core conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
11403 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11404 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11405 if test $ac_cv_func__dyld_func_lookup = yes; then
11407 cat >>confdefs.h <<\_ACEOF
11408 #define HAVE_DYLD 1
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11434 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11436 lt_save_LIBS="$LIBS"
11437 LIBS="$LIBS $LIBADD_DL"
11439 for ac_func in dlerror
11441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11455 #define $ac_func innocuous_$ac_func
11457 /* System header to define __stub macros and hopefully few prototypes,
11458 which can conflict with char $ac_func (); below.
11459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11460 <limits.h> exists even on freestanding compilers. */
11463 # include <limits.h>
11465 # include <assert.h>
11470 /* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
11477 /* The GNU C library defines this for functions which it implements
11478 to always fail with ENOSYS. Some functions are actually named
11479 something starting with __ and the normal name is an alias. */
11480 #if defined __stub_$ac_func || defined __stub___$ac_func
11487 return $ac_func ();
11492 rm -f conftest.$ac_objext conftest$ac_exeext
11493 if { (ac_try="$ac_link"
11494 case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_link") 2>conftest.er1
11501 grep -v '^ *+' conftest.er1 >conftest.err
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest$ac_exeext'
11517 { (case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_try") 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 eval "$as_ac_var=yes"
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 eval "$as_ac_var=no"
11534 rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11537 ac_res=`eval echo '${'$as_ac_var'}'`
11538 { echo "$as_me:$LINENO: result: $ac_res" >&5
11539 echo "${ECHO_T}$ac_res" >&6; }
11540 if test `eval echo '${'$as_ac_var'}'` = yes; then
11541 cat >>confdefs.h <<_ACEOF
11542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11548 LIBS="$lt_save_LIBS"
11551 ac_cpp='$CPP $CPPFLAGS'
11552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11558 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11559 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11560 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 ac_cv_sys_symbol_underscore=no
11564 cat > conftest.$ac_ext <<EOF
11565 void nm_test_func(){}
11566 int main(){nm_test_func;return 0;}
11568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11569 (eval $ac_compile) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; then
11573 # Now try to grab the symbols.
11574 ac_nlist=conftest.nm
11575 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11576 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } && test -s "$ac_nlist"; then
11580 # See whether the symbols have a leading underscore.
11581 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11582 ac_cv_sys_symbol_underscore=yes
11584 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11587 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11591 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11594 echo "configure: failed program was:" >&5
11600 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11601 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11604 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11605 if test x"$libltdl_cv_func_dlopen" = xyes ||
11606 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11607 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11608 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11609 if test "${libltdl_cv_need_uscore+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 libltdl_cv_need_uscore=unknown
11614 LIBS="$LIBS $LIBADD_DL"
11615 if test "$cross_compiling" = yes; then :
11616 libltdl_cv_need_uscore=cross
11618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11619 lt_status=$lt_dlunknown
11620 cat > conftest.$ac_ext <<EOF
11621 #line 11621 "configure"
11622 #include "confdefs.h"
11631 # define LT_DLGLOBAL RTLD_GLOBAL
11634 # define LT_DLGLOBAL DL_GLOBAL
11636 # define LT_DLGLOBAL 0
11640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11641 find out it does not work in some platform. */
11642 #ifndef LT_DLLAZY_OR_NOW
11644 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11647 # define LT_DLLAZY_OR_NOW DL_LAZY
11650 # define LT_DLLAZY_OR_NOW RTLD_NOW
11653 # define LT_DLLAZY_OR_NOW DL_NOW
11655 # define LT_DLLAZY_OR_NOW 0
11663 extern "C" void exit (int);
11666 void fnord() { int i=42;}
11669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11670 int status = $lt_dlunknown;
11674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11675 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11676 /* dlclose (self); */
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685 (eval $ac_link) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11689 (./conftest; exit; ) >&5 2>/dev/null
11691 case x$lt_status in
11692 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11693 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11694 x$lt_dlunknown|x*) ;;
11697 # compilation failed
11706 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11707 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11711 if test x"$libltdl_cv_need_uscore" = xyes; then
11713 cat >>confdefs.h <<\_ACEOF
11714 #define NEED_USCORE 1
11720 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11721 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11722 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 # PORTME does your system automatically load deplibs for dlopen?
11726 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11727 # For now, we just catch OSes we know something about -- in the
11728 # future, we'll try test this programmatically.
11729 libltdl_cv_sys_dlopen_deplibs=unknown
11731 aix3*|aix4.1.*|aix4.2.*)
11732 # Unknown whether this is true for these versions of AIX, but
11733 # we want this `case' here to explicitly catch those versions.
11734 libltdl_cv_sys_dlopen_deplibs=unknown
11737 libltdl_cv_sys_dlopen_deplibs=yes
11740 # Assuming the user has installed a libdl from somewhere, this is true
11741 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11742 libltdl_cv_sys_dlopen_deplibs=yes
11744 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11745 # GNU and its variants, using gnu ld.so (Glibc)
11746 libltdl_cv_sys_dlopen_deplibs=yes
11749 libltdl_cv_sys_dlopen_deplibs=yes
11752 libltdl_cv_sys_dlopen_deplibs=yes
11754 irix[12345]*|irix6.[01]*)
11755 # Catch all versions of IRIX before 6.2, and indicate that we don't
11756 # know how it worked for any of those versions.
11757 libltdl_cv_sys_dlopen_deplibs=unknown
11760 # The case above catches anything before 6.2, and it's known that
11761 # at 6.2 and later dlopen does load deplibs.
11762 libltdl_cv_sys_dlopen_deplibs=yes
11765 libltdl_cv_sys_dlopen_deplibs=yes
11768 libltdl_cv_sys_dlopen_deplibs=yes
11771 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11772 # it did *not* use an RPATH in a shared library to find objects the
11773 # library depends on, so we explicitly say `no'.
11774 libltdl_cv_sys_dlopen_deplibs=no
11776 osf5.0|osf5.0a|osf5.1)
11777 # dlopen *does* load deplibs and with the right loader patch applied
11778 # it even uses RPATH in a shared library to search for shared objects
11779 # that the library depends on, but there's no easy way to know if that
11780 # patch is installed. Since this is the case, all we can really
11781 # say is unknown -- it depends on the patch being installed. If
11782 # it is, this changes to `yes'. Without it, it would be `no'.
11783 libltdl_cv_sys_dlopen_deplibs=unknown
11786 # the two cases above should catch all versions of osf <= 5.1. Read
11787 # the comments above for what we know about them.
11788 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11789 # is used to find them so we can finally say `yes'.
11790 libltdl_cv_sys_dlopen_deplibs=yes
11793 libltdl_cv_sys_dlopen_deplibs=yes
11795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11796 libltdl_cv_sys_dlopen_deplibs=yes
11801 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11802 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11803 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11805 cat >>confdefs.h <<\_ACEOF
11806 #define LTDL_DLOPEN_DEPLIBS 1
11812 for ac_header in argz.h
11814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 ac_res=`eval echo '${'$as_ac_Header'}'`
11822 { echo "$as_me:$LINENO: result: $ac_res" >&5
11823 echo "${ECHO_T}$ac_res" >&6; }
11825 # Is the header compilable?
11826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 $ac_includes_default
11835 #include <$ac_header>
11837 rm -f conftest.$ac_objext
11838 if { (ac_try="$ac_compile"
11839 case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_compile") 2>conftest.er1
11846 grep -v '^ *+' conftest.er1 >conftest.err
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } &&
11851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11852 { (case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_try") 2>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; } &&
11861 { ac_try='test -s conftest.$ac_objext'
11862 { (case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_try") 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 ac_header_compiler=yes
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11876 ac_header_compiler=no
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11881 echo "${ECHO_T}$ac_header_compiler" >&6; }
11883 # Is the header present?
11884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11886 cat >conftest.$ac_ext <<_ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 #include <$ac_header>
11894 if { (ac_try="$ac_cpp conftest.$ac_ext"
11895 case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11902 grep -v '^ *+' conftest.er1 >conftest.err
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } >/dev/null; then
11907 if test -s conftest.err; then
11908 ac_cpp_err=$ac_c_preproc_warn_flag
11909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11916 if test -z "$ac_cpp_err"; then
11917 ac_header_preproc=yes
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_header_preproc=no
11925 rm -f conftest.err conftest.$ac_ext
11926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 echo "${ECHO_T}$ac_header_preproc" >&6; }
11929 # So? What about this header?
11930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11936 ac_header_preproc=yes
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11952 ## ----------------------------------- ##
11953 ## Report this to llvmbugs@cs.uiuc.edu ##
11954 ## ----------------------------------- ##
11956 ) | sed "s/^/$as_me: WARNING: /" >&2
11959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 eval "$as_ac_Header=\$ac_header_preproc"
11966 ac_res=`eval echo '${'$as_ac_Header'}'`
11967 { echo "$as_me:$LINENO: result: $ac_res" >&5
11968 echo "${ECHO_T}$ac_res" >&6; }
11971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11972 cat >>confdefs.h <<_ACEOF
11973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11981 { echo "$as_me:$LINENO: checking for error_t" >&5
11982 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11983 if test "${ac_cv_type_error_t+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11996 typedef error_t ac__type_new_;
12000 if ((ac__type_new_ *) 0)
12002 if (sizeof (ac__type_new_))
12008 rm -f conftest.$ac_objext
12009 if { (ac_try="$ac_compile"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12017 grep -v '^ *+' conftest.er1 >conftest.err
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest.$ac_objext'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_cv_type_error_t=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_cv_type_error_t=no
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12053 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12054 if test $ac_cv_type_error_t = yes; then
12056 cat >>confdefs.h <<_ACEOF
12057 #define HAVE_ERROR_T 1
12063 cat >>confdefs.h <<\_ACEOF
12064 #define error_t int
12075 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 cat >conftest.$ac_ext <<_ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12091 #define $ac_func innocuous_$ac_func
12093 /* System header to define __stub macros and hopefully few prototypes,
12094 which can conflict with char $ac_func (); below.
12095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096 <limits.h> exists even on freestanding compilers. */
12099 # include <limits.h>
12101 # include <assert.h>
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12113 /* The GNU C library defines this for functions which it implements
12114 to always fail with ENOSYS. Some functions are actually named
12115 something starting with __ and the normal name is an alias. */
12116 #if defined __stub_$ac_func || defined __stub___$ac_func
12123 return $ac_func ();
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>conftest.er1
12137 grep -v '^ *+' conftest.er1 >conftest.err
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12143 { (case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_try") 2>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; } &&
12152 { ac_try='test -s conftest$ac_exeext'
12153 { (case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_try") 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 eval "$as_ac_var=yes"
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 eval "$as_ac_var=no"
12170 rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12173 ac_res=`eval echo '${'$as_ac_var'}'`
12174 { echo "$as_me:$LINENO: result: $ac_res" >&5
12175 echo "${ECHO_T}$ac_res" >&6; }
12176 if test `eval echo '${'$as_ac_var'}'` = yes; then
12177 cat >>confdefs.h <<_ACEOF
12178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12211 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 ac_res=`eval echo '${'$as_ac_Header'}'`
12222 { echo "$as_me:$LINENO: result: $ac_res" >&5
12223 echo "${ECHO_T}$ac_res" >&6; }
12225 # Is the header compilable?
12226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12228 cat >conftest.$ac_ext <<_ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 $ac_includes_default
12235 #include <$ac_header>
12237 rm -f conftest.$ac_objext
12238 if { (ac_try="$ac_compile"
12239 case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_compile") 2>conftest.er1
12246 grep -v '^ *+' conftest.er1 >conftest.err
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12252 { (case "(($ac_try" in
12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254 *) ac_try_echo=$ac_try;;
12256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257 (eval "$ac_try") 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; } &&
12261 { ac_try='test -s conftest.$ac_objext'
12262 { (case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_try") 2>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; }; then
12271 ac_header_compiler=yes
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12276 ac_header_compiler=no
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12281 echo "${ECHO_T}$ac_header_compiler" >&6; }
12283 # Is the header present?
12284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12286 cat >conftest.$ac_ext <<_ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 #include <$ac_header>
12294 if { (ac_try="$ac_cpp conftest.$ac_ext"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } >/dev/null; then
12307 if test -s conftest.err; then
12308 ac_cpp_err=$ac_c_preproc_warn_flag
12309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12316 if test -z "$ac_cpp_err"; then
12317 ac_header_preproc=yes
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_header_preproc=no
12325 rm -f conftest.err conftest.$ac_ext
12326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12327 echo "${ECHO_T}$ac_header_preproc" >&6; }
12329 # So? What about this header?
12330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12336 ac_header_preproc=yes
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12352 ## ----------------------------------- ##
12353 ## Report this to llvmbugs@cs.uiuc.edu ##
12354 ## ----------------------------------- ##
12356 ) | sed "s/^/$as_me: WARNING: /" >&2
12359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 eval "$as_ac_Header=\$ac_header_preproc"
12366 ac_res=`eval echo '${'$as_ac_Header'}'`
12367 { echo "$as_me:$LINENO: result: $ac_res" >&5
12368 echo "${ECHO_T}$ac_res" >&6; }
12371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12384 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 ac_res=`eval echo '${'$as_ac_Header'}'`
12394 { echo "$as_me:$LINENO: result: $ac_res" >&5
12395 echo "${ECHO_T}$ac_res" >&6; }
12397 # Is the header compilable?
12398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12400 cat >conftest.$ac_ext <<_ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406 $ac_includes_default
12407 #include <$ac_header>
12409 rm -f conftest.$ac_objext
12410 if { (ac_try="$ac_compile"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_compile") 2>conftest.er1
12418 grep -v '^ *+' conftest.er1 >conftest.err
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12424 { (case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_try") 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest.$ac_objext'
12434 { (case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_try") 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 ac_header_compiler=yes
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 ac_header_compiler=no
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12453 echo "${ECHO_T}$ac_header_compiler" >&6; }
12455 # Is the header present?
12456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12458 cat >conftest.$ac_ext <<_ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12464 #include <$ac_header>
12466 if { (ac_try="$ac_cpp conftest.$ac_ext"
12467 case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12474 grep -v '^ *+' conftest.er1 >conftest.err
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } >/dev/null; then
12479 if test -s conftest.err; then
12480 ac_cpp_err=$ac_c_preproc_warn_flag
12481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12488 if test -z "$ac_cpp_err"; then
12489 ac_header_preproc=yes
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 ac_header_preproc=no
12497 rm -f conftest.err conftest.$ac_ext
12498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12499 echo "${ECHO_T}$ac_header_preproc" >&6; }
12501 # So? What about this header?
12502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12508 ac_header_preproc=yes
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12524 ## ----------------------------------- ##
12525 ## Report this to llvmbugs@cs.uiuc.edu ##
12526 ## ----------------------------------- ##
12528 ) | sed "s/^/$as_me: WARNING: /" >&2
12531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 eval "$as_ac_Header=\$ac_header_preproc"
12538 ac_res=`eval echo '${'$as_ac_Header'}'`
12539 { echo "$as_me:$LINENO: result: $ac_res" >&5
12540 echo "${ECHO_T}$ac_res" >&6; }
12543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12544 cat >>confdefs.h <<_ACEOF
12545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12554 for ac_header in string.h strings.h
12556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 ac_res=`eval echo '${'$as_ac_Header'}'`
12564 { echo "$as_me:$LINENO: result: $ac_res" >&5
12565 echo "${ECHO_T}$ac_res" >&6; }
12567 # Is the header compilable?
12568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12570 cat >conftest.$ac_ext <<_ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12576 $ac_includes_default
12577 #include <$ac_header>
12579 rm -f conftest.$ac_objext
12580 if { (ac_try="$ac_compile"
12581 case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_compile") 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12594 { (case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_try") 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606 *) ac_try_echo=$ac_try;;
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609 (eval "$ac_try") 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 ac_header_compiler=yes
12615 echo "$as_me: failed program was:" >&5
12616 sed 's/^/| /' conftest.$ac_ext >&5
12618 ac_header_compiler=no
12621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12623 echo "${ECHO_T}$ac_header_compiler" >&6; }
12625 # Is the header present?
12626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12628 cat >conftest.$ac_ext <<_ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12634 #include <$ac_header>
12636 if { (ac_try="$ac_cpp conftest.$ac_ext"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } >/dev/null; then
12649 if test -s conftest.err; then
12650 ac_cpp_err=$ac_c_preproc_warn_flag
12651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12658 if test -z "$ac_cpp_err"; then
12659 ac_header_preproc=yes
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ac_header_preproc=no
12667 rm -f conftest.err conftest.$ac_ext
12668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12669 echo "${ECHO_T}$ac_header_preproc" >&6; }
12671 # So? What about this header?
12672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12678 ac_header_preproc=yes
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12688 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12694 ## ----------------------------------- ##
12695 ## Report this to llvmbugs@cs.uiuc.edu ##
12696 ## ----------------------------------- ##
12698 ) | sed "s/^/$as_me: WARNING: /" >&2
12701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 eval "$as_ac_Header=\$ac_header_preproc"
12708 ac_res=`eval echo '${'$as_ac_Header'}'`
12709 { echo "$as_me:$LINENO: result: $ac_res" >&5
12710 echo "${ECHO_T}$ac_res" >&6; }
12713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12714 cat >>confdefs.h <<_ACEOF
12715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12725 for ac_func in strchr index
12727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 cat >conftest.$ac_ext <<_ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12741 #define $ac_func innocuous_$ac_func
12743 /* System header to define __stub macros and hopefully few prototypes,
12744 which can conflict with char $ac_func (); below.
12745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12746 <limits.h> exists even on freestanding compilers. */
12749 # include <limits.h>
12751 # include <assert.h>
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12763 /* The GNU C library defines this for functions which it implements
12764 to always fail with ENOSYS. Some functions are actually named
12765 something starting with __ and the normal name is an alias. */
12766 #if defined __stub_$ac_func || defined __stub___$ac_func
12773 return $ac_func ();
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 eval "$as_ac_var=yes"
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 eval "$as_ac_var=no"
12820 rm -f core conftest.err conftest.$ac_objext \
12821 conftest$ac_exeext conftest.$ac_ext
12823 ac_res=`eval echo '${'$as_ac_var'}'`
12824 { echo "$as_me:$LINENO: result: $ac_res" >&5
12825 echo "${ECHO_T}$ac_res" >&6; }
12826 if test `eval echo '${'$as_ac_var'}'` = yes; then
12827 cat >>confdefs.h <<_ACEOF
12828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12836 for ac_func in strrchr rindex
12838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 cat >conftest.$ac_ext <<_ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12852 #define $ac_func innocuous_$ac_func
12854 /* System header to define __stub macros and hopefully few prototypes,
12855 which can conflict with char $ac_func (); below.
12856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12857 <limits.h> exists even on freestanding compilers. */
12860 # include <limits.h>
12862 # include <assert.h>
12867 /* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
12869 builtin and then its argument prototype would still apply. */
12874 /* The GNU C library defines this for functions which it implements
12875 to always fail with ENOSYS. Some functions are actually named
12876 something starting with __ and the normal name is an alias. */
12877 #if defined __stub_$ac_func || defined __stub___$ac_func
12884 return $ac_func ();
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (ac_try="$ac_link"
12891 case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12898 grep -v '^ *+' conftest.er1 >conftest.err
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest$ac_exeext'
12914 { (case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_try") 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 eval "$as_ac_var=yes"
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12928 eval "$as_ac_var=no"
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12934 ac_res=`eval echo '${'$as_ac_var'}'`
12935 { echo "$as_me:$LINENO: result: $ac_res" >&5
12936 echo "${ECHO_T}$ac_res" >&6; }
12937 if test `eval echo '${'$as_ac_var'}'` = yes; then
12938 cat >>confdefs.h <<_ACEOF
12939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12947 for ac_func in memcpy bcopy
12949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 cat >conftest.$ac_ext <<_ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12963 #define $ac_func innocuous_$ac_func
12965 /* System header to define __stub macros and hopefully few prototypes,
12966 which can conflict with char $ac_func (); below.
12967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12968 <limits.h> exists even on freestanding compilers. */
12971 # include <limits.h>
12973 # include <assert.h>
12978 /* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12985 /* The GNU C library defines this for functions which it implements
12986 to always fail with ENOSYS. Some functions are actually named
12987 something starting with __ and the normal name is an alias. */
12988 #if defined __stub_$ac_func || defined __stub___$ac_func
12995 return $ac_func ();
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (ac_try="$ac_link"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_link") 2>conftest.er1
13009 grep -v '^ *+' conftest.er1 >conftest.err
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13015 { (case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_try") 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; } &&
13024 { ac_try='test -s conftest$ac_exeext'
13025 { (case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_try") 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13034 eval "$as_ac_var=yes"
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13039 eval "$as_ac_var=no"
13042 rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13045 ac_res=`eval echo '${'$as_ac_var'}'`
13046 { echo "$as_me:$LINENO: result: $ac_res" >&5
13047 echo "${ECHO_T}$ac_res" >&6; }
13048 if test `eval echo '${'$as_ac_var'}'` = yes; then
13049 cat >>confdefs.h <<_ACEOF
13050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13058 for ac_func in memmove strcmp
13060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13074 #define $ac_func innocuous_$ac_func
13076 /* System header to define __stub macros and hopefully few prototypes,
13077 which can conflict with char $ac_func (); below.
13078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13079 <limits.h> exists even on freestanding compilers. */
13082 # include <limits.h>
13084 # include <assert.h>
13089 /* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13096 /* The GNU C library defines this for functions which it implements
13097 to always fail with ENOSYS. Some functions are actually named
13098 something starting with __ and the normal name is an alias. */
13099 #if defined __stub_$ac_func || defined __stub___$ac_func
13106 return $ac_func ();
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (ac_try="$ac_link"
13113 case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_link") 2>conftest.er1
13120 grep -v '^ *+' conftest.er1 >conftest.err
13122 cat conftest.err >&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } &&
13125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13126 { (case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_try") 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; } &&
13135 { ac_try='test -s conftest$ac_exeext'
13136 { (case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_try") 2>&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 eval "$as_ac_var=yes"
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 eval "$as_ac_var=no"
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13156 ac_res=`eval echo '${'$as_ac_var'}'`
13157 { echo "$as_me:$LINENO: result: $ac_res" >&5
13158 echo "${ECHO_T}$ac_res" >&6; }
13159 if test `eval echo '${'$as_ac_var'}'` = yes; then
13160 cat >>confdefs.h <<_ACEOF
13161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13170 for ac_func in closedir opendir readdir
13172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 cat >conftest.$ac_ext <<_ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13186 #define $ac_func innocuous_$ac_func
13188 /* System header to define __stub macros and hopefully few prototypes,
13189 which can conflict with char $ac_func (); below.
13190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13191 <limits.h> exists even on freestanding compilers. */
13194 # include <limits.h>
13196 # include <assert.h>
13201 /* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
13208 /* The GNU C library defines this for functions which it implements
13209 to always fail with ENOSYS. Some functions are actually named
13210 something starting with __ and the normal name is an alias. */
13211 #if defined __stub_$ac_func || defined __stub___$ac_func
13218 return $ac_func ();
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_link") 2>conftest.er1
13232 grep -v '^ *+' conftest.er1 >conftest.err
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238 { (case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_try") 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest$ac_exeext'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 eval "$as_ac_var=yes"
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 eval "$as_ac_var=no"
13265 rm -f core conftest.err conftest.$ac_objext \
13266 conftest$ac_exeext conftest.$ac_ext
13268 ac_res=`eval echo '${'$as_ac_var'}'`
13269 { echo "$as_me:$LINENO: result: $ac_res" >&5
13270 echo "${ECHO_T}$ac_res" >&6; }
13271 if test `eval echo '${'$as_ac_var'}'` = yes; then
13272 cat >>confdefs.h <<_ACEOF
13273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13281 if test "$WITH_LLVMGCCDIR" = "default" ; then
13282 LLVMGCC="llvm-gcc${EXEEXT}"
13283 LLVMGXX="llvm-g++${EXEEXT}"
13284 LLVMGCCCOMMAND="$LLVMGCC"
13285 LLVMGXXCOMMAND="$LLVMGXX"
13286 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13288 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13290 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13291 set dummy $LLVMGCC; ac_word=$2
13292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13294 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13309 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 LLVMGCC=$ac_cv_path_LLVMGCC
13321 if test -n "$LLVMGCC"; then
13322 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13323 echo "${ECHO_T}$LLVMGCC" >&6; }
13325 { echo "$as_me:$LINENO: result: no" >&5
13326 echo "${ECHO_T}no" >&6; }
13330 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13331 set dummy $LLVMGXX; ac_word=$2
13332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13334 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13346 test -z "$as_dir" && as_dir=.
13347 for ac_exec_ext in '' $ac_executable_extensions; do
13348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13349 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 LLVMGXX=$ac_cv_path_LLVMGXX
13361 if test -n "$LLVMGXX"; then
13362 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13363 echo "${ECHO_T}$LLVMGXX" >&6; }
13365 { echo "$as_me:$LINENO: result: no" >&5
13366 echo "${ECHO_T}no" >&6; }
13371 if test -z "$LLVMGCC"; then
13372 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13373 LLVMGCCCOMMAND="$LLVMGCC"
13375 if test -z "$LLVMGXX"; then
13376 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13377 LLVMGXXCOMMAND="$LLVMGXX"
13384 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13386 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13391 # Check whether --with-llvmcc was given.
13392 if test "${with_llvmcc+set}" = set; then
13393 withval=$with_llvmcc;
13398 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13399 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13400 if test "$with_llvmcc" != "check"; then
13401 if (test "$with_llvmcc" != "llvm-gcc" &&
13402 test "$with_llvmcc" != "clang" &&
13403 test "$with_llvmcc" != "none"); then
13404 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13405 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13406 { (exit 1); exit 1; }; }
13408 WITH_LLVMCC="$with_llvmcc"
13409 elif test -n "$LLVMGCC"; then
13410 WITH_LLVMCC=llvm-gcc
13411 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13416 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13417 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13418 LLVMCC_OPTION=$WITH_LLVMCC
13421 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13422 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13435 if test "$GCC" != "yes" && test "$ICC" != "yes"
13437 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13438 echo "$as_me: error: gcc|icc required but not found" >&2;}
13439 { (exit 1); exit 1; }; }
13442 if test "$GXX" != "yes" && test "$IXX" != "yes"
13444 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13445 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13446 { (exit 1); exit 1; }; }
13449 if test "$GCC" = "yes"
13451 cat >conftest.$ac_ext <<_ACEOF
13452 #if !defined(__GNUC__) || __GNUC__ < 3
13453 #error Unsupported GCC version
13457 rm -f conftest.$ac_objext
13458 if { (ac_try="$ac_compile"
13459 case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_compile") 2>conftest.er1
13466 grep -v '^ *+' conftest.er1 >conftest.err
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest.$ac_objext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13497 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13498 { (exit 1); exit 1; }; }
13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 if test -z "$llvm_cv_gnu_make_command"
13506 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13507 echo "$as_me: error: GNU Make required but not found" >&2;}
13508 { (exit 1); exit 1; }; }
13511 { echo "$as_me:$LINENO: result: ok" >&5
13512 echo "${ECHO_T}ok" >&6; }
13514 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13515 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13516 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13518 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13520 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13521 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13525 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13526 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13527 if test "${ac_cv_lib_m_sin+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 ac_check_lib_save_LIBS=$LIBS
13532 cat >conftest.$ac_ext <<_ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13539 /* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
13554 rm -f conftest.$ac_objext conftest$ac_exeext
13555 if { (ac_try="$ac_link"
13556 case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_link") 2>conftest.er1
13563 grep -v '^ *+' conftest.er1 >conftest.err
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13569 { (case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_try") 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; } &&
13578 { ac_try='test -s conftest$ac_exeext'
13579 { (case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_try") 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
13588 ac_cv_lib_m_sin=yes
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13596 rm -f core conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
13598 LIBS=$ac_check_lib_save_LIBS
13600 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13601 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13602 if test $ac_cv_lib_m_sin = yes; then
13603 cat >>confdefs.h <<_ACEOF
13604 #define HAVE_LIBM 1
13611 if test "$llvm_cv_os_type" = "MingW" ; then
13613 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13614 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13615 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 ac_check_lib_save_LIBS=$LIBS
13619 LIBS="-limagehlp $LIBS"
13620 cat >conftest.$ac_ext <<_ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13636 rm -f conftest.$ac_objext conftest$ac_exeext
13637 if { (ac_try="$ac_link"
13638 case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_link") 2>conftest.er1
13645 grep -v '^ *+' conftest.er1 >conftest.err
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest$ac_exeext'
13661 { (case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_try") 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13670 ac_cv_lib_imagehlp_main=yes
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13675 ac_cv_lib_imagehlp_main=no
13678 rm -f core conftest.err conftest.$ac_objext \
13679 conftest$ac_exeext conftest.$ac_ext
13680 LIBS=$ac_check_lib_save_LIBS
13682 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13683 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13684 if test $ac_cv_lib_imagehlp_main = yes; then
13685 cat >>confdefs.h <<_ACEOF
13686 #define HAVE_LIBIMAGEHLP 1
13689 LIBS="-limagehlp $LIBS"
13694 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13695 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13696 if test "${ac_cv_lib_psapi_main+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-lpsapi $LIBS"
13701 cat >conftest.$ac_ext <<_ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (ac_try="$ac_link"
13719 case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_link") 2>conftest.er1
13726 grep -v '^ *+' conftest.er1 >conftest.err
13728 cat conftest.err >&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
13731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13732 { (case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_try") 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest$ac_exeext'
13742 { (case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_try") 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 ac_cv_lib_psapi_main=yes
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 ac_cv_lib_psapi_main=no
13759 rm -f core conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13763 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13764 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13765 if test $ac_cv_lib_psapi_main = yes; then
13766 cat >>confdefs.h <<_ACEOF
13767 #define HAVE_LIBPSAPI 1
13770 LIBS="-lpsapi $LIBS"
13776 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13777 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13778 if test "${ac_cv_search_dlopen+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 ac_func_search_save_LIBS=$LIBS
13782 cat >conftest.$ac_ext <<_ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13789 /* Override any GCC internal prototype to avoid an error.
13790 Use char because int might match the return type of a GCC
13791 builtin and then its argument prototype would still apply. */
13804 for ac_lib in '' dl; do
13805 if test -z "$ac_lib"; then
13806 ac_res="none required"
13809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13811 rm -f conftest.$ac_objext conftest$ac_exeext
13812 if { (ac_try="$ac_link"
13813 case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_link") 2>conftest.er1
13820 grep -v '^ *+' conftest.er1 >conftest.err
13822 cat conftest.err >&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } &&
13825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13826 { (case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_try") 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest$ac_exeext'
13836 { (case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_try") 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_cv_search_dlopen=$ac_res
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13853 rm -f core conftest.err conftest.$ac_objext \
13855 if test "${ac_cv_search_dlopen+set}" = set; then
13859 if test "${ac_cv_search_dlopen+set}" = set; then
13862 ac_cv_search_dlopen=no
13864 rm conftest.$ac_ext
13865 LIBS=$ac_func_search_save_LIBS
13867 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13868 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13869 ac_res=$ac_cv_search_dlopen
13870 if test "$ac_res" != no; then
13871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13873 cat >>confdefs.h <<\_ACEOF
13874 #define HAVE_DLOPEN 1
13878 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13879 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13883 if test "$llvm_cv_enable_libffi" = "yes" ; then
13884 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13885 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13886 if test "${ac_cv_search_ffi_call+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13889 ac_func_search_save_LIBS=$LIBS
13890 cat >conftest.$ac_ext <<_ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13897 /* Override any GCC internal prototype to avoid an error.
13898 Use char because int might match the return type of a GCC
13899 builtin and then its argument prototype would still apply. */
13907 return ffi_call ();
13912 for ac_lib in '' ffi; do
13913 if test -z "$ac_lib"; then
13914 ac_res="none required"
13917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13919 rm -f conftest.$ac_objext conftest$ac_exeext
13920 if { (ac_try="$ac_link"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_link") 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; } &&
13943 { ac_try='test -s conftest$ac_exeext'
13944 { (case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_try") 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
13953 ac_cv_search_ffi_call=$ac_res
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13961 rm -f core conftest.err conftest.$ac_objext \
13963 if test "${ac_cv_search_ffi_call+set}" = set; then
13967 if test "${ac_cv_search_ffi_call+set}" = set; then
13970 ac_cv_search_ffi_call=no
13972 rm conftest.$ac_ext
13973 LIBS=$ac_func_search_save_LIBS
13975 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13976 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13977 ac_res=$ac_cv_search_ffi_call
13978 if test "$ac_res" != no; then
13979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13981 cat >>confdefs.h <<\_ACEOF
13982 #define HAVE_FFI_CALL 1
13986 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13987 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13988 { (exit 1); exit 1; }; }
13993 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13994 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13995 if test "${ac_cv_search_mallinfo+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 ac_func_search_save_LIBS=$LIBS
13999 cat >conftest.$ac_ext <<_ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14006 /* Override any GCC internal prototype to avoid an error.
14007 Use char because int might match the return type of a GCC
14008 builtin and then its argument prototype would still apply. */
14016 return mallinfo ();
14021 for ac_lib in '' malloc; do
14022 if test -z "$ac_lib"; then
14023 ac_res="none required"
14026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14028 rm -f conftest.$ac_objext conftest$ac_exeext
14029 if { (ac_try="$ac_link"
14030 case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_link") 2>conftest.er1
14037 grep -v '^ *+' conftest.er1 >conftest.err
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14043 { (case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_try") 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; } &&
14052 { ac_try='test -s conftest$ac_exeext'
14053 { (case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_try") 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_search_mallinfo=$ac_res
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14070 rm -f core conftest.err conftest.$ac_objext \
14072 if test "${ac_cv_search_mallinfo+set}" = set; then
14076 if test "${ac_cv_search_mallinfo+set}" = set; then
14079 ac_cv_search_mallinfo=no
14081 rm conftest.$ac_ext
14082 LIBS=$ac_func_search_save_LIBS
14084 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14085 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14086 ac_res=$ac_cv_search_mallinfo
14087 if test "$ac_res" != no; then
14088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_MALLINFO 1
14097 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14099 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14100 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14101 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 ac_check_lib_save_LIBS=$LIBS
14105 LIBS="-lpthread $LIBS"
14106 cat >conftest.$ac_ext <<_ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14119 char pthread_mutex_init ();
14123 return pthread_mutex_init ();
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (ac_try="$ac_link"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_link") 2>conftest.er1
14137 grep -v '^ *+' conftest.er1 >conftest.err
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143 { (case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_try") 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest$ac_exeext'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_cv_lib_pthread_pthread_mutex_init=yes
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_cv_lib_pthread_pthread_mutex_init=no
14170 rm -f core conftest.err conftest.$ac_objext \
14171 conftest$ac_exeext conftest.$ac_ext
14172 LIBS=$ac_check_lib_save_LIBS
14174 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14175 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14176 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14177 cat >>confdefs.h <<_ACEOF
14178 #define HAVE_LIBPTHREAD 1
14181 LIBS="-lpthread $LIBS"
14185 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14186 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14187 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 ac_func_search_save_LIBS=$LIBS
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14198 /* Override any GCC internal prototype to avoid an error.
14199 Use char because int might match the return type of a GCC
14200 builtin and then its argument prototype would still apply. */
14204 char pthread_mutex_lock ();
14208 return pthread_mutex_lock ();
14213 for ac_lib in '' pthread; do
14214 if test -z "$ac_lib"; then
14215 ac_res="none required"
14218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (ac_try="$ac_link"
14222 case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_link") 2>conftest.er1
14229 grep -v '^ *+' conftest.er1 >conftest.err
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14235 { (case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_try") 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest$ac_exeext'
14245 { (case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_try") 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_cv_search_pthread_mutex_lock=$ac_res
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14262 rm -f core conftest.err conftest.$ac_objext \
14264 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14268 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14271 ac_cv_search_pthread_mutex_lock=no
14273 rm conftest.$ac_ext
14274 LIBS=$ac_func_search_save_LIBS
14276 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14277 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14278 ac_res=$ac_cv_search_pthread_mutex_lock
14279 if test "$ac_res" != no; then
14280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14282 cat >>confdefs.h <<\_ACEOF
14283 #define HAVE_PTHREAD_MUTEX_LOCK 1
14288 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14289 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14290 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 ac_func_search_save_LIBS=$LIBS
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14307 char pthread_rwlock_init ();
14311 return pthread_rwlock_init ();
14316 for ac_lib in '' pthread; do
14317 if test -z "$ac_lib"; then
14318 ac_res="none required"
14321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14323 rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_link") 2>conftest.er1
14332 grep -v '^ *+' conftest.er1 >conftest.err
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14338 { (case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343 (eval "$ac_try") 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try='test -s conftest$ac_exeext'
14348 { (case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_try") 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_cv_search_pthread_rwlock_init=$ac_res
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14365 rm -f core conftest.err conftest.$ac_objext \
14367 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14371 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14374 ac_cv_search_pthread_rwlock_init=no
14376 rm conftest.$ac_ext
14377 LIBS=$ac_func_search_save_LIBS
14379 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14380 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14381 ac_res=$ac_cv_search_pthread_rwlock_init
14382 if test "$ac_res" != no; then
14383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14385 cat >>confdefs.h <<\_ACEOF
14386 #define HAVE_PTHREAD_RWLOCK_INIT 1
14391 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14392 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14393 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 ac_func_search_save_LIBS=$LIBS
14397 cat >conftest.$ac_ext <<_ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14404 /* Override any GCC internal prototype to avoid an error.
14405 Use char because int might match the return type of a GCC
14406 builtin and then its argument prototype would still apply. */
14410 char pthread_getspecific ();
14414 return pthread_getspecific ();
14419 for ac_lib in '' pthread; do
14420 if test -z "$ac_lib"; then
14421 ac_res="none required"
14424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14426 rm -f conftest.$ac_objext conftest$ac_exeext
14427 if { (ac_try="$ac_link"
14428 case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 (eval "$ac_link") 2>conftest.er1
14435 grep -v '^ *+' conftest.er1 >conftest.err
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest$ac_exeext'
14451 { (case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_try") 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_search_pthread_getspecific=$ac_res
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14468 rm -f core conftest.err conftest.$ac_objext \
14470 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14474 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14477 ac_cv_search_pthread_getspecific=no
14479 rm conftest.$ac_ext
14480 LIBS=$ac_func_search_save_LIBS
14482 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14483 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14484 ac_res=$ac_cv_search_pthread_getspecific
14485 if test "$ac_res" != no; then
14486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14488 cat >>confdefs.h <<\_ACEOF
14489 #define HAVE_PTHREAD_GETSPECIFIC 1
14497 # Check whether --with-udis86 was given.
14498 if test "${with_udis86+set}" = set; then
14499 withval=$with_udis86;
14504 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14507 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14508 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14509 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 ac_check_lib_save_LIBS=$LIBS
14513 LIBS="-ludis86 $LIBS"
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14521 /* Override any GCC internal prototype to avoid an error.
14522 Use char because int might match the return type of a GCC
14523 builtin and then its argument prototype would still apply. */
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_cv_lib_udis86_ud_init=yes
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_cv_lib_udis86_ud_init=no
14578 rm -f core conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14580 LIBS=$ac_check_lib_save_LIBS
14582 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14583 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14584 if test $ac_cv_lib_udis86_ud_init = yes; then
14585 cat >>confdefs.h <<_ACEOF
14586 #define HAVE_LIBUDIS86 1
14589 LIBS="-ludis86 $LIBS"
14593 echo "Error! You need to have libudis86 around."
14605 cat >>confdefs.h <<_ACEOF
14606 #define USE_UDIS86 $USE_UDIS86
14611 # Check whether --with-oprofile was given.
14612 if test "${with_oprofile+set}" = set; then
14613 withval=$with_oprofile;
14617 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14618 no) llvm_cv_oppath=
14621 *) llvm_cv_oppath="${withval}/lib/oprofile"
14622 CPPFLAGS="-I${withval}/include";;
14624 if test -n "$llvm_cv_oppath" ; then
14625 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14626 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14627 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14628 if test "${ac_cv_search_bfd_init+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 ac_func_search_save_LIBS=$LIBS
14632 cat >conftest.$ac_ext <<_ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14639 /* Override any GCC internal prototype to avoid an error.
14640 Use char because int might match the return type of a GCC
14641 builtin and then its argument prototype would still apply. */
14649 return bfd_init ();
14654 for ac_lib in '' bfd; do
14655 if test -z "$ac_lib"; then
14656 ac_res="none required"
14659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14661 rm -f conftest.$ac_objext conftest$ac_exeext
14662 if { (ac_try="$ac_link"
14663 case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668 (eval "$ac_link") 2>conftest.er1
14670 grep -v '^ *+' conftest.er1 >conftest.err
14672 cat conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } &&
14675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14676 { (case "(($ac_try" in
14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678 *) ac_try_echo=$ac_try;;
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681 (eval "$ac_try") 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; } &&
14685 { ac_try='test -s conftest$ac_exeext'
14686 { (case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_try") 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
14695 ac_cv_search_bfd_init=$ac_res
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14703 rm -f core conftest.err conftest.$ac_objext \
14705 if test "${ac_cv_search_bfd_init+set}" = set; then
14709 if test "${ac_cv_search_bfd_init+set}" = set; then
14712 ac_cv_search_bfd_init=no
14714 rm conftest.$ac_ext
14715 LIBS=$ac_func_search_save_LIBS
14717 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14718 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14719 ac_res=$ac_cv_search_bfd_init
14720 if test "$ac_res" != no; then
14721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14725 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14726 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14727 if test "${ac_cv_search_op_open_agent+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14730 ac_func_search_save_LIBS=$LIBS
14731 cat >conftest.$ac_ext <<_ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14738 /* Override any GCC internal prototype to avoid an error.
14739 Use char because int might match the return type of a GCC
14740 builtin and then its argument prototype would still apply. */
14744 char op_open_agent ();
14748 return op_open_agent ();
14753 for ac_lib in '' opagent; do
14754 if test -z "$ac_lib"; then
14755 ac_res="none required"
14758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14760 rm -f conftest.$ac_objext conftest$ac_exeext
14761 if { (ac_try="$ac_link"
14762 case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_link") 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14775 { (case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_try") 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_cv_search_op_open_agent=$ac_res
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14802 rm -f core conftest.err conftest.$ac_objext \
14804 if test "${ac_cv_search_op_open_agent+set}" = set; then
14808 if test "${ac_cv_search_op_open_agent+set}" = set; then
14811 ac_cv_search_op_open_agent=no
14813 rm conftest.$ac_ext
14814 LIBS=$ac_func_search_save_LIBS
14816 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14817 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14818 ac_res=$ac_cv_search_op_open_agent
14819 if test "$ac_res" != no; then
14820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14824 echo "Error! You need to have libopagent around."
14829 if test "${ac_cv_header_opagent_h+set}" = set; then
14830 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14831 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14832 if test "${ac_cv_header_opagent_h+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14836 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14838 # Is the header compilable?
14839 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14840 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14841 cat >conftest.$ac_ext <<_ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14847 $ac_includes_default
14848 #include <opagent.h>
14850 rm -f conftest.$ac_objext
14851 if { (ac_try="$ac_compile"
14852 case "(($ac_try" in
14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_compile") 2>conftest.er1
14859 grep -v '^ *+' conftest.er1 >conftest.err
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14865 { (case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_try") 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest.$ac_objext'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_header_compiler=yes
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_header_compiler=no
14892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14894 echo "${ECHO_T}$ac_header_compiler" >&6; }
14896 # Is the header present?
14897 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14898 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14899 cat >conftest.$ac_ext <<_ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 #include <opagent.h>
14907 if { (ac_try="$ac_cpp conftest.$ac_ext"
14908 case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14915 grep -v '^ *+' conftest.er1 >conftest.err
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } >/dev/null; then
14920 if test -s conftest.err; then
14921 ac_cpp_err=$ac_c_preproc_warn_flag
14922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14929 if test -z "$ac_cpp_err"; then
14930 ac_header_preproc=yes
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_header_preproc=no
14938 rm -f conftest.err conftest.$ac_ext
14939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14940 echo "${ECHO_T}$ac_header_preproc" >&6; }
14942 # So? What about this header?
14943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14945 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14946 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14948 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14949 ac_header_preproc=yes
14952 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14953 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14955 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14957 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14959 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14961 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14963 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14965 ## ----------------------------------- ##
14966 ## Report this to llvmbugs@cs.uiuc.edu ##
14967 ## ----------------------------------- ##
14969 ) | sed "s/^/$as_me: WARNING: /" >&2
14972 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14973 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14974 if test "${ac_cv_header_opagent_h+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 ac_cv_header_opagent_h=$ac_header_preproc
14979 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14980 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14983 if test $ac_cv_header_opagent_h = yes; then
14987 echo "Error! You need to have opagent.h around."
15003 cat >>confdefs.h <<_ACEOF
15004 #define USE_OPROFILE $USE_OPROFILE
15014 ac_header_dirent=no
15015 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15016 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15017 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15018 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15028 #include <sys/types.h>
15040 rm -f conftest.$ac_objext
15041 if { (ac_try="$ac_compile"
15042 case "(($ac_try" in
15043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15044 *) ac_try_echo=$ac_try;;
15046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15047 (eval "$ac_compile") 2>conftest.er1
15049 grep -v '^ *+' conftest.er1 >conftest.err
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15055 { (case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_try") 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_try") 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }; then
15074 eval "$as_ac_Header=yes"
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15079 eval "$as_ac_Header=no"
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15084 ac_res=`eval echo '${'$as_ac_Header'}'`
15085 { echo "$as_me:$LINENO: result: $ac_res" >&5
15086 echo "${ECHO_T}$ac_res" >&6; }
15087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15088 cat >>confdefs.h <<_ACEOF
15089 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15092 ac_header_dirent=$ac_hdr; break
15096 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15097 if test $ac_header_dirent = dirent.h; then
15098 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15099 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15100 if test "${ac_cv_search_opendir+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 ac_func_search_save_LIBS=$LIBS
15104 cat >conftest.$ac_ext <<_ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15111 /* Override any GCC internal prototype to avoid an error.
15112 Use char because int might match the return type of a GCC
15113 builtin and then its argument prototype would still apply. */
15126 for ac_lib in '' dir; do
15127 if test -z "$ac_lib"; then
15128 ac_res="none required"
15131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15133 rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (ac_try="$ac_link"
15135 case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_link") 2>conftest.er1
15142 grep -v '^ *+' conftest.er1 >conftest.err
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_try") 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_cv_search_opendir=$ac_res
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15175 rm -f core conftest.err conftest.$ac_objext \
15177 if test "${ac_cv_search_opendir+set}" = set; then
15181 if test "${ac_cv_search_opendir+set}" = set; then
15184 ac_cv_search_opendir=no
15186 rm conftest.$ac_ext
15187 LIBS=$ac_func_search_save_LIBS
15189 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15190 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15191 ac_res=$ac_cv_search_opendir
15192 if test "$ac_res" != no; then
15193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15198 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15199 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15200 if test "${ac_cv_search_opendir+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 ac_func_search_save_LIBS=$LIBS
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15211 /* Override any GCC internal prototype to avoid an error.
15212 Use char because int might match the return type of a GCC
15213 builtin and then its argument prototype would still apply. */
15226 for ac_lib in '' x; do
15227 if test -z "$ac_lib"; then
15228 ac_res="none required"
15231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15233 rm -f conftest.$ac_objext conftest$ac_exeext
15234 if { (ac_try="$ac_link"
15235 case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_link") 2>conftest.er1
15242 grep -v '^ *+' conftest.er1 >conftest.err
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } &&
15247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15248 { (case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_try") 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest$ac_exeext'
15258 { (case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_try") 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_search_opendir=$ac_res
15269 echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15275 rm -f core conftest.err conftest.$ac_objext \
15277 if test "${ac_cv_search_opendir+set}" = set; then
15281 if test "${ac_cv_search_opendir+set}" = set; then
15284 ac_cv_search_opendir=no
15286 rm conftest.$ac_ext
15287 LIBS=$ac_func_search_save_LIBS
15289 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15290 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15291 ac_res=$ac_cv_search_opendir
15292 if test "$ac_res" != no; then
15293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15299 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15300 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15301 if test "${ac_cv_header_mmap_anon+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 ac_cpp='$CPP $CPPFLAGS'
15306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15310 cat >conftest.$ac_ext <<_ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15316 #include <sys/mman.h>
15317 #include <unistd.h>
15322 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15327 rm -f conftest.$ac_objext
15328 if { (ac_try="$ac_compile"
15329 case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_compile") 2>conftest.er1
15336 grep -v '^ *+' conftest.er1 >conftest.err
15338 cat conftest.err >&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
15352 { (case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_try") 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_cv_header_mmap_anon=yes
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_cv_header_mmap_anon=no
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 ac_cpp='$CPP $CPPFLAGS'
15372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15378 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15379 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15380 if test "$ac_cv_header_mmap_anon" = yes; then
15382 cat >>confdefs.h <<\_ACEOF
15383 #define HAVE_MMAP_ANONYMOUS 1
15388 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15389 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15390 if test "${ac_cv_header_stat_broken+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 cat >conftest.$ac_ext <<_ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15399 #include <sys/types.h>
15400 #include <sys/stat.h>
15402 #if defined S_ISBLK && defined S_IFDIR
15403 # if S_ISBLK (S_IFDIR)
15408 #if defined S_ISBLK && defined S_IFCHR
15409 # if S_ISBLK (S_IFCHR)
15414 #if defined S_ISLNK && defined S_IFREG
15415 # if S_ISLNK (S_IFREG)
15420 #if defined S_ISSOCK && defined S_IFREG
15421 # if S_ISSOCK (S_IFREG)
15427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15428 $EGREP "You lose" >/dev/null 2>&1; then
15429 ac_cv_header_stat_broken=yes
15431 ac_cv_header_stat_broken=no
15436 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15437 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15438 if test $ac_cv_header_stat_broken = yes; then
15440 cat >>confdefs.h <<\_ACEOF
15441 #define STAT_MACROS_BROKEN 1
15446 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15447 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15448 if test "${ac_cv_header_stdc+set}" = set; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 cat >conftest.$ac_ext <<_ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15457 #include <stdlib.h>
15458 #include <stdarg.h>
15459 #include <string.h>
15470 rm -f conftest.$ac_objext
15471 if { (ac_try="$ac_compile"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_compile") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485 { (case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_try") 2>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest.$ac_objext'
15495 { (case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_try") 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_cv_header_stdc=yes
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_cv_header_stdc=no
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514 if test $ac_cv_header_stdc = yes; then
15515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15516 cat >conftest.$ac_ext <<_ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h. */
15522 #include <string.h>
15525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15526 $EGREP "memchr" >/dev/null 2>&1; then
15529 ac_cv_header_stdc=no
15535 if test $ac_cv_header_stdc = yes; then
15536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15537 cat >conftest.$ac_ext <<_ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 #include <stdlib.h>
15546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15547 $EGREP "free" >/dev/null 2>&1; then
15550 ac_cv_header_stdc=no
15556 if test $ac_cv_header_stdc = yes; then
15557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15558 if test "$cross_compiling" = yes; then
15561 cat >conftest.$ac_ext <<_ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15568 #include <stdlib.h>
15569 #if ((' ' & 0x0FF) == 0x020)
15570 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15571 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15573 # define ISLOWER(c) \
15574 (('a' <= (c) && (c) <= 'i') \
15575 || ('j' <= (c) && (c) <= 'r') \
15576 || ('s' <= (c) && (c) <= 'z'))
15577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15585 for (i = 0; i < 256; i++)
15586 if (XOR (islower (i), ISLOWER (i))
15587 || toupper (i) != TOUPPER (i))
15592 rm -f conftest$ac_exeext
15593 if { (ac_try="$ac_link"
15594 case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_link") 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15614 echo "$as_me: program exited with status $ac_status" >&5
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ( exit $ac_status )
15619 ac_cv_header_stdc=no
15621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15627 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15628 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15629 if test $ac_cv_header_stdc = yes; then
15631 cat >>confdefs.h <<\_ACEOF
15632 #define STDC_HEADERS 1
15637 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15638 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15639 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 cat >conftest.$ac_ext <<_ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15648 #include <sys/types.h>
15649 #include <sys/wait.h>
15650 #ifndef WEXITSTATUS
15651 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15654 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15662 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15667 rm -f conftest.$ac_objext
15668 if { (ac_try="$ac_compile"
15669 case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_compile") 2>conftest.er1
15676 grep -v '^ *+' conftest.er1 >conftest.err
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15682 { (case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_try") 2>&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try='test -s conftest.$ac_objext'
15692 { (case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_try") 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_cv_header_sys_wait_h=yes
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 ac_cv_header_sys_wait_h=no
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15712 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15713 if test $ac_cv_header_sys_wait_h = yes; then
15715 cat >>confdefs.h <<\_ACEOF
15716 #define HAVE_SYS_WAIT_H 1
15721 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15722 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15723 if test "${ac_cv_header_time+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 cat >conftest.$ac_ext <<_ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732 #include <sys/types.h>
15733 #include <sys/time.h>
15739 if ((struct tm *) 0)
15745 rm -f conftest.$ac_objext
15746 if { (ac_try="$ac_compile"
15747 case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_compile") 2>conftest.er1
15754 grep -v '^ *+' conftest.er1 >conftest.err
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15760 { (case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_try") 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } &&
15769 { ac_try='test -s conftest.$ac_objext'
15770 { (case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_try") 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_cv_header_time=yes
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_cv_header_time=no
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15790 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15791 if test $ac_cv_header_time = yes; then
15793 cat >>confdefs.h <<\_ACEOF
15794 #define TIME_WITH_SYS_TIME 1
15806 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 ac_res=`eval echo '${'$as_ac_Header'}'`
15816 { echo "$as_me:$LINENO: result: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15819 # Is the header compilable?
15820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 $ac_includes_default
15829 #include <$ac_header>
15831 rm -f conftest.$ac_objext
15832 if { (ac_try="$ac_compile"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_compile") 2>conftest.er1
15840 grep -v '^ *+' conftest.er1 >conftest.err
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 ac_header_compiler=yes
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ac_header_compiler=no
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15875 echo "${ECHO_T}$ac_header_compiler" >&6; }
15877 # Is the header present?
15878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15880 cat >conftest.$ac_ext <<_ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 #include <$ac_header>
15888 if { (ac_try="$ac_cpp conftest.$ac_ext"
15889 case "(($ac_try" in
15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891 *) ac_try_echo=$ac_try;;
15893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15896 grep -v '^ *+' conftest.er1 >conftest.err
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } >/dev/null; then
15901 if test -s conftest.err; then
15902 ac_cpp_err=$ac_c_preproc_warn_flag
15903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15910 if test -z "$ac_cpp_err"; then
15911 ac_header_preproc=yes
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15916 ac_header_preproc=no
15919 rm -f conftest.err conftest.$ac_ext
15920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15921 echo "${ECHO_T}$ac_header_preproc" >&6; }
15923 # So? What about this header?
15924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15930 ac_header_preproc=yes
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15946 ## ----------------------------------- ##
15947 ## Report this to llvmbugs@cs.uiuc.edu ##
15948 ## ----------------------------------- ##
15950 ) | sed "s/^/$as_me: WARNING: /" >&2
15953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 eval "$as_ac_Header=\$ac_header_preproc"
15960 ac_res=`eval echo '${'$as_ac_Header'}'`
15961 { echo "$as_me:$LINENO: result: $ac_res" >&5
15962 echo "${ECHO_T}$ac_res" >&6; }
15965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15966 cat >>confdefs.h <<_ACEOF
15967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15980 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 ac_res=`eval echo '${'$as_ac_Header'}'`
15990 { echo "$as_me:$LINENO: result: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15993 # Is the header compilable?
15994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15996 cat >conftest.$ac_ext <<_ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16002 $ac_includes_default
16003 #include <$ac_header>
16005 rm -f conftest.$ac_objext
16006 if { (ac_try="$ac_compile"
16007 case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_compile") 2>conftest.er1
16014 grep -v '^ *+' conftest.er1 >conftest.err
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_try") 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_header_compiler=yes
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 ac_header_compiler=no
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6; }
16051 # Is the header present?
16052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16054 cat >conftest.$ac_ext <<_ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <$ac_header>
16062 if { (ac_try="$ac_cpp conftest.$ac_ext"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16070 grep -v '^ *+' conftest.er1 >conftest.err
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } >/dev/null; then
16075 if test -s conftest.err; then
16076 ac_cpp_err=$ac_c_preproc_warn_flag
16077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16084 if test -z "$ac_cpp_err"; then
16085 ac_header_preproc=yes
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 ac_header_preproc=no
16093 rm -f conftest.err conftest.$ac_ext
16094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6; }
16097 # So? What about this header?
16098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104 ac_header_preproc=yes
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16120 ## ----------------------------------- ##
16121 ## Report this to llvmbugs@cs.uiuc.edu ##
16122 ## ----------------------------------- ##
16124 ) | sed "s/^/$as_me: WARNING: /" >&2
16127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16132 eval "$as_ac_Header=\$ac_header_preproc"
16134 ac_res=`eval echo '${'$as_ac_Header'}'`
16135 { echo "$as_me:$LINENO: result: $ac_res" >&5
16136 echo "${ECHO_T}$ac_res" >&6; }
16139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16140 cat >>confdefs.h <<_ACEOF
16141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16150 for ac_header in utime.h windows.h
16152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 ac_res=`eval echo '${'$as_ac_Header'}'`
16160 { echo "$as_me:$LINENO: result: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16163 # Is the header compilable?
16164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16166 cat >conftest.$ac_ext <<_ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 $ac_includes_default
16173 #include <$ac_header>
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16184 grep -v '^ *+' conftest.er1 >conftest.err
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
16189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16190 { (case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_try") 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_try") 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_header_compiler=yes
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ac_header_compiler=no
16217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16219 echo "${ECHO_T}$ac_header_compiler" >&6; }
16221 # Is the header present?
16222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16224 cat >conftest.$ac_ext <<_ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 #include <$ac_header>
16232 if { (ac_try="$ac_cpp conftest.$ac_ext"
16233 case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16240 grep -v '^ *+' conftest.er1 >conftest.err
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } >/dev/null; then
16245 if test -s conftest.err; then
16246 ac_cpp_err=$ac_c_preproc_warn_flag
16247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16254 if test -z "$ac_cpp_err"; then
16255 ac_header_preproc=yes
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 ac_header_preproc=no
16263 rm -f conftest.err conftest.$ac_ext
16264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16265 echo "${ECHO_T}$ac_header_preproc" >&6; }
16267 # So? What about this header?
16268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16274 ac_header_preproc=yes
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16290 ## ----------------------------------- ##
16291 ## Report this to llvmbugs@cs.uiuc.edu ##
16292 ## ----------------------------------- ##
16294 ) | sed "s/^/$as_me: WARNING: /" >&2
16297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 eval "$as_ac_Header=\$ac_header_preproc"
16304 ac_res=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306 echo "${ECHO_T}$ac_res" >&6; }
16309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16310 cat >>confdefs.h <<_ACEOF
16311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16323 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 ac_res=`eval echo '${'$as_ac_Header'}'`
16333 { echo "$as_me:$LINENO: result: $ac_res" >&5
16334 echo "${ECHO_T}$ac_res" >&6; }
16336 # Is the header compilable?
16337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 $ac_includes_default
16346 #include <$ac_header>
16348 rm -f conftest.$ac_objext
16349 if { (ac_try="$ac_compile"
16350 case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_compile") 2>conftest.er1
16357 grep -v '^ *+' conftest.er1 >conftest.err
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest.$ac_objext'
16373 { (case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_try") 2>&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_header_compiler=yes
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 ac_header_compiler=no
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16392 echo "${ECHO_T}$ac_header_compiler" >&6; }
16394 # Is the header present?
16395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16397 cat >conftest.$ac_ext <<_ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 #include <$ac_header>
16405 if { (ac_try="$ac_cpp conftest.$ac_ext"
16406 case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16413 grep -v '^ *+' conftest.er1 >conftest.err
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } >/dev/null; then
16418 if test -s conftest.err; then
16419 ac_cpp_err=$ac_c_preproc_warn_flag
16420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16427 if test -z "$ac_cpp_err"; then
16428 ac_header_preproc=yes
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_header_preproc=no
16436 rm -f conftest.err conftest.$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6; }
16440 # So? What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16447 ac_header_preproc=yes
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16463 ## ----------------------------------- ##
16464 ## Report this to llvmbugs@cs.uiuc.edu ##
16465 ## ----------------------------------- ##
16467 ) | sed "s/^/$as_me: WARNING: /" >&2
16470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 eval "$as_ac_Header=\$ac_header_preproc"
16477 ac_res=`eval echo '${'$as_ac_Header'}'`
16478 { echo "$as_me:$LINENO: result: $ac_res" >&5
16479 echo "${ECHO_T}$ac_res" >&6; }
16482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16483 cat >>confdefs.h <<_ACEOF
16484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16495 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 ac_res=`eval echo '${'$as_ac_Header'}'`
16505 { echo "$as_me:$LINENO: result: $ac_res" >&5
16506 echo "${ECHO_T}$ac_res" >&6; }
16508 # Is the header compilable?
16509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16511 cat >conftest.$ac_ext <<_ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 $ac_includes_default
16518 #include <$ac_header>
16520 rm -f conftest.$ac_objext
16521 if { (ac_try="$ac_compile"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_compile") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16535 { (case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540 (eval "$ac_try") 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_try") 2>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_header_compiler=yes
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ac_header_compiler=no
16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16564 echo "${ECHO_T}$ac_header_compiler" >&6; }
16566 # Is the header present?
16567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16569 cat >conftest.$ac_ext <<_ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 #include <$ac_header>
16577 if { (ac_try="$ac_cpp conftest.$ac_ext"
16578 case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16585 grep -v '^ *+' conftest.er1 >conftest.err
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } >/dev/null; then
16590 if test -s conftest.err; then
16591 ac_cpp_err=$ac_c_preproc_warn_flag
16592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16599 if test -z "$ac_cpp_err"; then
16600 ac_header_preproc=yes
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_header_preproc=no
16608 rm -f conftest.err conftest.$ac_ext
16609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16610 echo "${ECHO_T}$ac_header_preproc" >&6; }
16612 # So? What about this header?
16613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16619 ac_header_preproc=yes
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16635 ## ----------------------------------- ##
16636 ## Report this to llvmbugs@cs.uiuc.edu ##
16637 ## ----------------------------------- ##
16639 ) | sed "s/^/$as_me: WARNING: /" >&2
16642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 eval "$as_ac_Header=\$ac_header_preproc"
16649 ac_res=`eval echo '${'$as_ac_Header'}'`
16650 { echo "$as_me:$LINENO: result: $ac_res" >&5
16651 echo "${ECHO_T}$ac_res" >&6; }
16654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16655 cat >>confdefs.h <<_ACEOF
16656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16664 for ac_header in valgrind/valgrind.h
16666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 ac_res=`eval echo '${'$as_ac_Header'}'`
16674 { echo "$as_me:$LINENO: result: $ac_res" >&5
16675 echo "${ECHO_T}$ac_res" >&6; }
16677 # Is the header compilable?
16678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 $ac_includes_default
16687 #include <$ac_header>
16689 rm -f conftest.$ac_objext
16690 if { (ac_try="$ac_compile"
16691 case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_compile") 2>conftest.er1
16698 grep -v '^ *+' conftest.er1 >conftest.err
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } &&
16703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_header_compiler=yes
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16728 ac_header_compiler=no
16731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16733 echo "${ECHO_T}$ac_header_compiler" >&6; }
16735 # Is the header present?
16736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16738 cat >conftest.$ac_ext <<_ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 #include <$ac_header>
16746 if { (ac_try="$ac_cpp conftest.$ac_ext"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16754 grep -v '^ *+' conftest.er1 >conftest.err
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } >/dev/null; then
16759 if test -s conftest.err; then
16760 ac_cpp_err=$ac_c_preproc_warn_flag
16761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16768 if test -z "$ac_cpp_err"; then
16769 ac_header_preproc=yes
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 ac_header_preproc=no
16777 rm -f conftest.err conftest.$ac_ext
16778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16779 echo "${ECHO_T}$ac_header_preproc" >&6; }
16781 # So? What about this header?
16782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16788 ac_header_preproc=yes
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16804 ## ----------------------------------- ##
16805 ## Report this to llvmbugs@cs.uiuc.edu ##
16806 ## ----------------------------------- ##
16808 ) | sed "s/^/$as_me: WARNING: /" >&2
16811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 eval "$as_ac_Header=\$ac_header_preproc"
16818 ac_res=`eval echo '${'$as_ac_Header'}'`
16819 { echo "$as_me:$LINENO: result: $ac_res" >&5
16820 echo "${ECHO_T}$ac_res" >&6; }
16823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16824 cat >>confdefs.h <<_ACEOF
16825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16833 for ac_header in fenv.h
16835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 ac_res=`eval echo '${'$as_ac_Header'}'`
16843 { echo "$as_me:$LINENO: result: $ac_res" >&5
16844 echo "${ECHO_T}$ac_res" >&6; }
16846 # Is the header compilable?
16847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 $ac_includes_default
16856 #include <$ac_header>
16858 rm -f conftest.$ac_objext
16859 if { (ac_try="$ac_compile"
16860 case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_compile") 2>conftest.er1
16867 grep -v '^ *+' conftest.er1 >conftest.err
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } &&
16872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16873 { (case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_try") 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest.$ac_objext'
16883 { (case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_try") 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 ac_header_compiler=yes
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 ac_header_compiler=no
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16902 echo "${ECHO_T}$ac_header_compiler" >&6; }
16904 # Is the header present?
16905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16907 cat >conftest.$ac_ext <<_ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913 #include <$ac_header>
16915 if { (ac_try="$ac_cpp conftest.$ac_ext"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16923 grep -v '^ *+' conftest.er1 >conftest.err
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } >/dev/null; then
16928 if test -s conftest.err; then
16929 ac_cpp_err=$ac_c_preproc_warn_flag
16930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16937 if test -z "$ac_cpp_err"; then
16938 ac_header_preproc=yes
16940 echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16943 ac_header_preproc=no
16946 rm -f conftest.err conftest.$ac_ext
16947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16948 echo "${ECHO_T}$ac_header_preproc" >&6; }
16950 # So? What about this header?
16951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16957 ac_header_preproc=yes
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16973 ## ----------------------------------- ##
16974 ## Report this to llvmbugs@cs.uiuc.edu ##
16975 ## ----------------------------------- ##
16977 ) | sed "s/^/$as_me: WARNING: /" >&2
16980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 eval "$as_ac_Header=\$ac_header_preproc"
16987 ac_res=`eval echo '${'$as_ac_Header'}'`
16988 { echo "$as_me:$LINENO: result: $ac_res" >&5
16989 echo "${ECHO_T}$ac_res" >&6; }
16992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16993 cat >>confdefs.h <<_ACEOF
16994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17001 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
17003 for ac_header in pthread.h
17005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 ac_res=`eval echo '${'$as_ac_Header'}'`
17013 { echo "$as_me:$LINENO: result: $ac_res" >&5
17014 echo "${ECHO_T}$ac_res" >&6; }
17016 # Is the header compilable?
17017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 $ac_includes_default
17026 #include <$ac_header>
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_compile") 2>conftest.er1
17037 grep -v '^ *+' conftest.er1 >conftest.err
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043 { (case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_try") 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest.$ac_objext'
17053 { (case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_try") 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_header_compiler=yes
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ac_header_compiler=no
17070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17072 echo "${ECHO_T}$ac_header_compiler" >&6; }
17074 # Is the header present?
17075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17077 cat >conftest.$ac_ext <<_ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 #include <$ac_header>
17085 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
17093 grep -v '^ *+' conftest.er1 >conftest.err
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } >/dev/null; then
17098 if test -s conftest.err; then
17099 ac_cpp_err=$ac_c_preproc_warn_flag
17100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17107 if test -z "$ac_cpp_err"; then
17108 ac_header_preproc=yes
17110 echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 ac_header_preproc=no
17116 rm -f conftest.err conftest.$ac_ext
17117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17118 echo "${ECHO_T}$ac_header_preproc" >&6; }
17120 # So? What about this header?
17121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17127 ac_header_preproc=yes
17130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17143 ## ----------------------------------- ##
17144 ## Report this to llvmbugs@cs.uiuc.edu ##
17145 ## ----------------------------------- ##
17147 ) | sed "s/^/$as_me: WARNING: /" >&2
17150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 eval "$as_ac_Header=\$ac_header_preproc"
17157 ac_res=`eval echo '${'$as_ac_Header'}'`
17158 { echo "$as_me:$LINENO: result: $ac_res" >&5
17159 echo "${ECHO_T}$ac_res" >&6; }
17162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17163 cat >>confdefs.h <<_ACEOF
17164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17180 if test "$llvm_cv_enable_libffi" = "yes" ; then
17183 for ac_header in ffi.h ffi/ffi.h
17185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17192 ac_res=`eval echo '${'$as_ac_Header'}'`
17193 { echo "$as_me:$LINENO: result: $ac_res" >&5
17194 echo "${ECHO_T}$ac_res" >&6; }
17196 # Is the header compilable?
17197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 $ac_includes_default
17206 #include <$ac_header>
17208 rm -f conftest.$ac_objext
17209 if { (ac_try="$ac_compile"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_compile") 2>conftest.er1
17217 grep -v '^ *+' conftest.er1 >conftest.err
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest.$ac_objext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_header_compiler=yes
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_header_compiler=no
17250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17252 echo "${ECHO_T}$ac_header_compiler" >&6; }
17254 # Is the header present?
17255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17257 cat >conftest.$ac_ext <<_ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17263 #include <$ac_header>
17265 if { (ac_try="$ac_cpp conftest.$ac_ext"
17266 case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17273 grep -v '^ *+' conftest.er1 >conftest.err
17275 cat conftest.err >&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } >/dev/null; then
17278 if test -s conftest.err; then
17279 ac_cpp_err=$ac_c_preproc_warn_flag
17280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17287 if test -z "$ac_cpp_err"; then
17288 ac_header_preproc=yes
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ac_header_preproc=no
17296 rm -f conftest.err conftest.$ac_ext
17297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17298 echo "${ECHO_T}$ac_header_preproc" >&6; }
17300 # So? What about this header?
17301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17307 ac_header_preproc=yes
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17323 ## ----------------------------------- ##
17324 ## Report this to llvmbugs@cs.uiuc.edu ##
17325 ## ----------------------------------- ##
17327 ) | sed "s/^/$as_me: WARNING: /" >&2
17330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17335 eval "$as_ac_Header=\$ac_header_preproc"
17337 ac_res=`eval echo '${'$as_ac_Header'}'`
17338 { echo "$as_me:$LINENO: result: $ac_res" >&5
17339 echo "${ECHO_T}$ac_res" >&6; }
17342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17343 cat >>confdefs.h <<_ACEOF
17344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17354 for ac_header in CrashReporterClient.h
17356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 ac_res=`eval echo '${'$as_ac_Header'}'`
17364 { echo "$as_me:$LINENO: result: $ac_res" >&5
17365 echo "${ECHO_T}$ac_res" >&6; }
17367 # Is the header compilable?
17368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 $ac_includes_default
17377 #include <$ac_header>
17379 rm -f conftest.$ac_objext
17380 if { (ac_try="$ac_compile"
17381 case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_compile") 2>conftest.er1
17388 grep -v '^ *+' conftest.er1 >conftest.err
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17394 { (case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_try") 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest.$ac_objext'
17404 { (case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_try") 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ac_header_compiler=yes
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 ac_header_compiler=no
17421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17423 echo "${ECHO_T}$ac_header_compiler" >&6; }
17425 # Is the header present?
17426 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17428 cat >conftest.$ac_ext <<_ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17434 #include <$ac_header>
17436 if { (ac_try="$ac_cpp conftest.$ac_ext"
17437 case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17444 grep -v '^ *+' conftest.er1 >conftest.err
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } >/dev/null; then
17449 if test -s conftest.err; then
17450 ac_cpp_err=$ac_c_preproc_warn_flag
17451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17458 if test -z "$ac_cpp_err"; then
17459 ac_header_preproc=yes
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 ac_header_preproc=no
17467 rm -f conftest.err conftest.$ac_ext
17468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17469 echo "${ECHO_T}$ac_header_preproc" >&6; }
17471 # So? What about this header?
17472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17478 ac_header_preproc=yes
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17494 ## ----------------------------------- ##
17495 ## Report this to llvmbugs@cs.uiuc.edu ##
17496 ## ----------------------------------- ##
17498 ) | sed "s/^/$as_me: WARNING: /" >&2
17501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17504 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 eval "$as_ac_Header=\$ac_header_preproc"
17508 ac_res=`eval echo '${'$as_ac_Header'}'`
17509 { echo "$as_me:$LINENO: result: $ac_res" >&5
17510 echo "${ECHO_T}$ac_res" >&6; }
17513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17514 cat >>confdefs.h <<_ACEOF
17515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17523 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17524 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 extern const char *__crashreporter_info__;
17533 __crashreporter_info__ = "test";
17538 rm -f conftest.$ac_objext conftest$ac_exeext
17539 if { (ac_try="$ac_link"
17540 case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_link") 2>conftest.er1
17547 grep -v '^ *+' conftest.er1 >conftest.err
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553 { (case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_try") 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_try") 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 { echo "$as_me:$LINENO: result: yes" >&5
17573 echo "${ECHO_T}yes" >&6; }
17575 cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_CRASHREPORTER_INFO 1
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17583 { echo "$as_me:$LINENO: result: no" >&5
17584 echo "${ECHO_T}no" >&6; }
17586 cat >>confdefs.h <<\_ACEOF
17587 #define HAVE_CRASHREPORTER_INFO 0
17592 rm -f core conftest.err conftest.$ac_objext \
17593 conftest$ac_exeext conftest.$ac_ext
17598 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17599 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17600 if test "${ac_cv_huge_val_sanity+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17605 ac_cpp='$CXXCPP $CPPFLAGS'
17606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17610 ac_save_CXXFLAGS=$CXXFLAGS
17612 if test "$cross_compiling" = yes; then
17613 ac_cv_huge_val_sanity=yes
17615 cat >conftest.$ac_ext <<_ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17625 double x = HUGE_VAL; return x != x;
17630 rm -f conftest$ac_exeext
17631 if { (ac_try="$ac_link"
17632 case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_link") 2>&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17641 { (case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_try") 2>&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
17650 ac_cv_huge_val_sanity=yes
17652 echo "$as_me: program exited with status $ac_status" >&5
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ( exit $ac_status )
17657 ac_cv_huge_val_sanity=no
17659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17663 CXXFLAGS=$ac_save_CXXFLAGS
17665 ac_cpp='$CPP $CPPFLAGS'
17666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17672 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17673 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17674 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17677 { echo "$as_me:$LINENO: checking for pid_t" >&5
17678 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17679 if test "${ac_cv_type_pid_t+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 $ac_includes_default
17689 typedef pid_t ac__type_new_;
17693 if ((ac__type_new_ *) 0)
17695 if (sizeof (ac__type_new_))
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_cv_type_pid_t=yes
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 ac_cv_type_pid_t=no
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17746 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17747 if test $ac_cv_type_pid_t = yes; then
17751 cat >>confdefs.h <<_ACEOF
17757 { echo "$as_me:$LINENO: checking for size_t" >&5
17758 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17759 if test "${ac_cv_type_size_t+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 cat >conftest.$ac_ext <<_ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768 $ac_includes_default
17769 typedef size_t ac__type_new_;
17773 if ((ac__type_new_ *) 0)
17775 if (sizeof (ac__type_new_))
17781 rm -f conftest.$ac_objext
17782 if { (ac_try="$ac_compile"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_compile") 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17796 { (case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_try") 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; } &&
17805 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; }; then
17815 ac_cv_type_size_t=yes
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 ac_cv_type_size_t=no
17823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17825 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17826 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17827 if test $ac_cv_type_size_t = yes; then
17831 cat >>confdefs.h <<_ACEOF
17832 #define size_t unsigned int
17838 cat >>confdefs.h <<_ACEOF
17839 #define RETSIGTYPE void
17842 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17843 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17844 if test "${ac_cv_struct_tm+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 #include <sys/types.h>
17859 struct tm *tp; tp->tm_sec;
17864 rm -f conftest.$ac_objext
17865 if { (ac_try="$ac_compile"
17866 case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_compile") 2>conftest.er1
17873 grep -v '^ *+' conftest.er1 >conftest.err
17875 cat conftest.err >&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } &&
17878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17879 { (case "(($ac_try" in
17880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881 *) ac_try_echo=$ac_try;;
17883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17884 (eval "$ac_try") 2>&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; } &&
17888 { ac_try='test -s conftest.$ac_objext'
17889 { (case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_try") 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_struct_tm=time.h
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_cv_struct_tm=sys/time.h
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17908 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17909 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17910 if test $ac_cv_struct_tm = sys/time.h; then
17912 cat >>confdefs.h <<\_ACEOF
17913 #define TM_IN_SYS_TIME 1
17918 { echo "$as_me:$LINENO: checking for int64_t" >&5
17919 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17920 if test "${ac_cv_type_int64_t+set}" = set; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17923 cat >conftest.$ac_ext <<_ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17929 $ac_includes_default
17930 typedef int64_t ac__type_new_;
17934 if ((ac__type_new_ *) 0)
17936 if (sizeof (ac__type_new_))
17942 rm -f conftest.$ac_objext
17943 if { (ac_try="$ac_compile"
17944 case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_compile") 2>conftest.er1
17951 grep -v '^ *+' conftest.er1 >conftest.err
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
17956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17957 { (case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_try") 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; } &&
17966 { ac_try='test -s conftest.$ac_objext'
17967 { (case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_try") 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 ac_cv_type_int64_t=yes
17978 echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17981 ac_cv_type_int64_t=no
17984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17986 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17987 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17988 if test $ac_cv_type_int64_t = yes; then
17990 cat >>confdefs.h <<_ACEOF
17991 #define HAVE_INT64_T 1
17996 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17997 echo "$as_me: error: Type int64_t required but not found" >&2;}
17998 { (exit 1); exit 1; }; }
18001 { echo "$as_me:$LINENO: checking for uint64_t" >&5
18002 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
18003 if test "${ac_cv_type_uint64_t+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 cat >conftest.$ac_ext <<_ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 $ac_includes_default
18013 typedef uint64_t ac__type_new_;
18017 if ((ac__type_new_ *) 0)
18019 if (sizeof (ac__type_new_))
18025 rm -f conftest.$ac_objext
18026 if { (ac_try="$ac_compile"
18027 case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_compile") 2>conftest.er1
18034 grep -v '^ *+' conftest.er1 >conftest.err
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18040 { (case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_try") 2>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; } &&
18049 { ac_try='test -s conftest.$ac_objext'
18050 { (case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_try") 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 ac_cv_type_uint64_t=yes
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18064 ac_cv_type_uint64_t=no
18067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18069 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18070 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18071 if test $ac_cv_type_uint64_t = yes; then
18073 cat >>confdefs.h <<_ACEOF
18074 #define HAVE_UINT64_T 1
18079 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18080 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18081 if test "${ac_cv_type_u_int64_t+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 $ac_includes_default
18091 typedef u_int64_t ac__type_new_;
18095 if ((ac__type_new_ *) 0)
18097 if (sizeof (ac__type_new_))
18103 rm -f conftest.$ac_objext
18104 if { (ac_try="$ac_compile"
18105 case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_compile") 2>conftest.er1
18112 grep -v '^ *+' conftest.er1 >conftest.err
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
18117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18118 { (case "(($ac_try" in
18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120 *) ac_try_echo=$ac_try;;
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123 (eval "$ac_try") 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try='test -s conftest.$ac_objext'
18128 { (case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_try") 2>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
18137 ac_cv_type_u_int64_t=yes
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18142 ac_cv_type_u_int64_t=no
18145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18148 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18149 if test $ac_cv_type_u_int64_t = yes; then
18151 cat >>confdefs.h <<_ACEOF
18152 #define HAVE_U_INT64_T 1
18157 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18158 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18159 { (exit 1); exit 1; }; }
18173 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 cat >conftest.$ac_ext <<_ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18189 #define $ac_func innocuous_$ac_func
18191 /* System header to define __stub macros and hopefully few prototypes,
18192 which can conflict with char $ac_func (); below.
18193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18194 <limits.h> exists even on freestanding compilers. */
18197 # include <limits.h>
18199 # include <assert.h>
18204 /* Override any GCC internal prototype to avoid an error.
18205 Use char because int might match the return type of a GCC
18206 builtin and then its argument prototype would still apply. */
18211 /* The GNU C library defines this for functions which it implements
18212 to always fail with ENOSYS. Some functions are actually named
18213 something starting with __ and the normal name is an alias. */
18214 #if defined __stub_$ac_func || defined __stub___$ac_func
18221 return $ac_func ();
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (ac_try="$ac_link"
18228 case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_link") 2>conftest.er1
18235 grep -v '^ *+' conftest.er1 >conftest.err
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_try") 2>&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 eval "$as_ac_var=yes"
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 eval "$as_ac_var=no"
18268 rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18271 ac_res=`eval echo '${'$as_ac_var'}'`
18272 { echo "$as_me:$LINENO: result: $ac_res" >&5
18273 echo "${ECHO_T}$ac_res" >&6; }
18274 if test `eval echo '${'$as_ac_var'}'` = yes; then
18275 cat >>confdefs.h <<_ACEOF
18276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18286 for ac_func in powf fmodf strtof round
18288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 cat >conftest.$ac_ext <<_ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18302 #define $ac_func innocuous_$ac_func
18304 /* System header to define __stub macros and hopefully few prototypes,
18305 which can conflict with char $ac_func (); below.
18306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18307 <limits.h> exists even on freestanding compilers. */
18310 # include <limits.h>
18312 # include <assert.h>
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18324 /* The GNU C library defines this for functions which it implements
18325 to always fail with ENOSYS. Some functions are actually named
18326 something starting with __ and the normal name is an alias. */
18327 #if defined __stub_$ac_func || defined __stub___$ac_func
18334 return $ac_func ();
18339 rm -f conftest.$ac_objext conftest$ac_exeext
18340 if { (ac_try="$ac_link"
18341 case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_link") 2>conftest.er1
18348 grep -v '^ *+' conftest.er1 >conftest.err
18350 cat conftest.err >&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } &&
18353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18354 { (case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_try") 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; } &&
18363 { ac_try='test -s conftest$ac_exeext'
18364 { (case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_try") 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 eval "$as_ac_var=yes"
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18378 eval "$as_ac_var=no"
18381 rm -f core conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
18384 ac_res=`eval echo '${'$as_ac_var'}'`
18385 { echo "$as_me:$LINENO: result: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18387 if test `eval echo '${'$as_ac_var'}'` = yes; then
18388 cat >>confdefs.h <<_ACEOF
18389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18400 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18416 #define $ac_func innocuous_$ac_func
18418 /* System header to define __stub macros and hopefully few prototypes,
18419 which can conflict with char $ac_func (); below.
18420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421 <limits.h> exists even on freestanding compilers. */
18424 # include <limits.h>
18426 # include <assert.h>
18431 /* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18438 /* The GNU C library defines this for functions which it implements
18439 to always fail with ENOSYS. Some functions are actually named
18440 something starting with __ and the normal name is an alias. */
18441 #if defined __stub_$ac_func || defined __stub___$ac_func
18448 return $ac_func ();
18453 rm -f conftest.$ac_objext conftest$ac_exeext
18454 if { (ac_try="$ac_link"
18455 case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_link") 2>conftest.er1
18462 grep -v '^ *+' conftest.er1 >conftest.err
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
18467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest$ac_exeext'
18478 { (case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_try") 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 eval "$as_ac_var=yes"
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18492 eval "$as_ac_var=no"
18495 rm -f core conftest.err conftest.$ac_objext \
18496 conftest$ac_exeext conftest.$ac_ext
18498 ac_res=`eval echo '${'$as_ac_var'}'`
18499 { echo "$as_me:$LINENO: result: $ac_res" >&5
18500 echo "${ECHO_T}$ac_res" >&6; }
18501 if test `eval echo '${'$as_ac_var'}'` = yes; then
18502 cat >>confdefs.h <<_ACEOF
18503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18512 for ac_func in isatty mkdtemp mkstemp
18514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 cat >conftest.$ac_ext <<_ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18528 #define $ac_func innocuous_$ac_func
18530 /* System header to define __stub macros and hopefully few prototypes,
18531 which can conflict with char $ac_func (); below.
18532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18533 <limits.h> exists even on freestanding compilers. */
18536 # include <limits.h>
18538 # include <assert.h>
18543 /* Override any GCC internal prototype to avoid an error.
18544 Use char because int might match the return type of a GCC
18545 builtin and then its argument prototype would still apply. */
18550 /* The GNU C library defines this for functions which it implements
18551 to always fail with ENOSYS. Some functions are actually named
18552 something starting with __ and the normal name is an alias. */
18553 #if defined __stub_$ac_func || defined __stub___$ac_func
18560 return $ac_func ();
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (ac_try="$ac_link"
18567 case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_link") 2>conftest.er1
18574 grep -v '^ *+' conftest.er1 >conftest.err
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; } &&
18589 { ac_try='test -s conftest$ac_exeext'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 eval "$as_ac_var=yes"
18601 echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18604 eval "$as_ac_var=no"
18607 rm -f core conftest.err conftest.$ac_objext \
18608 conftest$ac_exeext conftest.$ac_ext
18610 ac_res=`eval echo '${'$as_ac_var'}'`
18611 { echo "$as_me:$LINENO: result: $ac_res" >&5
18612 echo "${ECHO_T}$ac_res" >&6; }
18613 if test `eval echo '${'$as_ac_var'}'` = yes; then
18614 cat >>confdefs.h <<_ACEOF
18615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18627 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 cat >conftest.$ac_ext <<_ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18643 #define $ac_func innocuous_$ac_func
18645 /* System header to define __stub macros and hopefully few prototypes,
18646 which can conflict with char $ac_func (); below.
18647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18648 <limits.h> exists even on freestanding compilers. */
18651 # include <limits.h>
18653 # include <assert.h>
18658 /* Override any GCC internal prototype to avoid an error.
18659 Use char because int might match the return type of a GCC
18660 builtin and then its argument prototype would still apply. */
18665 /* The GNU C library defines this for functions which it implements
18666 to always fail with ENOSYS. Some functions are actually named
18667 something starting with __ and the normal name is an alias. */
18668 #if defined __stub_$ac_func || defined __stub___$ac_func
18675 return $ac_func ();
18680 rm -f conftest.$ac_objext conftest$ac_exeext
18681 if { (ac_try="$ac_link"
18682 case "(($ac_try" in
18683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684 *) ac_try_echo=$ac_try;;
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687 (eval "$ac_link") 2>conftest.er1
18689 grep -v '^ *+' conftest.er1 >conftest.err
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18695 { (case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_try") 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest$ac_exeext'
18705 { (case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_try") 2>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 eval "$as_ac_var=yes"
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18719 eval "$as_ac_var=no"
18722 rm -f core conftest.err conftest.$ac_objext \
18723 conftest$ac_exeext conftest.$ac_ext
18725 ac_res=`eval echo '${'$as_ac_var'}'`
18726 { echo "$as_me:$LINENO: result: $ac_res" >&5
18727 echo "${ECHO_T}$ac_res" >&6; }
18728 if test `eval echo '${'$as_ac_var'}'` = yes; then
18729 cat >>confdefs.h <<_ACEOF
18730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18739 for ac_func in strerror strerror_r setenv
18741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 cat >conftest.$ac_ext <<_ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18755 #define $ac_func innocuous_$ac_func
18757 /* System header to define __stub macros and hopefully few prototypes,
18758 which can conflict with char $ac_func (); below.
18759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18760 <limits.h> exists even on freestanding compilers. */
18763 # include <limits.h>
18765 # include <assert.h>
18770 /* Override any GCC internal prototype to avoid an error.
18771 Use char because int might match the return type of a GCC
18772 builtin and then its argument prototype would still apply. */
18777 /* The GNU C library defines this for functions which it implements
18778 to always fail with ENOSYS. Some functions are actually named
18779 something starting with __ and the normal name is an alias. */
18780 #if defined __stub_$ac_func || defined __stub___$ac_func
18787 return $ac_func ();
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (ac_try="$ac_link"
18794 case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_link") 2>conftest.er1
18801 grep -v '^ *+' conftest.er1 >conftest.err
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18807 { (case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_try") 2>&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; } &&
18816 { ac_try='test -s conftest$ac_exeext'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826 eval "$as_ac_var=yes"
18828 echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18831 eval "$as_ac_var=no"
18834 rm -f core conftest.err conftest.$ac_objext \
18835 conftest$ac_exeext conftest.$ac_ext
18837 ac_res=`eval echo '${'$as_ac_var'}'`
18838 { echo "$as_me:$LINENO: result: $ac_res" >&5
18839 echo "${ECHO_T}$ac_res" >&6; }
18840 if test `eval echo '${'$as_ac_var'}'` = yes; then
18841 cat >>confdefs.h <<_ACEOF
18842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18852 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 cat >conftest.$ac_ext <<_ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18868 #define $ac_func innocuous_$ac_func
18870 /* System header to define __stub macros and hopefully few prototypes,
18871 which can conflict with char $ac_func (); below.
18872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18873 <limits.h> exists even on freestanding compilers. */
18876 # include <limits.h>
18878 # include <assert.h>
18883 /* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18890 /* The GNU C library defines this for functions which it implements
18891 to always fail with ENOSYS. Some functions are actually named
18892 something starting with __ and the normal name is an alias. */
18893 #if defined __stub_$ac_func || defined __stub___$ac_func
18900 return $ac_func ();
18905 rm -f conftest.$ac_objext conftest$ac_exeext
18906 if { (ac_try="$ac_link"
18907 case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_link") 2>conftest.er1
18914 grep -v '^ *+' conftest.er1 >conftest.err
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } &&
18919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18920 { (case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_try") 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 eval "$as_ac_var=yes"
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 eval "$as_ac_var=no"
18947 rm -f core conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
18950 ac_res=`eval echo '${'$as_ac_var'}'`
18951 { echo "$as_me:$LINENO: result: $ac_res" >&5
18952 echo "${ECHO_T}$ac_res" >&6; }
18953 if test `eval echo '${'$as_ac_var'}'` = yes; then
18954 cat >>confdefs.h <<_ACEOF
18955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18966 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18982 #define $ac_func innocuous_$ac_func
18984 /* System header to define __stub macros and hopefully few prototypes,
18985 which can conflict with char $ac_func (); below.
18986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18987 <limits.h> exists even on freestanding compilers. */
18990 # include <limits.h>
18992 # include <assert.h>
18997 /* Override any GCC internal prototype to avoid an error.
18998 Use char because int might match the return type of a GCC
18999 builtin and then its argument prototype would still apply. */
19004 /* The GNU C library defines this for functions which it implements
19005 to always fail with ENOSYS. Some functions are actually named
19006 something starting with __ and the normal name is an alias. */
19007 #if defined __stub_$ac_func || defined __stub___$ac_func
19014 return $ac_func ();
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (ac_try="$ac_link"
19021 case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_link") 2>conftest.er1
19028 grep -v '^ *+' conftest.er1 >conftest.err
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } &&
19033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19034 { (case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_try") 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; } &&
19043 { ac_try='test -s conftest$ac_exeext'
19044 { (case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 (eval "$ac_try") 2>&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 eval "$as_ac_var=yes"
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 eval "$as_ac_var=no"
19061 rm -f core conftest.err conftest.$ac_objext \
19062 conftest$ac_exeext conftest.$ac_ext
19064 ac_res=`eval echo '${'$as_ac_var'}'`
19065 { echo "$as_me:$LINENO: result: $ac_res" >&5
19066 echo "${ECHO_T}$ac_res" >&6; }
19067 if test `eval echo '${'$as_ac_var'}'` = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19075 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19076 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19077 if test "${llvm_cv_c_printf_a+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19081 ac_cpp='$CPP $CPPFLAGS'
19082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19086 if test "$cross_compiling" = yes; then
19087 llvmac_cv_c_printf_a=no
19089 cat >conftest.$ac_ext <<_ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19098 #include <stdlib.h>
19104 volatile double A, B;
19108 sprintf(Buffer, "%a", A);
19112 if (A != 0x1.999999999999ap-4)
19119 rm -f conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19130 { (case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_try") 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
19139 llvm_cv_c_printf_a=yes
19141 echo "$as_me: program exited with status $ac_status" >&5
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ( exit $ac_status )
19146 llvmac_cv_c_printf_a=no
19148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19153 ac_cpp='$CPP $CPPFLAGS'
19154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19159 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19160 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19161 if test "$llvm_cv_c_printf_a" = "yes"; then
19163 cat >>confdefs.h <<\_ACEOF
19164 #define HAVE_PRINTF_A 1
19170 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19171 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19172 if test "${ac_cv_func_rand48+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 ac_cpp='$CXXCPP $CPPFLAGS'
19177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19181 cat >conftest.$ac_ext <<_ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19187 #include <stdlib.h>
19191 srand48(0);lrand48();drand48();
19196 rm -f conftest.$ac_objext
19197 if { (ac_try="$ac_compile"
19198 case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_compile") 2>conftest.er1
19205 grep -v '^ *+' conftest.er1 >conftest.err
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
19210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19211 { (case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_try") 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try='test -s conftest.$ac_objext'
19221 { (case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_try") 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_cv_func_rand48=yes
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_cv_func_rand48=no
19238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19240 ac_cpp='$CPP $CPPFLAGS'
19241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19246 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19247 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19249 if test "$ac_cv_func_rand48" = "yes" ; then
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_RAND48 1
19258 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19259 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19260 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19263 cat >conftest.$ac_ext <<_ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 $ac_includes_default
19274 char *p = (char *) strerror_s;
19282 rm -f conftest.$ac_objext
19283 if { (ac_try="$ac_compile"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_compile") 2>conftest.er1
19291 grep -v '^ *+' conftest.er1 >conftest.err
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
19296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19297 { (case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_try") 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest.$ac_objext'
19307 { (case "(($ac_try" in
19308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309 *) ac_try_echo=$ac_try;;
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312 (eval "$ac_try") 2>&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; }; then
19316 ac_cv_have_decl_strerror_s=yes
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19321 ac_cv_have_decl_strerror_s=no
19324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19326 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19327 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19328 if test $ac_cv_have_decl_strerror_s = yes; then
19330 cat >>confdefs.h <<_ACEOF
19331 #define HAVE_DECL_STRERROR_S 1
19336 cat >>confdefs.h <<_ACEOF
19337 #define HAVE_DECL_STRERROR_S 0
19345 if test "$llvm_cv_os_type" = "MingW" ; then
19346 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19347 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19348 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19351 ac_check_lib_save_LIBS=$LIBS
19353 cat >conftest.$ac_ext <<_ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19360 /* Override any GCC internal prototype to avoid an error.
19361 Use char because int might match the return type of a GCC
19362 builtin and then its argument prototype would still apply. */
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (ac_try="$ac_link"
19377 case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_link") 2>conftest.er1
19384 grep -v '^ *+' conftest.er1 >conftest.err
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19390 { (case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_try") 2>&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; } &&
19399 { ac_try='test -s conftest$ac_exeext'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 ac_cv_lib_gcc__alloca=yes
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19414 ac_cv_lib_gcc__alloca=no
19417 rm -f core conftest.err conftest.$ac_objext \
19418 conftest$ac_exeext conftest.$ac_ext
19419 LIBS=$ac_check_lib_save_LIBS
19421 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19422 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19423 if test $ac_cv_lib_gcc__alloca = yes; then
19425 cat >>confdefs.h <<\_ACEOF
19426 #define HAVE__ALLOCA 1
19431 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19432 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19433 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 ac_check_lib_save_LIBS=$LIBS
19438 cat >conftest.$ac_ext <<_ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19445 /* Override any GCC internal prototype to avoid an error.
19446 Use char because int might match the return type of a GCC
19447 builtin and then its argument prototype would still apply. */
19455 return __alloca ();
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (ac_try="$ac_link"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_link") 2>conftest.er1
19469 grep -v '^ *+' conftest.er1 >conftest.err
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } &&
19474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19475 { (case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_try") 2>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; } &&
19484 { ac_try='test -s conftest$ac_exeext'
19485 { (case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_try") 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_cv_lib_gcc___alloca=yes
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19499 ac_cv_lib_gcc___alloca=no
19502 rm -f core conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
19504 LIBS=$ac_check_lib_save_LIBS
19506 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19507 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19508 if test $ac_cv_lib_gcc___alloca = yes; then
19510 cat >>confdefs.h <<\_ACEOF
19511 #define HAVE___ALLOCA 1
19516 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19517 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19518 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 ac_check_lib_save_LIBS=$LIBS
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19530 /* Override any GCC internal prototype to avoid an error.
19531 Use char because int might match the return type of a GCC
19532 builtin and then its argument prototype would still apply. */
19540 return __chkstk ();
19545 rm -f conftest.$ac_objext conftest$ac_exeext
19546 if { (ac_try="$ac_link"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_link") 2>conftest.er1
19554 grep -v '^ *+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19560 { (case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_try") 2>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest$ac_exeext'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_cv_lib_gcc___chkstk=yes
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 ac_cv_lib_gcc___chkstk=no
19587 rm -f core conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19592 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19593 if test $ac_cv_lib_gcc___chkstk = yes; then
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE___CHKSTK 1
19601 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19602 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19603 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 ac_check_lib_save_LIBS=$LIBS
19608 cat >conftest.$ac_ext <<_ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19615 /* Override any GCC internal prototype to avoid an error.
19616 Use char because int might match the return type of a GCC
19617 builtin and then its argument prototype would still apply. */
19625 return ___chkstk ();
19630 rm -f conftest.$ac_objext conftest$ac_exeext
19631 if { (ac_try="$ac_link"
19632 case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_link") 2>conftest.er1
19639 grep -v '^ *+' conftest.er1 >conftest.err
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
19644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19645 { (case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_try") 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest$ac_exeext'
19655 { (case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_try") 2>&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_cv_lib_gcc____chkstk=yes
19666 echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 ac_cv_lib_gcc____chkstk=no
19672 rm -f core conftest.err conftest.$ac_objext \
19673 conftest$ac_exeext conftest.$ac_ext
19674 LIBS=$ac_check_lib_save_LIBS
19676 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19677 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19678 if test $ac_cv_lib_gcc____chkstk = yes; then
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE____CHKSTK 1
19687 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19688 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19689 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 ac_check_lib_save_LIBS=$LIBS
19694 cat >conftest.$ac_ext <<_ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19701 /* Override any GCC internal prototype to avoid an error.
19702 Use char because int might match the return type of a GCC
19703 builtin and then its argument prototype would still apply. */
19711 return __ashldi3 ();
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_link") 2>conftest.er1
19725 grep -v '^ *+' conftest.er1 >conftest.err
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } &&
19730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19731 { (case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_try") 2>&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } &&
19740 { ac_try='test -s conftest$ac_exeext'
19741 { (case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_try") 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_cv_lib_gcc___ashldi3=yes
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19755 ac_cv_lib_gcc___ashldi3=no
19758 rm -f core conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_check_lib_save_LIBS
19762 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19763 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19764 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE___ASHLDI3 1
19772 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19773 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19774 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 ac_check_lib_save_LIBS=$LIBS
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19786 /* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19796 return __ashrdi3 ();
19801 rm -f conftest.$ac_objext conftest$ac_exeext
19802 if { (ac_try="$ac_link"
19803 case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_link") 2>conftest.er1
19810 grep -v '^ *+' conftest.er1 >conftest.err
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19816 { (case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_try") 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest$ac_exeext'
19826 { (case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_try") 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19835 ac_cv_lib_gcc___ashrdi3=yes
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 ac_cv_lib_gcc___ashrdi3=no
19843 rm -f core conftest.err conftest.$ac_objext \
19844 conftest$ac_exeext conftest.$ac_ext
19845 LIBS=$ac_check_lib_save_LIBS
19847 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19848 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19849 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19851 cat >>confdefs.h <<\_ACEOF
19852 #define HAVE___ASHRDI3 1
19857 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19858 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19859 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 ac_check_lib_save_LIBS=$LIBS
19864 cat >conftest.$ac_ext <<_ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19871 /* Override any GCC internal prototype to avoid an error.
19872 Use char because int might match the return type of a GCC
19873 builtin and then its argument prototype would still apply. */
19881 return __divdi3 ();
19886 rm -f conftest.$ac_objext conftest$ac_exeext
19887 if { (ac_try="$ac_link"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_link") 2>conftest.er1
19895 grep -v '^ *+' conftest.er1 >conftest.err
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } &&
19900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19901 { (case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_try") 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest$ac_exeext'
19911 { (case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_try") 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_cv_lib_gcc___divdi3=yes
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19925 ac_cv_lib_gcc___divdi3=no
19928 rm -f core conftest.err conftest.$ac_objext \
19929 conftest$ac_exeext conftest.$ac_ext
19930 LIBS=$ac_check_lib_save_LIBS
19932 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19933 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19934 if test $ac_cv_lib_gcc___divdi3 = yes; then
19936 cat >>confdefs.h <<\_ACEOF
19937 #define HAVE___DIVDI3 1
19942 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19943 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19944 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 ac_check_lib_save_LIBS=$LIBS
19949 cat >conftest.$ac_ext <<_ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19956 /* Override any GCC internal prototype to avoid an error.
19957 Use char because int might match the return type of a GCC
19958 builtin and then its argument prototype would still apply. */
19966 return __fixdfdi ();
19971 rm -f conftest.$ac_objext conftest$ac_exeext
19972 if { (ac_try="$ac_link"
19973 case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_link") 2>conftest.er1
19980 grep -v '^ *+' conftest.er1 >conftest.err
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19986 { (case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_try") 2>&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest$ac_exeext'
19996 { (case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_try") 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ac_cv_lib_gcc___fixdfdi=yes
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ac_cv_lib_gcc___fixdfdi=no
20013 rm -f core conftest.err conftest.$ac_objext \
20014 conftest$ac_exeext conftest.$ac_ext
20015 LIBS=$ac_check_lib_save_LIBS
20017 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20018 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20019 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE___FIXDFDI 1
20027 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20028 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20029 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 ac_check_lib_save_LIBS=$LIBS
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20041 /* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20051 return __fixsfdi ();
20056 rm -f conftest.$ac_objext conftest$ac_exeext
20057 if { (ac_try="$ac_link"
20058 case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_link") 2>conftest.er1
20065 grep -v '^ *+' conftest.er1 >conftest.err
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
20070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20071 { (case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_try") 2>&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; } &&
20080 { ac_try='test -s conftest$ac_exeext'
20081 { (case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_try") 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_lib_gcc___fixsfdi=yes
20092 echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20095 ac_cv_lib_gcc___fixsfdi=no
20098 rm -f core conftest.err conftest.$ac_objext \
20099 conftest$ac_exeext conftest.$ac_ext
20100 LIBS=$ac_check_lib_save_LIBS
20102 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20103 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20104 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20106 cat >>confdefs.h <<\_ACEOF
20107 #define HAVE___FIXSFDI 1
20112 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20113 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20114 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 ac_check_lib_save_LIBS=$LIBS
20119 cat >conftest.$ac_ext <<_ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20126 /* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
20132 char __floatdidf ();
20136 return __floatdidf ();
20141 rm -f conftest.$ac_objext conftest$ac_exeext
20142 if { (ac_try="$ac_link"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_link") 2>conftest.er1
20150 grep -v '^ *+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } &&
20155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; } &&
20165 { ac_try='test -s conftest$ac_exeext'
20166 { (case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_try") 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_cv_lib_gcc___floatdidf=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_cv_lib_gcc___floatdidf=no
20183 rm -f core conftest.err conftest.$ac_objext \
20184 conftest$ac_exeext conftest.$ac_ext
20185 LIBS=$ac_check_lib_save_LIBS
20187 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20188 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20189 if test $ac_cv_lib_gcc___floatdidf = yes; then
20191 cat >>confdefs.h <<\_ACEOF
20192 #define HAVE___FLOATDIDF 1
20197 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20198 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20199 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20200 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 ac_check_lib_save_LIBS=$LIBS
20204 cat >conftest.$ac_ext <<_ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20211 /* Override any GCC internal prototype to avoid an error.
20212 Use char because int might match the return type of a GCC
20213 builtin and then its argument prototype would still apply. */
20221 return __lshrdi3 ();
20226 rm -f conftest.$ac_objext conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_link") 2>conftest.er1
20235 grep -v '^ *+' conftest.er1 >conftest.err
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
20240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20241 { (case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_try") 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; } &&
20250 { ac_try='test -s conftest$ac_exeext'
20251 { (case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_try") 2>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_lib_gcc___lshrdi3=yes
20262 echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20265 ac_cv_lib_gcc___lshrdi3=no
20268 rm -f core conftest.err conftest.$ac_objext \
20269 conftest$ac_exeext conftest.$ac_ext
20270 LIBS=$ac_check_lib_save_LIBS
20272 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20273 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20274 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20276 cat >>confdefs.h <<\_ACEOF
20277 #define HAVE___LSHRDI3 1
20282 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20283 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20284 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20287 ac_check_lib_save_LIBS=$LIBS
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 /* Override any GCC internal prototype to avoid an error.
20297 Use char because int might match the return type of a GCC
20298 builtin and then its argument prototype would still apply. */
20306 return __moddi3 ();
20311 rm -f conftest.$ac_objext conftest$ac_exeext
20312 if { (ac_try="$ac_link"
20313 case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_link") 2>conftest.er1
20320 grep -v '^ *+' conftest.er1 >conftest.err
20322 cat conftest.err >&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } &&
20325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20326 { (case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_try") 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; } &&
20335 { ac_try='test -s conftest$ac_exeext'
20336 { (case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_try") 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_cv_lib_gcc___moddi3=yes
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ac_cv_lib_gcc___moddi3=no
20353 rm -f core conftest.err conftest.$ac_objext \
20354 conftest$ac_exeext conftest.$ac_ext
20355 LIBS=$ac_check_lib_save_LIBS
20357 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20358 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20359 if test $ac_cv_lib_gcc___moddi3 = yes; then
20361 cat >>confdefs.h <<\_ACEOF
20362 #define HAVE___MODDI3 1
20367 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20368 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20369 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 ac_check_lib_save_LIBS=$LIBS
20374 cat >conftest.$ac_ext <<_ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20381 /* Override any GCC internal prototype to avoid an error.
20382 Use char because int might match the return type of a GCC
20383 builtin and then its argument prototype would still apply. */
20391 return __udivdi3 ();
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_link") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411 { (case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_try") 2>&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try='test -s conftest$ac_exeext'
20421 { (case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_try") 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_lib_gcc___udivdi3=yes
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ac_cv_lib_gcc___udivdi3=no
20438 rm -f core conftest.err conftest.$ac_objext \
20439 conftest$ac_exeext conftest.$ac_ext
20440 LIBS=$ac_check_lib_save_LIBS
20442 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20443 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20444 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20446 cat >>confdefs.h <<\_ACEOF
20447 #define HAVE___UDIVDI3 1
20452 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20453 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20454 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 ac_check_lib_save_LIBS=$LIBS
20459 cat >conftest.$ac_ext <<_ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20466 /* Override any GCC internal prototype to avoid an error.
20467 Use char because int might match the return type of a GCC
20468 builtin and then its argument prototype would still apply. */
20476 return __umoddi3 ();
20481 rm -f conftest.$ac_objext conftest$ac_exeext
20482 if { (ac_try="$ac_link"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_link") 2>conftest.er1
20490 grep -v '^ *+' conftest.er1 >conftest.err
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20496 { (case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_try") 2>&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; } &&
20505 { ac_try='test -s conftest$ac_exeext'
20506 { (case "(($ac_try" in
20507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508 *) ac_try_echo=$ac_try;;
20510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511 (eval "$ac_try") 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; }; then
20515 ac_cv_lib_gcc___umoddi3=yes
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ac_cv_lib_gcc___umoddi3=no
20523 rm -f core conftest.err conftest.$ac_objext \
20524 conftest$ac_exeext conftest.$ac_ext
20525 LIBS=$ac_check_lib_save_LIBS
20527 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20528 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20529 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE___UMODDI3 1
20538 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20539 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20540 if test "${ac_cv_lib_gcc___main+set}" = set; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 ac_check_lib_save_LIBS=$LIBS
20545 cat >conftest.$ac_ext <<_ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20552 /* Override any GCC internal prototype to avoid an error.
20553 Use char because int might match the return type of a GCC
20554 builtin and then its argument prototype would still apply. */
20567 rm -f conftest.$ac_objext conftest$ac_exeext
20568 if { (ac_try="$ac_link"
20569 case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_link") 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20582 { (case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_try") 2>&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try='test -s conftest$ac_exeext'
20592 { (case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_try") 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 ac_cv_lib_gcc___main=yes
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_cv_lib_gcc___main=no
20609 rm -f core conftest.err conftest.$ac_objext \
20610 conftest$ac_exeext conftest.$ac_ext
20611 LIBS=$ac_check_lib_save_LIBS
20613 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20614 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20615 if test $ac_cv_lib_gcc___main = yes; then
20617 cat >>confdefs.h <<\_ACEOF
20618 #define HAVE___MAIN 1
20623 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20624 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20625 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 ac_check_lib_save_LIBS=$LIBS
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20637 /* Override any GCC internal prototype to avoid an error.
20638 Use char because int might match the return type of a GCC
20639 builtin and then its argument prototype would still apply. */
20647 return __cmpdi2 ();
20652 rm -f conftest.$ac_objext conftest$ac_exeext
20653 if { (ac_try="$ac_link"
20654 case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_link") 2>conftest.er1
20661 grep -v '^ *+' conftest.er1 >conftest.err
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } &&
20666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20667 { (case "(($ac_try" in
20668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20669 *) ac_try_echo=$ac_try;;
20671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20672 (eval "$ac_try") 2>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; } &&
20676 { ac_try='test -s conftest$ac_exeext'
20677 { (case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_try") 2>&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 ac_cv_lib_gcc___cmpdi2=yes
20688 echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20691 ac_cv_lib_gcc___cmpdi2=no
20694 rm -f core conftest.err conftest.$ac_objext \
20695 conftest$ac_exeext conftest.$ac_ext
20696 LIBS=$ac_check_lib_save_LIBS
20698 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20699 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20700 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20702 cat >>confdefs.h <<\_ACEOF
20703 #define HAVE___CMPDI2 1
20710 if test "$llvm_cv_os_type" = "MingW" ; then
20711 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20712 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20713 cat >conftest.$ac_ext <<_ACEOF
20714 #include <windows.h>
20715 #include <imagehlp.h>
20716 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20717 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20719 rm -f conftest.$ac_objext
20720 if { (ac_try="$ac_compile"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_compile") 2>conftest.er1
20728 grep -v '^ *+' conftest.er1 >conftest.err
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20734 { (case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_try") 2>&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; } &&
20743 { ac_try='test -s conftest.$ac_objext'
20744 { (case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_try") 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20754 { echo "$as_me:$LINENO: result: yes" >&5
20755 echo "${ECHO_T}yes" >&6; }
20756 llvm_cv_win32_elmcb_pcstr="PCSTR"
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20763 { echo "$as_me:$LINENO: result: no" >&5
20764 echo "${ECHO_T}no" >&6; }
20765 llvm_cv_win32_elmcb_pcstr="PSTR"
20769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20771 cat >>confdefs.h <<_ACEOF
20772 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20778 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20779 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20780 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20784 ac_cpp='$CXXCPP $CPPFLAGS'
20785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20789 cat >conftest.$ac_ext <<_ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20804 rm -f conftest.$ac_objext
20805 if { (ac_try="$ac_compile"
20806 case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_compile") 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } &&
20818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20819 { (case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_try") 2>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; } &&
20828 { ac_try='test -s conftest.$ac_objext'
20829 { (case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_try") 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 ac_cv_func_isnan_in_math_h=yes
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ac_cv_func_isnan_in_math_h=no
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848 ac_cpp='$CPP $CPPFLAGS'
20849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20854 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20855 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20858 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_ISNAN_IN_MATH_H 1
20866 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20867 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20868 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 ac_cpp='$CXXCPP $CPPFLAGS'
20873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20877 cat >conftest.$ac_ext <<_ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_compile") 2>conftest.er1
20901 grep -v '^ *+' conftest.er1 >conftest.err
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } &&
20906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20907 { (case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_try") 2>&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; } &&
20916 { ac_try='test -s conftest.$ac_objext'
20917 { (case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_try") 2>&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; }; then
20926 ac_cv_func_isnan_in_cmath=yes
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 ac_cv_func_isnan_in_cmath=no
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936 ac_cpp='$CPP $CPPFLAGS'
20937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20942 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20943 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20945 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_ISNAN_IN_CMATH 1
20953 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20954 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20955 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 ac_cpp='$CXXCPP $CPPFLAGS'
20960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20964 cat >conftest.$ac_ext <<_ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20974 float f; std::isnan(f);
20979 rm -f conftest.$ac_objext
20980 if { (ac_try="$ac_compile"
20981 case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_compile") 2>conftest.er1
20988 grep -v '^ *+' conftest.er1 >conftest.err
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20994 { (case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999 (eval "$ac_try") 2>&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } &&
21003 { ac_try='test -s conftest.$ac_objext'
21004 { (case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_try") 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 ac_cv_func_std_isnan_in_cmath=yes
21015 echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21018 ac_cv_func_std_isnan_in_cmath=no
21021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023 ac_cpp='$CPP $CPPFLAGS'
21024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21029 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21030 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21032 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21034 cat >>confdefs.h <<\_ACEOF
21035 #define HAVE_STD_ISNAN_IN_CMATH 1
21041 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21042 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21043 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 ac_cpp='$CXXCPP $CPPFLAGS'
21048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21052 cat >conftest.$ac_ext <<_ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21076 grep -v '^ *+' conftest.er1 >conftest.err
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } &&
21081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21082 { (case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_try") 2>&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; } &&
21091 { ac_try='test -s conftest.$ac_objext'
21092 { (case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_try") 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
21101 ac_cv_func_isinf_in_math_h=yes
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_cv_func_isinf_in_math_h=no
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21111 ac_cpp='$CPP $CPPFLAGS'
21112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21117 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21118 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21120 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21122 cat >>confdefs.h <<\_ACEOF
21123 #define HAVE_ISINF_IN_MATH_H 1
21128 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21129 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21130 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21134 ac_cpp='$CXXCPP $CPPFLAGS'
21135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161 (eval "$ac_compile") 2>conftest.er1
21163 grep -v '^ *+' conftest.er1 >conftest.err
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21169 { (case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_try") 2>&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; } &&
21178 { ac_try='test -s conftest.$ac_objext'
21179 { (case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_try") 2>&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; }; then
21188 ac_cv_func_isinf_in_cmath=yes
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21193 ac_cv_func_isinf_in_cmath=no
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21198 ac_cpp='$CPP $CPPFLAGS'
21199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21204 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21205 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21207 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21209 cat >>confdefs.h <<\_ACEOF
21210 #define HAVE_ISINF_IN_CMATH 1
21215 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21216 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21217 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 ac_cpp='$CXXCPP $CPPFLAGS'
21222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21236 float f; std::isinf(f)}
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248 (eval "$ac_compile") 2>conftest.er1
21250 grep -v '^ *+' conftest.er1 >conftest.err
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } &&
21255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21256 { (case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261 (eval "$ac_try") 2>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest.$ac_objext'
21266 { (case "(($ac_try" in
21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271 (eval "$ac_try") 2>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; }; then
21275 ac_cv_func_std_isinf_in_cmath=yes
21277 echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21280 ac_cv_func_std_isinf_in_cmath=no
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285 ac_cpp='$CPP $CPPFLAGS'
21286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21291 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21292 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21294 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21296 cat >>confdefs.h <<\_ACEOF
21297 #define HAVE_STD_ISINF_IN_CMATH 1
21302 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21303 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21304 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 ac_cpp='$CXXCPP $CPPFLAGS'
21309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21313 cat >conftest.$ac_ext <<_ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 #include <ieeefp.h>
21323 float f; finite(f);
21328 rm -f conftest.$ac_objext
21329 if { (ac_try="$ac_compile"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_compile") 2>conftest.er1
21337 grep -v '^ *+' conftest.er1 >conftest.err
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
21342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21343 { (case "(($ac_try" in
21344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345 *) ac_try_echo=$ac_try;;
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_try") 2>&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; } &&
21352 { ac_try='test -s conftest.$ac_objext'
21353 { (case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_try") 2>&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; }; then
21362 ac_cv_func_finite_in_ieeefp_h=yes
21364 echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21367 ac_cv_func_finite_in_ieeefp_h=no
21370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21372 ac_cpp='$CPP $CPPFLAGS'
21373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21378 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21379 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21381 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21383 cat >>confdefs.h <<\_ACEOF
21384 #define HAVE_FINITE_IN_IEEEFP_H 1
21391 if test "$llvm_cv_platform_type" = "Unix" ; then
21394 for ac_header in stdlib.h unistd.h
21396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21403 ac_res=`eval echo '${'$as_ac_Header'}'`
21404 { echo "$as_me:$LINENO: result: $ac_res" >&5
21405 echo "${ECHO_T}$ac_res" >&6; }
21407 # Is the header compilable?
21408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21410 cat >conftest.$ac_ext <<_ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 $ac_includes_default
21417 #include <$ac_header>
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_compile") 2>conftest.er1
21428 grep -v '^ *+' conftest.er1 >conftest.err
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21434 { (case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_try") 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
21444 { (case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_try") 2>&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21453 ac_header_compiler=yes
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_header_compiler=no
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21463 echo "${ECHO_T}$ac_header_compiler" >&6; }
21465 # Is the header present?
21466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21468 cat >conftest.$ac_ext <<_ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474 #include <$ac_header>
21476 if { (ac_try="$ac_cpp conftest.$ac_ext"
21477 case "(($ac_try" in
21478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479 *) ac_try_echo=$ac_try;;
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21484 grep -v '^ *+' conftest.er1 >conftest.err
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } >/dev/null; then
21489 if test -s conftest.err; then
21490 ac_cpp_err=$ac_c_preproc_warn_flag
21491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21498 if test -z "$ac_cpp_err"; then
21499 ac_header_preproc=yes
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 ac_header_preproc=no
21507 rm -f conftest.err conftest.$ac_ext
21508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21509 echo "${ECHO_T}$ac_header_preproc" >&6; }
21511 # So? What about this header?
21512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21518 ac_header_preproc=yes
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21534 ## ----------------------------------- ##
21535 ## Report this to llvmbugs@cs.uiuc.edu ##
21536 ## ----------------------------------- ##
21538 ) | sed "s/^/$as_me: WARNING: /" >&2
21541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21546 eval "$as_ac_Header=\$ac_header_preproc"
21548 ac_res=`eval echo '${'$as_ac_Header'}'`
21549 { echo "$as_me:$LINENO: result: $ac_res" >&5
21550 echo "${ECHO_T}$ac_res" >&6; }
21553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21554 cat >>confdefs.h <<_ACEOF
21555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21563 for ac_func in getpagesize
21565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21579 #define $ac_func innocuous_$ac_func
21581 /* System header to define __stub macros and hopefully few prototypes,
21582 which can conflict with char $ac_func (); below.
21583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21584 <limits.h> exists even on freestanding compilers. */
21587 # include <limits.h>
21589 # include <assert.h>
21594 /* Override any GCC internal prototype to avoid an error.
21595 Use char because int might match the return type of a GCC
21596 builtin and then its argument prototype would still apply. */
21601 /* The GNU C library defines this for functions which it implements
21602 to always fail with ENOSYS. Some functions are actually named
21603 something starting with __ and the normal name is an alias. */
21604 #if defined __stub_$ac_func || defined __stub___$ac_func
21611 return $ac_func ();
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_link") 2>conftest.er1
21625 grep -v '^ *+' conftest.er1 >conftest.err
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } &&
21630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21631 { (case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_try") 2>&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; } &&
21640 { ac_try='test -s conftest$ac_exeext'
21641 { (case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_try") 2>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 eval "$as_ac_var=yes"
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 eval "$as_ac_var=no"
21658 rm -f core conftest.err conftest.$ac_objext \
21659 conftest$ac_exeext conftest.$ac_ext
21661 ac_res=`eval echo '${'$as_ac_var'}'`
21662 { echo "$as_me:$LINENO: result: $ac_res" >&5
21663 echo "${ECHO_T}$ac_res" >&6; }
21664 if test `eval echo '${'$as_ac_var'}'` = yes; then
21665 cat >>confdefs.h <<_ACEOF
21666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21672 { echo "$as_me:$LINENO: checking for working mmap" >&5
21673 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21674 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 if test "$cross_compiling" = yes; then
21678 ac_cv_func_mmap_fixed_mapped=no
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21686 $ac_includes_default
21687 /* malloc might have been renamed as rpl_malloc. */
21690 /* Thanks to Mike Haertel and Jim Avera for this test.
21691 Here is a matrix of mmap possibilities:
21692 mmap private not fixed
21693 mmap private fixed at somewhere currently unmapped
21694 mmap private fixed at somewhere already mapped
21695 mmap shared not fixed
21696 mmap shared fixed at somewhere currently unmapped
21697 mmap shared fixed at somewhere already mapped
21698 For private mappings, we should verify that changes cannot be read()
21699 back from the file, nor mmap's back from the file at a different
21700 address. (There have been systems where private was not correctly
21701 implemented like the infamous i386 svr4.0, and systems where the
21702 VM page cache was not coherent with the file system buffer cache
21703 like early versions of FreeBSD and possibly contemporary NetBSD.)
21704 For shared mappings, we should conversely verify that changes get
21705 propagated back to all the places they're supposed to be.
21707 Grep wants private fixed already mapped.
21708 The main things grep needs to know about mmap are:
21709 * does it exist and is it safe to write into the mmap'd area
21710 * how to use it (BSD variants) */
21713 #include <sys/mman.h>
21715 #if !STDC_HEADERS && !HAVE_STDLIB_H
21719 /* This mess was copied from the GNU getpagesize.h. */
21720 #if !HAVE_GETPAGESIZE
21721 /* Assume that all systems that can run configure have sys/param.h. */
21722 # if !HAVE_SYS_PARAM_H
21723 # define HAVE_SYS_PARAM_H 1
21726 # ifdef _SC_PAGESIZE
21727 # define getpagesize() sysconf(_SC_PAGESIZE)
21728 # else /* no _SC_PAGESIZE */
21729 # if HAVE_SYS_PARAM_H
21730 # include <sys/param.h>
21731 # ifdef EXEC_PAGESIZE
21732 # define getpagesize() EXEC_PAGESIZE
21733 # else /* no EXEC_PAGESIZE */
21735 # define getpagesize() NBPG * CLSIZE
21738 # endif /* no CLSIZE */
21739 # else /* no NBPG */
21741 # define getpagesize() NBPC
21742 # else /* no NBPC */
21744 # define getpagesize() PAGESIZE
21745 # endif /* PAGESIZE */
21746 # endif /* no NBPC */
21747 # endif /* no NBPG */
21748 # endif /* no EXEC_PAGESIZE */
21749 # else /* no HAVE_SYS_PARAM_H */
21750 # define getpagesize() 8192 /* punt totally */
21751 # endif /* no HAVE_SYS_PARAM_H */
21752 # endif /* no _SC_PAGESIZE */
21754 #endif /* no HAVE_GETPAGESIZE */
21759 char *data, *data2, *data3;
21763 pagesize = getpagesize ();
21765 /* First, make a file with some known garbage in it. */
21766 data = (char *) malloc (pagesize);
21769 for (i = 0; i < pagesize; ++i)
21770 *(data + i) = rand ();
21772 fd = creat ("conftest.mmap", 0600);
21775 if (write (fd, data, pagesize) != pagesize)
21779 /* Next, try to mmap the file at a fixed address which already has
21780 something else allocated at it. If we can, also make sure that
21781 we see the same garbage. */
21782 fd = open ("conftest.mmap", O_RDWR);
21785 data2 = (char *) malloc (2 * pagesize);
21788 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21789 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21790 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21792 for (i = 0; i < pagesize; ++i)
21793 if (*(data + i) != *(data2 + i))
21796 /* Finally, make sure that changes to the mapped area do not
21797 percolate back to the file as seen by read(). (This is a bug on
21798 some variants of i386 svr4.0.) */
21799 for (i = 0; i < pagesize; ++i)
21800 *(data2 + i) = *(data2 + i) + 1;
21801 data3 = (char *) malloc (pagesize);
21804 if (read (fd, data3, pagesize) != pagesize)
21806 for (i = 0; i < pagesize; ++i)
21807 if (*(data + i) != *(data3 + i))
21813 rm -f conftest$ac_exeext
21814 if { (ac_try="$ac_link"
21815 case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_link") 2>&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21824 { (case "(($ac_try" in
21825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826 *) ac_try_echo=$ac_try;;
21828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829 (eval "$ac_try") 2>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
21833 ac_cv_func_mmap_fixed_mapped=yes
21835 echo "$as_me: program exited with status $ac_status" >&5
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21839 ( exit $ac_status )
21840 ac_cv_func_mmap_fixed_mapped=no
21842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21847 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21848 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21849 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21851 cat >>confdefs.h <<\_ACEOF
21852 #define HAVE_MMAP 1
21856 rm -f conftest.mmap
21858 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21859 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21860 if test "${ac_cv_func_mmap_file+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 ac_cpp='$CPP $CPPFLAGS'
21865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21869 if test "$cross_compiling" = yes; then
21870 ac_cv_func_mmap_file=no
21872 cat >conftest.$ac_ext <<_ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21880 #include <sys/types.h>
21881 #include <sys/mman.h>
21889 fd = creat ("foo",0777);
21890 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21892 return (fd != (int) MAP_FAILED);
21897 rm -f conftest$ac_exeext
21898 if { (ac_try="$ac_link"
21899 case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904 (eval "$ac_link") 2>&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21908 { (case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_try") 2>&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; }; then
21917 ac_cv_func_mmap_file=yes
21919 echo "$as_me: program exited with status $ac_status" >&5
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ( exit $ac_status )
21924 ac_cv_func_mmap_file=no
21926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21931 ac_cpp='$CPP $CPPFLAGS'
21932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21938 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21939 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21940 if test "$ac_cv_func_mmap_file" = yes; then
21942 cat >>confdefs.h <<\_ACEOF
21943 #define HAVE_MMAP_FILE
21950 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21951 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21952 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 if test "$llvm_cv_os_type" = "Interix" ; then
21956 ac_cv_need_dev_zero_for_mmap=yes
21958 ac_cv_need_dev_zero_for_mmap=no
21962 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21963 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21964 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21966 cat >>confdefs.h <<\_ACEOF
21967 #define NEED_DEV_ZERO_FOR_MMAP 1
21972 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21974 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21975 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21977 if test "$ac_cv_func_mmap_file" = "no"
21979 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21980 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21984 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21985 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21987 ac_cpp='$CXXCPP $CPPFLAGS'
21988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21992 cat >conftest.$ac_ext <<_ACEOF
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h. */
21999 volatile unsigned long val = 1;
22000 __sync_synchronize();
22001 __sync_val_compare_and_swap(&val, 1, 0);
22002 __sync_add_and_fetch(&val, 1);
22003 __sync_sub_and_fetch(&val, 1);
22008 rm -f conftest.$ac_objext conftest$ac_exeext
22009 if { (ac_try="$ac_link"
22010 case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_link") 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } &&
22022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22023 { (case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_try") 2>&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; } &&
22032 { ac_try='test -s conftest$ac_exeext'
22033 { (case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_try") 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22043 ac_cpp='$CPP $CPPFLAGS'
22044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22048 { echo "$as_me:$LINENO: result: yes" >&5
22049 echo "${ECHO_T}yes" >&6; }
22051 cat >>confdefs.h <<\_ACEOF
22052 #define LLVM_MULTITHREADED 1
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22059 { echo "$as_me:$LINENO: result: no" >&5
22060 echo "${ECHO_T}no" >&6; }
22062 cat >>confdefs.h <<\_ACEOF
22063 #define LLVM_MULTITHREADED 0
22066 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22067 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22070 rm -f core conftest.err conftest.$ac_objext \
22071 conftest$ac_exeext conftest.$ac_ext
22074 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22075 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22076 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22077 if test "${llvm_cv_linux_mixed+set}" = set; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22081 ac_cpp='$CPP $CPPFLAGS'
22082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22086 cat >conftest.$ac_ext <<_ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22093 error: Not x86-64 even if uname says so!
22104 rm -f conftest.$ac_objext
22105 if { (ac_try="$ac_compile"
22106 case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_compile") 2>conftest.er1
22113 grep -v '^ *+' conftest.er1 >conftest.err
22115 cat conftest.err >&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } &&
22118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22119 { (case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_try") 2>&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; } &&
22128 { ac_try='test -s conftest.$ac_objext'
22129 { (case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_try") 2>&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; }; then
22138 llvm_cv_linux_mixed=no
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22143 llvm_cv_linux_mixed=yes
22146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22148 ac_cpp='$CPP $CPPFLAGS'
22149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22155 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22156 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22158 if test "$llvm_cv_linux_mixed" = "yes"; then
22159 llvm_cv_target_arch="x86"
22165 for ac_func in __dso_handle
22167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 cat >conftest.$ac_ext <<_ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h. */
22179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22181 #define $ac_func innocuous_$ac_func
22183 /* System header to define __stub macros and hopefully few prototypes,
22184 which can conflict with char $ac_func (); below.
22185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22186 <limits.h> exists even on freestanding compilers. */
22189 # include <limits.h>
22191 # include <assert.h>
22196 /* Override any GCC internal prototype to avoid an error.
22197 Use char because int might match the return type of a GCC
22198 builtin and then its argument prototype would still apply. */
22203 /* The GNU C library defines this for functions which it implements
22204 to always fail with ENOSYS. Some functions are actually named
22205 something starting with __ and the normal name is an alias. */
22206 #if defined __stub_$ac_func || defined __stub___$ac_func
22213 return $ac_func ();
22218 rm -f conftest.$ac_objext conftest$ac_exeext
22219 if { (ac_try="$ac_link"
22220 case "(($ac_try" in
22221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22222 *) ac_try_echo=$ac_try;;
22224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22225 (eval "$ac_link") 2>conftest.er1
22227 grep -v '^ *+' conftest.er1 >conftest.err
22229 cat conftest.err >&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); } &&
22232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22233 { (case "(($ac_try" in
22234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235 *) ac_try_echo=$ac_try;;
22237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22238 (eval "$ac_try") 2>&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); }; } &&
22242 { ac_try='test -s conftest$ac_exeext'
22243 { (case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_try") 2>&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; }; then
22252 eval "$as_ac_var=yes"
22254 echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22257 eval "$as_ac_var=no"
22260 rm -f core conftest.err conftest.$ac_objext \
22261 conftest$ac_exeext conftest.$ac_ext
22263 ac_res=`eval echo '${'$as_ac_var'}'`
22264 { echo "$as_me:$LINENO: result: $ac_res" >&5
22265 echo "${ECHO_T}$ac_res" >&6; }
22266 if test `eval echo '${'$as_ac_var'}'` = yes; then
22267 cat >>confdefs.h <<_ACEOF
22268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22275 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22276 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22277 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22280 llvm_cv_llvmgcc_dragonegg="no"
22281 if test -n "$LLVMGCC" ; then
22282 cp /dev/null conftest.c
22283 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22284 if test $? -eq 0 ; then
22285 llvm_cv_llvmgcc_dragonegg="yes"
22290 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22291 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22293 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22294 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22295 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22297 LLVMCC_EMITIR_FLAG="-emit-llvm"
22298 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22303 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22304 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22305 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22306 echo $ECHO_N "(cached) $ECHO_C" >&6
22308 llvm_cv_llvmgcc_sanity="no"
22309 if test -n "$LLVMGCC" ; then
22310 cp /dev/null conftest.c
22311 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22312 grep 'target datalayout =' > /dev/null 2>&1
22313 if test $? -eq 0 ; then
22314 llvm_cv_llvmgcc_sanity="yes"
22319 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22320 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22322 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22323 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22324 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22325 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22326 LLVMCC1=$llvmcc1path
22328 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22329 LLVMCC1PLUS=$llvmcc1pluspath
22331 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22332 LLVMGCCDIR=$llvmgccdir
22334 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22335 LLVMGCC_LANGS=$llvmgcclangs
22337 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22340 { echo "$as_me:$LINENO: result: ok" >&5
22341 echo "${ECHO_T}ok" >&6; }
22344 SHLIBEXT=$libltdl_cv_shlibext
22347 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22350 # Translate the various configuration directories and other basic
22351 # information into substitutions that will end up in Makefile.config.in
22352 # that these configured values can be used by the makefiles
22353 if test "${prefix}" = "NONE" ; then
22354 prefix="/usr/local"
22356 eval LLVM_PREFIX="${prefix}";
22357 eval LLVM_BINDIR="${prefix}/bin";
22358 eval LLVM_LIBDIR="${prefix}/lib";
22359 eval LLVM_DATADIR="${prefix}/share/llvm";
22360 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22361 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22362 eval LLVM_INCLUDEDIR="${prefix}/include";
22363 eval LLVM_INFODIR="${prefix}/info";
22364 eval LLVM_MANDIR="${prefix}/man";
22365 LLVM_CONFIGTIME=`date`
22377 # Place the various directores into the config.h file as #defines so that we
22378 # can know about the installation paths within LLVM.
22380 cat >>confdefs.h <<_ACEOF
22381 #define LLVM_PREFIX "$LLVM_PREFIX"
22385 cat >>confdefs.h <<_ACEOF
22386 #define LLVM_BINDIR "$LLVM_BINDIR"
22390 cat >>confdefs.h <<_ACEOF
22391 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22395 cat >>confdefs.h <<_ACEOF
22396 #define LLVM_DATADIR "$LLVM_DATADIR"
22400 cat >>confdefs.h <<_ACEOF
22401 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22405 cat >>confdefs.h <<_ACEOF
22406 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22410 cat >>confdefs.h <<_ACEOF
22411 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22415 cat >>confdefs.h <<_ACEOF
22416 #define LLVM_INFODIR "$LLVM_INFODIR"
22420 cat >>confdefs.h <<_ACEOF
22421 #define LLVM_MANDIR "$LLVM_MANDIR"
22425 cat >>confdefs.h <<_ACEOF
22426 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22430 cat >>confdefs.h <<_ACEOF
22431 #define LLVM_HOSTTRIPLE "$host"
22435 # Determine which bindings to build.
22436 if test "$BINDINGS_TO_BUILD" = auto ; then
22437 BINDINGS_TO_BUILD=""
22438 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22439 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22442 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22445 # This isn't really configurey, but it avoids having to repeat the list in
22450 # Do any work necessary to ensure that bindings have what they need.
22451 binding_prereqs_failed=0
22452 for a_binding in $BINDINGS_TO_BUILD ; do
22453 case "$a_binding" in
22455 if test "x$OCAMLC" = x ; then
22456 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22457 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22458 binding_prereqs_failed=1
22460 if test "x$OCAMLDEP" = x ; then
22461 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22462 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22463 binding_prereqs_failed=1
22465 if test "x$OCAMLOPT" = x ; then
22466 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22467 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22469 if test "x$with_ocaml_libdir" != xauto ; then
22470 OCAML_LIBDIR=$with_ocaml_libdir
22473 ocaml_stdlib="`"$OCAMLC" -where`"
22474 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22476 # ocaml stdlib is beneath our prefix; use stdlib
22477 OCAML_LIBDIR=$ocaml_stdlib
22480 # ocaml stdlib is outside our prefix; use libdir/ocaml
22481 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22488 if test "$binding_prereqs_failed" = 1 ; then
22489 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22490 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22491 { (exit 1); exit 1; }; }
22494 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22495 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22496 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22497 echo $ECHO_N "(cached) $ECHO_C" >&6
22500 ac_cpp='$CXXCPP $CPPFLAGS'
22501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22505 oldcxxflags="$CXXFLAGS"
22506 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22507 cat >conftest.$ac_ext <<_ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_compile") 2>conftest.er1
22531 grep -v '^ *+' conftest.er1 >conftest.err
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } &&
22536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22537 { (case "(($ac_try" in
22538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539 *) ac_try_echo=$ac_try;;
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_try") 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; } &&
22546 { ac_try='test -s conftest.$ac_objext'
22547 { (case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_try") 2>&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; }; then
22556 llvm_cv_cxx_visibility_inlines_hidden=yes
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 llvm_cv_cxx_visibility_inlines_hidden=no
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 CXXFLAGS="$oldcxxflags"
22567 ac_cpp='$CPP $CPPFLAGS'
22568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22574 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22575 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22576 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22577 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22580 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22585 if test "$llvm_cv_link_use_r" = "yes" ; then
22592 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22593 RDYNAMIC="-Wl,-export-dynamic"
22600 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22607 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22609 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22611 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22613 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22615 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22618 ac_config_files="$ac_config_files Makefile.config"
22621 ac_config_files="$ac_config_files llvm.spec"
22624 ac_config_files="$ac_config_files docs/doxygen.cfg"
22626 if test -f ${srcdir}/tools/clang/README.txt; then
22627 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22631 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22634 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22637 ac_config_commands="$ac_config_commands setup"
22639 ac_config_commands="$ac_config_commands Makefile"
22642 ac_config_commands="$ac_config_commands Makefile.common"
22645 ac_config_commands="$ac_config_commands examples/Makefile"
22648 ac_config_commands="$ac_config_commands lib/Makefile"
22651 ac_config_commands="$ac_config_commands runtime/Makefile"
22654 ac_config_commands="$ac_config_commands test/Makefile"
22657 ac_config_commands="$ac_config_commands test/Makefile.tests"
22660 ac_config_commands="$ac_config_commands unittests/Makefile"
22663 ac_config_commands="$ac_config_commands tools/Makefile"
22666 ac_config_commands="$ac_config_commands utils/Makefile"
22669 ac_config_commands="$ac_config_commands projects/Makefile"
22672 ac_config_commands="$ac_config_commands bindings/Makefile"
22675 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22679 cat >confcache <<\_ACEOF
22680 # This file is a shell script that caches the results of configure
22681 # tests run on this system so they can be shared between configure
22682 # scripts and configure runs, see configure's option --config-cache.
22683 # It is not useful on other systems. If it contains results you don't
22684 # want to keep, you may remove or edit it.
22686 # config.status only pays attention to the cache file if you give it
22687 # the --recheck option to rerun configure.
22689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22691 # following values.
22695 # The following way of writing the cache mishandles newlines in values,
22696 # but we know of no workaround that is simple, portable, and efficient.
22697 # So, we kill variables containing newlines.
22698 # Ultrix sh set writes to stderr and can't be redirected directly,
22699 # and sets the high bit in the cache file unless we assign to the vars.
22701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22702 eval ac_val=\$$ac_var
22706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22710 _ | IFS | as_nl) ;; #(
22711 *) $as_unset $ac_var ;;
22717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22718 *${as_nl}ac_space=\ *)
22719 # `set' does not quote correctly, so add quotes (double-quote
22720 # substitution turns \\\\ into \\, and sed turns \\ into \).
22723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22726 # `set' quotes correctly as required by POSIX, so do not add quotes.
22727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22741 if test -w "$cache_file"; then
22742 test "x$cache_file" != "x/dev/null" &&
22743 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22744 echo "$as_me: updating cache $cache_file" >&6;}
22745 cat confcache >$cache_file
22747 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22748 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22754 # Let make expand exec_prefix.
22755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22757 DEFS=-DHAVE_CONFIG_H
22761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22762 # 1. Remove the extension, and $U if already installed.
22763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22764 ac_i=`echo "$ac_i" | sed "$ac_script"`
22765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22766 # will be set to the directory where LIBOBJS objects are built.
22767 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22768 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22770 LIBOBJS=$ac_libobjs
22772 LTLIBOBJS=$ac_ltlibobjs
22775 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22776 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22777 Usually this means the macro was only invoked conditionally." >&5
22778 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22779 Usually this means the macro was only invoked conditionally." >&2;}
22780 { (exit 1); exit 1; }; }
22782 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22783 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22784 Usually this means the macro was only invoked conditionally." >&5
22785 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22786 Usually this means the macro was only invoked conditionally." >&2;}
22787 { (exit 1); exit 1; }; }
22790 : ${CONFIG_STATUS=./config.status}
22791 ac_clean_files_save=$ac_clean_files
22792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22795 cat >$CONFIG_STATUS <<_ACEOF
22797 # Generated by $as_me.
22798 # Run this file to recreate the current configuration.
22799 # Compiler output produced by configure, useful for debugging
22800 # configure, is in config.log if it exists.
22803 ac_cs_recheck=false
22805 SHELL=\${CONFIG_SHELL-$SHELL}
22808 cat >>$CONFIG_STATUS <<\_ACEOF
22809 ## --------------------- ##
22810 ## M4sh Initialization. ##
22811 ## --------------------- ##
22813 # Be Bourne compatible
22814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22817 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22818 # is contrary to our usage. Disable this feature.
22819 alias -g '${1+"$@"}'='"$@"'
22820 setopt NO_GLOB_SUBST
22822 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22824 BIN_SH=xpg4; export BIN_SH # for Tru64
22825 DUALCASE=1; export DUALCASE # for MKS sh
22829 # Avoid depending upon Character Ranges.
22830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22833 as_cr_digits='0123456789'
22834 as_cr_alnum=$as_cr_Letters$as_cr_digits
22836 # The user is always right.
22837 if test "${PATH_SEPARATOR+set}" != set; then
22838 echo "#! /bin/sh" >conf$$.sh
22839 echo "exit 0" >>conf$$.sh
22841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22849 # Support unset when possible.
22850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22858 # We need space, tab and new line, in precisely that order. Quoting is
22859 # there to prevent editors from complaining about space-tab.
22860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22861 # splitting by setting IFS to empty value.)
22866 # Find who we are. Look in the path if we contain no directory separator.
22868 *[\\/]* ) as_myself=$0 ;;
22869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22870 for as_dir in $PATH
22873 test -z "$as_dir" && as_dir=.
22874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22880 # We did not find ourselves, most probably we were run as `sh COMMAND'
22881 # in which case we are not to be found in the path.
22882 if test "x$as_myself" = x; then
22885 if test ! -f "$as_myself"; then
22886 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22887 { (exit 1); exit 1; }
22890 # Work around bugs in pre-3.0 UWIN ksh.
22891 for as_var in ENV MAIL MAILPATH
22892 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22902 LC_TELEPHONE LC_TIME
22904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22905 eval $as_var=C; export $as_var
22907 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22911 # Required to use basename.
22912 if expr a : '\(a\)' >/dev/null 2>&1 &&
22913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22920 as_basename=basename
22926 # Name of the executable.
22927 as_me=`$as_basename -- "$0" ||
22928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22929 X"$0" : 'X\(//\)$' \| \
22930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22932 sed '/^.*\/\([^/][^/]*\)\/*$/{
22951 as_lineno_1=$LINENO
22952 as_lineno_2=$LINENO
22953 test "x$as_lineno_1" != "x$as_lineno_2" &&
22954 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22956 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22957 # uniformly replaced by the line number. The first 'sed' inserts a
22958 # line-number line after each line using $LINENO; the second 'sed'
22959 # does the real work. The second script uses 'N' to pair each
22960 # line-number line with the line containing $LINENO, and appends
22961 # trailing '-' during substitution so that $LINENO is not a special
22962 # case at line end.
22963 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22964 # scripts with optimization help from Paolo Bonzini. Blame Lee
22965 # E. McMahon (1931-1989) for sed's syntax. :-)
22977 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22980 ' >$as_me.lineno &&
22981 chmod +x "$as_me.lineno" ||
22982 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22983 { (exit 1); exit 1; }; }
22985 # Don't try to exec as it changes $[0], causing all sort of problems
22986 # (the dirname of $[0] is not the place where we might find the
22987 # original and so on. Autoconf is especially sensitive to this).
22988 . "./$as_me.lineno"
22989 # Exit status is that of the last command.
22994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23000 ECHO_C= ECHO_N= ECHO_T=
23001 case `echo -n x` in
23003 case `echo 'x\c'` in
23004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23011 if expr a : '\(a\)' >/dev/null 2>&1 &&
23012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23018 rm -f conf$$ conf$$.exe conf$$.file
23019 if test -d conf$$.dir; then
23020 rm -f conf$$.dir/conf$$.file
23026 if ln -s conf$$.file conf$$ 2>/dev/null; then
23028 # ... but there are two gotchas:
23029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23031 # In both cases, we have to default to `cp -p'.
23032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23034 elif ln conf$$.file conf$$ 2>/dev/null; then
23039 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23040 rmdir conf$$.dir 2>/dev/null
23042 if mkdir -p . 2>/dev/null; then
23045 test -d ./-p && rmdir ./-p
23049 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23050 # systems may use methods other than mode bits to determine executability.
23051 cat >conf$$.file <<_ASEOF
23055 chmod +x conf$$.file
23056 if test -x conf$$.file >/dev/null 2>&1; then
23057 as_executable_p="test -x"
23063 # Sed expression to map a string onto a valid CPP name.
23064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23066 # Sed expression to map a string onto a valid variable name.
23067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23072 # Save the log message, to keep $[0] and so on meaningful, and to
23073 # report actual input values of CONFIG_FILES etc. instead of their
23074 # values after options handling.
23076 This file was extended by llvm $as_me 3.0svn, which was
23077 generated by GNU Autoconf 2.60. Invocation command line was
23079 CONFIG_FILES = $CONFIG_FILES
23080 CONFIG_HEADERS = $CONFIG_HEADERS
23081 CONFIG_LINKS = $CONFIG_LINKS
23082 CONFIG_COMMANDS = $CONFIG_COMMANDS
23085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23090 cat >>$CONFIG_STATUS <<_ACEOF
23091 # Files that config.status was made for.
23092 config_files="$ac_config_files"
23093 config_headers="$ac_config_headers"
23094 config_commands="$ac_config_commands"
23098 cat >>$CONFIG_STATUS <<\_ACEOF
23100 \`$as_me' instantiates files from templates according to the
23101 current configuration.
23103 Usage: $0 [OPTIONS] [FILE]...
23105 -h, --help print this help, then exit
23106 -V, --version print version number, then exit
23107 -q, --quiet do not print progress messages
23108 -d, --debug don't remove temporary files
23109 --recheck update $as_me by reconfiguring in the same conditions
23110 --file=FILE[:TEMPLATE]
23111 instantiate the configuration file FILE
23112 --header=FILE[:TEMPLATE]
23113 instantiate the configuration header FILE
23115 Configuration files:
23118 Configuration headers:
23121 Configuration commands:
23124 Report bugs to <bug-autoconf@gnu.org>."
23127 cat >>$CONFIG_STATUS <<_ACEOF
23129 llvm config.status 3.0svn
23130 configured by $0, generated by GNU Autoconf 2.60,
23131 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23133 Copyright (C) 2006 Free Software Foundation, Inc.
23134 This config.status script is free software; the Free Software Foundation
23135 gives unlimited permission to copy, distribute and modify it."
23142 cat >>$CONFIG_STATUS <<\_ACEOF
23143 # If no file are specified by the user, then we need to provide default
23144 # value. By we need to know if files were specified by the user.
23150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23162 # Handling of the options.
23163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23165 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23166 echo "$ac_cs_version"; exit ;;
23167 --debug | --debu | --deb | --de | --d | -d )
23169 --file | --fil | --fi | --f )
23171 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23172 ac_need_defaults=false;;
23173 --header | --heade | --head | --hea )
23175 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23176 ac_need_defaults=false;;
23178 # Conflict between --help and --header
23179 { echo "$as_me: error: ambiguous option: $1
23180 Try \`$0 --help' for more information." >&2
23181 { (exit 1); exit 1; }; };;
23182 --help | --hel | -h )
23183 echo "$ac_cs_usage"; exit ;;
23184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23188 # This is an error.
23189 -*) { echo "$as_me: error: unrecognized option: $1
23190 Try \`$0 --help' for more information." >&2
23191 { (exit 1); exit 1; }; } ;;
23193 *) ac_config_targets="$ac_config_targets $1"
23194 ac_need_defaults=false ;;
23200 ac_configure_extra_args=
23202 if $ac_cs_silent; then
23204 ac_configure_extra_args="$ac_configure_extra_args --silent"
23208 cat >>$CONFIG_STATUS <<_ACEOF
23209 if \$ac_cs_recheck; then
23210 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23211 CONFIG_SHELL=$SHELL
23212 export CONFIG_SHELL
23213 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23217 cat >>$CONFIG_STATUS <<\_ACEOF
23221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23222 ## Running $as_me. ##
23228 cat >>$CONFIG_STATUS <<_ACEOF
23232 llvm_src="${srcdir}"
23236 cat >>$CONFIG_STATUS <<\_ACEOF
23238 # Handling of arguments.
23239 for ac_config_target in $ac_config_targets
23241 case $ac_config_target in
23242 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23243 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23244 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23245 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23246 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23247 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23248 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23249 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23250 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23251 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23252 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23253 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23254 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23255 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23256 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23257 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23258 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23259 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23260 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23261 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23262 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23263 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23264 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23265 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23266 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23267 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23268 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23270 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23271 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23272 { (exit 1); exit 1; }; };;
23277 # If the user did not use the arguments to specify the items to instantiate,
23278 # then the envvar interface is used. Set only those that are not.
23279 # We use the long form for the default assignment because of an extremely
23280 # bizarre bug on SunOS 4.1.3.
23281 if $ac_need_defaults; then
23282 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23283 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23284 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23287 # Have a temporary directory for convenience. Make it in the build tree
23288 # simply because there is no reason against having it here, and in addition,
23289 # creating and moving files from /tmp can sometimes cause problems.
23290 # Hook for its removal unless debugging.
23291 # Note that there is a small window in which the directory will not be cleaned:
23292 # after its creation but before its name has been assigned to `$tmp'.
23296 trap 'exit_status=$?
23297 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23299 trap '{ (exit 1); exit 1; }' 1 2 13 15
23301 # Create a (secure) tmp directory for tmp files.
23304 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23305 test -n "$tmp" && test -d "$tmp"
23308 tmp=./conf$$-$RANDOM
23309 (umask 077 && mkdir "$tmp")
23312 echo "$me: cannot create a temporary directory in ." >&2
23313 { (exit 1); exit 1; }
23317 # Set up the sed scripts for CONFIG_FILES section.
23320 # No need to generate the scripts if there are no CONFIG_FILES.
23321 # This happens for instance when ./config.status config.h
23322 if test -n "$CONFIG_FILES"; then
23329 for ac_last_try in false false false false false :; do
23330 cat >conf$$subs.sed <<_ACEOF
23331 SHELL!$SHELL$ac_delim
23332 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23333 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23334 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23335 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23336 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23337 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23338 exec_prefix!$exec_prefix$ac_delim
23339 prefix!$prefix$ac_delim
23340 program_transform_name!$program_transform_name$ac_delim
23341 bindir!$bindir$ac_delim
23342 sbindir!$sbindir$ac_delim
23343 libexecdir!$libexecdir$ac_delim
23344 datarootdir!$datarootdir$ac_delim
23345 datadir!$datadir$ac_delim
23346 sysconfdir!$sysconfdir$ac_delim
23347 sharedstatedir!$sharedstatedir$ac_delim
23348 localstatedir!$localstatedir$ac_delim
23349 includedir!$includedir$ac_delim
23350 oldincludedir!$oldincludedir$ac_delim
23351 docdir!$docdir$ac_delim
23352 infodir!$infodir$ac_delim
23353 htmldir!$htmldir$ac_delim
23354 dvidir!$dvidir$ac_delim
23355 pdfdir!$pdfdir$ac_delim
23356 psdir!$psdir$ac_delim
23357 libdir!$libdir$ac_delim
23358 localedir!$localedir$ac_delim
23359 mandir!$mandir$ac_delim
23360 DEFS!$DEFS$ac_delim
23361 ECHO_C!$ECHO_C$ac_delim
23362 ECHO_N!$ECHO_N$ac_delim
23363 ECHO_T!$ECHO_T$ac_delim
23364 LIBS!$LIBS$ac_delim
23365 build_alias!$build_alias$ac_delim
23366 host_alias!$host_alias$ac_delim
23367 target_alias!$target_alias$ac_delim
23368 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23369 subdirs!$subdirs$ac_delim
23370 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23371 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23372 build!$build$ac_delim
23373 build_cpu!$build_cpu$ac_delim
23374 build_vendor!$build_vendor$ac_delim
23375 build_os!$build_os$ac_delim
23376 host!$host$ac_delim
23377 host_cpu!$host_cpu$ac_delim
23378 host_vendor!$host_vendor$ac_delim
23379 host_os!$host_os$ac_delim
23380 target!$target$ac_delim
23381 target_cpu!$target_cpu$ac_delim
23382 target_vendor!$target_vendor$ac_delim
23383 target_os!$target_os$ac_delim
23385 HOST_OS!$HOST_OS$ac_delim
23386 TARGET_OS!$TARGET_OS$ac_delim
23387 LINKALL!$LINKALL$ac_delim
23388 NOLINKALL!$NOLINKALL$ac_delim
23389 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23390 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23391 ARCH!$ARCH$ac_delim
23392 ENDIAN!$ENDIAN$ac_delim
23394 CFLAGS!$CFLAGS$ac_delim
23395 LDFLAGS!$LDFLAGS$ac_delim
23396 CPPFLAGS!$CPPFLAGS$ac_delim
23397 ac_ct_CC!$ac_ct_CC$ac_delim
23398 EXEEXT!$EXEEXT$ac_delim
23399 OBJEXT!$OBJEXT$ac_delim
23401 GREP!$GREP$ac_delim
23402 EGREP!$EGREP$ac_delim
23403 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23404 BUILD_CC!$BUILD_CC$ac_delim
23405 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23406 BUILD_CXX!$BUILD_CXX$ac_delim
23407 CVSBUILD!$CVSBUILD$ac_delim
23408 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23409 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23410 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23411 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23412 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23413 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23414 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23416 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23417 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23418 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23419 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23420 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23421 ENABLE_PIC!$ENABLE_PIC$ac_delim
23422 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23423 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23424 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23425 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23426 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23427 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23430 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23432 elif $ac_last_try; then
23433 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23434 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23435 { (exit 1); exit 1; }; }
23437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23441 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23442 if test -n "$ac_eof"; then
23443 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23444 ac_eof=`expr $ac_eof + 1`
23447 cat >>$CONFIG_STATUS <<_ACEOF
23448 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23452 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23453 s/^/s,@/; s/!/@,|#_!!_#|/
23456 s/'"$ac_delim"'$/,g/; t
23458 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23459 ' >>$CONFIG_STATUS <conf$$subs.sed
23460 rm -f conf$$subs.sed
23461 cat >>$CONFIG_STATUS <<_ACEOF
23467 for ac_last_try in false false false false false :; do
23468 cat >conf$$subs.sed <<_ACEOF
23469 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23470 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23471 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23472 CLANGPATH!$CLANGPATH$ac_delim
23473 CLANGXXPATH!$CLANGXXPATH$ac_delim
23474 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23475 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23476 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23477 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23478 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23480 CXXFLAGS!$CXXFLAGS$ac_delim
23481 ac_ct_CXX!$ac_ct_CXX$ac_delim
23483 ifGNUmake!$ifGNUmake$ac_delim
23484 LN_S!$LN_S$ac_delim
23487 DATE!$DATE$ac_delim
23488 FIND!$FIND$ac_delim
23489 MKDIR!$MKDIR$ac_delim
23491 RANLIB!$RANLIB$ac_delim
23496 BINPWD!$BINPWD$ac_delim
23497 GRAPHVIZ!$GRAPHVIZ$ac_delim
23500 NEATO!$NEATO$ac_delim
23501 TWOPI!$TWOPI$ac_delim
23502 CIRCO!$CIRCO$ac_delim
23504 DOTTY!$DOTTY$ac_delim
23505 XDOT_PY!$XDOT_PY$ac_delim
23506 PERL!$PERL$ac_delim
23507 HAVE_PERL!$HAVE_PERL$ac_delim
23508 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23509 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23510 INSTALL_DATA!$INSTALL_DATA$ac_delim
23511 BZIP2!$BZIP2$ac_delim
23513 DOXYGEN!$DOXYGEN$ac_delim
23514 GROFF!$GROFF$ac_delim
23515 GZIPBIN!$GZIPBIN$ac_delim
23516 POD2HTML!$POD2HTML$ac_delim
23517 POD2MAN!$POD2MAN$ac_delim
23518 PDFROFF!$PDFROFF$ac_delim
23519 RUNTEST!$RUNTEST$ac_delim
23520 TCLSH!$TCLSH$ac_delim
23522 OCAMLC!$OCAMLC$ac_delim
23523 OCAMLOPT!$OCAMLOPT$ac_delim
23524 OCAMLDEP!$OCAMLDEP$ac_delim
23525 OCAMLDOC!$OCAMLDOC$ac_delim
23527 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23528 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23529 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23530 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23531 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23532 LIBADD_DL!$LIBADD_DL$ac_delim
23533 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23534 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23535 LLVMGCC!$LLVMGCC$ac_delim
23536 LLVMGXX!$LLVMGXX$ac_delim
23537 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23538 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23539 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23540 USE_UDIS86!$USE_UDIS86$ac_delim
23541 USE_OPROFILE!$USE_OPROFILE$ac_delim
23542 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23543 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23544 MMAP_FILE!$MMAP_FILE$ac_delim
23545 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23546 LLVMCC1!$LLVMCC1$ac_delim
23547 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23548 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23549 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23550 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23551 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23552 SHLIBEXT!$SHLIBEXT$ac_delim
23553 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23554 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23555 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23556 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23557 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23558 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23559 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23560 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23561 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23562 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23563 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23564 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23565 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23570 elif $ac_last_try; then
23571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23572 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23573 { (exit 1); exit 1; }; }
23575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23579 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23580 if test -n "$ac_eof"; then
23581 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23582 ac_eof=`expr $ac_eof + 1`
23585 cat >>$CONFIG_STATUS <<_ACEOF
23586 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23590 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23591 s/^/s,@/; s/!/@,|#_!!_#|/
23594 s/'"$ac_delim"'$/,g/; t
23596 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23597 ' >>$CONFIG_STATUS <conf$$subs.sed
23598 rm -f conf$$subs.sed
23599 cat >>$CONFIG_STATUS <<_ACEOF
23605 for ac_last_try in false false false false false :; do
23606 cat >conf$$subs.sed <<_ACEOF
23607 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23608 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23609 RPATH!$RPATH$ac_delim
23610 RDYNAMIC!$RDYNAMIC$ac_delim
23611 LIBOBJS!$LIBOBJS$ac_delim
23612 LTLIBOBJS!$LTLIBOBJS$ac_delim
23615 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23617 elif $ac_last_try; then
23618 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23619 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23620 { (exit 1); exit 1; }; }
23622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23626 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23627 if test -n "$ac_eof"; then
23628 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23629 ac_eof=`expr $ac_eof + 1`
23632 cat >>$CONFIG_STATUS <<_ACEOF
23633 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23634 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23637 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23638 s/^/s,@/; s/!/@,|#_!!_#|/
23641 s/'"$ac_delim"'$/,g/; t
23643 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23644 ' >>$CONFIG_STATUS <conf$$subs.sed
23645 rm -f conf$$subs.sed
23646 cat >>$CONFIG_STATUS <<_ACEOF
23653 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23654 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23655 # trailing colons and then remove the whole line if VPATH becomes empty
23656 # (actually we leave an empty line to preserve line numbers).
23657 if test "x$srcdir" = x.; then
23658 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23659 s/:*\$(srcdir):*/:/
23660 s/:*\${srcdir}:*/:/
23662 s/^\([^=]*=[ ]*\):*/\1/
23668 cat >>$CONFIG_STATUS <<\_ACEOF
23669 fi # test -n "$CONFIG_FILES"
23672 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23675 :[FHLC]) ac_mode=$ac_tag; continue;;
23677 case $ac_mode$ac_tag in
23679 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23680 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23681 { (exit 1); exit 1; }; };;
23682 :[FH]-) ac_tag=-:-;;
23683 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23700 -) ac_f="$tmp/stdin";;
23701 *) # Look for the file first in the build tree, then in the source tree
23702 # (if the path is not absolute). The absolute path cannot be DOS-style,
23703 # because $ac_f cannot contain `:'.
23707 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23709 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23710 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23711 { (exit 1); exit 1; }; };;
23713 ac_file_inputs="$ac_file_inputs $ac_f"
23716 # Let's still pretend it is `configure' which instantiates (i.e., don't
23717 # use $as_me), people would be surprised to read:
23718 # /* config.h. Generated by config.status. */
23719 configure_input="Generated from "`IFS=:
23720 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23721 if test x"$ac_file" != x-; then
23722 configure_input="$ac_file. $configure_input"
23723 { echo "$as_me:$LINENO: creating $ac_file" >&5
23724 echo "$as_me: creating $ac_file" >&6;}
23728 *:-:* | *:-) cat >"$tmp/stdin";;
23733 ac_dir=`$as_dirname -- "$ac_file" ||
23734 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23735 X"$ac_file" : 'X\(//\)[^/]' \| \
23736 X"$ac_file" : 'X\(//\)$' \| \
23737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23743 /^X\(\/\/\)[^/].*/{
23758 -*) as_dir=./$as_dir;;
23760 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23764 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23765 *) as_qdir=$as_dir;;
23767 as_dirs="'$as_qdir' $as_dirs"
23768 as_dir=`$as_dirname -- "$as_dir" ||
23769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23770 X"$as_dir" : 'X\(//\)[^/]' \| \
23771 X"$as_dir" : 'X\(//\)$' \| \
23772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23778 /^X\(\/\/\)[^/].*/{
23791 test -d "$as_dir" && break
23793 test -z "$as_dirs" || eval "mkdir $as_dirs"
23794 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23795 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23796 { (exit 1); exit 1; }; }; }
23800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23803 # A ".." for each directory in $ac_dir_suffix.
23804 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23805 case $ac_top_builddir_sub in
23806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23810 ac_abs_top_builddir=$ac_pwd
23811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23812 # for backward compatibility:
23813 ac_top_builddir=$ac_top_build_prefix
23816 .) # We are building in place.
23818 ac_top_srcdir=$ac_top_builddir_sub
23819 ac_abs_top_srcdir=$ac_pwd ;;
23820 [\\/]* | ?:[\\/]* ) # Absolute name.
23821 ac_srcdir=$srcdir$ac_dir_suffix;
23822 ac_top_srcdir=$srcdir
23823 ac_abs_top_srcdir=$srcdir ;;
23824 *) # Relative name.
23825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23826 ac_top_srcdir=$ac_top_build_prefix$srcdir
23827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23844 cat >>$CONFIG_STATUS <<\_ACEOF
23845 # If the template does not know about datarootdir, expand it.
23846 # FIXME: This hack should be removed a few years after 2.60.
23847 ac_datarootdir_hack=; ac_datarootdir_seen=
23849 case `sed -n '/datarootdir/ {
23858 ' $ac_file_inputs` in
23859 *datarootdir*) ac_datarootdir_seen=yes;;
23860 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23861 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23862 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23864 cat >>$CONFIG_STATUS <<_ACEOF
23865 ac_datarootdir_hack='
23866 s&@datadir@&$datadir&g
23867 s&@docdir@&$docdir&g
23868 s&@infodir@&$infodir&g
23869 s&@localedir@&$localedir&g
23870 s&@mandir@&$mandir&g
23871 s&\\\${datarootdir}&$datarootdir&g' ;;
23875 # Neutralize VPATH when `$srcdir' = `.'.
23876 # Shell code in configure.ac might set extrasub.
23877 # FIXME: do we really want to maintain this feature?
23878 cat >>$CONFIG_STATUS <<_ACEOF
23882 cat >>$CONFIG_STATUS <<\_ACEOF
23884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23885 s&@configure_input@&$configure_input&;t t
23886 s&@top_builddir@&$ac_top_builddir_sub&;t t
23887 s&@srcdir@&$ac_srcdir&;t t
23888 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23889 s&@top_srcdir@&$ac_top_srcdir&;t t
23890 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23891 s&@builddir@&$ac_builddir&;t t
23892 s&@abs_builddir@&$ac_abs_builddir&;t t
23893 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23894 s&@INSTALL@&$ac_INSTALL&;t t
23895 $ac_datarootdir_hack
23896 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23899 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23901 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23902 which seems to be undefined. Please make sure it is defined." >&5
23903 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23904 which seems to be undefined. Please make sure it is defined." >&2;}
23908 -) cat "$tmp/out"; rm -f "$tmp/out";;
23909 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23918 # Transform confdefs.h into a sed script `conftest.defines', that
23919 # substitutes the proper values into config.h.in to produce config.h.
23920 rm -f conftest.defines conftest.tail
23921 # First, append a space to every undef/define line, to ease matching.
23922 echo 's/$/ /' >conftest.defines
23923 # Then, protect against being on the right side of a sed subst, or in
23924 # an unquoted here document, in config.status. If some macros were
23925 # called several times there might be several #defines for the same
23926 # symbol, which is useless. But do not sort them, since the last
23927 # AC_DEFINE must be honored.
23928 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23929 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23930 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23931 # PARAMS is the parameter list in the macro definition--in most cases, it's
23932 # just an empty string.
23933 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23934 ac_dB='\\)[ (].*,\\1define\\2'
23942 s/^[ ]*#[ ]*define[ ][ ]*//
23947 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23948 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23949 ' >>conftest.defines
23951 # Remove the space that was appended to ease matching.
23952 # Then replace #undef with comments. This is necessary, for
23953 # example, in the case of _POSIX_SOURCE, which is predefined and required
23954 # on some systems where configure will not decide to define it.
23955 # (The regexp can be short, since the line contains either #define or #undef.)
23957 s,^[ #]*u.*,/* & */,' >>conftest.defines
23959 # Break up conftest.defines:
23960 ac_max_sed_lines=50
23962 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23963 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23964 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23966 ac_in='$ac_file_inputs'
23967 ac_out='"$tmp/out1"'
23968 ac_nxt='"$tmp/out2"'
23972 # Write a here document:
23973 cat >>$CONFIG_STATUS <<_ACEOF
23974 # First, check the format of the line:
23975 cat >"\$tmp/defines.sed" <<\\CEOF
23976 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23977 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23981 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23983 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23984 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23985 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23986 grep . conftest.tail >/dev/null || break
23987 rm -f conftest.defines
23988 mv conftest.tail conftest.defines
23990 rm -f conftest.defines conftest.tail
23992 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23993 cat >>$CONFIG_STATUS <<\_ACEOF
23994 if test x"$ac_file" != x-; then
23995 echo "/* $configure_input */" >"$tmp/config.h"
23996 cat "$ac_result" >>"$tmp/config.h"
23997 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23998 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23999 echo "$as_me: $ac_file is unchanged" >&6;}
24002 mv "$tmp/config.h" $ac_file
24005 echo "/* $configure_input */"
24011 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24012 echo "$as_me: executing $ac_file commands" >&6;}
24017 case $ac_file$ac_mode in
24018 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24020 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24022 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24024 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24026 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24028 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24030 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24032 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24034 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24035 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24036 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24037 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24038 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24039 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24040 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24041 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24042 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24043 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24049 { (exit 0); exit 0; }
24051 chmod +x $CONFIG_STATUS
24052 ac_clean_files=$ac_clean_files_save
24055 # configure is writing to config.log, and then calls config.status.
24056 # config.status does its own redirection, appending to config.log.
24057 # Unfortunately, on DOS this fails, as config.log is still kept open
24058 # by configure, so config.status won't be able to write to it; its
24059 # output is simply discarded. So we exec the FD to /dev/null,
24060 # effectively closing config.log, so it can be properly (re)opened and
24061 # appended to by config.status. When coming back to configure, we
24062 # need to make the FD available again.
24063 if test "$no_create" != yes; then
24065 ac_config_status_args=
24066 test "$silent" = yes &&
24067 ac_config_status_args="$ac_config_status_args --quiet"
24069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24072 # would make configure fail if this is the last instruction.
24073 $ac_cs_success || { (exit 1); exit 1; }
24077 # CONFIG_SUBDIRS section.
24079 if test "$no_recursion" != yes; then
24081 # Remove --cache-file and --srcdir arguments so they do not pile up.
24082 ac_sub_configure_args=
24084 eval "set x $ac_configure_args"
24088 if test -n "$ac_prev"; then
24093 -cache-file | --cache-file | --cache-fil | --cache-fi \
24094 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24095 ac_prev=cache_file ;;
24096 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24097 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24100 --config-cache | -C)
24102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24112 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24114 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24118 # Always prepend --prefix to ensure using the same prefix
24119 # in subdir configurations.
24120 ac_arg="--prefix=$prefix"
24122 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24124 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24127 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24129 # Do not complain, so a configure script can configure whichever
24130 # parts of a large source tree are present.
24131 test -d "$srcdir/$ac_dir" || continue
24133 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24134 echo "$as_me:$LINENO: $ac_msg" >&5
24138 -*) as_dir=./$as_dir;;
24140 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24144 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24145 *) as_qdir=$as_dir;;
24147 as_dirs="'$as_qdir' $as_dirs"
24148 as_dir=`$as_dirname -- "$as_dir" ||
24149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24150 X"$as_dir" : 'X\(//\)[^/]' \| \
24151 X"$as_dir" : 'X\(//\)$' \| \
24152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24158 /^X\(\/\/\)[^/].*/{
24171 test -d "$as_dir" && break
24173 test -z "$as_dirs" || eval "mkdir $as_dirs"
24174 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24175 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24176 { (exit 1); exit 1; }; }; }
24180 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24182 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24183 # A ".." for each directory in $ac_dir_suffix.
24184 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24185 case $ac_top_builddir_sub in
24186 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24187 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24190 ac_abs_top_builddir=$ac_pwd
24191 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24192 # for backward compatibility:
24193 ac_top_builddir=$ac_top_build_prefix
24196 .) # We are building in place.
24198 ac_top_srcdir=$ac_top_builddir_sub
24199 ac_abs_top_srcdir=$ac_pwd ;;
24200 [\\/]* | ?:[\\/]* ) # Absolute name.
24201 ac_srcdir=$srcdir$ac_dir_suffix;
24202 ac_top_srcdir=$srcdir
24203 ac_abs_top_srcdir=$srcdir ;;
24204 *) # Relative name.
24205 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24206 ac_top_srcdir=$ac_top_build_prefix$srcdir
24207 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24209 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24214 # Check for guested configure; otherwise get Cygnus style configure.
24215 if test -f "$ac_srcdir/configure.gnu"; then
24216 ac_sub_configure=$ac_srcdir/configure.gnu
24217 elif test -f "$ac_srcdir/configure"; then
24218 ac_sub_configure=$ac_srcdir/configure
24219 elif test -f "$ac_srcdir/configure.in"; then
24220 # This should be Cygnus configure.
24221 ac_sub_configure=$ac_aux_dir/configure
24223 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24224 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24228 # The recursion is here.
24229 if test -n "$ac_sub_configure"; then
24230 # Make the cache file name correct relative to the subdirectory.
24231 case $cache_file in
24232 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24233 *) # Relative name.
24234 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24237 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24238 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24239 # The eval makes quoting arguments work.
24240 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24241 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24242 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24243 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24244 { (exit 1); exit 1; }; }