2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
690 ENABLE_EXPENSIVE_CHECKS
706 LLVM_ENUM_ASM_PRINTERS
707 LLVM_ENUM_ASM_PARSERS
708 LLVM_ENUM_DISASSEMBLERS
756 HAVE_LINK_VERSION_SCRIPT
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
768 INTEL_JITEVENTS_INCDIR
769 INTEL_JITEVENTS_LIBDIR
788 ENABLE_VISIBILITY_INLINES_HIDDEN
794 ac_precious_vars='build_alias
805 ac_subdirs_all='projects/llvm-gcc
809 projects/llvm-poolalloc
812 projects/llvm-stacker
820 # Initialize some variables set by options.
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name=s,x,x,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1110 -site=* | --site=* | --sit=*)
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
1203 # Be sure to have absolute directory names.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-polly Use polly if available (default is YES)
1394 --enable-libcpp Use libc++ if available (default is NO)
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-docs Build documents (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pthreads Use pthreads if available (default is YES)
1411 --enable-pic Build LLVM with Position Independent Code (default
1413 --enable-shared Build a shared library and link tools against it
1415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1416 Win32 DLL (default is NO)
1417 --enable-timestamps Enable embedding timestamp information in build
1419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422 xcore, msp430, ptx, nvptx, and cpp (default=all)
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-ltdl-install install libltdl
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-optimize-option Select the compiler options to use for optimized
1433 --with-extra-options Specify additional options to compile LLVM with
1434 --with-extra-ld-options Specify additional options to link LLVM with
1435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 --with-clang-srcdir Directory to the out-of-tree Clang source
1438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1441 --with-c-include-dirs Colon separated list of directories clang will
1443 --with-gcc-toolchain Directory where gcc is installed.
1444 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1445 --with-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
1447 --with-bug-report-url Specify the URL where bug reports should be
1448 submitted (default=http://llvm.org/bugs/)
1449 --with-internal-prefix Installation directory for internal files
1450 --with-tclinclude directory where tcl headers are
1451 --with-udis86=<path> Use udis86 external x86 disassembler library
1452 --with-oprofile=<prefix>
1453 Tell OProfile >= 0.9.4 how to symbolize JIT output
1454 --with-intel-jitevents=<vtune-amplifier-dir>
1455 Specify location of run-time support library for
1457 (default=/opt/intel/vtune_amplifier_xe_2011)
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1473 Report bugs to <http://llvm.org/bugs/>.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" || continue
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1501 .) # We are building in place.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1534 LLVM configure 3.2svn
1535 generated by GNU Autoconf 2.60
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1542 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1550 It was created by LLVM $as_me 3.2svn, which was
1551 generated by GNU Autoconf 2.60. Invocation command line was
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1572 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1576 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 echo "PATH: $as_dir"
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_must_keep_next=false
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628 if test $ac_must_keep_next = true; then
1629 ac_must_keep_next=false # Got value, back to normal.
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 -* ) ac_must_keep_next=true ;;
1643 ac_configure_args="$ac_configure_args '$ac_arg'"
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log. We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1667 # The following way of writing the cache mishandles newlines in values,
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678 _ | IFS | as_nl) ;; #(
1679 *) $as_unset $ac_var ;;
1684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
1687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1704 for ac_var in $ac_subst_vars
1706 eval ac_val=\$$ac_var
1708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 echo "$ac_var='\''$ac_val'\''"
1714 if test -n "$ac_subst_files"; then
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1721 for ac_var in $ac_subst_files
1723 eval ac_val=\$$ac_var
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 echo "$ac_var='\''$ac_val'\''"
1732 if test -s confdefs.h; then
1742 test "$ac_signal" != 0 &&
1743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
1746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750 for ac_signal in 1 2 13 15; do
1751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1758 # Predefined preprocessor variables.
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788 set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
1798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801 sed 's/^/| /' "$ac_site_file" >&5
1806 if test -r "$cache_file"; then
1807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
1818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1823 # Check that the precious variables saved in the cache have kept the same
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
1829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
1831 case $ac_old_set,$ac_new_set in
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
1843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846 echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848 echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856 *) ac_arg=$ac_var=$ac_new_val ;;
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864 if $ac_cache_corrupted; then
1865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904 cat >>confdefs.h <<\_ACEOF
1905 #define LLVM_VERSION_MAJOR 3
1909 cat >>confdefs.h <<\_ACEOF
1910 #define LLVM_VERSION_MINOR 2
1914 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1923 for ac_dir in autoconf "$srcdir"/autoconf; do
1924 if test -f "$ac_dir/install-sh"; then
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1928 elif test -f "$ac_dir/install.sh"; then
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1932 elif test -f "$ac_dir/shtool"; then
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1938 if test -z "$ac_aux_dir"; then
1939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941 { (exit 1); exit 1; }; }
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1954 if test ${srcdir} != "." ; then
1955 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1956 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958 { (exit 1); exit 1; }; }
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 if test -n "$ac_tool_prefix"; then
1968 for ac_prog in clang llvm-gcc gcc
1970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 if test -n "$CC"; then
1999 { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2002 { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2007 test -n "$CC" && break
2010 if test -z "$CC"; then
2012 for ac_prog in clang llvm-gcc gcc
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$ac_ct_CC"; then
2022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2031 ac_cv_prog_ac_ct_CC="$ac_prog"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042 if test -n "$ac_ct_CC"; then
2043 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044 echo "${ECHO_T}$ac_ct_CC" >&6; }
2046 { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2051 test -n "$ac_ct_CC" && break
2054 if test "x$ac_ct_CC" = x; then
2057 case $cross_compiling:$ac_tool_warned in
2059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet. If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&5
2062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2063 whose name does not start with the host triplet. If you think this
2064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2065 ac_tool_warned=yes ;;
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO: checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (ac_try="$ac_compiler --version >&5"
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087 (eval "$ac_compiler --version >&5") 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091 { (ac_try="$ac_compiler -v >&5"
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler -v >&5") 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101 { (ac_try="$ac_compiler -V >&5"
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107 (eval "$ac_compiler -V >&5") 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2112 cat >conftest.$ac_ext <<_ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h. */
2127 ac_clean_files_save=$ac_clean_files
2128 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2129 # Try to create an executable without -o first, disregard a.out.
2130 # It will help us diagnose broken compilers, and finding out an intuition
2132 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2133 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2134 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2136 # List of possible output files, starting from the most likely.
2137 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2138 # only as a last resort. b.out is created by i960 compilers.
2139 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2141 # The IRIX 6 linker writes into existing files which may not be
2142 # executable, retaining their permissions. Remove them first so a
2143 # subsequent execution test works.
2145 for ac_file in $ac_files
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2149 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2154 if { (ac_try="$ac_link_default"
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160 (eval "$ac_link_default") 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
2164 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2167 # so that the user can short-circuit this test for compilers unknown to
2169 for ac_file in $ac_files
2171 test -f "$ac_file" || continue
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2176 # We found the default executable, but exeext='' is most
2180 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2182 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # We set ac_cv_exeext here because the later test for it is not
2185 # safe: cross compilers may not add the suffix if given an `-o'
2186 # argument, so we may need to know it at that point already.
2187 # Even if this section looks crufty: it has the advantage of
2194 test "$ac_cv_exeext" = no && ac_cv_exeext=
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2200 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&2;}
2204 { (exit 77); exit 77; }; }
2207 ac_exeext=$ac_cv_exeext
2208 { echo "$as_me:$LINENO: result: $ac_file" >&5
2209 echo "${ECHO_T}$ac_file" >&6; }
2211 # Check that the compiler produces executables we can run. If not, either
2212 # the compiler is broken, or we cross compile.
2213 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216 # If not cross compiling, check that we can run a simple program.
2217 if test "$cross_compiling" != yes; then
2218 if { ac_try='./$ac_file'
2219 { (case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_try") 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2230 if test "$cross_compiling" = maybe; then
2233 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6; }
2246 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247 ac_clean_files=$ac_clean_files_save
2248 # Check that the compiler produces executables we can run. If not, either
2249 # the compiler is broken, or we cross compile.
2250 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2252 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253 echo "${ECHO_T}$cross_compiling" >&6; }
2255 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2257 if { (ac_try="$ac_link"
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263 (eval "$ac_link") 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }
2288 rm -f conftest$ac_cv_exeext
2289 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2292 rm -f conftest.$ac_ext
2293 EXEEXT=$ac_cv_exeext
2295 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2297 if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 rm -f conftest.o conftest.obj
2316 if { (ac_try="$ac_compile"
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322 (eval "$ac_compile") 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 for ac_file in conftest.o conftest.obj conftest.*; do
2327 test -f "$ac_file" || continue;
2329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348 echo "${ECHO_T}$ac_cv_objext" >&6; }
2349 OBJEXT=$ac_cv_objext
2351 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2353 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 cat >conftest.$ac_ext <<_ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2374 rm -f conftest.$ac_objext
2375 if { (ac_try="$ac_compile"
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_compile") 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389 { (case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_try") 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_try") 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2422 GCC=`test $ac_compiler_gnu = yes && echo yes`
2423 ac_test_CFLAGS=${CFLAGS+set}
2424 ac_save_CFLAGS=$CFLAGS
2425 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_cc_g+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 ac_save_c_werror_flag=$ac_c_werror_flag
2431 ac_c_werror_flag=yes
2434 cat >conftest.$ac_ext <<_ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2449 rm -f conftest.$ac_objext
2450 if { (ac_try="$ac_compile"
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compile") 2>conftest.er1
2458 grep -v '^ *+' conftest.er1 >conftest.err
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_try") 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_try") 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2489 cat >conftest.$ac_ext <<_ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2504 rm -f conftest.$ac_objext
2505 if { (ac_try="$ac_compile"
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_compile") 2>conftest.er1
2513 grep -v '^ *+' conftest.er1 >conftest.err
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_try") 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2543 ac_c_werror_flag=$ac_save_c_werror_flag
2545 cat >conftest.$ac_ext <<_ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2569 grep -v '^ *+' conftest.er1 >conftest.err
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575 { (case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_try") 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_try") 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ac_c_werror_flag=$ac_save_c_werror_flag
2611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2613 if test "$ac_test_CFLAGS" = set; then
2614 CFLAGS=$ac_save_CFLAGS
2615 elif test $ac_cv_prog_cc_g = yes; then
2616 if test "$GCC" = yes; then
2622 if test "$GCC" = yes; then
2628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_cc_c89+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 ac_cv_prog_cc_c89=no
2635 cat >conftest.$ac_ext <<_ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2643 #include <sys/types.h>
2644 #include <sys/stat.h>
2645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2646 struct buf { int x; };
2647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648 static char *e (p, i)
2654 static char *f (char * (*g) (char **, int), char **p, ...)
2659 s = g (p, va_arg (v,int));
2664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2665 function prototypes and stuff, but not '\xHH' hex character constants.
2666 These don't provoke an error unfortunately, instead are silently treated
2667 as 'x'. The following induces an error, until -std is added to get
2668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2669 array size at least. It's necessary to write '\x00'==0 to get something
2670 that's true only with -std. */
2671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674 inside strings and character constants. */
2676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2678 int test (int i, double x);
2679 struct s1 {int (*f) (int a);};
2680 struct s2 {int (*f) (double a);};
2681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711 { (case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_try") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2730 ac_cv_prog_cc_c89=$ac_arg
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2738 rm -f core conftest.err conftest.$ac_objext
2739 test "x$ac_cv_prog_cc_c89" != "xno" && break
2741 rm -f conftest.$ac_ext
2746 case "x$ac_cv_prog_cc_c89" in
2748 { echo "$as_me:$LINENO: result: none needed" >&5
2749 echo "${ECHO_T}none needed" >&6; } ;;
2751 { echo "$as_me:$LINENO: result: unsupported" >&5
2752 echo "${ECHO_T}unsupported" >&6; } ;;
2754 CC="$CC $ac_cv_prog_cc_c89"
2755 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 ac_cpp='$CXXCPP $CPPFLAGS'
2768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771 if test -z "$CXX"; then
2772 if test -n "$CCC"; then
2775 if test -n "$ac_tool_prefix"; then
2776 for ac_prog in clang++ llvm-g++ g++
2778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_CXX+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 if test -n "$CXX"; then
2786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 if test -n "$CXX"; then
2807 { echo "$as_me:$LINENO: result: $CXX" >&5
2808 echo "${ECHO_T}$CXX" >&6; }
2810 { echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6; }
2815 test -n "$CXX" && break
2818 if test -z "$CXX"; then
2820 for ac_prog in clang++ llvm-g++ g++
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 if test -n "$ac_ct_CXX"; then
2830 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CXX="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850 if test -n "$ac_ct_CXX"; then
2851 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2854 { echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6; }
2859 test -n "$ac_ct_CXX" && break
2862 if test "x$ac_ct_CXX" = x; then
2865 case $cross_compiling:$ac_tool_warned in
2867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet. If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&5
2870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871 whose name does not start with the host triplet. If you think this
2872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873 ac_tool_warned=yes ;;
2881 # Provide some information about the compiler.
2882 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2883 ac_compiler=`set X $ac_compile; echo $2`
2884 { (ac_try="$ac_compiler --version >&5"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler --version >&5") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894 { (ac_try="$ac_compiler -v >&5"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compiler -v >&5") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904 { (ac_try="$ac_compiler -V >&5"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compiler -V >&5") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2915 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2917 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2953 { (case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_try") 2>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2984 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2985 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2986 GXX=`test $ac_compiler_gnu = yes && echo yes`
2987 ac_test_CXXFLAGS=${CXXFLAGS+set}
2988 ac_save_CXXFLAGS=$CXXFLAGS
2989 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2990 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2991 if test "${ac_cv_prog_cxx_g+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2995 ac_cxx_werror_flag=yes
2998 cat >conftest.$ac_ext <<_ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_try") 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 ac_cv_prog_cxx_g=yes
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_prog_cxx_g=yes
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3175 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3176 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3177 if test "$ac_test_CXXFLAGS" = set; then
3178 CXXFLAGS=$ac_save_CXXFLAGS
3179 elif test $ac_cv_prog_cxx_g = yes; then
3180 if test "$GXX" = yes; then
3186 if test "$GXX" = yes; then
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3205 # On Suns, sometimes $CPP names a directory.
3206 if test -n "$CPP" && test -d "$CPP"; then
3209 if test -z "$CPP"; then
3210 if test "${ac_cv_prog_CPP+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 # Double quotes because CPP needs to be expanded
3214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3217 for ac_c_preproc_warn_flag in '' yes
3219 # Use a header file that comes with gcc, so configuring glibc
3220 # with a fresh cross-compiler works.
3221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222 # <limits.h> exists even on freestanding compilers.
3223 # On the NeXT, cc -E runs the code through the compiler's parser,
3224 # not just through cpp. "Syntax error" is here to catch this case.
3225 cat >conftest.$ac_ext <<_ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3232 # include <limits.h>
3234 # include <assert.h>
3238 if { (ac_try="$ac_cpp conftest.$ac_ext"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3246 grep -v '^ *+' conftest.er1 >conftest.err
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } >/dev/null; then
3251 if test -s conftest.err; then
3252 ac_cpp_err=$ac_c_preproc_warn_flag
3253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3260 if test -z "$ac_cpp_err"; then
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 # Broken: fails on valid input.
3270 rm -f conftest.err conftest.$ac_ext
3272 # OK, works on sane cases. Now check whether nonexistent headers
3273 # can be detected and how.
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280 #include <ac_nonexistent.h>
3282 if { (ac_try="$ac_cpp conftest.$ac_ext"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3290 grep -v '^ *+' conftest.er1 >conftest.err
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } >/dev/null; then
3295 if test -s conftest.err; then
3296 ac_cpp_err=$ac_c_preproc_warn_flag
3297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3304 if test -z "$ac_cpp_err"; then
3305 # Broken: success on invalid input.
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 # Passes both tests.
3316 rm -f conftest.err conftest.$ac_ext
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3333 { echo "$as_me:$LINENO: result: $CPP" >&5
3334 echo "${ECHO_T}$CPP" >&6; }
3336 for ac_c_preproc_warn_flag in '' yes
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
3340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
3342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3351 # include <limits.h>
3353 # include <assert.h>
3357 if { (ac_try="$ac_cpp conftest.$ac_ext"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } >/dev/null; then
3370 if test -s conftest.err; then
3371 ac_cpp_err=$ac_c_preproc_warn_flag
3372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3379 if test -z "$ac_cpp_err"; then
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 # Broken: fails on valid input.
3389 rm -f conftest.err conftest.$ac_ext
3391 # OK, works on sane cases. Now check whether nonexistent headers
3392 # can be detected and how.
3393 cat >conftest.$ac_ext <<_ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 #include <ac_nonexistent.h>
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423 if test -z "$ac_cpp_err"; then
3424 # Broken: success on invalid input.
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 # Passes both tests.
3435 rm -f conftest.err conftest.$ac_ext
3438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439 rm -f conftest.err conftest.$ac_ext
3440 if $ac_preproc_ok; then
3443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444 See \`config.log' for more details." >&5
3445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&2;}
3447 { (exit 1); exit 1; }; }
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 if test -d ${srcdir}/projects/llvm-gcc ; then
3460 subdirs="$subdirs projects/llvm-gcc"
3464 if test -d ${srcdir}/projects/test-suite ; then
3465 subdirs="$subdirs projects/test-suite"
3469 if test -d ${srcdir}/projects/llvm-test ; then
3470 subdirs="$subdirs projects/llvm-test"
3474 if test -d ${srcdir}/projects/poolalloc ; then
3475 subdirs="$subdirs projects/poolalloc"
3479 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3480 subdirs="$subdirs projects/llvm-poolalloc"
3484 for i in `ls ${srcdir}/projects`
3486 if test -d ${srcdir}/projects/${i} ; then
3488 sample) subdirs="$subdirs projects/sample"
3490 privbracket) subdirs="$subdirs projects/privbracket"
3492 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3494 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3496 llvm-java) subdirs="$subdirs projects/llvm-java"
3498 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3500 safecode) subdirs="$subdirs projects/safecode"
3502 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3511 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3512 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3518 # Check whether --enable-polly was given.
3519 if test "${enable_polly+set}" = set; then
3520 enableval=$enable_polly;
3525 case "$enableval" in
3530 default) ENABLE_POLLY=1
3532 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3533 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3534 { (exit 1); exit 1; }; } ;;
3538 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3541 subdirs="$subdirs tools/polly"
3546 # Make sure we can run config.sub.
3547 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550 { (exit 1); exit 1; }; }
3552 { echo "$as_me:$LINENO: checking build system type" >&5
3553 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554 if test "${ac_cv_build+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_build_alias=$build_alias
3558 test "x$ac_build_alias" = x &&
3559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560 test "x$ac_build_alias" = x &&
3561 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563 { (exit 1); exit 1; }; }
3564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567 { (exit 1); exit 1; }; }
3570 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571 echo "${ECHO_T}$ac_cv_build" >&6; }
3572 case $ac_cv_build in
3574 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575 echo "$as_me: error: invalid value of canonical build" >&2;}
3576 { (exit 1); exit 1; }; };;
3579 ac_save_IFS=$IFS; IFS='-'
3585 # Remember, the first character of IFS is used to create $*,
3586 # except with old shells:
3589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3592 { echo "$as_me:$LINENO: checking host system type" >&5
3593 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594 if test "${ac_cv_host+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 if test "x$host_alias" = x; then
3598 ac_cv_host=$ac_cv_build
3600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603 { (exit 1); exit 1; }; }
3607 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608 echo "${ECHO_T}$ac_cv_host" >&6; }
3611 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612 echo "$as_me: error: invalid value of canonical host" >&2;}
3613 { (exit 1); exit 1; }; };;
3616 ac_save_IFS=$IFS; IFS='-'
3622 # Remember, the first character of IFS is used to create $*,
3623 # except with old shells:
3626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3629 { echo "$as_me:$LINENO: checking target system type" >&5
3630 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3631 if test "${ac_cv_target+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 if test "x$target_alias" = x; then
3635 ac_cv_target=$ac_cv_host
3637 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3638 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3639 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3640 { (exit 1); exit 1; }; }
3644 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3645 echo "${ECHO_T}$ac_cv_target" >&6; }
3646 case $ac_cv_target in
3648 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3649 echo "$as_me: error: invalid value of canonical target" >&2;}
3650 { (exit 1); exit 1; }; };;
3652 target=$ac_cv_target
3653 ac_save_IFS=$IFS; IFS='-'
3659 # Remember, the first character of IFS is used to create $*,
3660 # except with old shells:
3663 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3666 # The aliases save the names the user supplied, while $host etc.
3667 # will get canonicalized.
3668 test -n "$target_alias" &&
3669 test "$program_prefix$program_suffix$program_transform_name" = \
3671 program_prefix=${target_alias}-
3673 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3674 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3675 if test "${llvm_cv_os_type+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="AIX"
3683 llvm_cv_platform_type="Unix" ;;
3685 llvm_cv_link_all_option="-Wl,--whole-archive"
3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687 llvm_cv_os_type="IRIX"
3688 llvm_cv_platform_type="Unix" ;;
3690 llvm_cv_link_all_option="-Wl,--whole-archive"
3691 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692 llvm_cv_os_type="Cygwin"
3693 llvm_cv_platform_type="Unix" ;;
3695 llvm_cv_link_all_option="-Wl,-all_load"
3696 llvm_cv_no_link_all_option="-Wl,-noall_load"
3697 llvm_cv_os_type="Darwin"
3698 llvm_cv_platform_type="Unix" ;;
3700 llvm_cv_link_all_option="-Wl,-all_load"
3701 llvm_cv_no_link_all_option="-Wl,-noall_load"
3702 llvm_cv_os_type="Minix"
3703 llvm_cv_platform_type="Unix" ;;
3704 *-*-freebsd* | *-*-kfreebsd-gnu)
3705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="FreeBSD"
3708 llvm_cv_platform_type="Unix" ;;
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="OpenBSD"
3713 llvm_cv_platform_type="Unix" ;;
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="NetBSD"
3718 llvm_cv_platform_type="Unix" ;;
3720 llvm_cv_link_all_option="-Wl,--whole-archive"
3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722 llvm_cv_os_type="DragonFly"
3723 llvm_cv_platform_type="Unix" ;;
3725 llvm_cv_link_all_option="-Wl,--whole-archive"
3726 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727 llvm_cv_os_type="HP-UX"
3728 llvm_cv_platform_type="Unix" ;;
3730 llvm_cv_link_all_option="-Wl,--whole-archive"
3731 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732 llvm_cv_os_type="Interix"
3733 llvm_cv_platform_type="Unix" ;;
3735 llvm_cv_link_all_option="-Wl,--whole-archive"
3736 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737 llvm_cv_os_type="Linux"
3738 llvm_cv_platform_type="Unix" ;;
3740 llvm_cv_link_all_option="-Wl,--whole-archive"
3741 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3742 llvm_cv_os_type="GNU"
3743 llvm_cv_platform_type="Unix" ;;
3745 llvm_cv_link_all_option="-Wl,-z,allextract"
3746 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3747 llvm_cv_os_type="SunOS"
3748 llvm_cv_platform_type="Unix" ;;
3750 llvm_cv_link_all_option="-Wl,-z,allextract"
3751 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3752 llvm_cv_os_type="AuroraUX"
3753 llvm_cv_platform_type="Unix" ;;
3755 llvm_cv_link_all_option="-Wl,--whole-archive"
3756 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757 llvm_cv_os_type="Win32"
3758 llvm_cv_platform_type="Win32" ;;
3760 llvm_cv_link_all_option="-Wl,--whole-archive"
3761 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762 llvm_cv_os_type="MingW"
3763 llvm_cv_platform_type="Win32" ;;
3765 llvm_cv_link_all_option="-Wl,--whole-archive"
3766 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767 llvm_cv_os_type="Haiku"
3768 llvm_cv_platform_type="Unix" ;;
3770 llvm_cv_link_all_option="-Wl,--whole-archive"
3771 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772 llvm_cv_os_type="Freestanding"
3773 llvm_cv_platform_type="Unix" ;;
3775 llvm_cv_link_all_option="-Wl,--whole-archive"
3776 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3777 llvm_cv_os_type="Freestanding"
3778 llvm_cv_platform_type="Unix" ;;
3780 llvm_cv_link_all_option=""
3781 llvm_cv_no_link_all_option=""
3782 llvm_cv_os_type="Unknown"
3783 llvm_cv_platform_type="Unknown" ;;
3786 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3787 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3789 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3790 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3791 if test "${llvm_cv_target_os_type+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 llvm_cv_target_os_type="AIX" ;;
3798 llvm_cv_target_os_type="IRIX" ;;
3800 llvm_cv_target_os_type="Cygwin" ;;
3802 llvm_cv_target_os_type="Darwin" ;;
3804 llvm_cv_target_os_type="Minix" ;;
3805 *-*-freebsd* | *-*-kfreebsd-gnu)
3806 llvm_cv_target_os_type="FreeBSD" ;;
3808 llvm_cv_target_os_type="OpenBSD" ;;
3810 llvm_cv_target_os_type="NetBSD" ;;
3812 llvm_cv_target_os_type="DragonFly" ;;
3814 llvm_cv_target_os_type="HP-UX" ;;
3816 llvm_cv_target_os_type="Interix" ;;
3818 llvm_cv_target_os_type="Linux" ;;
3820 llvm_cv_target_os_type="GNU" ;;
3822 llvm_cv_target_os_type="SunOS" ;;
3824 llvm_cv_target_os_type="AuroraUX" ;;
3826 llvm_cv_target_os_type="Win32" ;;
3828 llvm_cv_target_os_type="MingW" ;;
3830 llvm_cv_target_os_type="Haiku" ;;
3832 llvm_cv_target_os_type="RTEMS" ;;
3834 llvm_cv_target_os_type="NativeClient" ;;
3836 llvm_cv_target_os_type="Freestanding" ;;
3838 llvm_cv_target_os_type="Unknown" ;;
3841 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3842 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3844 if test "$llvm_cv_os_type" = "Unknown" ; then
3845 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3846 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3847 { (exit 1); exit 1; }; }
3852 HOST_OS=$llvm_cv_os_type
3854 TARGET_OS=$llvm_cv_target_os_type
3857 LINKALL=$llvm_cv_link_all_option
3859 NOLINKALL=$llvm_cv_no_link_all_option
3862 case $llvm_cv_platform_type in
3865 cat >>confdefs.h <<\_ACEOF
3866 #define LLVM_ON_UNIX 1
3876 cat >>confdefs.h <<\_ACEOF
3877 #define LLVM_ON_WIN32 1
3887 { echo "$as_me:$LINENO: checking target architecture" >&5
3888 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3889 if test "${llvm_cv_target_arch+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 i?86-*) llvm_cv_target_arch="x86" ;;
3894 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3895 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3896 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3897 arm*-*) llvm_cv_target_arch="ARM" ;;
3898 mips-*) llvm_cv_target_arch="Mips" ;;
3899 mipsel-*) llvm_cv_target_arch="Mips" ;;
3900 xcore-*) llvm_cv_target_arch="XCore" ;;
3901 msp430-*) llvm_cv_target_arch="MSP430" ;;
3902 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3903 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3904 ptx-*) llvm_cv_target_arch="PTX" ;;
3905 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3906 *) llvm_cv_target_arch="Unknown" ;;
3909 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3910 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3912 if test "$llvm_cv_target_arch" = "Unknown" ; then
3913 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3914 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3917 case "$llvm_cv_target_arch" in
3918 x86) LLVM_NATIVE_ARCH="X86" ;;
3919 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3920 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3923 ARCH=$llvm_cv_target_arch
3927 i?86-*) host_arch="x86" ;;
3928 amd64-* | x86_64-*) host_arch="x86_64" ;;
3929 sparc*-*) host_arch="Sparc" ;;
3930 powerpc*-*) host_arch="PowerPC" ;;
3931 arm*-*) host_arch="ARM" ;;
3932 mips-*) host_arch="Mips" ;;
3933 mipsel-*) host_arch="Mips" ;;
3934 xcore-*) host_arch="XCore" ;;
3935 msp430-*) host_arch="MSP430" ;;
3936 hexagon-*) host_arch="Hexagon" ;;
3937 mblaze-*) host_arch="MBlaze" ;;
3938 ptx-*) host_arch="PTX" ;;
3939 *) host_arch="Unknown" ;;
3942 if test "$host_arch" = "Unknown" ; then
3943 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3944 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3947 HOST_ARCH=$host_arch
3952 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3953 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3954 if test "${ac_cv_path_GREP+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 # Extract the first word of "grep ggrep" to use in msg output
3958 if test -z "$GREP"; then
3959 set dummy grep ggrep; ac_prog_name=$2
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 ac_path_GREP_found=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969 test -z "$as_dir" && as_dir=.
3970 for ac_prog in grep ggrep; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3974 # Check for GNU ac_path_GREP and select it if it is found.
3975 # Check for GNU $ac_path_GREP
3976 case `"$ac_path_GREP" --version 2>&1` in
3978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3981 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
3987 echo 'GREP' >> "conftest.nl"
3988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990 ac_count=`expr $ac_count + 1`
3991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_GREP="$ac_path_GREP"
3994 ac_path_GREP_max=$ac_count
3996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003 $ac_path_GREP_found && break 3
4013 GREP="$ac_cv_path_GREP"
4014 if test -z "$GREP"; then
4015 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4016 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4017 { (exit 1); exit 1; }; }
4021 ac_cv_path_GREP=$GREP
4026 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4027 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4028 GREP="$ac_cv_path_GREP"
4031 { echo "$as_me:$LINENO: checking for egrep" >&5
4032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4033 if test "${ac_cv_path_EGREP+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4037 then ac_cv_path_EGREP="$GREP -E"
4039 # Extract the first word of "egrep" to use in msg output
4040 if test -z "$EGREP"; then
4041 set dummy egrep; ac_prog_name=$2
4042 if test "${ac_cv_path_EGREP+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 ac_path_EGREP_found=false
4046 # Loop through the user's path and test for each of PROGNAME-LIST
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4051 test -z "$as_dir" && as_dir=.
4052 for ac_prog in egrep; do
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4055 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4056 # Check for GNU ac_path_EGREP and select it if it is found.
4057 # Check for GNU $ac_path_EGREP
4058 case `"$ac_path_EGREP" --version 2>&1` in
4060 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4063 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4066 cat "conftest.in" "conftest.in" >"conftest.tmp"
4067 mv "conftest.tmp" "conftest.in"
4068 cp "conftest.in" "conftest.nl"
4069 echo 'EGREP' >> "conftest.nl"
4070 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072 ac_count=`expr $ac_count + 1`
4073 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4074 # Best one so far, save it but keep looking for a better one
4075 ac_cv_path_EGREP="$ac_path_EGREP"
4076 ac_path_EGREP_max=$ac_count
4078 # 10*(2^10) chars as input seems more than enough
4079 test $ac_count -gt 10 && break
4081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 $ac_path_EGREP_found && break 3
4095 EGREP="$ac_cv_path_EGREP"
4096 if test -z "$EGREP"; then
4097 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4098 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4099 { (exit 1); exit 1; }; }
4103 ac_cv_path_EGREP=$EGREP
4109 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4110 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4111 EGREP="$ac_cv_path_EGREP"
4114 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4115 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4116 if test "${ac_cv_header_stdc+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4138 rm -f conftest.$ac_objext
4139 if { (ac_try="$ac_compile"
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (case "(($ac_try" in
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_try") 2>&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 ac_cv_header_stdc=yes
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 ac_cv_header_stdc=no
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 if test $ac_cv_header_stdc = yes; then
4183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4184 cat >conftest.$ac_ext <<_ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194 $EGREP "memchr" >/dev/null 2>&1; then
4197 ac_cv_header_stdc=no
4203 if test $ac_cv_header_stdc = yes; then
4204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4215 $EGREP "free" >/dev/null 2>&1; then
4218 ac_cv_header_stdc=no
4224 if test $ac_cv_header_stdc = yes; then
4225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4226 if test "$cross_compiling" = yes; then
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4237 #if ((' ' & 0x0FF) == 0x020)
4238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4241 # define ISLOWER(c) \
4242 (('a' <= (c) && (c) <= 'i') \
4243 || ('j' <= (c) && (c) <= 'r') \
4244 || ('s' <= (c) && (c) <= 'z'))
4245 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4253 for (i = 0; i < 256; i++)
4254 if (XOR (islower (i), ISLOWER (i))
4255 || toupper (i) != TOUPPER (i))
4260 rm -f conftest$ac_exeext
4261 if { (ac_try="$ac_link"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_link") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4282 echo "$as_me: program exited with status $ac_status" >&5
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4287 ac_cv_header_stdc=no
4289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4295 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4296 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4297 if test $ac_cv_header_stdc = yes; then
4299 cat >>confdefs.h <<\_ACEOF
4300 #define STDC_HEADERS 1
4305 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4315 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316 inttypes.h stdint.h unistd.h
4318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 $ac_includes_default
4332 #include <$ac_header>
4334 rm -f conftest.$ac_objext
4335 if { (ac_try="$ac_compile"
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349 { (case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_try") 2>&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest.$ac_objext'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 eval "$as_ac_Header=yes"
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 eval "$as_ac_Header=no"
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 ac_res=`eval echo '${'$as_ac_Header'}'`
4379 { echo "$as_me:$LINENO: result: $ac_res" >&5
4380 echo "${ECHO_T}$ac_res" >&6; }
4381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4382 cat >>confdefs.h <<_ACEOF
4383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4391 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4392 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4393 if test "${ac_cv_c_bigendian+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 # See if sys/param.h defines the BYTE_ORDER macro.
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #include <sys/types.h>
4404 #include <sys/param.h>
4409 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4417 rm -f conftest.$ac_objext
4418 if { (ac_try="$ac_compile"
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_compile") 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4432 { (case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_try") 2>&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then
4451 # It does; now see whether it defined to BIG_ENDIAN or not.
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <sys/types.h>
4459 #include <sys/param.h>
4464 #if BYTE_ORDER != BIG_ENDIAN
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_compile") 2>conftest.er1
4481 grep -v '^ *+' conftest.er1 >conftest.err
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4487 { (case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_try") 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_try") 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4506 ac_cv_c_bigendian=yes
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 ac_cv_c_bigendian=no
4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 # It does not; compile a test program.
4520 if test "$cross_compiling" = yes; then
4521 # try to guess the endianness by grepping values into an object file
4522 ac_cv_c_bigendian=unknown
4523 cat >conftest.$ac_ext <<_ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4530 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4531 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4532 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4533 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4534 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4538 _ascii (); _ebcdic ();
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_try") 2>&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4578 ac_cv_c_bigendian=yes
4580 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4581 if test "$ac_cv_c_bigendian" = unknown; then
4582 ac_cv_c_bigendian=no
4584 # finding both strings is unlikely to happen, but who knows?
4585 ac_cv_c_bigendian=unknown
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 cat >conftest.$ac_ext <<_ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 $ac_includes_default
4608 /* Are we little or big endian? From Harbison&Steele. */
4612 char c[sizeof (long int)];
4615 return u.c[sizeof (long int) - 1] == 1;
4621 rm -f conftest$ac_exeext
4622 if { (ac_try="$ac_link"
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_link") 2>&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 ac_cv_c_bigendian=no
4643 echo "$as_me: program exited with status $ac_status" >&5
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4648 ac_cv_c_bigendian=yes
4650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4659 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4660 case $ac_cv_c_bigendian in
4668 { { echo "$as_me:$LINENO: error: unknown endianness
4669 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4670 echo "$as_me: error: unknown endianness
4671 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4672 { (exit 1); exit 1; }; } ;;
4676 if test "$cross_compiling" = yes; then
4677 LLVM_CROSS_COMPILING=1
4680 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4681 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4682 if test "${ac_cv_build_exeext+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4686 ac_cv_build_exeext=.exe
4688 ac_build_prefix=${build_alias}-
4690 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4691 set dummy ${ac_build_prefix}gcc; ac_word=$2
4692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 if test -n "$BUILD_CC"; then
4698 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 BUILD_CC=$ac_cv_prog_BUILD_CC
4718 if test -n "$BUILD_CC"; then
4719 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4720 echo "${ECHO_T}$BUILD_CC" >&6; }
4722 { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4727 if test -z "$BUILD_CC"; then
4728 # Extract the first word of "gcc", so it can be a program name with args.
4729 set dummy gcc; ac_word=$2
4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 if test -n "$BUILD_CC"; then
4736 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_prog_BUILD_CC="gcc"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 BUILD_CC=$ac_cv_prog_BUILD_CC
4756 if test -n "$BUILD_CC"; then
4757 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4758 echo "${ECHO_T}$BUILD_CC" >&6; }
4760 { echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6; }
4765 if test -z "$BUILD_CC"; then
4766 # Extract the first word of "cc", so it can be a program name with args.
4767 set dummy cc; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 if test -n "$BUILD_CC"; then
4774 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4785 ac_prog_rejected=yes
4788 ac_cv_prog_BUILD_CC="cc"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 if test $ac_prog_rejected = yes; then
4797 # We found a bogon in the path, so make sure we never use it.
4798 set dummy $ac_cv_prog_BUILD_CC
4800 if test $# != 0; then
4801 # We chose a different compiler from the bogus one.
4802 # However, it has the same basename, so the bogon will be chosen
4803 # first if we set BUILD_CC to just the basename; use the full file name.
4805 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4810 BUILD_CC=$ac_cv_prog_BUILD_CC
4811 if test -n "$BUILD_CC"; then
4812 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4813 echo "${ECHO_T}$BUILD_CC" >&6; }
4815 { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4822 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4823 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4824 { (exit 1); exit 1; }; }
4825 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4827 echo 'int main () { return 0; }' > conftest.$ac_ext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4830 (eval $ac_build_link) 2>&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; then
4834 for file in conftest.*; do
4836 *.c | *.o | *.obj | *.dSYM) ;;
4837 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4841 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4842 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4843 { (exit 1); exit 1; }; }
4846 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4851 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4852 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4853 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4854 ac_build_exeext=$BUILD_EXEEXT
4856 ac_build_prefix=${build_alias}-
4857 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4858 set dummy ${ac_build_prefix}g++; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 if test -n "$BUILD_CXX"; then
4865 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4885 if test -n "$BUILD_CXX"; then
4886 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4887 echo "${ECHO_T}$BUILD_CXX" >&6; }
4889 { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4894 if test -z "$BUILD_CXX"; then
4895 # Extract the first word of "g++", so it can be a program name with args.
4896 set dummy g++; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 if test -n "$BUILD_CXX"; then
4903 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_BUILD_CXX="g++"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4923 if test -n "$BUILD_CXX"; then
4924 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4925 echo "${ECHO_T}$BUILD_CXX" >&6; }
4927 { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4932 if test -z "$BUILD_CXX"; then
4933 # Extract the first word of "c++", so it can be a program name with args.
4934 set dummy c++; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test -n "$BUILD_CXX"; then
4941 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4952 ac_prog_rejected=yes
4955 ac_cv_prog_BUILD_CXX="c++"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 if test $ac_prog_rejected = yes; then
4964 # We found a bogon in the path, so make sure we never use it.
4965 set dummy $ac_cv_prog_BUILD_CXX
4967 if test $# != 0; then
4968 # We chose a different compiler from the bogus one.
4969 # However, it has the same basename, so the bogon will be chosen
4970 # first if we set BUILD_CXX to just the basename; use the full file name.
4972 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4977 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4978 if test -n "$BUILD_CXX"; then
4979 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4980 echo "${ECHO_T}$BUILD_CXX" >&6; }
4982 { echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6; }
4990 LLVM_CROSS_COMPILING=0
4994 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5005 # Check whether --enable-libcpp was given.
5006 if test "${enable_libcpp+set}" = set; then
5007 enableval=$enable_libcpp;
5012 case "$enableval" in
5013 yes) ENABLE_LIBCPP=1
5017 default) ENABLE_LIBCPP=0
5019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5020 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5024 # Check whether --enable-optimized was given.
5025 if test "${enable_optimized+set}" = set; then
5026 enableval=$enable_optimized;
5031 if test ${enableval} = "no" ; then
5035 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5039 # Check whether --enable-profiling was given.
5040 if test "${enable_profiling+set}" = set; then
5041 enableval=$enable_profiling;
5046 if test ${enableval} = "no" ; then
5050 ENABLE_PROFILING=ENABLE_PROFILING=1
5054 # Check whether --enable-assertions was given.
5055 if test "${enable_assertions+set}" = set; then
5056 enableval=$enable_assertions;
5061 if test ${enableval} = "yes" ; then
5065 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5069 # Check whether --enable-expensive-checks was given.
5070 if test "${enable_expensive_checks+set}" = set; then
5071 enableval=$enable_expensive_checks;
5076 if test ${enableval} = "yes" ; then
5077 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5079 EXPENSIVE_CHECKS=yes
5082 ENABLE_EXPENSIVE_CHECKS=
5088 # Check whether --enable-debug-runtime was given.
5089 if test "${enable_debug_runtime+set}" = set; then
5090 enableval=$enable_debug_runtime;
5095 if test ${enableval} = "no" ; then
5099 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5103 # Check whether --enable-debug-symbols was given.
5104 if test "${enable_debug_symbols+set}" = set; then
5105 enableval=$enable_debug_symbols;
5110 if test ${enableval} = "no" ; then
5114 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5118 # Check whether --enable-jit was given.
5119 if test "${enable_jit+set}" = set; then
5120 enableval=$enable_jit;
5125 if test ${enableval} = "no"
5130 case "$llvm_cv_target_arch" in
5131 x86) TARGET_HAS_JIT=1
5133 Sparc) TARGET_HAS_JIT=0
5135 PowerPC) TARGET_HAS_JIT=1
5137 x86_64) TARGET_HAS_JIT=1
5139 ARM) TARGET_HAS_JIT=1
5141 Mips) TARGET_HAS_JIT=1
5143 XCore) TARGET_HAS_JIT=0
5145 MSP430) TARGET_HAS_JIT=0
5147 Hexagon) TARGET_HAS_JIT=0
5149 MBlaze) TARGET_HAS_JIT=0
5151 PTX) TARGET_HAS_JIT=0
5153 NVPTX) TARGET_HAS_JIT=0
5160 # Check whether --enable-docs was given.
5161 if test "${enable_docs+set}" = set; then
5162 enableval=$enable_docs;
5167 case "$enableval" in
5172 default) ENABLE_DOCS=1
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5179 # Check whether --enable-doxygen was given.
5180 if test "${enable_doxygen+set}" = set; then
5181 enableval=$enable_doxygen;
5186 case "$enableval" in
5187 yes) ENABLE_DOXYGEN=1
5189 no) ENABLE_DOXYGEN=0
5191 default) ENABLE_DOXYGEN=0
5193 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5195 { (exit 1); exit 1; }; } ;;
5198 # Check whether --enable-threads was given.
5199 if test "${enable_threads+set}" = set; then
5200 enableval=$enable_threads;
5205 case "$enableval" in
5206 yes) LLVM_ENABLE_THREADS=1
5208 no) LLVM_ENABLE_THREADS=0
5210 default) LLVM_ENABLE_THREADS=1
5212 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5213 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5214 { (exit 1); exit 1; }; } ;;
5217 cat >>confdefs.h <<_ACEOF
5218 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5222 # Check whether --enable-pthreads was given.
5223 if test "${enable_pthreads+set}" = set; then
5224 enableval=$enable_pthreads;
5229 case "$enableval" in
5230 yes) ENABLE_PTHREADS=1
5232 no) ENABLE_PTHREADS=0
5234 default) ENABLE_PTHREADS=1
5236 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5237 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5238 { (exit 1); exit 1; }; } ;;
5241 # Check whether --enable-pic was given.
5242 if test "${enable_pic+set}" = set; then
5243 enableval=$enable_pic;
5248 case "$enableval" in
5253 default) ENABLE_PIC=1
5255 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5256 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5257 { (exit 1); exit 1; }; } ;;
5260 cat >>confdefs.h <<_ACEOF
5261 #define ENABLE_PIC $ENABLE_PIC
5265 # Check whether --enable-shared was given.
5266 if test "${enable_shared+set}" = set; then
5267 enableval=$enable_shared;
5272 case "$enableval" in
5273 yes) ENABLE_SHARED=1
5277 default) ENABLE_SHARED=0
5279 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5280 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5281 { (exit 1); exit 1; }; } ;;
5284 # Check whether --enable-embed-stdcxx was given.
5285 if test "${enable_embed_stdcxx+set}" = set; then
5286 enableval=$enable_embed_stdcxx;
5291 case "$enableval" in
5292 yes) ENABLE_EMBED_STDCXX=1
5294 no) ENABLE_EMBED_STDCXX=0
5296 default) ENABLE_EMBED_STDCXX=0
5298 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5300 { (exit 1); exit 1; }; } ;;
5303 # Check whether --enable-timestamps was given.
5304 if test "${enable_timestamps+set}" = set; then
5305 enableval=$enable_timestamps;
5310 case "$enableval" in
5311 yes) ENABLE_TIMESTAMPS=1
5313 no) ENABLE_TIMESTAMPS=0
5315 default) ENABLE_TIMESTAMPS=1
5317 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5318 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5319 { (exit 1); exit 1; }; } ;;
5322 cat >>confdefs.h <<_ACEOF
5323 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5328 # Check whether --enable-targets was given.
5329 if test "${enable_targets+set}" = set; then
5330 enableval=$enable_targets;
5335 if test "$enableval" = host-only ; then
5338 case "$enableval" in
5339 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
5340 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5342 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5343 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5344 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5345 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5346 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5347 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5348 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5349 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5350 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5351 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5352 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5353 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5354 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5355 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5356 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5357 host) case "$llvm_cv_target_arch" in
5358 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5359 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5361 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5362 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5363 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5364 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5365 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5366 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5367 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5368 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5369 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5370 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5371 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5372 echo "$as_me: error: Can not set target to build" >&2;}
5373 { (exit 1); exit 1; }; } ;;
5375 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5376 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5377 { (exit 1); exit 1; }; } ;;
5382 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5385 for a_target in $TARGETS_TO_BUILD; do
5386 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5392 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5393 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5394 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5395 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5396 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5397 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5422 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5424 cat >>confdefs.h <<_ACEOF
5425 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5429 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5439 LLVM_ENUM_TARGETS=""
5440 LLVM_ENUM_ASM_PRINTERS=""
5441 LLVM_ENUM_ASM_PARSERS=""
5442 LLVM_ENUM_DISASSEMBLERS=""
5443 for target_to_build in $TARGETS_TO_BUILD; do
5444 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5445 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5446 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5448 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5449 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5451 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5452 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5461 # Check whether --with-optimize-option was given.
5462 if test "${with_optimize_option+set}" = set; then
5463 withval=$with_optimize_option;
5468 { echo "$as_me:$LINENO: checking optimization flags" >&5
5469 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5472 case "$llvm_cv_os_type" in
5473 FreeBSD) optimize_option=-O2 ;;
5474 MingW) optimize_option=-O2 ;;
5475 *) optimize_option=-O3 ;;
5477 *) optimize_option="$withval" ;;
5479 OPTIMIZE_OPTION=$optimize_option
5481 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5482 echo "${ECHO_T}$optimize_option" >&6; }
5485 # Check whether --with-extra-options was given.
5486 if test "${with_extra_options+set}" = set; then
5487 withval=$with_extra_options;
5493 default) EXTRA_OPTIONS= ;;
5494 *) EXTRA_OPTIONS=$withval ;;
5496 EXTRA_OPTIONS=$EXTRA_OPTIONS
5500 # Check whether --with-extra-ld-options was given.
5501 if test "${with_extra_ld_options+set}" = set; then
5502 withval=$with_extra_ld_options;
5508 default) EXTRA_LD_OPTIONS= ;;
5509 *) EXTRA_LD_OPTIONS=$withval ;;
5511 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5514 # Check whether --enable-bindings was given.
5515 if test "${enable_bindings+set}" = set; then
5516 enableval=$enable_bindings;
5521 BINDINGS_TO_BUILD=""
5522 case "$enableval" in
5523 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5524 all ) BINDINGS_TO_BUILD="ocaml" ;;
5525 none | no) BINDINGS_TO_BUILD="" ;;
5526 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5527 case "$a_binding" in
5528 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5529 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5530 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5531 { (exit 1); exit 1; }; } ;;
5538 # Check whether --with-ocaml-libdir was given.
5539 if test "${with_ocaml_libdir+set}" = set; then
5540 withval=$with_ocaml_libdir;
5546 auto) with_ocaml_libdir="$withval" ;;
5547 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5548 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5549 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5550 { (exit 1); exit 1; }; } ;;
5554 # Check whether --with-clang-srcdir was given.
5555 if test "${with_clang_srcdir+set}" = set; then
5556 withval=$with_clang_srcdir;
5562 -) clang_src_root="" ;;
5563 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5564 *) clang_src_root="$ac_pwd/$withval" ;;
5566 CLANG_SRC_ROOT=$clang_src_root
5570 # Check whether --with-clang-resource-dir was given.
5571 if test "${with_clang_resource_dir+set}" = set; then
5572 withval=$with_clang_resource_dir;
5578 cat >>confdefs.h <<_ACEOF
5579 #define CLANG_RESOURCE_DIR "$withval"
5584 # Check whether --with-c-include-dirs was given.
5585 if test "${with_c_include_dirs+set}" = set; then
5586 withval=$with_c_include_dirs;
5592 cat >>confdefs.h <<_ACEOF
5593 #define C_INCLUDE_DIRS "$withval"
5597 # Clang normally uses the system c++ headers and libraries. With this option,
5598 # clang will use the ones provided by a gcc installation instead. This option should
5599 # be passed the same value that was used with --prefix when configuring gcc.
5601 # Check whether --with-gcc-toolchain was given.
5602 if test "${with_gcc_toolchain+set}" = set; then
5603 withval=$with_gcc_toolchain;
5609 cat >>confdefs.h <<_ACEOF
5610 #define GCC_INSTALL_PREFIX "$withval"
5615 # Check whether --with-default-sysroot was given.
5616 if test "${with_default_sysroot+set}" = set; then
5617 withval=$with_default_sysroot;
5623 cat >>confdefs.h <<_ACEOF
5624 #define DEFAULT_SYSROOT "$withval"
5629 # Check whether --with-binutils-include was given.
5630 if test "${with_binutils_include+set}" = set; then
5631 withval=$with_binutils_include;
5637 default) WITH_BINUTILS_INCDIR=default ;;
5638 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5639 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5640 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5641 { (exit 1); exit 1; }; } ;;
5643 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5644 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5646 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5647 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5648 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5649 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5650 { (exit 1); exit 1; }; };
5655 # Check whether --with-bug-report-url was given.
5656 if test "${with_bug_report_url+set}" = set; then
5657 withval=$with_bug_report_url;
5659 withval="http://llvm.org/bugs/"
5663 cat >>confdefs.h <<_ACEOF
5664 #define BUG_REPORT_URL "$withval"
5668 # Check whether --enable-libffi was given.
5669 if test "${enable_libffi+set}" = set; then
5670 enableval=$enable_libffi; case "$enableval" in
5671 yes) llvm_cv_enable_libffi="yes" ;;
5672 no) llvm_cv_enable_libffi="no" ;;
5673 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5674 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5675 { (exit 1); exit 1; }; } ;;
5678 llvm_cv_enable_libffi=no
5683 # Check whether --with-internal-prefix was given.
5684 if test "${with_internal_prefix+set}" = set; then
5685 withval=$with_internal_prefix;
5690 INTERNAL_PREFIX=$withval
5694 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5695 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5696 if test "${lt_cv_path_NM+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 if test -n "$NM"; then
5700 # Let the user override the test.
5703 lt_nm_to_check="${ac_tool_prefix}nm"
5704 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5705 lt_nm_to_check="$lt_nm_to_check nm"
5707 for lt_tmp_nm in $lt_nm_to_check; do
5708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5711 test -z "$ac_dir" && ac_dir=.
5712 tmp_nm="$ac_dir/$lt_tmp_nm"
5713 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5714 # Check to see if the nm accepts a BSD-compat flag.
5715 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5716 # nm: unknown option "B" ignored
5717 # Tru64's nm complains that /dev/null is an invalid object file
5718 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5719 */dev/null* | *'Invalid file or object type'*)
5720 lt_cv_path_NM="$tmp_nm -B"
5724 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5726 lt_cv_path_NM="$tmp_nm -p"
5730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5731 continue # so that we can try to find one that supports BSD flags
5740 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5743 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5744 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5749 { echo "$as_me:$LINENO: checking for GNU make" >&5
5750 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5751 if test "${llvm_cv_gnu_make_command+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 llvm_cv_gnu_make_command=''
5755 for a in "$MAKE" make gmake gnumake ; do
5756 if test -z "$a" ; then continue ; fi ;
5757 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5759 llvm_cv_gnu_make_command=$a ;
5764 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5765 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5766 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5770 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5771 echo "${ECHO_T}\"Not found\"" >&6; };
5775 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5776 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5778 if test "$LN_S" = "ln -s"; then
5779 { echo "$as_me:$LINENO: result: yes" >&5
5780 echo "${ECHO_T}yes" >&6; }
5782 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5783 echo "${ECHO_T}no, using $LN_S" >&6; }
5786 # Extract the first word of "cmp", so it can be a program name with args.
5787 set dummy cmp; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_path_CMP+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5805 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5818 if test -n "$CMP"; then
5819 { echo "$as_me:$LINENO: result: $CMP" >&5
5820 echo "${ECHO_T}$CMP" >&6; }
5822 { echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6; }
5827 # Extract the first word of "cp", so it can be a program name with args.
5828 set dummy cp; ac_word=$2
5829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831 if test "${ac_cv_path_CP+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5859 if test -n "$CP"; then
5860 { echo "$as_me:$LINENO: result: $CP" >&5
5861 echo "${ECHO_T}$CP" >&6; }
5863 { echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6; }
5868 # Extract the first word of "date", so it can be a program name with args.
5869 set dummy date; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_path_DATE+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
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_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5899 DATE=$ac_cv_path_DATE
5900 if test -n "$DATE"; then
5901 { echo "$as_me:$LINENO: result: $DATE" >&5
5902 echo "${ECHO_T}$DATE" >&6; }
5904 { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5909 # Extract the first word of "find", so it can be a program name with args.
5910 set dummy find; ac_word=$2
5911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913 if test "${ac_cv_path_FIND+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5940 FIND=$ac_cv_path_FIND
5941 if test -n "$FIND"; then
5942 { echo "$as_me:$LINENO: result: $FIND" >&5
5943 echo "${ECHO_T}$FIND" >&6; }
5945 { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5950 # Extract the first word of "grep", so it can be a program name with args.
5951 set dummy grep; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_path_GREP+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5969 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5981 GREP=$ac_cv_path_GREP
5982 if test -n "$GREP"; then
5983 { echo "$as_me:$LINENO: result: $GREP" >&5
5984 echo "${ECHO_T}$GREP" >&6; }
5986 { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5991 # Extract the first word of "mkdir", so it can be a program name with args.
5992 set dummy mkdir; ac_word=$2
5993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995 if test "${ac_cv_path_MKDIR+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6022 MKDIR=$ac_cv_path_MKDIR
6023 if test -n "$MKDIR"; then
6024 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6025 echo "${ECHO_T}$MKDIR" >&6; }
6027 { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6032 # Extract the first word of "mv", so it can be a program name with args.
6033 set dummy mv; ac_word=$2
6034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6036 if test "${ac_cv_path_MV+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6064 if test -n "$MV"; then
6065 { echo "$as_me:$LINENO: result: $MV" >&5
6066 echo "${ECHO_T}$MV" >&6; }
6068 { echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6; }
6073 if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6075 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6078 if test "${ac_cv_prog_RANLIB+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 if test -n "$RANLIB"; then
6082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 RANLIB=$ac_cv_prog_RANLIB
6102 if test -n "$RANLIB"; then
6103 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6104 echo "${ECHO_T}$RANLIB" >&6; }
6106 { echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6; }
6112 if test -z "$ac_cv_prog_RANLIB"; then
6113 ac_ct_RANLIB=$RANLIB
6114 # Extract the first word of "ranlib", so it can be a program name with args.
6115 set dummy ranlib; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 if test -n "$ac_ct_RANLIB"; then
6122 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_ac_ct_RANLIB="ranlib"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6142 if test -n "$ac_ct_RANLIB"; then
6143 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6144 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6150 if test "x$ac_ct_RANLIB" = x; then
6153 case $cross_compiling:$ac_tool_warned in
6155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6156 whose name does not start with the host triplet. If you think this
6157 configuration is useful to you, please write to autoconf@gnu.org." >&5
6158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6159 whose name does not start with the host triplet. If you think this
6160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6161 ac_tool_warned=yes ;;
6163 RANLIB=$ac_ct_RANLIB
6166 RANLIB="$ac_cv_prog_RANLIB"
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}ar; ac_word=$2
6172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174 if test "${ac_cv_prog_AR+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 if test -n "$AR"; then
6178 ac_cv_prog_AR="$AR" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_AR="${ac_tool_prefix}ar"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 if test -n "$AR"; then
6199 { echo "$as_me:$LINENO: result: $AR" >&5
6200 echo "${ECHO_T}$AR" >&6; }
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6208 if test -z "$ac_cv_prog_AR"; then
6210 # Extract the first word of "ar", so it can be a program name with args.
6211 set dummy ar; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 if test -n "$ac_ct_AR"; then
6218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_ac_ct_AR="ar"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6238 if test -n "$ac_ct_AR"; then
6239 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6240 echo "${ECHO_T}$ac_ct_AR" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6246 if test "x$ac_ct_AR" = x; then
6249 case $cross_compiling:$ac_tool_warned in
6251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6252 whose name does not start with the host triplet. If you think this
6253 configuration is useful to you, please write to autoconf@gnu.org." >&5
6254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6255 whose name does not start with the host triplet. If you think this
6256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6257 ac_tool_warned=yes ;;
6265 # Extract the first word of "rm", so it can be a program name with args.
6266 set dummy rm; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_path_RM+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6297 if test -n "$RM"; then
6298 { echo "$as_me:$LINENO: result: $RM" >&5
6299 echo "${ECHO_T}$RM" >&6; }
6301 { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6306 # Extract the first word of "sed", so it can be a program name with args.
6307 set dummy sed; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_path_SED+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6338 if test -n "$SED"; then
6339 { echo "$as_me:$LINENO: result: $SED" >&5
6340 echo "${ECHO_T}$SED" >&6; }
6342 { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6347 # Extract the first word of "tar", so it can be a program name with args.
6348 set dummy tar; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_path_TAR+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6379 if test -n "$TAR"; then
6380 { echo "$as_me:$LINENO: result: $TAR" >&5
6381 echo "${ECHO_T}$TAR" >&6; }
6383 { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6388 # Extract the first word of "pwd", so it can be a program name with args.
6389 set dummy pwd; ac_word=$2
6390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6392 if test "${ac_cv_path_BINPWD+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6419 BINPWD=$ac_cv_path_BINPWD
6420 if test -n "$BINPWD"; then
6421 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6422 echo "${ECHO_T}$BINPWD" >&6; }
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6430 # Extract the first word of "Graphviz", so it can be a program name with args.
6431 set dummy Graphviz; ac_word=$2
6432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6461 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6462 if test -n "$GRAPHVIZ"; then
6463 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6464 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6466 { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6471 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6473 cat >>confdefs.h <<\_ACEOF
6474 #define HAVE_GRAPHVIZ 1
6477 if test "$llvm_cv_os_type" = "MingW" ; then
6478 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6481 cat >>confdefs.h <<_ACEOF
6482 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6486 # Extract the first word of "dot", so it can be a program name with args.
6487 set dummy dot; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_path_DOT+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6518 if test -n "$DOT"; then
6519 { echo "$as_me:$LINENO: result: $DOT" >&5
6520 echo "${ECHO_T}$DOT" >&6; }
6522 { echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6; }
6527 if test "$DOT" != "echo dot" ; then
6529 cat >>confdefs.h <<\_ACEOF
6533 if test "$llvm_cv_os_type" = "MingW" ; then
6534 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6537 cat >>confdefs.h <<_ACEOF
6538 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6542 # Extract the first word of "fdp", so it can be a program name with args.
6543 set dummy fdp; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_path_FDP+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6574 if test -n "$FDP"; then
6575 { echo "$as_me:$LINENO: result: $FDP" >&5
6576 echo "${ECHO_T}$FDP" >&6; }
6578 { echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6; }
6583 if test "$FDP" != "echo fdp" ; then
6585 cat >>confdefs.h <<\_ACEOF
6589 if test "$llvm_cv_os_type" = "MingW" ; then
6590 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6593 cat >>confdefs.h <<_ACEOF
6594 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6598 # Extract the first word of "neato", so it can be a program name with args.
6599 set dummy neato; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_path_NEATO+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6629 NEATO=$ac_cv_path_NEATO
6630 if test -n "$NEATO"; then
6631 { echo "$as_me:$LINENO: result: $NEATO" >&5
6632 echo "${ECHO_T}$NEATO" >&6; }
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6639 if test "$NEATO" != "echo neato" ; then
6641 cat >>confdefs.h <<\_ACEOF
6642 #define HAVE_NEATO 1
6645 if test "$llvm_cv_os_type" = "MingW" ; then
6646 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6649 cat >>confdefs.h <<_ACEOF
6650 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6654 # Extract the first word of "twopi", so it can be a program name with args.
6655 set dummy twopi; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_TWOPI+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6685 TWOPI=$ac_cv_path_TWOPI
6686 if test -n "$TWOPI"; then
6687 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6688 echo "${ECHO_T}$TWOPI" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6695 if test "$TWOPI" != "echo twopi" ; then
6697 cat >>confdefs.h <<\_ACEOF
6698 #define HAVE_TWOPI 1
6701 if test "$llvm_cv_os_type" = "MingW" ; then
6702 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6705 cat >>confdefs.h <<_ACEOF
6706 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6710 # Extract the first word of "circo", so it can be a program name with args.
6711 set dummy circo; ac_word=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_path_CIRCO+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6741 CIRCO=$ac_cv_path_CIRCO
6742 if test -n "$CIRCO"; then
6743 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6744 echo "${ECHO_T}$CIRCO" >&6; }
6746 { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6751 if test "$CIRCO" != "echo circo" ; then
6753 cat >>confdefs.h <<\_ACEOF
6754 #define HAVE_CIRCO 1
6757 if test "$llvm_cv_os_type" = "MingW" ; then
6758 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6761 cat >>confdefs.h <<_ACEOF
6762 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6766 for ac_prog in gv gsview32
6768 # Extract the first word of "$ac_prog", so it can be a program name with args.
6769 set dummy $ac_prog; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_path_GV+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 if test -n "$GV"; then
6800 { echo "$as_me:$LINENO: result: $GV" >&5
6801 echo "${ECHO_T}$GV" >&6; }
6803 { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6808 test -n "$GV" && break
6810 test -n "$GV" || GV="echo gv"
6812 if test "$GV" != "echo gv" ; then
6814 cat >>confdefs.h <<\_ACEOF
6818 if test "$llvm_cv_os_type" = "MingW" ; then
6819 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6822 cat >>confdefs.h <<_ACEOF
6823 #define LLVM_PATH_GV "$GV${EXEEXT}"
6827 # Extract the first word of "dotty", so it can be a program name with args.
6828 set dummy dotty; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_path_DOTTY+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6858 DOTTY=$ac_cv_path_DOTTY
6859 if test -n "$DOTTY"; then
6860 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6861 echo "${ECHO_T}$DOTTY" >&6; }
6863 { echo "$as_me:$LINENO: result: no" >&5
6864 echo "${ECHO_T}no" >&6; }
6868 if test "$DOTTY" != "echo dotty" ; then
6870 cat >>confdefs.h <<\_ACEOF
6871 #define HAVE_DOTTY 1
6874 if test "$llvm_cv_os_type" = "MingW" ; then
6875 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6878 cat >>confdefs.h <<_ACEOF
6879 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6883 # Extract the first word of "xdot.py", so it can be a program name with args.
6884 set dummy xdot.py; ac_word=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6914 XDOT_PY=$ac_cv_path_XDOT_PY
6915 if test -n "$XDOT_PY"; then
6916 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6917 echo "${ECHO_T}$XDOT_PY" >&6; }
6919 { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6924 if test "$XDOT_PY" != "echo xdot.py" ; then
6926 cat >>confdefs.h <<\_ACEOF
6927 #define HAVE_XDOT_PY 1
6930 if test "$llvm_cv_os_type" = "MingW" ; then
6931 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6934 cat >>confdefs.h <<_ACEOF
6935 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6940 # Find a good install program. We prefer a C program (faster),
6941 # so one script is as good as another. But avoid the broken or
6942 # incompatible versions:
6943 # SysV /etc/install, /usr/sbin/install
6944 # SunOS /usr/etc/install
6945 # IRIX /sbin/install
6947 # AmigaOS /C/install, which installs bootblocks on floppy discs
6948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6951 # OS/2's system install, which has a completely different semantic
6952 # ./install, which can be erroneously created by make from ./install.sh.
6953 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6954 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6955 if test -z "$INSTALL"; then
6956 if test "${ac_cv_path_install+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 # Account for people who put trailing slashes in PATH elements.
6966 ./ | .// | /cC/* | \
6967 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6968 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6971 # OSF1 and SCO ODT 3.0 have their own names for install.
6972 # Don't use installbsd from OSF since it installs stuff as root
6974 for ac_prog in ginstall scoinst install; do
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6977 if test $ac_prog = install &&
6978 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6979 # AIX install. It has an incompatible calling convention.
6981 elif test $ac_prog = install &&
6982 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6983 # program-specific install script used by HP pwplus--don't use.
6986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6999 if test "${ac_cv_path_install+set}" = set; then
7000 INSTALL=$ac_cv_path_install
7002 # As a last resort, use the slow shell script. Don't cache a
7003 # value for INSTALL within a source directory, because that will
7004 # break other packages using the cache if that directory is
7005 # removed, or if the value is a relative name.
7006 INSTALL=$ac_install_sh
7009 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7010 echo "${ECHO_T}$INSTALL" >&6; }
7012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7013 # It thinks the first close brace ends the variable substitution.
7014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7021 [\\/$]* | ?:[\\/]* ) ;;
7022 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7025 # Extract the first word of "bzip2", so it can be a program name with args.
7026 set dummy bzip2; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_BZIP2+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 BZIP2=$ac_cv_path_BZIP2
7056 if test -n "$BZIP2"; then
7057 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7058 echo "${ECHO_T}$BZIP2" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7065 # Extract the first word of "cat", so it can be a program name with args.
7066 set dummy cat; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_CAT+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 if test -n "$CAT"; then
7097 { echo "$as_me:$LINENO: result: $CAT" >&5
7098 echo "${ECHO_T}$CAT" >&6; }
7100 { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7105 # Extract the first word of "doxygen", so it can be a program name with args.
7106 set dummy doxygen; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 DOXYGEN=$ac_cv_path_DOXYGEN
7136 if test -n "$DOXYGEN"; then
7137 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7138 echo "${ECHO_T}$DOXYGEN" >&6; }
7140 { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7145 # Extract the first word of "groff", so it can be a program name with args.
7146 set dummy groff; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_GROFF+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 GROFF=$ac_cv_path_GROFF
7176 if test -n "$GROFF"; then
7177 { echo "$as_me:$LINENO: result: $GROFF" >&5
7178 echo "${ECHO_T}$GROFF" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 # Extract the first word of "gzip", so it can be a program name with args.
7186 set dummy gzip; ac_word=$2
7187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 GZIPBIN=$ac_cv_path_GZIPBIN
7216 if test -n "$GZIPBIN"; then
7217 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7218 echo "${ECHO_T}$GZIPBIN" >&6; }
7220 { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7225 # Extract the first word of "pdfroff", so it can be a program name with args.
7226 set dummy pdfroff; ac_word=$2
7227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229 if test "${ac_cv_path_PDFROFF+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 PDFROFF=$ac_cv_path_PDFROFF
7256 if test -n "$PDFROFF"; then
7257 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7258 echo "${ECHO_T}$PDFROFF" >&6; }
7260 { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7265 # Extract the first word of "runtest", so it can be a program name with args.
7266 set dummy runtest; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_RUNTEST+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 RUNTEST=$ac_cv_path_RUNTEST
7296 if test -n "$RUNTEST"; then
7297 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7298 echo "${ECHO_T}$RUNTEST" >&6; }
7300 { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7307 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7308 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7310 # Check whether --with-tclinclude was given.
7311 if test "${with_tclinclude+set}" = set; then
7312 withval=$with_tclinclude; with_tclinclude=${withval}
7317 if test "${ac_cv_path_tclsh+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 if test x"${with_tclinclude}" != x ; then
7322 if test -f ${with_tclinclude}/tclsh ; then
7323 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7324 elif test -f ${with_tclinclude}/src/tclsh ; then
7325 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7327 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7328 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7329 { (exit 1); exit 1; }; }
7335 if test x"${ac_cv_path_tclsh}" = x ; then
7336 { echo "$as_me:$LINENO: result: none" >&5
7337 echo "${ECHO_T}none" >&6; }
7338 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
7340 # Extract the first word of "$ac_prog", so it can be a program name with args.
7341 set dummy $ac_prog; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_path_TCLSH+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 TCLSH=$ac_cv_path_TCLSH
7371 if test -n "$TCLSH"; then
7372 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7373 echo "${ECHO_T}$TCLSH" >&6; }
7375 { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7380 test -n "$TCLSH" && break
7383 if test x"${TCLSH}" = x ; then
7384 ac_cv_path_tclsh='';
7386 ac_cv_path_tclsh="${TCLSH}";
7389 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7390 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7391 TCLSH="${ac_cv_path_tclsh}"
7395 # Extract the first word of "zip", so it can be a program name with args.
7396 set dummy zip; ac_word=$2
7397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399 if test "${ac_cv_path_ZIP+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 if test -n "$ZIP"; then
7427 { echo "$as_me:$LINENO: result: $ZIP" >&5
7428 echo "${ECHO_T}$ZIP" >&6; }
7430 { echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6; }
7435 for ac_prog in ocamlc
7437 # Extract the first word of "$ac_prog", so it can be a program name with args.
7438 set dummy $ac_prog; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_path_OCAMLC+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 OCAMLC=$ac_cv_path_OCAMLC
7468 if test -n "$OCAMLC"; then
7469 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7470 echo "${ECHO_T}$OCAMLC" >&6; }
7472 { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7477 test -n "$OCAMLC" && break
7480 for ac_prog in ocamlopt
7482 # Extract the first word of "$ac_prog", so it can be a program name with args.
7483 set dummy $ac_prog; ac_word=$2
7484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 OCAMLOPT=$ac_cv_path_OCAMLOPT
7513 if test -n "$OCAMLOPT"; then
7514 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7515 echo "${ECHO_T}$OCAMLOPT" >&6; }
7517 { echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6; }
7522 test -n "$OCAMLOPT" && break
7525 for ac_prog in ocamldep
7527 # Extract the first word of "$ac_prog", so it can be a program name with args.
7528 set dummy $ac_prog; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 OCAMLDEP=$ac_cv_path_OCAMLDEP
7558 if test -n "$OCAMLDEP"; then
7559 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7560 echo "${ECHO_T}$OCAMLDEP" >&6; }
7562 { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7567 test -n "$OCAMLDEP" && break
7570 for ac_prog in ocamldoc
7572 # Extract the first word of "$ac_prog", so it can be a program name with args.
7573 set dummy $ac_prog; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 OCAMLDOC=$ac_cv_path_OCAMLDOC
7603 if test -n "$OCAMLDOC"; then
7604 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7605 echo "${ECHO_T}$OCAMLDOC" >&6; }
7607 { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7612 test -n "$OCAMLDOC" && break
7615 for ac_prog in gas as
7617 # Extract the first word of "$ac_prog", so it can be a program name with args.
7618 set dummy $ac_prog; ac_word=$2
7619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621 if test "${ac_cv_path_GAS+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7636 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 if test -n "$GAS"; then
7649 { echo "$as_me:$LINENO: result: $GAS" >&5
7650 echo "${ECHO_T}$GAS" >&6; }
7652 { echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6; }
7657 test -n "$GAS" && break
7661 { echo "$as_me:$LINENO: checking for linker version" >&5
7662 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7663 if test "${llvm_cv_link_version+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 version_string="$(ld -v 2>&1 | head -1)"
7670 if (echo "$version_string" | grep -q "ld64"); then
7671 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7673 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7677 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7678 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7680 cat >>confdefs.h <<_ACEOF
7681 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7686 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7687 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7688 if test "${llvm_cv_link_use_r+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 ac_cpp='$CPP $CPPFLAGS'
7693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7698 CFLAGS="$CFLAGS -Wl,-R."
7699 cat >conftest.$ac_ext <<_ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7714 rm -f conftest.$ac_objext conftest$ac_exeext
7715 if { (ac_try="$ac_link"
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_link") 2>conftest.er1
7723 grep -v '^ *+' conftest.er1 >conftest.err
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7729 { (case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_try") 2>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try='test -s conftest$ac_exeext'
7739 { (case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_try") 2>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748 llvm_cv_link_use_r=yes
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 llvm_cv_link_use_r=no
7756 rm -f core conftest.err conftest.$ac_objext \
7757 conftest$ac_exeext conftest.$ac_ext
7760 ac_cpp='$CPP $CPPFLAGS'
7761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7767 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7768 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7769 if test "$llvm_cv_link_use_r" = yes ; then
7771 cat >>confdefs.h <<\_ACEOF
7772 #define HAVE_LINK_R 1
7778 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7779 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7780 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 ac_cpp='$CPP $CPPFLAGS'
7785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7790 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7791 cat >conftest.$ac_ext <<_ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7806 rm -f conftest.$ac_objext conftest$ac_exeext
7807 if { (ac_try="$ac_link"
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_link") 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7821 { (case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_try") 2>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_try") 2>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 llvm_cv_link_use_export_dynamic=yes
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 llvm_cv_link_use_export_dynamic=no
7848 rm -f core conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7852 ac_cpp='$CPP $CPPFLAGS'
7853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7859 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7860 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7861 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_LINK_EXPORT_DYNAMIC 1
7870 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7871 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7872 if test "${llvm_cv_link_use_version_script+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 ac_cpp='$CPP $CPPFLAGS'
7877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883 # The following code is from the autoconf manual,
7884 # "11.13: Limitations of Usual Tools".
7885 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7886 # Use mktemp if possible; otherwise fall back on mkdir,
7887 # with $RANDOM to make collisions less likely.
7891 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7893 test -n "$tmp" && test -d "$tmp"
7895 tmp=$TMPDIR/foo$$-$RANDOM
7896 (umask 077 && mkdir "$tmp")
7899 echo "{" > "$tmp/export.map"
7900 echo " global: main;" >> "$tmp/export.map"
7901 echo " local: *;" >> "$tmp/export.map"
7902 echo "};" >> "$tmp/export.map"
7904 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7920 rm -f conftest.$ac_objext conftest$ac_exeext
7921 if { (ac_try="$ac_link"
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_link") 2>conftest.er1
7929 grep -v '^ *+' conftest.er1 >conftest.err
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try='test -s conftest$ac_exeext'
7945 { (case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_try") 2>&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 llvm_cv_link_use_version_script=yes
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 llvm_cv_link_use_version_script=no
7962 rm -f core conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
7964 rm "$tmp/export.map"
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7976 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7977 if test "$llvm_cv_link_use_version_script" = yes ; then
7978 HAVE_LINK_VERSION_SCRIPT=1
7985 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7986 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7987 if test "${ac_cv_c_const+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 cat >conftest.$ac_ext <<_ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
8000 /* FIXME: Include the comments suggested by Paul. */
8002 /* Ultrix mips cc rejects this. */
8003 typedef int charset[2];
8005 /* SunOS 4.1.1 cc rejects this. */
8006 char const *const *ccp;
8008 /* NEC SVR4.0.2 mips cc rejects this. */
8009 struct point {int x, y;};
8010 static struct point const zero = {0,0};
8011 /* AIX XL C 1.02.0.0 rejects this.
8012 It does not let you subtract one const X* pointer from another in
8013 an arm of an if-expression whose if-part is not a constant
8015 const char *g = "string";
8016 ccp = &g + (g ? g-g : 0);
8017 /* HPUX 7.0 cc rejects these. */
8020 ccp = (char const *const *) p;
8021 { /* SCO 3.2v4 cc rejects this. */
8023 char const *s = 0 ? (char *) 0 : (char const *) 0;
8028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8030 const int *foo = &x[0];
8033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8034 typedef const int *iptr;
8038 { /* AIX XL C 1.02.0.0 rejects this saying
8039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8040 struct s { int j; const int *ap[3]; };
8041 struct s *b; b->j = 5;
8043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8047 return !x[0] && !zero.x;
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8069 { (case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_try") 2>&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; } &&
8078 { ac_try='test -s conftest.$ac_objext'
8079 { (case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_try") 2>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8099 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8100 if test $ac_cv_c_const = no; then
8102 cat >>confdefs.h <<\_ACEOF
8114 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8115 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8116 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8117 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 #include <sys/types.h>
8139 rm -f conftest.$ac_objext
8140 if { (ac_try="$ac_compile"
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_compile") 2>conftest.er1
8148 grep -v '^ *+' conftest.er1 >conftest.err
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8154 { (case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_try") 2>&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; } &&
8163 { ac_try='test -s conftest.$ac_objext'
8164 { (case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_try") 2>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 eval "$as_ac_Header=yes"
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 eval "$as_ac_Header=no"
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 ac_res=`eval echo '${'$as_ac_Header'}'`
8184 { echo "$as_me:$LINENO: result: $ac_res" >&5
8185 echo "${ECHO_T}$ac_res" >&6; }
8186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8187 cat >>confdefs.h <<_ACEOF
8188 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8191 ac_header_dirent=$ac_hdr; break
8195 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8196 if test $ac_header_dirent = dirent.h; then
8197 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8198 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8199 if test "${ac_cv_search_opendir+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 ac_func_search_save_LIBS=$LIBS
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8210 /* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
8225 for ac_lib in '' dir; do
8226 if test -z "$ac_lib"; then
8227 ac_res="none required"
8230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (ac_try="$ac_link"
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_link") 2>conftest.er1
8241 grep -v '^ *+' conftest.er1 >conftest.err
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8247 { (case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_try") 2>&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try='test -s conftest$ac_exeext'
8257 { (case "(($ac_try" in
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_try") 2>&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 ac_cv_search_opendir=$ac_res
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8274 rm -f core conftest.err conftest.$ac_objext \
8276 if test "${ac_cv_search_opendir+set}" = set; then
8280 if test "${ac_cv_search_opendir+set}" = set; then
8283 ac_cv_search_opendir=no
8286 LIBS=$ac_func_search_save_LIBS
8288 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8289 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8290 ac_res=$ac_cv_search_opendir
8291 if test "$ac_res" != no; then
8292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8297 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8298 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8299 if test "${ac_cv_search_opendir+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 ac_func_search_save_LIBS=$LIBS
8303 cat >conftest.$ac_ext <<_ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8310 /* Override any GCC internal prototype to avoid an error.
8311 Use char because int might match the return type of a GCC
8312 builtin and then its argument prototype would still apply. */
8325 for ac_lib in '' x; do
8326 if test -z "$ac_lib"; then
8327 ac_res="none required"
8330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (ac_try="$ac_link"
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_link") 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8347 { (case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_try") 2>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; } &&
8356 { ac_try='test -s conftest$ac_exeext'
8357 { (case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_try") 2>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8366 ac_cv_search_opendir=$ac_res
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8374 rm -f core conftest.err conftest.$ac_objext \
8376 if test "${ac_cv_search_opendir+set}" = set; then
8380 if test "${ac_cv_search_opendir+set}" = set; then
8383 ac_cv_search_opendir=no
8386 LIBS=$ac_func_search_save_LIBS
8388 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8389 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8390 ac_res=$ac_cv_search_opendir
8391 if test "$ac_res" != no; then
8392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8399 for ac_header in dlfcn.h
8401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 ac_res=`eval echo '${'$as_ac_Header'}'`
8409 { echo "$as_me:$LINENO: result: $ac_res" >&5
8410 echo "${ECHO_T}$ac_res" >&6; }
8412 # Is the header compilable?
8413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8415 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 $ac_includes_default
8422 #include <$ac_header>
8424 rm -f conftest.$ac_objext
8425 if { (ac_try="$ac_compile"
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8433 grep -v '^ *+' conftest.er1 >conftest.err
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest.$ac_objext'
8449 { (case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_try") 2>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_header_compiler=yes
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_header_compiler=no
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8468 echo "${ECHO_T}$ac_header_compiler" >&6; }
8470 # Is the header present?
8471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 #include <$ac_header>
8481 if { (ac_try="$ac_cpp conftest.$ac_ext"
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } >/dev/null; then
8494 if test -s conftest.err; then
8495 ac_cpp_err=$ac_c_preproc_warn_flag
8496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8503 if test -z "$ac_cpp_err"; then
8504 ac_header_preproc=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_header_preproc=no
8512 rm -f conftest.err conftest.$ac_ext
8513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8514 echo "${ECHO_T}$ac_header_preproc" >&6; }
8516 # So? What about this header?
8517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8523 ac_header_preproc=yes
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8539 ## ------------------------------------ ##
8540 ## Report this to http://llvm.org/bugs/ ##
8541 ## ------------------------------------ ##
8543 ) | sed "s/^/$as_me: WARNING: /" >&2
8546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 eval "$as_ac_Header=\$ac_header_preproc"
8553 ac_res=`eval echo '${'$as_ac_Header'}'`
8554 { echo "$as_me:$LINENO: result: $ac_res" >&5
8555 echo "${ECHO_T}$ac_res" >&6; }
8558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8559 cat >>confdefs.h <<_ACEOF
8560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8567 # Check whether --enable-ltdl-install was given.
8568 if test "${enable_ltdl_install+set}" = set; then
8569 enableval=$enable_ltdl_install;
8575 if test x"${enable_ltdl_install-no}" != xno; then
8577 INSTALL_LTDL_FALSE='#'
8579 INSTALL_LTDL_TRUE='#'
8585 if test x"${enable_ltdl_convenience-no}" != xno; then
8586 CONVENIENCE_LTDL_TRUE=
8587 CONVENIENCE_LTDL_FALSE='#'
8589 CONVENIENCE_LTDL_TRUE='#'
8590 CONVENIENCE_LTDL_FALSE=
8594 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8595 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8597 libname_spec='lib$name'
8605 shlibpath_overrides_runpath=unknown
8607 dynamic_linker="$host_os ld.so"
8608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8609 if test "$GCC" = yes; then
8610 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8611 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8612 # if the path contains ";" then we assume it to be the separator
8613 # otherwise default to the standard path separator (i.e. ":") - it is
8614 # assumed that no part of a normal pathname contains ";" but that should
8615 # okay in the real world where ";" in dirpaths is itself problematic.
8616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8621 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8623 need_lib_prefix=unknown
8624 hardcode_into_libs=no
8626 # when you set need_version to no, make sure it does not cause -set_version
8627 # flags to be left without arguments
8628 need_version=unknown
8633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8634 shlibpath_var=LIBPATH
8636 # AIX 3 has no versioning support, so we append a major version to the name.
8637 soname_spec='${libname}${release}${shared_ext}$major'
8644 hardcode_into_libs=yes
8645 if test "$host_cpu" = ia64; then
8646 # AIX 5 supports IA64
8647 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8648 shlibpath_var=LD_LIBRARY_PATH
8650 # With GCC up to 2.95.x, collect2 would create an import file
8651 # for dependence libraries. The import file would start with
8652 # the line `#! .'. This would cause the generated library to
8653 # depend on `.', always an invalid library. This was fixed in
8654 # development snapshots of GCC prior to 3.0.
8656 aix4 | aix4.[01] | aix4.[01].*)
8657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8659 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8667 # soname into executable. Probably we can add versioning support to
8668 # collect2, so additional links can be useful in future.
8669 if test "$aix_use_runtimelinking" = yes; then
8670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8671 # instead of lib<name>.a to let people know that these are not
8672 # typical AIX shared libraries.
8673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8675 # We preserve .a as extension for shared libraries through AIX4.2
8676 # and later when we are not doing run time linking.
8677 library_names_spec='${libname}${release}.a $libname.a'
8678 soname_spec='${libname}${release}${shared_ext}$major'
8680 shlibpath_var=LIBPATH
8685 library_names_spec='$libname.ixlibrary $libname.a'
8686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8687 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'
8691 library_names_spec='${libname}${shared_ext}'
8692 dynamic_linker="$host_os ld.so"
8693 shlibpath_var=LIBRARY_PATH
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8700 soname_spec='${libname}${release}${shared_ext}$major'
8701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8702 shlibpath_var=LD_LIBRARY_PATH
8703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8705 # the default ld.so.conf also contains /usr/contrib/lib and
8706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8707 # libtool to hard-code these into programs
8710 cygwin* | mingw* | pw32*)
8711 version_type=windows
8716 case $GCC,$host_os in
8717 yes,cygwin* | yes,mingw* | yes,pw32*)
8718 library_names_spec='$libname.dll.a'
8719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8720 postinstall_cmds='base_file=`basename \${file}`~
8721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8722 dldir=$destdir/`dirname \$dlpath`~
8723 test -d \$dldir || mkdir -p \$dldir~
8724 $install_prog $dir/$dlname \$dldir/$dlname~
8725 chmod a+x \$dldir/$dlname'
8726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8727 dlpath=$dir/\$dldll~
8729 shlibpath_overrides_runpath=yes
8733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8738 # MinGW DLLs use traditional 'lib' prefix
8739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8741 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8742 # It is most probably a Windows format PATH printed by
8743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8744 # path with ; separators, and with drive letters. We can handle the
8745 # drive letters (cygwin fileutils understands them), so leave them,
8746 # especially as we might pass files found there to a mingw objdump,
8747 # which wouldn't understand a cygwinified path. Ahh.
8748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8754 # pw32 DLLs use 'pw' prefix rather than 'lib'
8755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8764 dynamic_linker='Win32 ld.exe'
8765 # FIXME: first we should search . and the directory the executable is in
8769 darwin* | rhapsody*)
8770 dynamic_linker="$host_os dyld"
8774 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8775 soname_spec='${libname}${release}${major}$shared_ext'
8776 shlibpath_overrides_runpath=yes
8777 shlibpath_var=DYLD_LIBRARY_PATH
8778 shrext_cmds='.dylib'
8779 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8780 if test "$GCC" = yes; then
8781 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"`
8783 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8785 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8794 shlibpath_var=LD_LIBRARY_PATH
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 shlibpath_var=LD_LIBRARY_PATH
8808 shlibpath_overrides_runpath=no
8809 hardcode_into_libs=yes
8810 dynamic_linker='GNU ld.so'
8813 freebsd* | dragonfly*)
8814 # DragonFly does not have aout. When/if they implement a new
8815 # versioning mechanism, adjust this.
8816 if test -x /usr/bin/objformat; then
8817 objformat=`/usr/bin/objformat`
8820 freebsd[123].*) objformat=aout ;;
8824 version_type=freebsd-$objformat
8825 case $version_type in
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8836 shlibpath_var=LD_LIBRARY_PATH
8839 shlibpath_overrides_runpath=yes
8841 freebsd3.[01]* | freebsdelf3.[01]*)
8842 shlibpath_overrides_runpath=yes
8843 hardcode_into_libs=yes
8845 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8846 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8847 shlibpath_overrides_runpath=no
8848 hardcode_into_libs=yes
8850 freebsd*) # from 4.6 on
8851 shlibpath_overrides_runpath=yes
8852 hardcode_into_libs=yes
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 shlibpath_var=LD_LIBRARY_PATH
8864 hardcode_into_libs=yes
8867 hpux9* | hpux10* | hpux11*)
8868 # Give a soname corresponding to the major version so that dld.sl refuses to
8869 # link against other versions.
8876 hardcode_into_libs=yes
8877 dynamic_linker="$host_os dld.so"
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 if test "X$HPUX_IA64_MODE" = X32; then
8883 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8885 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8891 hardcode_into_libs=yes
8892 dynamic_linker="$host_os dld.sl"
8893 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8902 dynamic_linker="$host_os dld.sl"
8903 shlibpath_var=SHLIB_PATH
8904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8909 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8910 postinstall_cmds='chmod 555 $lib'
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8920 shlibpath_var=LD_LIBRARY_PATH
8921 shlibpath_overrides_runpath=no
8922 hardcode_into_libs=yes
8925 irix5* | irix6* | nonstopux*)
8927 nonstopux*) version_type=nonstopux ;;
8929 if test "$lt_cv_prog_gnu_ld" = yes; then
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8940 irix5* | nonstopux*)
8944 case $LD in # libtool.m4 will add one of these switches to LD
8945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8946 libsuff= shlibsuff= libmagic=32-bit;;
8947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8948 libsuff=32 shlibsuff=N32 libmagic=N32;;
8949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8951 *) libsuff= shlibsuff= libmagic=never-match;;
8955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8956 shlibpath_overrides_runpath=no
8957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8959 hardcode_into_libs=yes
8962 # No shared lib support for Linux oldld, aout, or coff.
8963 linux*oldld* | linux*aout* | linux*coff*)
8967 # This must be Linux ELF.
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973 soname_spec='${libname}${release}${shared_ext}$major'
8974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 shlibpath_overrides_runpath=no
8977 # This implies no fast_install, which is unacceptable.
8978 # Some rework will be needed to allow for fast_install
8979 # before this can be enabled.
8980 hardcode_into_libs=yes
8982 # Append ld.so.conf contents to the search path
8983 if test -f /etc/ld.so.conf; then
8984 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' ' '`
8985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8988 # We used to test for /lib/ld.so.1 and disable shared libraries on
8989 # powerpc, because MkLinux only supported shared libraries with the
8990 # GNU dynamic linker. Since this was broken with cross compilers,
8991 # most powerpc-linux boxes support dynamic linking these days and
8992 # people can always --disable-shared, the test was removed, and we
8993 # assume the GNU/Linux dynamic linker is in use.
8994 dynamic_linker='GNU/Linux ld.so'
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=no
9005 hardcode_into_libs=yes
9006 dynamic_linker='GNU ld.so'
9013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016 dynamic_linker='NetBSD (a.out) ld.so'
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 dynamic_linker='NetBSD ld.elf_so'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 shlibpath_overrides_runpath=yes
9024 hardcode_into_libs=yes
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes
9046 sys_lib_dlsearch_path_spec="/usr/lib"
9048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9050 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9051 *) need_version=no ;;
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9058 openbsd2.[89] | openbsd2.[89].*)
9059 shlibpath_overrides_runpath=no
9062 shlibpath_overrides_runpath=yes
9066 shlibpath_overrides_runpath=yes
9071 libname_spec='$name'
9074 library_names_spec='$libname${shared_ext} $libname.a'
9075 dynamic_linker='OS/2 ld.exe'
9076 shlibpath_var=LIBPATH
9079 osf3* | osf4* | osf5*)
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=yes
9098 hardcode_into_libs=yes
9099 # ldd complains unless libraries are executable
9100 postinstall_cmds='chmod +x $lib'
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=yes
9109 if test "$with_gnu_ld" = yes; then
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 case $host_vendor in
9122 shlibpath_overrides_runpath=no
9124 export_dynamic_flag_spec='${wl}-Blargedynsym'
9125 runpath_var=LD_RUN_PATH
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9140 if test -d /usr/nec ;then
9142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9143 soname_spec='$libname${shared_ext}.$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9149 version_type=freebsd-elf
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 hardcode_into_libs=yes
9156 if test "$with_gnu_ld" = yes; then
9157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9158 shlibpath_overrides_runpath=no
9160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9161 shlibpath_overrides_runpath=yes
9164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9168 sys_lib_dlsearch_path_spec='/usr/lib'
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 shlibpath_var=LD_LIBRARY_PATH
9182 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9183 echo "${ECHO_T}$dynamic_linker" >&6; }
9184 test "$dynamic_linker" = no && can_build_shared=no
9186 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9187 if test "$GCC" = yes; then
9188 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9192 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9193 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9194 if test "${libltdl_cv_shlibext+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 eval libltdl_cv_shlibext=$shrext_cmds
9202 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9203 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9204 if test -n "$libltdl_cv_shlibext"; then
9206 cat >>confdefs.h <<_ACEOF
9207 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9213 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9214 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9215 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 libltdl_cv_shlibpath_var="$shlibpath_var"
9220 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9221 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9222 if test -n "$libltdl_cv_shlibpath_var"; then
9224 cat >>confdefs.h <<_ACEOF
9225 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9231 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9232 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9233 if test "${libltdl_cv_sys_search_path+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9238 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9239 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9240 if test -n "$libltdl_cv_sys_search_path"; then
9242 for dir in $libltdl_cv_sys_search_path; do
9243 if test -z "$sys_search_path"; then
9244 sys_search_path="$dir"
9246 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9250 cat >>confdefs.h <<_ACEOF
9251 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9256 { echo "$as_me:$LINENO: checking for objdir" >&5
9257 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9258 if test "${libltdl_cv_objdir+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 libltdl_cv_objdir="$objdir"
9262 if test -n "$objdir"; then
9265 rm -f .libs 2>/dev/null
9266 mkdir .libs 2>/dev/null
9267 if test -d .libs; then
9268 libltdl_cv_objdir=.libs
9270 # MS-DOS does not allow filenames that begin with a dot.
9271 libltdl_cv_objdir=_libs
9273 rmdir .libs 2>/dev/null
9277 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9278 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9280 cat >>confdefs.h <<_ACEOF
9281 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9289 # Check for command to grab the raw symbol name followed by C symbol from nm.
9290 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9291 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9292 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 # These are sane defaults that work on at least a few old systems.
9297 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9299 # Character class describing NM global symbol codes.
9300 symcode='[BCDEGRST]'
9302 # Regexp to match symbols that can be accessed directly from C.
9303 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9305 # Transform an extracted symbol line into a proper C declaration
9306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9308 # Transform an extracted symbol line into symbol name and symbol address
9309 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'"
9311 # Define system-specific variables.
9316 cygwin* | mingw* | pw32*)
9317 symcode='[ABCDGISTW]'
9319 hpux*) # Its linker distinguishes data from code symbols
9320 if test "$host_cpu" = ia64; then
9321 symcode='[ABCDEGRST]'
9323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9324 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'"
9327 if test "$host_cpu" = ia64; then
9328 symcode='[ABCDGIRSTW]'
9329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9330 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'"
9334 symcode='[BCDEGRST]'
9337 symcode='[BCDEGQRST]'
9348 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9356 # Handle CRLF in mingw tool chain
9360 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9364 # If we're using GNU nm, then use its standard symbol codes.
9365 case `$NM -V 2>&1` in
9366 *GNU* | *'with BFD'*)
9367 symcode='[ABCDGIRSTW]' ;;
9370 # Try without a prefix undercore, then with it.
9371 for ac_symprfx in "" "_"; do
9373 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9374 symxfrm="\\1 $ac_symprfx\\2 \\2"
9376 # Write the raw and C identifiers.
9377 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9379 # Check to see that the pipe works correctly.
9383 cat > conftest.$ac_ext <<EOF
9388 void nm_test_func(){}
9392 int main(){nm_test_var='a';nm_test_func();return(0);}
9395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396 (eval $ac_compile) 2>&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; then
9400 # Now try to grab the symbols.
9402 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9403 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && test -s "$nlist"; then
9407 # Try sorting and uniquifying the output.
9408 if sort "$nlist" | uniq > "$nlist"T; then
9409 mv -f "$nlist"T "$nlist"
9414 # Make sure that we snagged all the symbols we need.
9415 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9416 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9417 cat <<EOF > conftest.$ac_ext
9423 # Now generate the symbol file.
9424 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9426 cat <<EOF >> conftest.$ac_ext
9427 #if defined (__STDC__) && __STDC__
9428 # define lt_ptr_t void *
9430 # define lt_ptr_t char *
9434 /* The mapping between symbol names and symbols. */
9439 lt_preloaded_symbols[] =
9442 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9443 cat <<\EOF >> conftest.$ac_ext
9451 # Now try linking the two files.
9452 mv conftest.$ac_objext conftstm.$ac_objext
9453 lt_save_LIBS="$LIBS"
9454 lt_save_CFLAGS="$CFLAGS"
9455 LIBS="conftstm.$ac_objext"
9456 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458 (eval $ac_link) 2>&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9464 LIBS="$lt_save_LIBS"
9465 CFLAGS="$lt_save_CFLAGS"
9467 echo "cannot find nm_test_func in $nlist" >&5
9470 echo "cannot find nm_test_var in $nlist" >&5
9473 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9476 echo "$progname: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9479 rm -f conftest* conftst*
9481 # Do not use the global_symbol_pipe unless it works.
9482 if test "$pipe_works" = yes; then
9485 lt_cv_sys_global_symbol_pipe=
9491 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9492 lt_cv_sys_global_symbol_to_cdecl=
9494 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9495 { echo "$as_me:$LINENO: result: failed" >&5
9496 echo "${ECHO_T}failed" >&6; }
9498 { echo "$as_me:$LINENO: result: ok" >&5
9499 echo "${ECHO_T}ok" >&6; }
9503 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9504 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9505 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9509 libltdl_cv_preloaded_symbols=yes
9511 libltdl_cv_preloaded_symbols=no
9515 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9516 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9517 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9519 cat >>confdefs.h <<\_ACEOF
9520 #define HAVE_PRELOADED_SYMBOLS 1
9528 ac_cpp='$CPP $CPPFLAGS'
9529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9534 { echo "$as_me:$LINENO: checking for shl_load" >&5
9535 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9536 if test "${ac_cv_func_shl_load+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9547 #define shl_load innocuous_shl_load
9549 /* System header to define __stub macros and hopefully few prototypes,
9550 which can conflict with char shl_load (); below.
9551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9552 <limits.h> exists even on freestanding compilers. */
9555 # include <limits.h>
9557 # include <assert.h>
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9569 /* The GNU C library defines this for functions which it implements
9570 to always fail with ENOSYS. Some functions are actually named
9571 something starting with __ and the normal name is an alias. */
9572 #if defined __stub_shl_load || defined __stub___shl_load
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_link") 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9599 { (case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_try") 2>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; } &&
9608 { ac_try='test -s conftest$ac_exeext'
9609 { (case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_try") 2>&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_func_shl_load=yes
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_cv_func_shl_load=no
9626 rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9629 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9630 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9631 if test $ac_cv_func_shl_load = yes; then
9633 cat >>confdefs.h <<\_ACEOF
9634 #define HAVE_SHL_LOAD 1
9638 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9639 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9640 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 ac_check_lib_save_LIBS=$LIBS
9645 cat >conftest.$ac_ext <<_ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9652 /* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
9667 rm -f conftest.$ac_objext conftest$ac_exeext
9668 if { (ac_try="$ac_link"
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_link") 2>conftest.er1
9676 grep -v '^ *+' conftest.er1 >conftest.err
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9682 { (case "(($ac_try" in
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_try") 2>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try='test -s conftest$ac_exeext'
9692 { (case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_try") 2>&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 ac_cv_lib_dld_shl_load=yes
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_cv_lib_dld_shl_load=no
9709 rm -f core conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9713 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9714 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9715 if test $ac_cv_lib_dld_shl_load = yes; then
9717 cat >>confdefs.h <<\_ACEOF
9718 #define HAVE_SHL_LOAD 1
9721 LIBADD_DL="$LIBADD_DL -ldld"
9723 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9724 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 ac_check_lib_save_LIBS=$LIBS
9730 cat >conftest.$ac_ext <<_ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9737 /* Override any GCC internal prototype to avoid an error.
9738 Use char because int might match the return type of a GCC
9739 builtin and then its argument prototype would still apply. */
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_link") 2>conftest.er1
9761 grep -v '^ *+' conftest.er1 >conftest.err
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9767 { (case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_try") 2>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; } &&
9776 { ac_try='test -s conftest$ac_exeext'
9777 { (case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_try") 2>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_cv_lib_dl_dlopen=yes
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_cv_lib_dl_dlopen=no
9794 rm -f core conftest.err conftest.$ac_objext \
9795 conftest$ac_exeext conftest.$ac_ext
9796 LIBS=$ac_check_lib_save_LIBS
9798 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9799 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9800 if test $ac_cv_lib_dl_dlopen = yes; then
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_LIBDL 1
9806 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9808 cat >conftest.$ac_ext <<_ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (ac_try="$ac_link"
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_link") 2>conftest.er1
9835 grep -v '^ *+' conftest.er1 >conftest.err
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_try") 2>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9861 cat >>confdefs.h <<\_ACEOF
9862 #define HAVE_LIBDL 1
9864 libltdl_cv_func_dlopen="yes"
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9870 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9871 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 ac_check_lib_save_LIBS=$LIBS
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9883 /* Override any GCC internal prototype to avoid an error.
9884 Use char because int might match the return type of a GCC
9885 builtin and then its argument prototype would still apply. */
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (ac_try="$ac_link"
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_link") 2>conftest.er1
9907 grep -v '^ *+' conftest.er1 >conftest.err
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest$ac_exeext'
9923 { (case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_try") 2>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 ac_cv_lib_svld_dlopen=yes
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 ac_cv_lib_svld_dlopen=no
9940 rm -f core conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9944 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9945 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9946 if test $ac_cv_lib_svld_dlopen = yes; then
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_LIBDL 1
9952 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9954 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9955 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9956 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 ac_check_lib_save_LIBS=$LIBS
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9968 /* Override any GCC internal prototype to avoid an error.
9969 Use char because int might match the return type of a GCC
9970 builtin and then its argument prototype would still apply. */
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (ac_try="$ac_link"
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_link") 2>conftest.er1
9992 grep -v '^ *+' conftest.er1 >conftest.err
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9998 { (case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_try") 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_try") 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_lib_dld_dld_link=yes
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 ac_cv_lib_dld_dld_link=no
10025 rm -f core conftest.err conftest.$ac_objext \
10026 conftest$ac_exeext conftest.$ac_ext
10027 LIBS=$ac_check_lib_save_LIBS
10029 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10030 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10031 if test $ac_cv_lib_dld_dld_link = yes; then
10033 cat >>confdefs.h <<\_ACEOF
10037 LIBADD_DL="$LIBADD_DL -ldld"
10039 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10040 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10041 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 cat >conftest.$ac_ext <<_ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10052 #define _dyld_func_lookup innocuous__dyld_func_lookup
10054 /* System header to define __stub macros and hopefully few prototypes,
10055 which can conflict with char _dyld_func_lookup (); below.
10056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10057 <limits.h> exists even on freestanding compilers. */
10060 # include <limits.h>
10062 # include <assert.h>
10065 #undef _dyld_func_lookup
10067 /* Override any GCC internal prototype to avoid an error.
10068 Use char because int might match the return type of a GCC
10069 builtin and then its argument prototype would still apply. */
10073 char _dyld_func_lookup ();
10074 /* The GNU C library defines this for functions which it implements
10075 to always fail with ENOSYS. Some functions are actually named
10076 something starting with __ and the normal name is an alias. */
10077 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10084 return _dyld_func_lookup ();
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (ac_try="$ac_link"
10091 case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_link") 2>conftest.er1
10098 grep -v '^ *+' conftest.er1 >conftest.err
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10104 { (case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_try") 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try='test -s conftest$ac_exeext'
10114 { (case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_try") 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_cv_func__dyld_func_lookup=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_cv_func__dyld_func_lookup=no
10131 rm -f core conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10134 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10135 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10136 if test $ac_cv_func__dyld_func_lookup = yes; then
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_DYLD 1
10153 rm -f core conftest.err conftest.$ac_objext \
10154 conftest$ac_exeext conftest.$ac_ext
10165 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10167 lt_save_LIBS="$LIBS"
10168 LIBS="$LIBS $LIBADD_DL"
10170 for ac_func in dlerror
10172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10186 #define $ac_func innocuous_$ac_func
10188 /* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char $ac_func (); below.
10190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10191 <limits.h> exists even on freestanding compilers. */
10194 # include <limits.h>
10196 # include <assert.h>
10201 /* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10208 /* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211 #if defined __stub_$ac_func || defined __stub___$ac_func
10218 return $ac_func ();
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10232 grep -v '^ *+' conftest.er1 >conftest.err
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 eval "$as_ac_var=yes"
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 eval "$as_ac_var=no"
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10268 ac_res=`eval echo '${'$as_ac_var'}'`
10269 { echo "$as_me:$LINENO: result: $ac_res" >&5
10270 echo "${ECHO_T}$ac_res" >&6; }
10271 if test `eval echo '${'$as_ac_var'}'` = yes; then
10272 cat >>confdefs.h <<_ACEOF
10273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10279 LIBS="$lt_save_LIBS"
10282 ac_cpp='$CPP $CPPFLAGS'
10283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10289 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10290 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10291 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 ac_cv_sys_symbol_underscore=no
10295 cat > conftest.$ac_ext <<EOF
10296 void nm_test_func(){}
10297 int main(){nm_test_func;return 0;}
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; then
10304 # Now try to grab the symbols.
10305 ac_nlist=conftest.nm
10306 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10307 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && test -s "$ac_nlist"; then
10311 # See whether the symbols have a leading underscore.
10312 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10313 ac_cv_sys_symbol_underscore=yes
10315 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10318 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10322 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10325 echo "configure: failed program was:" >&5
10331 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10332 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10335 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10336 if test x"$libltdl_cv_func_dlopen" = xyes ||
10337 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10338 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10339 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10340 if test "${libltdl_cv_need_uscore+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 libltdl_cv_need_uscore=unknown
10345 LIBS="$LIBS $LIBADD_DL"
10346 if test "$cross_compiling" = yes; then :
10347 libltdl_cv_need_uscore=cross
10349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10350 lt_status=$lt_dlunknown
10351 cat > conftest.$ac_ext <<EOF
10352 #line 10352 "configure"
10353 #include "confdefs.h"
10362 # define LT_DLGLOBAL RTLD_GLOBAL
10365 # define LT_DLGLOBAL DL_GLOBAL
10367 # define LT_DLGLOBAL 0
10371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10372 find out it does not work in some platform. */
10373 #ifndef LT_DLLAZY_OR_NOW
10375 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10378 # define LT_DLLAZY_OR_NOW DL_LAZY
10381 # define LT_DLLAZY_OR_NOW RTLD_NOW
10384 # define LT_DLLAZY_OR_NOW DL_NOW
10386 # define LT_DLLAZY_OR_NOW 0
10394 extern "C" void exit (int);
10397 void fnord() { int i=42;}
10400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10401 int status = $lt_dlunknown;
10405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10406 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10407 /* dlclose (self); */
10415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416 (eval $ac_link) 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10420 (./conftest; exit; ) >&5 2>/dev/null
10422 case x$lt_status in
10423 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10424 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10425 x$lt_dlunknown|x*) ;;
10428 # compilation failed
10437 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10438 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10442 if test x"$libltdl_cv_need_uscore" = xyes; then
10444 cat >>confdefs.h <<\_ACEOF
10445 #define NEED_USCORE 1
10451 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10452 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10453 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 # PORTME does your system automatically load deplibs for dlopen?
10457 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10458 # For now, we just catch OSes we know something about -- in the
10459 # future, we'll try test this programmatically.
10460 libltdl_cv_sys_dlopen_deplibs=unknown
10462 aix3*|aix4.1.*|aix4.2.*)
10463 # Unknown whether this is true for these versions of AIX, but
10464 # we want this `case' here to explicitly catch those versions.
10465 libltdl_cv_sys_dlopen_deplibs=unknown
10468 libltdl_cv_sys_dlopen_deplibs=yes
10471 # Assuming the user has installed a libdl from somewhere, this is true
10472 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10473 libltdl_cv_sys_dlopen_deplibs=yes
10475 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10476 # GNU and its variants, using gnu ld.so (Glibc)
10477 libltdl_cv_sys_dlopen_deplibs=yes
10480 libltdl_cv_sys_dlopen_deplibs=yes
10483 libltdl_cv_sys_dlopen_deplibs=yes
10485 irix[12345]*|irix6.[01]*)
10486 # Catch all versions of IRIX before 6.2, and indicate that we don't
10487 # know how it worked for any of those versions.
10488 libltdl_cv_sys_dlopen_deplibs=unknown
10491 # The case above catches anything before 6.2, and it's known that
10492 # at 6.2 and later dlopen does load deplibs.
10493 libltdl_cv_sys_dlopen_deplibs=yes
10496 libltdl_cv_sys_dlopen_deplibs=yes
10499 libltdl_cv_sys_dlopen_deplibs=yes
10502 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10503 # it did *not* use an RPATH in a shared library to find objects the
10504 # library depends on, so we explicitly say `no'.
10505 libltdl_cv_sys_dlopen_deplibs=no
10507 osf5.0|osf5.0a|osf5.1)
10508 # dlopen *does* load deplibs and with the right loader patch applied
10509 # it even uses RPATH in a shared library to search for shared objects
10510 # that the library depends on, but there's no easy way to know if that
10511 # patch is installed. Since this is the case, all we can really
10512 # say is unknown -- it depends on the patch being installed. If
10513 # it is, this changes to `yes'. Without it, it would be `no'.
10514 libltdl_cv_sys_dlopen_deplibs=unknown
10517 # the two cases above should catch all versions of osf <= 5.1. Read
10518 # the comments above for what we know about them.
10519 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10520 # is used to find them so we can finally say `yes'.
10521 libltdl_cv_sys_dlopen_deplibs=yes
10524 libltdl_cv_sys_dlopen_deplibs=yes
10526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10527 libltdl_cv_sys_dlopen_deplibs=yes
10532 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10533 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10534 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10536 cat >>confdefs.h <<\_ACEOF
10537 #define LTDL_DLOPEN_DEPLIBS 1
10543 for ac_header in argz.h
10545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 ac_res=`eval echo '${'$as_ac_Header'}'`
10553 { echo "$as_me:$LINENO: result: $ac_res" >&5
10554 echo "${ECHO_T}$ac_res" >&6; }
10556 # Is the header compilable?
10557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10559 cat >conftest.$ac_ext <<_ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 $ac_includes_default
10566 #include <$ac_header>
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_compile") 2>conftest.er1
10577 grep -v '^ *+' conftest.er1 >conftest.err
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } &&
10582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10583 { (case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_try") 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; } &&
10592 { ac_try='test -s conftest.$ac_objext'
10593 { (case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_try") 2>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 ac_header_compiler=yes
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 ac_header_compiler=no
10610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10612 echo "${ECHO_T}$ac_header_compiler" >&6; }
10614 # Is the header present?
10615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10617 cat >conftest.$ac_ext <<_ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623 #include <$ac_header>
10625 if { (ac_try="$ac_cpp conftest.$ac_ext"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } >/dev/null; then
10638 if test -s conftest.err; then
10639 ac_cpp_err=$ac_c_preproc_warn_flag
10640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10647 if test -z "$ac_cpp_err"; then
10648 ac_header_preproc=yes
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 ac_header_preproc=no
10656 rm -f conftest.err conftest.$ac_ext
10657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10658 echo "${ECHO_T}$ac_header_preproc" >&6; }
10660 # So? What about this header?
10661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10667 ac_header_preproc=yes
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10683 ## ------------------------------------ ##
10684 ## Report this to http://llvm.org/bugs/ ##
10685 ## ------------------------------------ ##
10687 ) | sed "s/^/$as_me: WARNING: /" >&2
10690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 eval "$as_ac_Header=\$ac_header_preproc"
10697 ac_res=`eval echo '${'$as_ac_Header'}'`
10698 { echo "$as_me:$LINENO: result: $ac_res" >&5
10699 echo "${ECHO_T}$ac_res" >&6; }
10702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10703 cat >>confdefs.h <<_ACEOF
10704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10712 { echo "$as_me:$LINENO: checking for error_t" >&5
10713 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10714 if test "${ac_cv_type_error_t+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 cat >conftest.$ac_ext <<_ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10727 typedef error_t ac__type_new_;
10731 if ((ac__type_new_ *) 0)
10733 if (sizeof (ac__type_new_))
10739 rm -f conftest.$ac_objext
10740 if { (ac_try="$ac_compile"
10741 case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_compile") 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
10753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10754 { (case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_try") 2>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; } &&
10763 { ac_try='test -s conftest.$ac_objext'
10764 { (case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_try") 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 ac_cv_type_error_t=yes
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10778 ac_cv_type_error_t=no
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10783 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10784 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10785 if test $ac_cv_type_error_t = yes; then
10787 cat >>confdefs.h <<_ACEOF
10788 #define HAVE_ERROR_T 1
10794 cat >>confdefs.h <<\_ACEOF
10795 #define error_t int
10806 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 cat >conftest.$ac_ext <<_ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10822 #define $ac_func innocuous_$ac_func
10824 /* System header to define __stub macros and hopefully few prototypes,
10825 which can conflict with char $ac_func (); below.
10826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10827 <limits.h> exists even on freestanding compilers. */
10830 # include <limits.h>
10832 # include <assert.h>
10837 /* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */
10844 /* The GNU C library defines this for functions which it implements
10845 to always fail with ENOSYS. Some functions are actually named
10846 something starting with __ and the normal name is an alias. */
10847 #if defined __stub_$ac_func || defined __stub___$ac_func
10854 return $ac_func ();
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_link") 2>conftest.er1
10868 grep -v '^ *+' conftest.er1 >conftest.err
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } &&
10873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try='test -s conftest$ac_exeext'
10884 { (case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_try") 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 eval "$as_ac_var=yes"
10895 echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10898 eval "$as_ac_var=no"
10901 rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10904 ac_res=`eval echo '${'$as_ac_var'}'`
10905 { echo "$as_me:$LINENO: result: $ac_res" >&5
10906 echo "${ECHO_T}$ac_res" >&6; }
10907 if test `eval echo '${'$as_ac_var'}'` = yes; then
10908 cat >>confdefs.h <<_ACEOF
10909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10942 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 ac_res=`eval echo '${'$as_ac_Header'}'`
10953 { echo "$as_me:$LINENO: result: $ac_res" >&5
10954 echo "${ECHO_T}$ac_res" >&6; }
10956 # Is the header compilable?
10957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10959 cat >conftest.$ac_ext <<_ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 $ac_includes_default
10966 #include <$ac_header>
10968 rm -f conftest.$ac_objext
10969 if { (ac_try="$ac_compile"
10970 case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 (eval "$ac_compile") 2>conftest.er1
10977 grep -v '^ *+' conftest.er1 >conftest.err
10979 cat conftest.err >&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } &&
10982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10983 { (case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_try") 2>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; } &&
10992 { ac_try='test -s conftest.$ac_objext'
10993 { (case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_try") 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11002 ac_header_compiler=yes
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11007 ac_header_compiler=no
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11012 echo "${ECHO_T}$ac_header_compiler" >&6; }
11014 # Is the header present?
11015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11017 cat >conftest.$ac_ext <<_ACEOF
11020 cat confdefs.h >>conftest.$ac_ext
11021 cat >>conftest.$ac_ext <<_ACEOF
11022 /* end confdefs.h. */
11023 #include <$ac_header>
11025 if { (ac_try="$ac_cpp conftest.$ac_ext"
11026 case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11033 grep -v '^ *+' conftest.er1 >conftest.err
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } >/dev/null; then
11038 if test -s conftest.err; then
11039 ac_cpp_err=$ac_c_preproc_warn_flag
11040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11047 if test -z "$ac_cpp_err"; then
11048 ac_header_preproc=yes
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_header_preproc=no
11056 rm -f conftest.err conftest.$ac_ext
11057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11058 echo "${ECHO_T}$ac_header_preproc" >&6; }
11060 # So? What about this header?
11061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11067 ac_header_preproc=yes
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11083 ## ------------------------------------ ##
11084 ## Report this to http://llvm.org/bugs/ ##
11085 ## ------------------------------------ ##
11087 ) | sed "s/^/$as_me: WARNING: /" >&2
11090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 eval "$as_ac_Header=\$ac_header_preproc"
11097 ac_res=`eval echo '${'$as_ac_Header'}'`
11098 { echo "$as_me:$LINENO: result: $ac_res" >&5
11099 echo "${ECHO_T}$ac_res" >&6; }
11102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11103 cat >>confdefs.h <<_ACEOF
11104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11115 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 ac_res=`eval echo '${'$as_ac_Header'}'`
11125 { echo "$as_me:$LINENO: result: $ac_res" >&5
11126 echo "${ECHO_T}$ac_res" >&6; }
11128 # Is the header compilable?
11129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 $ac_includes_default
11138 #include <$ac_header>
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_compile") 2>conftest.er1
11149 grep -v '^ *+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11155 { (case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_try") 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest.$ac_objext'
11165 { (case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_try") 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 ac_header_compiler=yes
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 ac_header_compiler=no
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11184 echo "${ECHO_T}$ac_header_compiler" >&6; }
11186 # Is the header present?
11187 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11189 cat >conftest.$ac_ext <<_ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11195 #include <$ac_header>
11197 if { (ac_try="$ac_cpp conftest.$ac_ext"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } >/dev/null; then
11210 if test -s conftest.err; then
11211 ac_cpp_err=$ac_c_preproc_warn_flag
11212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11219 if test -z "$ac_cpp_err"; then
11220 ac_header_preproc=yes
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11225 ac_header_preproc=no
11228 rm -f conftest.err conftest.$ac_ext
11229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11230 echo "${ECHO_T}$ac_header_preproc" >&6; }
11232 # So? What about this header?
11233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11239 ac_header_preproc=yes
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11255 ## ------------------------------------ ##
11256 ## Report this to http://llvm.org/bugs/ ##
11257 ## ------------------------------------ ##
11259 ) | sed "s/^/$as_me: WARNING: /" >&2
11262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 eval "$as_ac_Header=\$ac_header_preproc"
11269 ac_res=`eval echo '${'$as_ac_Header'}'`
11270 { echo "$as_me:$LINENO: result: $ac_res" >&5
11271 echo "${ECHO_T}$ac_res" >&6; }
11274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11285 for ac_header in string.h strings.h
11287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 ac_res=`eval echo '${'$as_ac_Header'}'`
11295 { echo "$as_me:$LINENO: result: $ac_res" >&5
11296 echo "${ECHO_T}$ac_res" >&6; }
11298 # Is the header compilable?
11299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 $ac_includes_default
11308 #include <$ac_header>
11310 rm -f conftest.$ac_objext
11311 if { (ac_try="$ac_compile"
11312 case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_compile") 2>conftest.er1
11319 grep -v '^ *+' conftest.er1 >conftest.err
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11325 { (case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_try") 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
11335 { (case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_try") 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344 ac_header_compiler=yes
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 ac_header_compiler=no
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11354 echo "${ECHO_T}$ac_header_compiler" >&6; }
11356 # Is the header present?
11357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11359 cat >conftest.$ac_ext <<_ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 #include <$ac_header>
11367 if { (ac_try="$ac_cpp conftest.$ac_ext"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11375 grep -v '^ *+' conftest.er1 >conftest.err
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } >/dev/null; then
11380 if test -s conftest.err; then
11381 ac_cpp_err=$ac_c_preproc_warn_flag
11382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11389 if test -z "$ac_cpp_err"; then
11390 ac_header_preproc=yes
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 ac_header_preproc=no
11398 rm -f conftest.err conftest.$ac_ext
11399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11400 echo "${ECHO_T}$ac_header_preproc" >&6; }
11402 # So? What about this header?
11403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11409 ac_header_preproc=yes
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11425 ## ------------------------------------ ##
11426 ## Report this to http://llvm.org/bugs/ ##
11427 ## ------------------------------------ ##
11429 ) | sed "s/^/$as_me: WARNING: /" >&2
11432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 eval "$as_ac_Header=\$ac_header_preproc"
11439 ac_res=`eval echo '${'$as_ac_Header'}'`
11440 { echo "$as_me:$LINENO: result: $ac_res" >&5
11441 echo "${ECHO_T}$ac_res" >&6; }
11444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11445 cat >>confdefs.h <<_ACEOF
11446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11456 for ac_func in strchr index
11458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 cat >conftest.$ac_ext <<_ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h. */
11470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11472 #define $ac_func innocuous_$ac_func
11474 /* System header to define __stub macros and hopefully few prototypes,
11475 which can conflict with char $ac_func (); below.
11476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11477 <limits.h> exists even on freestanding compilers. */
11480 # include <limits.h>
11482 # include <assert.h>
11487 /* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11494 /* The GNU C library defines this for functions which it implements
11495 to always fail with ENOSYS. Some functions are actually named
11496 something starting with __ and the normal name is an alias. */
11497 #if defined __stub_$ac_func || defined __stub___$ac_func
11504 return $ac_func ();
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (ac_try="$ac_link"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_link") 2>conftest.er1
11518 grep -v '^ *+' conftest.er1 >conftest.err
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
11523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11524 { (case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_try") 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest$ac_exeext'
11534 { (case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_try") 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 eval "$as_ac_var=yes"
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 eval "$as_ac_var=no"
11551 rm -f core conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11554 ac_res=`eval echo '${'$as_ac_var'}'`
11555 { echo "$as_me:$LINENO: result: $ac_res" >&5
11556 echo "${ECHO_T}$ac_res" >&6; }
11557 if test `eval echo '${'$as_ac_var'}'` = yes; then
11558 cat >>confdefs.h <<_ACEOF
11559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11567 for ac_func in strrchr rindex
11569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 cat >conftest.$ac_ext <<_ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11583 #define $ac_func innocuous_$ac_func
11585 /* System header to define __stub macros and hopefully few prototypes,
11586 which can conflict with char $ac_func (); below.
11587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588 <limits.h> exists even on freestanding compilers. */
11591 # include <limits.h>
11593 # include <assert.h>
11598 /* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11605 /* The GNU C library defines this for functions which it implements
11606 to always fail with ENOSYS. Some functions are actually named
11607 something starting with __ and the normal name is an alias. */
11608 #if defined __stub_$ac_func || defined __stub___$ac_func
11615 return $ac_func ();
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_link") 2>conftest.er1
11629 grep -v '^ *+' conftest.er1 >conftest.err
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 eval "$as_ac_var=yes"
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11659 eval "$as_ac_var=no"
11662 rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11665 ac_res=`eval echo '${'$as_ac_var'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667 echo "${ECHO_T}$ac_res" >&6; }
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11678 for ac_func in memcpy bcopy
11680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 cat >conftest.$ac_ext <<_ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11694 #define $ac_func innocuous_$ac_func
11696 /* System header to define __stub macros and hopefully few prototypes,
11697 which can conflict with char $ac_func (); below.
11698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699 <limits.h> exists even on freestanding compilers. */
11702 # include <limits.h>
11704 # include <assert.h>
11709 /* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11716 /* The GNU C library defines this for functions which it implements
11717 to always fail with ENOSYS. Some functions are actually named
11718 something starting with __ and the normal name is an alias. */
11719 #if defined __stub_$ac_func || defined __stub___$ac_func
11726 return $ac_func ();
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746 { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_try") 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest$ac_exeext'
11756 { (case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_try") 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 eval "$as_ac_var=yes"
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 eval "$as_ac_var=no"
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11776 ac_res=`eval echo '${'$as_ac_var'}'`
11777 { echo "$as_me:$LINENO: result: $ac_res" >&5
11778 echo "${ECHO_T}$ac_res" >&6; }
11779 if test `eval echo '${'$as_ac_var'}'` = yes; then
11780 cat >>confdefs.h <<_ACEOF
11781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11789 for ac_func in memmove strcmp
11791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 cat >conftest.$ac_ext <<_ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11805 #define $ac_func innocuous_$ac_func
11807 /* System header to define __stub macros and hopefully few prototypes,
11808 which can conflict with char $ac_func (); below.
11809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810 <limits.h> exists even on freestanding compilers. */
11813 # include <limits.h>
11815 # include <assert.h>
11820 /* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11827 /* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830 #if defined __stub_$ac_func || defined __stub___$ac_func
11837 return $ac_func ();
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_link") 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11857 { (case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_try") 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; } &&
11866 { ac_try='test -s conftest$ac_exeext'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 eval "$as_ac_var=yes"
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11881 eval "$as_ac_var=no"
11884 rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11887 ac_res=`eval echo '${'$as_ac_var'}'`
11888 { echo "$as_me:$LINENO: result: $ac_res" >&5
11889 echo "${ECHO_T}$ac_res" >&6; }
11890 if test `eval echo '${'$as_ac_var'}'` = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11901 for ac_func in closedir opendir readdir
11903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 cat >conftest.$ac_ext <<_ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11917 #define $ac_func innocuous_$ac_func
11919 /* System header to define __stub macros and hopefully few prototypes,
11920 which can conflict with char $ac_func (); below.
11921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11922 <limits.h> exists even on freestanding compilers. */
11925 # include <limits.h>
11927 # include <assert.h>
11932 /* Override any GCC internal prototype to avoid an error.
11933 Use char because int might match the return type of a GCC
11934 builtin and then its argument prototype would still apply. */
11939 /* The GNU C library defines this for functions which it implements
11940 to always fail with ENOSYS. Some functions are actually named
11941 something starting with __ and the normal name is an alias. */
11942 #if defined __stub_$ac_func || defined __stub___$ac_func
11949 return $ac_func ();
11954 rm -f conftest.$ac_objext conftest$ac_exeext
11955 if { (ac_try="$ac_link"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_link") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest$ac_exeext'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 eval "$as_ac_var=yes"
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 eval "$as_ac_var=no"
11996 rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11999 ac_res=`eval echo '${'$as_ac_var'}'`
12000 { echo "$as_me:$LINENO: result: $ac_res" >&5
12001 echo "${ECHO_T}$ac_res" >&6; }
12002 if test `eval echo '${'$as_ac_var'}'` = yes; then
12003 cat >>confdefs.h <<_ACEOF
12004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12012 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12013 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12026 if test "$GCC" != "yes" && test "$ICC" != "yes"
12028 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12029 echo "$as_me: error: gcc|icc required but not found" >&2;}
12030 { (exit 1); exit 1; }; }
12033 if test "$GXX" != "yes" && test "$IXX" != "yes"
12035 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12036 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12037 { (exit 1); exit 1; }; }
12040 if test "$GCC" = "yes"
12042 cat >conftest.$ac_ext <<_ACEOF
12043 #if !defined(__GNUC__) || __GNUC__ < 3
12044 #error Unsupported GCC version
12048 rm -f conftest.$ac_objext
12049 if { (ac_try="$ac_compile"
12050 case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_compile") 2>conftest.er1
12057 grep -v '^ *+' conftest.er1 >conftest.err
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest.$ac_objext'
12073 { (case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_try") 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12088 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12089 { (exit 1); exit 1; }; }
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 if test -z "$llvm_cv_gnu_make_command"
12097 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12098 echo "$as_me: error: GNU Make required but not found" >&2;}
12099 { (exit 1); exit 1; }; }
12102 { echo "$as_me:$LINENO: result: ok" >&5
12103 echo "${ECHO_T}ok" >&6; }
12105 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12106 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12107 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12109 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12111 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12113 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12114 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12118 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12119 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12120 if test "${ac_cv_lib_m_sin+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 ac_check_lib_save_LIBS=$LIBS
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (ac_try="$ac_link"
12149 case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_link") 2>conftest.er1
12156 grep -v '^ *+' conftest.er1 >conftest.err
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12162 { (case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_try") 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try='test -s conftest$ac_exeext'
12172 { (case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_try") 2>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12181 ac_cv_lib_m_sin=yes
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12189 rm -f core conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext conftest.$ac_ext
12191 LIBS=$ac_check_lib_save_LIBS
12193 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12194 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12195 if test $ac_cv_lib_m_sin = yes; then
12196 cat >>confdefs.h <<_ACEOF
12197 #define HAVE_LIBM 1
12204 if test "$llvm_cv_os_type" = "MingW" ; then
12206 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12207 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12208 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 ac_check_lib_save_LIBS=$LIBS
12212 LIBS="-limagehlp $LIBS"
12213 cat >conftest.$ac_ext <<_ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (ac_try="$ac_link"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_link") 2>conftest.er1
12238 grep -v '^ *+' conftest.er1 >conftest.err
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } &&
12243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12244 { (case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_try") 2>&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try='test -s conftest$ac_exeext'
12254 { (case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_try") 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_lib_imagehlp_main=yes
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_cv_lib_imagehlp_main=no
12271 rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12273 LIBS=$ac_check_lib_save_LIBS
12275 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12276 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12277 if test $ac_cv_lib_imagehlp_main = yes; then
12278 cat >>confdefs.h <<_ACEOF
12279 #define HAVE_LIBIMAGEHLP 1
12282 LIBS="-limagehlp $LIBS"
12287 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12288 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12289 if test "${ac_cv_lib_psapi_main+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 ac_check_lib_save_LIBS=$LIBS
12293 LIBS="-lpsapi $LIBS"
12294 cat >conftest.$ac_ext <<_ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h. */
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (ac_try="$ac_link"
12312 case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_link") 2>conftest.er1
12319 grep -v '^ *+' conftest.er1 >conftest.err
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_try") 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest$ac_exeext'
12335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_lib_psapi_main=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_cv_lib_psapi_main=no
12352 rm -f core conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12356 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12357 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12358 if test $ac_cv_lib_psapi_main = yes; then
12359 cat >>confdefs.h <<_ACEOF
12360 #define HAVE_LIBPSAPI 1
12363 LIBS="-lpsapi $LIBS"
12369 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12370 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12371 if test "${ac_cv_search_dlopen+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 ac_func_search_save_LIBS=$LIBS
12375 cat >conftest.$ac_ext <<_ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12382 /* Override any GCC internal prototype to avoid an error.
12383 Use char because int might match the return type of a GCC
12384 builtin and then its argument prototype would still apply. */
12397 for ac_lib in '' dl; do
12398 if test -z "$ac_lib"; then
12399 ac_res="none required"
12402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12404 rm -f conftest.$ac_objext conftest$ac_exeext
12405 if { (ac_try="$ac_link"
12406 case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_link") 2>conftest.er1
12413 grep -v '^ *+' conftest.er1 >conftest.err
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest$ac_exeext'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_search_dlopen=$ac_res
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12446 rm -f core conftest.err conftest.$ac_objext \
12448 if test "${ac_cv_search_dlopen+set}" = set; then
12452 if test "${ac_cv_search_dlopen+set}" = set; then
12455 ac_cv_search_dlopen=no
12457 rm conftest.$ac_ext
12458 LIBS=$ac_func_search_save_LIBS
12460 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12461 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12462 ac_res=$ac_cv_search_dlopen
12463 if test "$ac_res" != no; then
12464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12466 cat >>confdefs.h <<\_ACEOF
12467 #define HAVE_DLOPEN 1
12471 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12472 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12476 if test "$llvm_cv_enable_libffi" = "yes" ; then
12477 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12478 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12479 if test "${ac_cv_search_ffi_call+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 ac_func_search_save_LIBS=$LIBS
12483 cat >conftest.$ac_ext <<_ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12500 return ffi_call ();
12505 for ac_lib in '' ffi; do
12506 if test -z "$ac_lib"; then
12507 ac_res="none required"
12510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>conftest.er1
12521 grep -v '^ *+' conftest.er1 >conftest.err
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527 { (case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_try") 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest$ac_exeext'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_cv_search_ffi_call=$ac_res
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12554 rm -f core conftest.err conftest.$ac_objext \
12556 if test "${ac_cv_search_ffi_call+set}" = set; then
12560 if test "${ac_cv_search_ffi_call+set}" = set; then
12563 ac_cv_search_ffi_call=no
12565 rm conftest.$ac_ext
12566 LIBS=$ac_func_search_save_LIBS
12568 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12569 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12570 ac_res=$ac_cv_search_ffi_call
12571 if test "$ac_res" != no; then
12572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12574 cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_FFI_CALL 1
12579 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12580 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12581 { (exit 1); exit 1; }; }
12586 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12587 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12588 if test "${ac_cv_search_mallinfo+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 ac_func_search_save_LIBS=$LIBS
12592 cat >conftest.$ac_ext <<_ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12599 /* Override any GCC internal prototype to avoid an error.
12600 Use char because int might match the return type of a GCC
12601 builtin and then its argument prototype would still apply. */
12609 return mallinfo ();
12614 for ac_lib in '' malloc; do
12615 if test -z "$ac_lib"; then
12616 ac_res="none required"
12619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_link") 2>conftest.er1
12630 grep -v '^ *+' conftest.er1 >conftest.err
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest$ac_exeext'
12646 { (case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_try") 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 ac_cv_search_mallinfo=$ac_res
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12663 rm -f core conftest.err conftest.$ac_objext \
12665 if test "${ac_cv_search_mallinfo+set}" = set; then
12669 if test "${ac_cv_search_mallinfo+set}" = set; then
12672 ac_cv_search_mallinfo=no
12674 rm conftest.$ac_ext
12675 LIBS=$ac_func_search_save_LIBS
12677 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12678 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12679 ac_res=$ac_cv_search_mallinfo
12680 if test "$ac_res" != no; then
12681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12683 cat >>confdefs.h <<\_ACEOF
12684 #define HAVE_MALLINFO 1
12690 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12692 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12693 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12694 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 ac_check_lib_save_LIBS=$LIBS
12698 LIBS="-lpthread $LIBS"
12699 cat >conftest.$ac_ext <<_ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12706 /* Override any GCC internal prototype to avoid an error.
12707 Use char because int might match the return type of a GCC
12708 builtin and then its argument prototype would still apply. */
12712 char pthread_mutex_init ();
12716 return pthread_mutex_init ();
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (ac_try="$ac_link"
12723 case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_link") 2>conftest.er1
12730 grep -v '^ *+' conftest.er1 >conftest.err
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 ac_cv_lib_pthread_pthread_mutex_init=yes
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 ac_cv_lib_pthread_pthread_mutex_init=no
12763 rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_check_lib_save_LIBS
12767 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12768 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12769 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771 #define HAVE_LIBPTHREAD 1
12774 LIBS="-lpthread $LIBS"
12778 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12779 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12780 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 ac_func_search_save_LIBS=$LIBS
12784 cat >conftest.$ac_ext <<_ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12797 char pthread_mutex_lock ();
12801 return pthread_mutex_lock ();
12806 for ac_lib in '' pthread; do
12807 if test -z "$ac_lib"; then
12808 ac_res="none required"
12811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12813 rm -f conftest.$ac_objext conftest$ac_exeext
12814 if { (ac_try="$ac_link"
12815 case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820 (eval "$ac_link") 2>conftest.er1
12822 grep -v '^ *+' conftest.er1 >conftest.err
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest$ac_exeext'
12838 { (case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_try") 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 ac_cv_search_pthread_mutex_lock=$ac_res
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12855 rm -f core conftest.err conftest.$ac_objext \
12857 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12861 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12864 ac_cv_search_pthread_mutex_lock=no
12866 rm conftest.$ac_ext
12867 LIBS=$ac_func_search_save_LIBS
12869 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12870 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12871 ac_res=$ac_cv_search_pthread_mutex_lock
12872 if test "$ac_res" != no; then
12873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE_PTHREAD_MUTEX_LOCK 1
12881 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12882 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12883 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 ac_func_search_save_LIBS=$LIBS
12887 cat >conftest.$ac_ext <<_ACEOF
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12894 /* Override any GCC internal prototype to avoid an error.
12895 Use char because int might match the return type of a GCC
12896 builtin and then its argument prototype would still apply. */
12900 char pthread_rwlock_init ();
12904 return pthread_rwlock_init ();
12909 for ac_lib in '' pthread; do
12910 if test -z "$ac_lib"; then
12911 ac_res="none required"
12914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (ac_try="$ac_link"
12918 case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_link") 2>conftest.er1
12925 grep -v '^ *+' conftest.er1 >conftest.err
12927 cat conftest.err >&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12931 { (case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936 (eval "$ac_try") 2>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; } &&
12940 { ac_try='test -s conftest$ac_exeext'
12941 { (case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_try") 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_search_pthread_rwlock_init=$ac_res
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12958 rm -f core conftest.err conftest.$ac_objext \
12960 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12964 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12967 ac_cv_search_pthread_rwlock_init=no
12969 rm conftest.$ac_ext
12970 LIBS=$ac_func_search_save_LIBS
12972 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12973 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12974 ac_res=$ac_cv_search_pthread_rwlock_init
12975 if test "$ac_res" != no; then
12976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12978 cat >>confdefs.h <<\_ACEOF
12979 #define HAVE_PTHREAD_RWLOCK_INIT 1
12984 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12985 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12986 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 ac_func_search_save_LIBS=$LIBS
12990 cat >conftest.$ac_ext <<_ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12997 /* Override any GCC internal prototype to avoid an error.
12998 Use char because int might match the return type of a GCC
12999 builtin and then its argument prototype would still apply. */
13003 char pthread_getspecific ();
13007 return pthread_getspecific ();
13012 for ac_lib in '' pthread; do
13013 if test -z "$ac_lib"; then
13014 ac_res="none required"
13017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13019 rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (ac_try="$ac_link"
13021 case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_link") 2>conftest.er1
13028 grep -v '^ *+' conftest.er1 >conftest.err
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13034 { (case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_try") 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; } &&
13043 { ac_try='test -s conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_search_pthread_getspecific=$ac_res
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13061 rm -f core conftest.err conftest.$ac_objext \
13063 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13067 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13070 ac_cv_search_pthread_getspecific=no
13072 rm conftest.$ac_ext
13073 LIBS=$ac_func_search_save_LIBS
13075 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13076 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13077 ac_res=$ac_cv_search_pthread_getspecific
13078 if test "$ac_res" != no; then
13079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13081 cat >>confdefs.h <<\_ACEOF
13082 #define HAVE_PTHREAD_GETSPECIFIC 1
13090 # Check whether --with-udis86 was given.
13091 if test "${with_udis86+set}" = set; then
13092 withval=$with_udis86;
13097 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13100 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13101 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13102 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 ac_check_lib_save_LIBS=$LIBS
13106 LIBS="-ludis86 $LIBS"
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13114 /* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (ac_try="$ac_link"
13131 case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_link") 2>conftest.er1
13138 grep -v '^ *+' conftest.er1 >conftest.err
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13144 { (case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_try") 2>&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try='test -s conftest$ac_exeext'
13154 { (case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_try") 2>&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 ac_cv_lib_udis86_ud_init=yes
13165 echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13168 ac_cv_lib_udis86_ud_init=no
13171 rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext conftest.$ac_ext
13173 LIBS=$ac_check_lib_save_LIBS
13175 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13176 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13177 if test $ac_cv_lib_udis86_ud_init = yes; then
13178 cat >>confdefs.h <<_ACEOF
13179 #define HAVE_LIBUDIS86 1
13182 LIBS="-ludis86 $LIBS"
13186 echo "Error! You need to have libudis86 around."
13198 cat >>confdefs.h <<_ACEOF
13199 #define USE_UDIS86 $USE_UDIS86
13204 # Check whether --with-oprofile was given.
13205 if test "${with_oprofile+set}" = set; then
13206 withval=$with_oprofile;
13210 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13211 no) llvm_cv_oppath=
13214 *) llvm_cv_oppath="${withval}/lib/oprofile"
13215 CPPFLAGS="-I${withval}/include";;
13217 case $llvm_cv_os_type in
13219 if test -n "$llvm_cv_oppath" ; then
13220 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13221 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13222 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13223 if test "${ac_cv_search_bfd_init+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 ac_func_search_save_LIBS=$LIBS
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13234 /* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13244 return bfd_init ();
13249 for ac_lib in '' bfd; do
13250 if test -z "$ac_lib"; then
13251 ac_res="none required"
13254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13256 rm -f conftest.$ac_objext conftest$ac_exeext
13257 if { (ac_try="$ac_link"
13258 case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_link") 2>conftest.er1
13265 grep -v '^ *+' conftest.er1 >conftest.err
13267 cat conftest.err >&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } &&
13270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13271 { (case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_try") 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; } &&
13280 { ac_try='test -s conftest$ac_exeext'
13281 { (case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286 (eval "$ac_try") 2>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; }; then
13290 ac_cv_search_bfd_init=$ac_res
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13298 rm -f core conftest.err conftest.$ac_objext \
13300 if test "${ac_cv_search_bfd_init+set}" = set; then
13304 if test "${ac_cv_search_bfd_init+set}" = set; then
13307 ac_cv_search_bfd_init=no
13309 rm conftest.$ac_ext
13310 LIBS=$ac_func_search_save_LIBS
13312 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13313 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13314 ac_res=$ac_cv_search_bfd_init
13315 if test "$ac_res" != no; then
13316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13320 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13321 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13322 if test "${ac_cv_search_op_open_agent+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 ac_func_search_save_LIBS=$LIBS
13326 cat >conftest.$ac_ext <<_ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13333 /* Override any GCC internal prototype to avoid an error.
13334 Use char because int might match the return type of a GCC
13335 builtin and then its argument prototype would still apply. */
13339 char op_open_agent ();
13343 return op_open_agent ();
13348 for ac_lib in '' opagent; do
13349 if test -z "$ac_lib"; then
13350 ac_res="none required"
13353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13355 rm -f conftest.$ac_objext conftest$ac_exeext
13356 if { (ac_try="$ac_link"
13357 case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_link") 2>conftest.er1
13364 grep -v '^ *+' conftest.er1 >conftest.err
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
13369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13370 { (case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_try") 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; } &&
13379 { ac_try='test -s conftest$ac_exeext'
13380 { (case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_try") 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_cv_search_op_open_agent=$ac_res
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13397 rm -f core conftest.err conftest.$ac_objext \
13399 if test "${ac_cv_search_op_open_agent+set}" = set; then
13403 if test "${ac_cv_search_op_open_agent+set}" = set; then
13406 ac_cv_search_op_open_agent=no
13408 rm conftest.$ac_ext
13409 LIBS=$ac_func_search_save_LIBS
13411 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13412 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13413 ac_res=$ac_cv_search_op_open_agent
13414 if test "$ac_res" != no; then
13415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13419 echo "Error! You need to have libopagent around."
13424 if test "${ac_cv_header_opagent_h+set}" = set; then
13425 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13426 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13427 if test "${ac_cv_header_opagent_h+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13431 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13433 # Is the header compilable?
13434 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13435 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 $ac_includes_default
13443 #include <opagent.h>
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_compile") 2>conftest.er1
13454 grep -v '^ *+' conftest.er1 >conftest.err
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13460 { (case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_try") 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest.$ac_objext'
13470 { (case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_try") 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 ac_header_compiler=yes
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13484 ac_header_compiler=no
13487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13489 echo "${ECHO_T}$ac_header_compiler" >&6; }
13491 # Is the header present?
13492 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13493 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13494 cat >conftest.$ac_ext <<_ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 #include <opagent.h>
13502 if { (ac_try="$ac_cpp conftest.$ac_ext"
13503 case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13510 grep -v '^ *+' conftest.er1 >conftest.err
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } >/dev/null; then
13515 if test -s conftest.err; then
13516 ac_cpp_err=$ac_c_preproc_warn_flag
13517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13524 if test -z "$ac_cpp_err"; then
13525 ac_header_preproc=yes
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13530 ac_header_preproc=no
13533 rm -f conftest.err conftest.$ac_ext
13534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13535 echo "${ECHO_T}$ac_header_preproc" >&6; }
13537 # So? What about this header?
13538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13540 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13541 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13543 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13544 ac_header_preproc=yes
13547 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13548 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13550 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13552 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13554 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13556 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13558 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13560 ## ------------------------------------ ##
13561 ## Report this to http://llvm.org/bugs/ ##
13562 ## ------------------------------------ ##
13564 ) | sed "s/^/$as_me: WARNING: /" >&2
13567 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13568 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13569 if test "${ac_cv_header_opagent_h+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 ac_cv_header_opagent_h=$ac_header_preproc
13574 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13575 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13578 if test $ac_cv_header_opagent_h = yes; then
13582 echo "Error! You need to have opagent.h around."
13590 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13591 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13592 { (exit 1); exit 1; }; } ;;
13603 cat >>confdefs.h <<_ACEOF
13604 #define LLVM_USE_OPROFILE $USE_OPROFILE
13609 # Check whether --with-intel-jitevents was given.
13610 if test "${with_intel_jitevents+set}" = set; then
13611 withval=$with_intel_jitevents;
13612 case $llvm_cv_os_type in
13613 Linux|Win32|Cygwin|MingW) ;;
13615 { { echo "$as_me:$LINENO: error:
13616 Intel JIT API support is available on Linux and Windows only.\"" >&5
13617 echo "$as_me: error:
13618 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13619 { (exit 1); exit 1; }; } ;;
13622 USE_INTEL_JITEVENTS=1
13624 case "$llvm_cv_target_arch" in
13625 x86) llvm_intel_jitevents_archdir="lib32";;
13626 x86_64) llvm_intel_jitevents_archdir="lib64";;
13627 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13630 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13631 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13633 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13634 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13641 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13642 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13644 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13645 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13646 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 ac_func_search_save_LIBS=$LIBS
13650 cat >conftest.$ac_ext <<_ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13663 char iJIT_IsProfilingActive ();
13667 return iJIT_IsProfilingActive ();
13672 for ac_lib in '' jitprofiling; do
13673 if test -z "$ac_lib"; then
13674 ac_res="none required"
13677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (ac_try="$ac_link"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_link") 2>conftest.er1
13688 grep -v '^ *+' conftest.er1 >conftest.err
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694 { (case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_try") 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest$ac_exeext'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13721 rm -f core conftest.err conftest.$ac_objext \
13723 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13727 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13730 ac_cv_search_iJIT_IsProfilingActive=no
13732 rm conftest.$ac_ext
13733 LIBS=$ac_func_search_save_LIBS
13735 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13736 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13737 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13738 if test "$ac_res" != no; then
13739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13743 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13748 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13749 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13750 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13751 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13755 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13757 # Is the header compilable?
13758 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13759 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13766 $ac_includes_default
13767 #include <jitprofiling.h>
13769 rm -f conftest.$ac_objext
13770 if { (ac_try="$ac_compile"
13771 case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_compile") 2>conftest.er1
13778 grep -v '^ *+' conftest.er1 >conftest.err
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13784 { (case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_try") 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_try") 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }; then
13803 ac_header_compiler=yes
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_header_compiler=no
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13813 echo "${ECHO_T}$ac_header_compiler" >&6; }
13815 # Is the header present?
13816 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13817 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13818 cat >conftest.$ac_ext <<_ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13824 #include <jitprofiling.h>
13826 if { (ac_try="$ac_cpp conftest.$ac_ext"
13827 case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13834 grep -v '^ *+' conftest.er1 >conftest.err
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } >/dev/null; then
13839 if test -s conftest.err; then
13840 ac_cpp_err=$ac_c_preproc_warn_flag
13841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13848 if test -z "$ac_cpp_err"; then
13849 ac_header_preproc=yes
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13854 ac_header_preproc=no
13857 rm -f conftest.err conftest.$ac_ext
13858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13859 echo "${ECHO_T}$ac_header_preproc" >&6; }
13861 # So? What about this header?
13862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13864 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13865 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13866 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13867 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13868 ac_header_preproc=yes
13871 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13872 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13874 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13876 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13878 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13880 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13882 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13884 ## ------------------------------------ ##
13885 ## Report this to http://llvm.org/bugs/ ##
13886 ## ------------------------------------ ##
13888 ) | sed "s/^/$as_me: WARNING: /" >&2
13891 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13892 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13893 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 ac_cv_header_jitprofiling_h=$ac_header_preproc
13898 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13899 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13902 if test $ac_cv_header_jitprofiling_h = yes; then
13906 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13916 USE_INTEL_JITEVENTS=0
13922 cat >>confdefs.h <<_ACEOF
13923 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13933 ac_header_dirent=no
13934 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13935 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13936 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13937 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 cat >conftest.$ac_ext <<_ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 #include <sys/types.h>
13959 rm -f conftest.$ac_objext
13960 if { (ac_try="$ac_compile"
13961 case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_compile") 2>conftest.er1
13968 grep -v '^ *+' conftest.er1 >conftest.err
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13974 { (case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_try") 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest.$ac_objext'
13984 { (case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_try") 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 eval "$as_ac_Header=yes"
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 eval "$as_ac_Header=no"
14001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14003 ac_res=`eval echo '${'$as_ac_Header'}'`
14004 { echo "$as_me:$LINENO: result: $ac_res" >&5
14005 echo "${ECHO_T}$ac_res" >&6; }
14006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14007 cat >>confdefs.h <<_ACEOF
14008 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14011 ac_header_dirent=$ac_hdr; break
14015 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14016 if test $ac_header_dirent = dirent.h; then
14017 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14018 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14019 if test "${ac_cv_search_opendir+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 ac_func_search_save_LIBS=$LIBS
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14030 /* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14045 for ac_lib in '' dir; do
14046 if test -z "$ac_lib"; then
14047 ac_res="none required"
14050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (ac_try="$ac_link"
14054 case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_link") 2>conftest.er1
14061 grep -v '^ *+' conftest.er1 >conftest.err
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; } &&
14076 { ac_try='test -s conftest$ac_exeext'
14077 { (case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_try") 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 ac_cv_search_opendir=$ac_res
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14094 rm -f core conftest.err conftest.$ac_objext \
14096 if test "${ac_cv_search_opendir+set}" = set; then
14100 if test "${ac_cv_search_opendir+set}" = set; then
14103 ac_cv_search_opendir=no
14105 rm conftest.$ac_ext
14106 LIBS=$ac_func_search_save_LIBS
14108 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14109 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14110 ac_res=$ac_cv_search_opendir
14111 if test "$ac_res" != no; then
14112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14119 if test "${ac_cv_search_opendir+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14122 ac_func_search_save_LIBS=$LIBS
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14130 /* Override any GCC internal prototype to avoid an error.
14131 Use char because int might match the return type of a GCC
14132 builtin and then its argument prototype would still apply. */
14145 for ac_lib in '' x; do
14146 if test -z "$ac_lib"; then
14147 ac_res="none required"
14150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14152 rm -f conftest.$ac_objext conftest$ac_exeext
14153 if { (ac_try="$ac_link"
14154 case "(($ac_try" in
14155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156 *) ac_try_echo=$ac_try;;
14158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159 (eval "$ac_link") 2>conftest.er1
14161 grep -v '^ *+' conftest.er1 >conftest.err
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14167 { (case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_try") 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest$ac_exeext'
14177 { (case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_try") 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 ac_cv_search_opendir=$ac_res
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14194 rm -f core conftest.err conftest.$ac_objext \
14196 if test "${ac_cv_search_opendir+set}" = set; then
14200 if test "${ac_cv_search_opendir+set}" = set; then
14203 ac_cv_search_opendir=no
14205 rm conftest.$ac_ext
14206 LIBS=$ac_func_search_save_LIBS
14208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14210 ac_res=$ac_cv_search_opendir
14211 if test "$ac_res" != no; then
14212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14218 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14219 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14220 if test "${ac_cv_header_mmap_anon+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 ac_cpp='$CPP $CPPFLAGS'
14225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14229 cat >conftest.$ac_ext <<_ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 #include <sys/mman.h>
14236 #include <unistd.h>
14241 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14246 rm -f conftest.$ac_objext
14247 if { (ac_try="$ac_compile"
14248 case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253 (eval "$ac_compile") 2>conftest.er1
14255 grep -v '^ *+' conftest.er1 >conftest.err
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14261 { (case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_try") 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; } &&
14270 { ac_try='test -s conftest.$ac_objext'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_header_mmap_anon=yes
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_cv_header_mmap_anon=no
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 ac_cpp='$CPP $CPPFLAGS'
14291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14297 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14298 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14299 if test "$ac_cv_header_mmap_anon" = yes; then
14301 cat >>confdefs.h <<\_ACEOF
14302 #define HAVE_MMAP_ANONYMOUS 1
14307 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14308 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14309 if test "${ac_cv_header_stat_broken+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 cat >conftest.$ac_ext <<_ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 #include <sys/types.h>
14319 #include <sys/stat.h>
14321 #if defined S_ISBLK && defined S_IFDIR
14322 # if S_ISBLK (S_IFDIR)
14327 #if defined S_ISBLK && defined S_IFCHR
14328 # if S_ISBLK (S_IFCHR)
14333 #if defined S_ISLNK && defined S_IFREG
14334 # if S_ISLNK (S_IFREG)
14339 #if defined S_ISSOCK && defined S_IFREG
14340 # if S_ISSOCK (S_IFREG)
14346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14347 $EGREP "You lose" >/dev/null 2>&1; then
14348 ac_cv_header_stat_broken=yes
14350 ac_cv_header_stat_broken=no
14355 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14356 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14357 if test $ac_cv_header_stat_broken = yes; then
14359 cat >>confdefs.h <<\_ACEOF
14360 #define STAT_MACROS_BROKEN 1
14365 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14366 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14367 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 cat >conftest.$ac_ext <<_ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 #include <sys/types.h>
14377 #include <sys/wait.h>
14378 #ifndef WEXITSTATUS
14379 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14382 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14390 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14395 rm -f conftest.$ac_objext
14396 if { (ac_try="$ac_compile"
14397 case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_compile") 2>conftest.er1
14404 grep -v '^ *+' conftest.er1 >conftest.err
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410 { (case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_try") 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_try") 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 ac_cv_header_sys_wait_h=yes
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 ac_cv_header_sys_wait_h=no
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14440 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14441 if test $ac_cv_header_sys_wait_h = yes; then
14443 cat >>confdefs.h <<\_ACEOF
14444 #define HAVE_SYS_WAIT_H 1
14449 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14450 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14451 if test "${ac_cv_header_time+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 cat >conftest.$ac_ext <<_ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14460 #include <sys/types.h>
14461 #include <sys/time.h>
14467 if ((struct tm *) 0)
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480 (eval "$ac_compile") 2>conftest.er1
14482 grep -v '^ *+' conftest.er1 >conftest.err
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14488 { (case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_try") 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try='test -s conftest.$ac_objext'
14498 { (case "(($ac_try" in
14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500 *) ac_try_echo=$ac_try;;
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503 (eval "$ac_try") 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14507 ac_cv_header_time=yes
14509 echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14512 ac_cv_header_time=no
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14518 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14519 if test $ac_cv_header_time = yes; then
14521 cat >>confdefs.h <<\_ACEOF
14522 #define TIME_WITH_SYS_TIME 1
14534 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 ac_res=`eval echo '${'$as_ac_Header'}'`
14544 { echo "$as_me:$LINENO: result: $ac_res" >&5
14545 echo "${ECHO_T}$ac_res" >&6; }
14547 # Is the header compilable?
14548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14550 cat >conftest.$ac_ext <<_ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 $ac_includes_default
14557 #include <$ac_header>
14559 rm -f conftest.$ac_objext
14560 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14568 grep -v '^ *+' conftest.er1 >conftest.err
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14574 { (case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_try") 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest.$ac_objext'
14584 { (case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_try") 2>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; }; then
14593 ac_header_compiler=yes
14595 echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14598 ac_header_compiler=no
14601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14603 echo "${ECHO_T}$ac_header_compiler" >&6; }
14605 # Is the header present?
14606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14608 cat >conftest.$ac_ext <<_ACEOF
14611 cat confdefs.h >>conftest.$ac_ext
14612 cat >>conftest.$ac_ext <<_ACEOF
14613 /* end confdefs.h. */
14614 #include <$ac_header>
14616 if { (ac_try="$ac_cpp conftest.$ac_ext"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14624 grep -v '^ *+' conftest.er1 >conftest.err
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } >/dev/null; then
14629 if test -s conftest.err; then
14630 ac_cpp_err=$ac_c_preproc_warn_flag
14631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14638 if test -z "$ac_cpp_err"; then
14639 ac_header_preproc=yes
14641 echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 ac_header_preproc=no
14647 rm -f conftest.err conftest.$ac_ext
14648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14649 echo "${ECHO_T}$ac_header_preproc" >&6; }
14651 # So? What about this header?
14652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14658 ac_header_preproc=yes
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14674 ## ------------------------------------ ##
14675 ## Report this to http://llvm.org/bugs/ ##
14676 ## ------------------------------------ ##
14678 ) | sed "s/^/$as_me: WARNING: /" >&2
14681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 eval "$as_ac_Header=\$ac_header_preproc"
14688 ac_res=`eval echo '${'$as_ac_Header'}'`
14689 { echo "$as_me:$LINENO: result: $ac_res" >&5
14690 echo "${ECHO_T}$ac_res" >&6; }
14693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14694 cat >>confdefs.h <<_ACEOF
14695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14708 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 ac_res=`eval echo '${'$as_ac_Header'}'`
14718 { echo "$as_me:$LINENO: result: $ac_res" >&5
14719 echo "${ECHO_T}$ac_res" >&6; }
14721 # Is the header compilable?
14722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14724 cat >conftest.$ac_ext <<_ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 $ac_includes_default
14731 #include <$ac_header>
14733 rm -f conftest.$ac_objext
14734 if { (ac_try="$ac_compile"
14735 case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_compile") 2>conftest.er1
14742 grep -v '^ *+' conftest.er1 >conftest.err
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_try") 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_header_compiler=yes
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_header_compiler=no
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777 echo "${ECHO_T}$ac_header_compiler" >&6; }
14779 # Is the header present?
14780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #include <$ac_header>
14790 if { (ac_try="$ac_cpp conftest.$ac_ext"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14798 grep -v '^ *+' conftest.er1 >conftest.err
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } >/dev/null; then
14803 if test -s conftest.err; then
14804 ac_cpp_err=$ac_c_preproc_warn_flag
14805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14812 if test -z "$ac_cpp_err"; then
14813 ac_header_preproc=yes
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_header_preproc=no
14821 rm -f conftest.err conftest.$ac_ext
14822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 echo "${ECHO_T}$ac_header_preproc" >&6; }
14825 # So? What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14848 ## ------------------------------------ ##
14849 ## Report this to http://llvm.org/bugs/ ##
14850 ## ------------------------------------ ##
14852 ) | sed "s/^/$as_me: WARNING: /" >&2
14855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 eval "$as_ac_Header=\$ac_header_preproc"
14862 ac_res=`eval echo '${'$as_ac_Header'}'`
14863 { echo "$as_me:$LINENO: result: $ac_res" >&5
14864 echo "${ECHO_T}$ac_res" >&6; }
14867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14868 cat >>confdefs.h <<_ACEOF
14869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14878 for ac_header in utime.h windows.h
14880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 ac_res=`eval echo '${'$as_ac_Header'}'`
14888 { echo "$as_me:$LINENO: result: $ac_res" >&5
14889 echo "${ECHO_T}$ac_res" >&6; }
14891 # Is the header compilable?
14892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14894 cat >conftest.$ac_ext <<_ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14900 $ac_includes_default
14901 #include <$ac_header>
14903 rm -f conftest.$ac_objext
14904 if { (ac_try="$ac_compile"
14905 case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_compile") 2>conftest.er1
14912 grep -v '^ *+' conftest.er1 >conftest.err
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
14917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14918 { (case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_try") 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try='test -s conftest.$ac_objext'
14928 { (case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_try") 2>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14937 ac_header_compiler=yes
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_header_compiler=no
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947 echo "${ECHO_T}$ac_header_compiler" >&6; }
14949 # Is the header present?
14950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include <$ac_header>
14960 if { (ac_try="$ac_cpp conftest.$ac_ext"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14968 grep -v '^ *+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } >/dev/null; then
14973 if test -s conftest.err; then
14974 ac_cpp_err=$ac_c_preproc_warn_flag
14975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14982 if test -z "$ac_cpp_err"; then
14983 ac_header_preproc=yes
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 ac_header_preproc=no
14991 rm -f conftest.err conftest.$ac_ext
14992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14993 echo "${ECHO_T}$ac_header_preproc" >&6; }
14995 # So? What about this header?
14996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15002 ac_header_preproc=yes
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15018 ## ------------------------------------ ##
15019 ## Report this to http://llvm.org/bugs/ ##
15020 ## ------------------------------------ ##
15022 ) | sed "s/^/$as_me: WARNING: /" >&2
15025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 eval "$as_ac_Header=\$ac_header_preproc"
15032 ac_res=`eval echo '${'$as_ac_Header'}'`
15033 { echo "$as_me:$LINENO: result: $ac_res" >&5
15034 echo "${ECHO_T}$ac_res" >&6; }
15037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15051 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 ac_res=`eval echo '${'$as_ac_Header'}'`
15061 { echo "$as_me:$LINENO: result: $ac_res" >&5
15062 echo "${ECHO_T}$ac_res" >&6; }
15064 # Is the header compilable?
15065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 $ac_includes_default
15074 #include <$ac_header>
15076 rm -f conftest.$ac_objext
15077 if { (ac_try="$ac_compile"
15078 case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_compile") 2>conftest.er1
15085 grep -v '^ *+' conftest.er1 >conftest.err
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try='test -s conftest.$ac_objext'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_header_compiler=yes
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 ac_header_compiler=no
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15120 echo "${ECHO_T}$ac_header_compiler" >&6; }
15122 # Is the header present?
15123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15125 cat >conftest.$ac_ext <<_ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131 #include <$ac_header>
15133 if { (ac_try="$ac_cpp conftest.$ac_ext"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } >/dev/null; then
15146 if test -s conftest.err; then
15147 ac_cpp_err=$ac_c_preproc_warn_flag
15148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15155 if test -z "$ac_cpp_err"; then
15156 ac_header_preproc=yes
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_header_preproc=no
15164 rm -f conftest.err conftest.$ac_ext
15165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15166 echo "${ECHO_T}$ac_header_preproc" >&6; }
15168 # So? What about this header?
15169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15175 ac_header_preproc=yes
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15191 ## ------------------------------------ ##
15192 ## Report this to http://llvm.org/bugs/ ##
15193 ## ------------------------------------ ##
15195 ) | sed "s/^/$as_me: WARNING: /" >&2
15198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 eval "$as_ac_Header=\$ac_header_preproc"
15205 ac_res=`eval echo '${'$as_ac_Header'}'`
15206 { echo "$as_me:$LINENO: result: $ac_res" >&5
15207 echo "${ECHO_T}$ac_res" >&6; }
15210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15211 cat >>confdefs.h <<_ACEOF
15212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15223 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 ac_res=`eval echo '${'$as_ac_Header'}'`
15233 { echo "$as_me:$LINENO: result: $ac_res" >&5
15234 echo "${ECHO_T}$ac_res" >&6; }
15236 # Is the header compilable?
15237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15239 cat >conftest.$ac_ext <<_ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15245 $ac_includes_default
15246 #include <$ac_header>
15248 rm -f conftest.$ac_objext
15249 if { (ac_try="$ac_compile"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_compile") 2>conftest.er1
15257 grep -v '^ *+' conftest.er1 >conftest.err
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263 { (case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_try") 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest.$ac_objext'
15273 { (case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_try") 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_header_compiler=yes
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 ac_header_compiler=no
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15292 echo "${ECHO_T}$ac_header_compiler" >&6; }
15294 # Is the header present?
15295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15297 cat >conftest.$ac_ext <<_ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15303 #include <$ac_header>
15305 if { (ac_try="$ac_cpp conftest.$ac_ext"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15313 grep -v '^ *+' conftest.er1 >conftest.err
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } >/dev/null; then
15318 if test -s conftest.err; then
15319 ac_cpp_err=$ac_c_preproc_warn_flag
15320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15327 if test -z "$ac_cpp_err"; then
15328 ac_header_preproc=yes
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 ac_header_preproc=no
15336 rm -f conftest.err conftest.$ac_ext
15337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15338 echo "${ECHO_T}$ac_header_preproc" >&6; }
15340 # So? What about this header?
15341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15347 ac_header_preproc=yes
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15363 ## ------------------------------------ ##
15364 ## Report this to http://llvm.org/bugs/ ##
15365 ## ------------------------------------ ##
15367 ) | sed "s/^/$as_me: WARNING: /" >&2
15370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 eval "$as_ac_Header=\$ac_header_preproc"
15377 ac_res=`eval echo '${'$as_ac_Header'}'`
15378 { echo "$as_me:$LINENO: result: $ac_res" >&5
15379 echo "${ECHO_T}$ac_res" >&6; }
15382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15383 cat >>confdefs.h <<_ACEOF
15384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15392 for ac_header in valgrind/valgrind.h
15394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 ac_res=`eval echo '${'$as_ac_Header'}'`
15402 { echo "$as_me:$LINENO: result: $ac_res" >&5
15403 echo "${ECHO_T}$ac_res" >&6; }
15405 # Is the header compilable?
15406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15408 cat >conftest.$ac_ext <<_ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 $ac_includes_default
15415 #include <$ac_header>
15417 rm -f conftest.$ac_objext
15418 if { (ac_try="$ac_compile"
15419 case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_compile") 2>conftest.er1
15426 grep -v '^ *+' conftest.er1 >conftest.err
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15432 { (case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_try") 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest.$ac_objext'
15442 { (case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_try") 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451 ac_header_compiler=yes
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 ac_header_compiler=no
15459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15461 echo "${ECHO_T}$ac_header_compiler" >&6; }
15463 # Is the header present?
15464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15466 cat >conftest.$ac_ext <<_ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15472 #include <$ac_header>
15474 if { (ac_try="$ac_cpp conftest.$ac_ext"
15475 case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15482 grep -v '^ *+' conftest.er1 >conftest.err
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } >/dev/null; then
15487 if test -s conftest.err; then
15488 ac_cpp_err=$ac_c_preproc_warn_flag
15489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15496 if test -z "$ac_cpp_err"; then
15497 ac_header_preproc=yes
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 ac_header_preproc=no
15505 rm -f conftest.err conftest.$ac_ext
15506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15507 echo "${ECHO_T}$ac_header_preproc" >&6; }
15509 # So? What about this header?
15510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15516 ac_header_preproc=yes
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15532 ## ------------------------------------ ##
15533 ## Report this to http://llvm.org/bugs/ ##
15534 ## ------------------------------------ ##
15536 ) | sed "s/^/$as_me: WARNING: /" >&2
15539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15544 eval "$as_ac_Header=\$ac_header_preproc"
15546 ac_res=`eval echo '${'$as_ac_Header'}'`
15547 { echo "$as_me:$LINENO: result: $ac_res" >&5
15548 echo "${ECHO_T}$ac_res" >&6; }
15551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15552 cat >>confdefs.h <<_ACEOF
15553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15561 for ac_header in fenv.h
15563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 ac_res=`eval echo '${'$as_ac_Header'}'`
15571 { echo "$as_me:$LINENO: result: $ac_res" >&5
15572 echo "${ECHO_T}$ac_res" >&6; }
15574 # Is the header compilable?
15575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15584 #include <$ac_header>
15586 rm -f conftest.$ac_objext
15587 if { (ac_try="$ac_compile"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_compile") 2>conftest.er1
15595 grep -v '^ *+' conftest.er1 >conftest.err
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
15600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15601 { (case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_try") 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_try") 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 ac_header_compiler=yes
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15625 ac_header_compiler=no
15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630 echo "${ECHO_T}$ac_header_compiler" >&6; }
15632 # Is the header present?
15633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15635 cat >conftest.$ac_ext <<_ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h. */
15641 #include <$ac_header>
15643 if { (ac_try="$ac_cpp conftest.$ac_ext"
15644 case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } >/dev/null; then
15656 if test -s conftest.err; then
15657 ac_cpp_err=$ac_c_preproc_warn_flag
15658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15665 if test -z "$ac_cpp_err"; then
15666 ac_header_preproc=yes
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 ac_header_preproc=no
15674 rm -f conftest.err conftest.$ac_ext
15675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676 echo "${ECHO_T}$ac_header_preproc" >&6; }
15678 # So? What about this header?
15679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685 ac_header_preproc=yes
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15701 ## ------------------------------------ ##
15702 ## Report this to http://llvm.org/bugs/ ##
15703 ## ------------------------------------ ##
15705 ) | sed "s/^/$as_me: WARNING: /" >&2
15708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 eval "$as_ac_Header=\$ac_header_preproc"
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15721 cat >>confdefs.h <<_ACEOF
15722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15729 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15731 for ac_header in pthread.h
15733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 ac_res=`eval echo '${'$as_ac_Header'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742 echo "${ECHO_T}$ac_res" >&6; }
15744 # Is the header compilable?
15745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747 cat >conftest.$ac_ext <<_ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 $ac_includes_default
15754 #include <$ac_header>
15756 rm -f conftest.$ac_objext
15757 if { (ac_try="$ac_compile"
15758 case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_compile") 2>conftest.er1
15765 grep -v '^ *+' conftest.er1 >conftest.err
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771 { (case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_try") 2>&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest.$ac_objext'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_header_compiler=yes
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 ac_header_compiler=no
15798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800 echo "${ECHO_T}$ac_header_compiler" >&6; }
15802 # Is the header present?
15803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 #include <$ac_header>
15813 if { (ac_try="$ac_cpp conftest.$ac_ext"
15814 case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15821 grep -v '^ *+' conftest.er1 >conftest.err
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } >/dev/null; then
15826 if test -s conftest.err; then
15827 ac_cpp_err=$ac_c_preproc_warn_flag
15828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15835 if test -z "$ac_cpp_err"; then
15836 ac_header_preproc=yes
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_header_preproc=no
15844 rm -f conftest.err conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846 echo "${ECHO_T}$ac_header_preproc" >&6; }
15848 # So? What about this header?
15849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855 ac_header_preproc=yes
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15871 ## ------------------------------------ ##
15872 ## Report this to http://llvm.org/bugs/ ##
15873 ## ------------------------------------ ##
15875 ) | sed "s/^/$as_me: WARNING: /" >&2
15878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 eval "$as_ac_Header=\$ac_header_preproc"
15885 ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result: $ac_res" >&5
15887 echo "${ECHO_T}$ac_res" >&6; }
15890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891 cat >>confdefs.h <<_ACEOF
15892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15908 if test "$llvm_cv_enable_libffi" = "yes" ; then
15911 for ac_header in ffi.h ffi/ffi.h
15913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 ac_res=`eval echo '${'$as_ac_Header'}'`
15921 { echo "$as_me:$LINENO: result: $ac_res" >&5
15922 echo "${ECHO_T}$ac_res" >&6; }
15924 # Is the header compilable?
15925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 $ac_includes_default
15934 #include <$ac_header>
15936 rm -f conftest.$ac_objext
15937 if { (ac_try="$ac_compile"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_compile") 2>conftest.er1
15945 grep -v '^ *+' conftest.er1 >conftest.err
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15951 { (case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_try") 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
15961 { (case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_try") 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15970 ac_header_compiler=yes
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 ac_header_compiler=no
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15980 echo "${ECHO_T}$ac_header_compiler" >&6; }
15982 # Is the header present?
15983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15985 cat >conftest.$ac_ext <<_ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 #include <$ac_header>
15993 if { (ac_try="$ac_cpp conftest.$ac_ext"
15994 case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16001 grep -v '^ *+' conftest.er1 >conftest.err
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } >/dev/null; then
16006 if test -s conftest.err; then
16007 ac_cpp_err=$ac_c_preproc_warn_flag
16008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16015 if test -z "$ac_cpp_err"; then
16016 ac_header_preproc=yes
16018 echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16021 ac_header_preproc=no
16024 rm -f conftest.err conftest.$ac_ext
16025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16026 echo "${ECHO_T}$ac_header_preproc" >&6; }
16028 # So? What about this header?
16029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16035 ac_header_preproc=yes
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16051 ## ------------------------------------ ##
16052 ## Report this to http://llvm.org/bugs/ ##
16053 ## ------------------------------------ ##
16055 ) | sed "s/^/$as_me: WARNING: /" >&2
16058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 eval "$as_ac_Header=\$ac_header_preproc"
16065 ac_res=`eval echo '${'$as_ac_Header'}'`
16066 { echo "$as_me:$LINENO: result: $ac_res" >&5
16067 echo "${ECHO_T}$ac_res" >&6; }
16070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16082 for ac_header in CrashReporterClient.h
16084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 ac_res=`eval echo '${'$as_ac_Header'}'`
16092 { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16095 # Is the header compilable?
16096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16098 cat >conftest.$ac_ext <<_ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 $ac_includes_default
16105 #include <$ac_header>
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16116 grep -v '^ *+' conftest.er1 >conftest.err
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_header_compiler=yes
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_header_compiler=no
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151 echo "${ECHO_T}$ac_header_compiler" >&6; }
16153 # Is the header present?
16154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 #include <$ac_header>
16164 if { (ac_try="$ac_cpp conftest.$ac_ext"
16165 case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16172 grep -v '^ *+' conftest.er1 >conftest.err
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } >/dev/null; then
16177 if test -s conftest.err; then
16178 ac_cpp_err=$ac_c_preproc_warn_flag
16179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16186 if test -z "$ac_cpp_err"; then
16187 ac_header_preproc=yes
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 ac_header_preproc=no
16195 rm -f conftest.err conftest.$ac_ext
16196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197 echo "${ECHO_T}$ac_header_preproc" >&6; }
16199 # So? What about this header?
16200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16206 ac_header_preproc=yes
16209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16222 ## ------------------------------------ ##
16223 ## Report this to http://llvm.org/bugs/ ##
16224 ## ------------------------------------ ##
16226 ) | sed "s/^/$as_me: WARNING: /" >&2
16229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16234 eval "$as_ac_Header=\$ac_header_preproc"
16236 ac_res=`eval echo '${'$as_ac_Header'}'`
16237 { echo "$as_me:$LINENO: result: $ac_res" >&5
16238 echo "${ECHO_T}$ac_res" >&6; }
16241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16242 cat >>confdefs.h <<_ACEOF
16243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16251 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16252 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 extern const char *__crashreporter_info__;
16261 __crashreporter_info__ = "test";
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (ac_try="$ac_link"
16268 case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_link") 2>conftest.er1
16275 grep -v '^ *+' conftest.er1 >conftest.err
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
16280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; } &&
16290 { ac_try='test -s conftest$ac_exeext'
16291 { (case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296 (eval "$ac_try") 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 { echo "$as_me:$LINENO: result: yes" >&5
16301 echo "${ECHO_T}yes" >&6; }
16303 cat >>confdefs.h <<\_ACEOF
16304 #define HAVE_CRASHREPORTER_INFO 1
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 { echo "$as_me:$LINENO: result: no" >&5
16312 echo "${ECHO_T}no" >&6; }
16314 cat >>confdefs.h <<\_ACEOF
16315 #define HAVE_CRASHREPORTER_INFO 0
16320 rm -f core conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
16326 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16327 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16328 if test "${ac_cv_huge_val_sanity+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 ac_cpp='$CXXCPP $CPPFLAGS'
16334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16338 ac_save_CXXFLAGS=$CXXFLAGS
16339 CXXFLAGS="$CXXFLAGS -pedantic"
16340 if test "$cross_compiling" = yes; then
16341 ac_cv_huge_val_sanity=yes
16343 cat >conftest.$ac_ext <<_ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16353 double x = HUGE_VAL; return x != x;
16358 rm -f conftest$ac_exeext
16359 if { (ac_try="$ac_link"
16360 case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_link") 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16369 { (case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_try") 2>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_cv_huge_val_sanity=yes
16380 echo "$as_me: program exited with status $ac_status" >&5
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 ( exit $ac_status )
16385 ac_cv_huge_val_sanity=no
16387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16391 CXXFLAGS=$ac_save_CXXFLAGS
16393 ac_cpp='$CPP $CPPFLAGS'
16394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16400 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16401 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16402 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16405 { echo "$as_me:$LINENO: checking for pid_t" >&5
16406 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16407 if test "${ac_cv_type_pid_t+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 cat >conftest.$ac_ext <<_ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416 $ac_includes_default
16417 typedef pid_t ac__type_new_;
16421 if ((ac__type_new_ *) 0)
16423 if (sizeof (ac__type_new_))
16429 rm -f conftest.$ac_objext
16430 if { (ac_try="$ac_compile"
16431 case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436 (eval "$ac_compile") 2>conftest.er1
16438 grep -v '^ *+' conftest.er1 >conftest.err
16440 cat conftest.err >&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } &&
16443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16444 { (case "(($ac_try" in
16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446 *) ac_try_echo=$ac_try;;
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449 (eval "$ac_try") 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try='test -s conftest.$ac_objext'
16454 { (case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_try") 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463 ac_cv_type_pid_t=yes
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 ac_cv_type_pid_t=no
16471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16473 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16474 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16475 if test $ac_cv_type_pid_t = yes; then
16479 cat >>confdefs.h <<_ACEOF
16485 { echo "$as_me:$LINENO: checking for size_t" >&5
16486 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16487 if test "${ac_cv_type_size_t+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 cat >conftest.$ac_ext <<_ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16496 $ac_includes_default
16497 typedef size_t ac__type_new_;
16501 if ((ac__type_new_ *) 0)
16503 if (sizeof (ac__type_new_))
16509 rm -f conftest.$ac_objext
16510 if { (ac_try="$ac_compile"
16511 case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_compile") 2>conftest.er1
16518 grep -v '^ *+' conftest.er1 >conftest.err
16520 cat conftest.err >&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } &&
16523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16524 { (case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_try") 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest.$ac_objext'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_cv_type_size_t=yes
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 ac_cv_type_size_t=no
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16554 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16555 if test $ac_cv_type_size_t = yes; then
16559 cat >>confdefs.h <<_ACEOF
16560 #define size_t unsigned int
16566 cat >>confdefs.h <<_ACEOF
16567 #define RETSIGTYPE void
16570 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16571 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16572 if test "${ac_cv_struct_tm+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 #include <sys/types.h>
16587 struct tm *tp; tp->tm_sec;
16592 rm -f conftest.$ac_objext
16593 if { (ac_try="$ac_compile"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_compile") 2>conftest.er1
16601 grep -v '^ *+' conftest.er1 >conftest.err
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } &&
16616 { ac_try='test -s conftest.$ac_objext'
16617 { (case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_try") 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_struct_tm=time.h
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 ac_cv_struct_tm=sys/time.h
16634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16636 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16637 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16638 if test $ac_cv_struct_tm = sys/time.h; then
16640 cat >>confdefs.h <<\_ACEOF
16641 #define TM_IN_SYS_TIME 1
16646 { echo "$as_me:$LINENO: checking for int64_t" >&5
16647 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16648 if test "${ac_cv_type_int64_t+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 cat >conftest.$ac_ext <<_ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 $ac_includes_default
16658 typedef int64_t ac__type_new_;
16662 if ((ac__type_new_ *) 0)
16664 if (sizeof (ac__type_new_))
16670 rm -f conftest.$ac_objext
16671 if { (ac_try="$ac_compile"
16672 case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_compile") 2>conftest.er1
16679 grep -v '^ *+' conftest.er1 >conftest.err
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16685 { (case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_try") 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try='test -s conftest.$ac_objext'
16695 { (case "(($ac_try" in
16696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697 *) ac_try_echo=$ac_try;;
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700 (eval "$ac_try") 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
16704 ac_cv_type_int64_t=yes
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16709 ac_cv_type_int64_t=no
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16714 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16715 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16716 if test $ac_cv_type_int64_t = yes; then
16718 cat >>confdefs.h <<_ACEOF
16719 #define HAVE_INT64_T 1
16724 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16725 echo "$as_me: error: Type int64_t required but not found" >&2;}
16726 { (exit 1); exit 1; }; }
16729 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16730 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16731 if test "${ac_cv_type_uint64_t+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 cat >conftest.$ac_ext <<_ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 $ac_includes_default
16741 typedef uint64_t ac__type_new_;
16745 if ((ac__type_new_ *) 0)
16747 if (sizeof (ac__type_new_))
16753 rm -f conftest.$ac_objext
16754 if { (ac_try="$ac_compile"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_compile") 2>conftest.er1
16762 grep -v '^ *+' conftest.er1 >conftest.err
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
16778 { (case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_try") 2>&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 ac_cv_type_uint64_t=yes
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 ac_cv_type_uint64_t=no
16795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16797 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16798 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16799 if test $ac_cv_type_uint64_t = yes; then
16801 cat >>confdefs.h <<_ACEOF
16802 #define HAVE_UINT64_T 1
16807 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16808 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16809 if test "${ac_cv_type_u_int64_t+set}" = set; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 cat >conftest.$ac_ext <<_ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 $ac_includes_default
16819 typedef u_int64_t ac__type_new_;
16823 if ((ac__type_new_ *) 0)
16825 if (sizeof (ac__type_new_))
16831 rm -f conftest.$ac_objext
16832 if { (ac_try="$ac_compile"
16833 case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_compile") 2>conftest.er1
16840 grep -v '^ *+' conftest.er1 >conftest.err
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
16845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16846 { (case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_try") 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest.$ac_objext'
16856 { (case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_try") 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_type_u_int64_t=yes
16867 echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16870 ac_cv_type_u_int64_t=no
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16876 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16877 if test $ac_cv_type_u_int64_t = yes; then
16879 cat >>confdefs.h <<_ACEOF
16880 #define HAVE_U_INT64_T 1
16885 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16886 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16887 { (exit 1); exit 1; }; }
16901 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 cat >conftest.$ac_ext <<_ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16917 #define $ac_func innocuous_$ac_func
16919 /* System header to define __stub macros and hopefully few prototypes,
16920 which can conflict with char $ac_func (); below.
16921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16922 <limits.h> exists even on freestanding compilers. */
16925 # include <limits.h>
16927 # include <assert.h>
16932 /* Override any GCC internal prototype to avoid an error.
16933 Use char because int might match the return type of a GCC
16934 builtin and then its argument prototype would still apply. */
16939 /* The GNU C library defines this for functions which it implements
16940 to always fail with ENOSYS. Some functions are actually named
16941 something starting with __ and the normal name is an alias. */
16942 #if defined __stub_$ac_func || defined __stub___$ac_func
16949 return $ac_func ();
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (ac_try="$ac_link"
16956 case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_link") 2>conftest.er1
16963 grep -v '^ *+' conftest.er1 >conftest.err
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } &&
16968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16969 { (case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_try") 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try='test -s conftest$ac_exeext'
16979 { (case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_try") 2>&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; }; then
16988 eval "$as_ac_var=yes"
16990 echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16993 eval "$as_ac_var=no"
16996 rm -f core conftest.err conftest.$ac_objext \
16997 conftest$ac_exeext conftest.$ac_ext
16999 ac_res=`eval echo '${'$as_ac_var'}'`
17000 { echo "$as_me:$LINENO: result: $ac_res" >&5
17001 echo "${ECHO_T}$ac_res" >&6; }
17002 if test `eval echo '${'$as_ac_var'}'` = yes; then
17003 cat >>confdefs.h <<_ACEOF
17004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17014 for ac_func in powf fmodf strtof round
17016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17030 #define $ac_func innocuous_$ac_func
17032 /* System header to define __stub macros and hopefully few prototypes,
17033 which can conflict with char $ac_func (); below.
17034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035 <limits.h> exists even on freestanding compilers. */
17038 # include <limits.h>
17040 # include <assert.h>
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17052 /* The GNU C library defines this for functions which it implements
17053 to always fail with ENOSYS. Some functions are actually named
17054 something starting with __ and the normal name is an alias. */
17055 #if defined __stub_$ac_func || defined __stub___$ac_func
17062 return $ac_func ();
17067 rm -f conftest.$ac_objext conftest$ac_exeext
17068 if { (ac_try="$ac_link"
17069 case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_link") 2>conftest.er1
17076 grep -v '^ *+' conftest.er1 >conftest.err
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17082 { (case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_try") 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest$ac_exeext'
17092 { (case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_try") 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 eval "$as_ac_var=yes"
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17106 eval "$as_ac_var=no"
17109 rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17112 ac_res=`eval echo '${'$as_ac_var'}'`
17113 { echo "$as_me:$LINENO: result: $ac_res" >&5
17114 echo "${ECHO_T}$ac_res" >&6; }
17115 if test `eval echo '${'$as_ac_var'}'` = yes; then
17116 cat >>confdefs.h <<_ACEOF
17117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17128 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17144 #define $ac_func innocuous_$ac_func
17146 /* System header to define __stub macros and hopefully few prototypes,
17147 which can conflict with char $ac_func (); below.
17148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17149 <limits.h> exists even on freestanding compilers. */
17152 # include <limits.h>
17154 # include <assert.h>
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17166 /* The GNU C library defines this for functions which it implements
17167 to always fail with ENOSYS. Some functions are actually named
17168 something starting with __ and the normal name is an alias. */
17169 #if defined __stub_$ac_func || defined __stub___$ac_func
17176 return $ac_func ();
17181 rm -f conftest.$ac_objext conftest$ac_exeext
17182 if { (ac_try="$ac_link"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_link") 2>conftest.er1
17190 grep -v '^ *+' conftest.er1 >conftest.err
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196 { (case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_try") 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 eval "$as_ac_var=yes"
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 eval "$as_ac_var=no"
17223 rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17226 ac_res=`eval echo '${'$as_ac_var'}'`
17227 { echo "$as_me:$LINENO: result: $ac_res" >&5
17228 echo "${ECHO_T}$ac_res" >&6; }
17229 if test `eval echo '${'$as_ac_var'}'` = yes; then
17230 cat >>confdefs.h <<_ACEOF
17231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17240 for ac_func in isatty mkdtemp mkstemp
17242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 cat >conftest.$ac_ext <<_ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17256 #define $ac_func innocuous_$ac_func
17258 /* System header to define __stub macros and hopefully few prototypes,
17259 which can conflict with char $ac_func (); below.
17260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261 <limits.h> exists even on freestanding compilers. */
17264 # include <limits.h>
17266 # include <assert.h>
17271 /* Override any GCC internal prototype to avoid an error.
17272 Use char because int might match the return type of a GCC
17273 builtin and then its argument prototype would still apply. */
17278 /* The GNU C library defines this for functions which it implements
17279 to always fail with ENOSYS. Some functions are actually named
17280 something starting with __ and the normal name is an alias. */
17281 #if defined __stub_$ac_func || defined __stub___$ac_func
17288 return $ac_func ();
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try='test -s conftest$ac_exeext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 eval "$as_ac_var=yes"
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 eval "$as_ac_var=no"
17335 rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17338 ac_res=`eval echo '${'$as_ac_var'}'`
17339 { echo "$as_me:$LINENO: result: $ac_res" >&5
17340 echo "${ECHO_T}$ac_res" >&6; }
17341 if test `eval echo '${'$as_ac_var'}'` = yes; then
17342 cat >>confdefs.h <<_ACEOF
17343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17356 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 cat >conftest.$ac_ext <<_ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17372 #define $ac_func innocuous_$ac_func
17374 /* System header to define __stub macros and hopefully few prototypes,
17375 which can conflict with char $ac_func (); below.
17376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17377 <limits.h> exists even on freestanding compilers. */
17380 # include <limits.h>
17382 # include <assert.h>
17387 /* Override any GCC internal prototype to avoid an error.
17388 Use char because int might match the return type of a GCC
17389 builtin and then its argument prototype would still apply. */
17394 /* The GNU C library defines this for functions which it implements
17395 to always fail with ENOSYS. Some functions are actually named
17396 something starting with __ and the normal name is an alias. */
17397 #if defined __stub_$ac_func || defined __stub___$ac_func
17404 return $ac_func ();
17409 rm -f conftest.$ac_objext conftest$ac_exeext
17410 if { (ac_try="$ac_link"
17411 case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_link") 2>conftest.er1
17418 grep -v '^ *+' conftest.er1 >conftest.err
17420 cat conftest.err >&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17424 { (case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_try") 2>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } &&
17433 { ac_try='test -s conftest$ac_exeext'
17434 { (case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_try") 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 eval "$as_ac_var=yes"
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 eval "$as_ac_var=no"
17451 rm -f core conftest.err conftest.$ac_objext \
17452 conftest$ac_exeext conftest.$ac_ext
17454 ac_res=`eval echo '${'$as_ac_var'}'`
17455 { echo "$as_me:$LINENO: result: $ac_res" >&5
17456 echo "${ECHO_T}$ac_res" >&6; }
17457 if test `eval echo '${'$as_ac_var'}'` = yes; then
17458 cat >>confdefs.h <<_ACEOF
17459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17469 for ac_func in strerror strerror_r setenv arc4random
17471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17485 #define $ac_func innocuous_$ac_func
17487 /* System header to define __stub macros and hopefully few prototypes,
17488 which can conflict with char $ac_func (); below.
17489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490 <limits.h> exists even on freestanding compilers. */
17493 # include <limits.h>
17495 # include <assert.h>
17500 /* Override any GCC internal prototype to avoid an error.
17501 Use char because int might match the return type of a GCC
17502 builtin and then its argument prototype would still apply. */
17507 /* The GNU C library defines this for functions which it implements
17508 to always fail with ENOSYS. Some functions are actually named
17509 something starting with __ and the normal name is an alias. */
17510 #if defined __stub_$ac_func || defined __stub___$ac_func
17517 return $ac_func ();
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537 { (case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_try") 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest$ac_exeext'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 eval "$as_ac_var=yes"
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 eval "$as_ac_var=no"
17564 rm -f core conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17567 ac_res=`eval echo '${'$as_ac_var'}'`
17568 { echo "$as_me:$LINENO: result: $ac_res" >&5
17569 echo "${ECHO_T}$ac_res" >&6; }
17570 if test `eval echo '${'$as_ac_var'}'` = yes; then
17571 cat >>confdefs.h <<_ACEOF
17572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17582 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 cat >conftest.$ac_ext <<_ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17598 #define $ac_func innocuous_$ac_func
17600 /* System header to define __stub macros and hopefully few prototypes,
17601 which can conflict with char $ac_func (); below.
17602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17603 <limits.h> exists even on freestanding compilers. */
17606 # include <limits.h>
17608 # include <assert.h>
17613 /* Override any GCC internal prototype to avoid an error.
17614 Use char because int might match the return type of a GCC
17615 builtin and then its argument prototype would still apply. */
17620 /* The GNU C library defines this for functions which it implements
17621 to always fail with ENOSYS. Some functions are actually named
17622 something starting with __ and the normal name is an alias. */
17623 #if defined __stub_$ac_func || defined __stub___$ac_func
17630 return $ac_func ();
17635 rm -f conftest.$ac_objext conftest$ac_exeext
17636 if { (ac_try="$ac_link"
17637 case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_link") 2>conftest.er1
17644 grep -v '^ *+' conftest.er1 >conftest.err
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17650 { (case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_try") 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest$ac_exeext'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 eval "$as_ac_var=yes"
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17674 eval "$as_ac_var=no"
17677 rm -f core conftest.err conftest.$ac_objext \
17678 conftest$ac_exeext conftest.$ac_ext
17680 ac_res=`eval echo '${'$as_ac_var'}'`
17681 { echo "$as_me:$LINENO: result: $ac_res" >&5
17682 echo "${ECHO_T}$ac_res" >&6; }
17683 if test `eval echo '${'$as_ac_var'}'` = yes; then
17684 cat >>confdefs.h <<_ACEOF
17685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17696 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17699 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 cat >conftest.$ac_ext <<_ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17712 #define $ac_func innocuous_$ac_func
17714 /* System header to define __stub macros and hopefully few prototypes,
17715 which can conflict with char $ac_func (); below.
17716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17717 <limits.h> exists even on freestanding compilers. */
17720 # include <limits.h>
17722 # include <assert.h>
17727 /* Override any GCC internal prototype to avoid an error.
17728 Use char because int might match the return type of a GCC
17729 builtin and then its argument prototype would still apply. */
17734 /* The GNU C library defines this for functions which it implements
17735 to always fail with ENOSYS. Some functions are actually named
17736 something starting with __ and the normal name is an alias. */
17737 #if defined __stub_$ac_func || defined __stub___$ac_func
17744 return $ac_func ();
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (ac_try="$ac_link"
17751 case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_link") 2>conftest.er1
17758 grep -v '^ *+' conftest.er1 >conftest.err
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764 { (case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_try") 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; } &&
17773 { ac_try='test -s conftest$ac_exeext'
17774 { (case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_try") 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 eval "$as_ac_var=yes"
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 eval "$as_ac_var=no"
17791 rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17794 ac_res=`eval echo '${'$as_ac_var'}'`
17795 { echo "$as_me:$LINENO: result: $ac_res" >&5
17796 echo "${ECHO_T}$ac_res" >&6; }
17797 if test `eval echo '${'$as_ac_var'}'` = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17805 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17806 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17807 if test "${llvm_cv_c_printf_a+set}" = set; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 ac_cpp='$CPP $CPPFLAGS'
17812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17816 if test "$cross_compiling" = yes; then
17817 llvmac_cv_c_printf_a=no
17819 cat >conftest.$ac_ext <<_ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17828 #include <stdlib.h>
17834 volatile double A, B;
17838 sprintf(Buffer, "%a", A);
17842 if (A != 0x1.999999999999ap-4)
17849 rm -f conftest$ac_exeext
17850 if { (ac_try="$ac_link"
17851 case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_link") 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17860 { (case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_try") 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 llvm_cv_c_printf_a=yes
17871 echo "$as_me: program exited with status $ac_status" >&5
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17875 ( exit $ac_status )
17876 llvmac_cv_c_printf_a=no
17878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17883 ac_cpp='$CPP $CPPFLAGS'
17884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17889 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17890 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17891 if test "$llvm_cv_c_printf_a" = "yes"; then
17893 cat >>confdefs.h <<\_ACEOF
17894 #define HAVE_PRINTF_A 1
17900 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17901 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17902 if test "${ac_cv_func_rand48+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17906 ac_cpp='$CXXCPP $CPPFLAGS'
17907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17911 cat >conftest.$ac_ext <<_ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17917 #include <stdlib.h>
17921 srand48(0);lrand48();drand48();
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_compile") 2>conftest.er1
17935 grep -v '^ *+' conftest.er1 >conftest.err
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest.$ac_objext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_func_rand48=yes
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17965 ac_cv_func_rand48=no
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17970 ac_cpp='$CPP $CPPFLAGS'
17971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17976 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17977 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17979 if test "$ac_cv_func_rand48" = "yes" ; then
17981 cat >>confdefs.h <<\_ACEOF
17982 #define HAVE_RAND48 1
17988 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17989 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17990 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 cat >conftest.$ac_ext <<_ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 $ac_includes_default
18004 char *p = (char *) strerror_s;
18012 rm -f conftest.$ac_objext
18013 if { (ac_try="$ac_compile"
18014 case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_compile") 2>conftest.er1
18021 grep -v '^ *+' conftest.er1 >conftest.err
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
18026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } &&
18036 { ac_try='test -s conftest.$ac_objext'
18037 { (case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_try") 2>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
18046 ac_cv_have_decl_strerror_s=yes
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18051 ac_cv_have_decl_strerror_s=no
18054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18057 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18058 if test $ac_cv_have_decl_strerror_s = yes; then
18060 cat >>confdefs.h <<_ACEOF
18061 #define HAVE_DECL_STRERROR_S 1
18066 cat >>confdefs.h <<_ACEOF
18067 #define HAVE_DECL_STRERROR_S 0
18075 if test "$llvm_cv_os_type" = "MingW" ; then
18076 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18077 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18078 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 ac_check_lib_save_LIBS=$LIBS
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18090 /* Override any GCC internal prototype to avoid an error.
18091 Use char because int might match the return type of a GCC
18092 builtin and then its argument prototype would still apply. */
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (ac_try="$ac_link"
18107 case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_link") 2>conftest.er1
18114 grep -v '^ *+' conftest.er1 >conftest.err
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120 { (case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_try") 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest$ac_exeext'
18130 { (case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_try") 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139 ac_cv_lib_gcc__alloca=yes
18141 echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18144 ac_cv_lib_gcc__alloca=no
18147 rm -f core conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
18149 LIBS=$ac_check_lib_save_LIBS
18151 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18152 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18153 if test $ac_cv_lib_gcc__alloca = yes; then
18155 cat >>confdefs.h <<\_ACEOF
18156 #define HAVE__ALLOCA 1
18161 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18162 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18163 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 ac_check_lib_save_LIBS=$LIBS
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18185 return __alloca ();
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
18199 grep -v '^ *+' conftest.er1 >conftest.err
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_try") 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_lib_gcc___alloca=yes
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 ac_cv_lib_gcc___alloca=no
18232 rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_check_lib_save_LIBS
18236 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18237 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18238 if test $ac_cv_lib_gcc___alloca = yes; then
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE___ALLOCA 1
18246 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18247 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18248 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 ac_check_lib_save_LIBS=$LIBS
18253 cat >conftest.$ac_ext <<_ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18260 /* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18270 return __chkstk ();
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
18284 grep -v '^ *+' conftest.er1 >conftest.err
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
18289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest$ac_exeext'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_cv_lib_gcc___chkstk=yes
18311 echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18314 ac_cv_lib_gcc___chkstk=no
18317 rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18319 LIBS=$ac_check_lib_save_LIBS
18321 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18322 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18323 if test $ac_cv_lib_gcc___chkstk = yes; then
18325 cat >>confdefs.h <<\_ACEOF
18326 #define HAVE___CHKSTK 1
18331 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18332 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18333 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 ac_check_lib_save_LIBS=$LIBS
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18345 /* Override any GCC internal prototype to avoid an error.
18346 Use char because int might match the return type of a GCC
18347 builtin and then its argument prototype would still apply. */
18355 return ___chkstk ();
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_link") 2>conftest.er1
18369 grep -v '^ *+' conftest.er1 >conftest.err
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_try") 2>&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
18394 ac_cv_lib_gcc____chkstk=yes
18396 echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18399 ac_cv_lib_gcc____chkstk=no
18402 rm -f core conftest.err conftest.$ac_objext \
18403 conftest$ac_exeext conftest.$ac_ext
18404 LIBS=$ac_check_lib_save_LIBS
18406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18407 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18408 if test $ac_cv_lib_gcc____chkstk = yes; then
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE____CHKSTK 1
18417 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18418 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18419 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18422 ac_check_lib_save_LIBS=$LIBS
18424 cat >conftest.$ac_ext <<_ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.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. */
18441 return __ashldi3 ();
18446 rm -f conftest.$ac_objext conftest$ac_exeext
18447 if { (ac_try="$ac_link"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_link") 2>conftest.er1
18455 grep -v '^ *+' conftest.er1 >conftest.err
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18461 { (case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_try") 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest$ac_exeext'
18471 { (case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_try") 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_lib_gcc___ashldi3=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_cv_lib_gcc___ashldi3=no
18488 rm -f core conftest.err conftest.$ac_objext \
18489 conftest$ac_exeext conftest.$ac_ext
18490 LIBS=$ac_check_lib_save_LIBS
18492 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18493 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18494 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18496 cat >>confdefs.h <<\_ACEOF
18497 #define HAVE___ASHLDI3 1
18502 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18503 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18504 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 ac_check_lib_save_LIBS=$LIBS
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18516 /* Override any GCC internal prototype to avoid an error.
18517 Use char because int might match the return type of a GCC
18518 builtin and then its argument prototype would still apply. */
18526 return __ashrdi3 ();
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_link") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1 >conftest.err
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_try") 2>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 ac_cv_lib_gcc___ashrdi3=yes
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_lib_gcc___ashrdi3=no
18573 rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18578 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18579 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18581 cat >>confdefs.h <<\_ACEOF
18582 #define HAVE___ASHRDI3 1
18587 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18588 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18589 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 ac_check_lib_save_LIBS=$LIBS
18594 cat >conftest.$ac_ext <<_ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18611 return __divdi3 ();
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_link") 2>conftest.er1
18625 grep -v '^ *+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631 { (case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_try") 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_try") 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_lib_gcc___divdi3=yes
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18655 ac_cv_lib_gcc___divdi3=no
18658 rm -f core conftest.err conftest.$ac_objext \
18659 conftest$ac_exeext conftest.$ac_ext
18660 LIBS=$ac_check_lib_save_LIBS
18662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18663 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18664 if test $ac_cv_lib_gcc___divdi3 = yes; then
18666 cat >>confdefs.h <<\_ACEOF
18667 #define HAVE___DIVDI3 1
18672 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18673 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18674 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18677 ac_check_lib_save_LIBS=$LIBS
18679 cat >conftest.$ac_ext <<_ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18686 /* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18696 return __fixdfdi ();
18701 rm -f conftest.$ac_objext conftest$ac_exeext
18702 if { (ac_try="$ac_link"
18703 case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_link") 2>conftest.er1
18710 grep -v '^ *+' conftest.er1 >conftest.err
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest$ac_exeext'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_lib_gcc___fixdfdi=yes
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_cv_lib_gcc___fixdfdi=no
18743 rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18745 LIBS=$ac_check_lib_save_LIBS
18747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18748 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18749 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18751 cat >>confdefs.h <<\_ACEOF
18752 #define HAVE___FIXDFDI 1
18757 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18758 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18759 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 ac_check_lib_save_LIBS=$LIBS
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18771 /* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18781 return __fixsfdi ();
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_cv_lib_gcc___fixsfdi=yes
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18825 ac_cv_lib_gcc___fixsfdi=no
18828 rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830 LIBS=$ac_check_lib_save_LIBS
18832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18833 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18834 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18836 cat >>confdefs.h <<\_ACEOF
18837 #define HAVE___FIXSFDI 1
18842 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18843 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18844 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 ac_check_lib_save_LIBS=$LIBS
18849 cat >conftest.$ac_ext <<_ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18856 /* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18862 char __floatdidf ();
18866 return __floatdidf ();
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18880 grep -v '^ *+' conftest.er1 >conftest.err
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest$ac_exeext'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_lib_gcc___floatdidf=yes
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_lib_gcc___floatdidf=no
18913 rm -f core conftest.err conftest.$ac_objext \
18914 conftest$ac_exeext conftest.$ac_ext
18915 LIBS=$ac_check_lib_save_LIBS
18917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18918 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18919 if test $ac_cv_lib_gcc___floatdidf = yes; then
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE___FLOATDIDF 1
18927 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18928 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18929 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18932 ac_check_lib_save_LIBS=$LIBS
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18941 /* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
18951 return __lshrdi3 ();
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (ac_try="$ac_link"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
18965 grep -v '^ *+' conftest.er1 >conftest.err
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest$ac_exeext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_lib_gcc___lshrdi3=yes
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_lib_gcc___lshrdi3=no
18998 rm -f core conftest.err conftest.$ac_objext \
18999 conftest$ac_exeext conftest.$ac_ext
19000 LIBS=$ac_check_lib_save_LIBS
19002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19003 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19004 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19006 cat >>confdefs.h <<\_ACEOF
19007 #define HAVE___LSHRDI3 1
19012 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19013 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19014 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 ac_check_lib_save_LIBS=$LIBS
19019 cat >conftest.$ac_ext <<_ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19026 /* Override any GCC internal prototype to avoid an error.
19027 Use char because int might match the return type of a GCC
19028 builtin and then its argument prototype would still apply. */
19036 return __moddi3 ();
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (ac_try="$ac_link"
19043 case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_link") 2>conftest.er1
19050 grep -v '^ *+' conftest.er1 >conftest.err
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056 { (case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_try") 2>&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest$ac_exeext'
19066 { (case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071 (eval "$ac_try") 2>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 ac_cv_lib_gcc___moddi3=yes
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 ac_cv_lib_gcc___moddi3=no
19083 rm -f core conftest.err conftest.$ac_objext \
19084 conftest$ac_exeext conftest.$ac_ext
19085 LIBS=$ac_check_lib_save_LIBS
19087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19088 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19089 if test $ac_cv_lib_gcc___moddi3 = yes; then
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE___MODDI3 1
19097 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19098 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19099 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 ac_check_lib_save_LIBS=$LIBS
19104 cat >conftest.$ac_ext <<_ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19111 /* Override any GCC internal prototype to avoid an error.
19112 Use char because int might match the return type of a GCC
19113 builtin and then its argument prototype would still apply. */
19121 return __udivdi3 ();
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (ac_try="$ac_link"
19128 case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_link") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest$ac_exeext'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_lib_gcc___udivdi3=yes
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19165 ac_cv_lib_gcc___udivdi3=no
19168 rm -f core conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19173 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19174 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE___UDIVDI3 1
19182 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19183 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19184 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 ac_check_lib_save_LIBS=$LIBS
19189 cat >conftest.$ac_ext <<_ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19196 /* Override any GCC internal prototype to avoid an error.
19197 Use char because int might match the return type of a GCC
19198 builtin and then its argument prototype would still apply. */
19206 return __umoddi3 ();
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (ac_try="$ac_link"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_link") 2>conftest.er1
19220 grep -v '^ *+' conftest.er1 >conftest.err
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19226 { (case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_try") 2>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; } &&
19235 { ac_try='test -s conftest$ac_exeext'
19236 { (case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_try") 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_lib_gcc___umoddi3=yes
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 ac_cv_lib_gcc___umoddi3=no
19253 rm -f core conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19255 LIBS=$ac_check_lib_save_LIBS
19257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19258 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19259 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE___UMODDI3 1
19268 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19269 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19270 if test "${ac_cv_lib_gcc___main+set}" = set; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 ac_check_lib_save_LIBS=$LIBS
19275 cat >conftest.$ac_ext <<_ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19282 /* Override any GCC internal prototype to avoid an error.
19283 Use char because int might match the return type of a GCC
19284 builtin and then its argument prototype would still apply. */
19297 rm -f conftest.$ac_objext conftest$ac_exeext
19298 if { (ac_try="$ac_link"
19299 case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304 (eval "$ac_link") 2>conftest.er1
19306 grep -v '^ *+' conftest.er1 >conftest.err
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19312 { (case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_try") 2>&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; } &&
19321 { ac_try='test -s conftest$ac_exeext'
19322 { (case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_try") 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_cv_lib_gcc___main=yes
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_cv_lib_gcc___main=no
19339 rm -f core conftest.err conftest.$ac_objext \
19340 conftest$ac_exeext conftest.$ac_ext
19341 LIBS=$ac_check_lib_save_LIBS
19343 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19344 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19345 if test $ac_cv_lib_gcc___main = yes; then
19347 cat >>confdefs.h <<\_ACEOF
19348 #define HAVE___MAIN 1
19353 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19354 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19355 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 ac_check_lib_save_LIBS=$LIBS
19360 cat >conftest.$ac_ext <<_ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19367 /* Override any GCC internal prototype to avoid an error.
19368 Use char because int might match the return type of a GCC
19369 builtin and then its argument prototype would still apply. */
19377 return __cmpdi2 ();
19382 rm -f conftest.$ac_objext conftest$ac_exeext
19383 if { (ac_try="$ac_link"
19384 case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_link") 2>conftest.er1
19391 grep -v '^ *+' conftest.er1 >conftest.err
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19397 { (case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_try") 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest$ac_exeext'
19407 { (case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_try") 2>&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 ac_cv_lib_gcc___cmpdi2=yes
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19421 ac_cv_lib_gcc___cmpdi2=no
19424 rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19426 LIBS=$ac_check_lib_save_LIBS
19428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19429 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19430 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19432 cat >>confdefs.h <<\_ACEOF
19433 #define HAVE___CMPDI2 1
19440 if test "$llvm_cv_os_type" = "MingW" ; then
19441 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19442 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19443 cat >conftest.$ac_ext <<_ACEOF
19444 #include <windows.h>
19445 #include <imagehlp.h>
19446 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19447 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19449 rm -f conftest.$ac_objext
19450 if { (ac_try="$ac_compile"
19451 case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_compile") 2>conftest.er1
19458 grep -v '^ *+' conftest.er1 >conftest.err
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
19463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; } &&
19473 { ac_try='test -s conftest.$ac_objext'
19474 { (case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_try") 2>&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; }; then
19484 { echo "$as_me:$LINENO: result: yes" >&5
19485 echo "${ECHO_T}yes" >&6; }
19486 llvm_cv_win32_elmcb_pcstr="PCSTR"
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19493 { echo "$as_me:$LINENO: result: no" >&5
19494 echo "${ECHO_T}no" >&6; }
19495 llvm_cv_win32_elmcb_pcstr="PSTR"
19499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19501 cat >>confdefs.h <<_ACEOF
19502 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19508 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19509 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19510 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19514 ac_cpp='$CXXCPP $CPPFLAGS'
19515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19519 cat >conftest.$ac_ext <<_ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19534 rm -f conftest.$ac_objext
19535 if { (ac_try="$ac_compile"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_compile") 2>conftest.er1
19543 grep -v '^ *+' conftest.er1 >conftest.err
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_cv_func_isnan_in_math_h=yes
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_cv_func_isnan_in_math_h=no
19576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 ac_cpp='$CPP $CPPFLAGS'
19579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19584 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19585 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19588 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19590 cat >>confdefs.h <<\_ACEOF
19591 #define HAVE_ISNAN_IN_MATH_H 1
19596 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19597 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19598 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 ac_cpp='$CXXCPP $CPPFLAGS'
19603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19622 rm -f conftest.$ac_objext
19623 if { (ac_try="$ac_compile"
19624 case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_compile") 2>conftest.er1
19631 grep -v '^ *+' conftest.er1 >conftest.err
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19637 { (case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_try") 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_try") 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
19656 ac_cv_func_isnan_in_cmath=yes
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 ac_cv_func_isnan_in_cmath=no
19664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19666 ac_cpp='$CPP $CPPFLAGS'
19667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19672 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19673 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19675 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19677 cat >>confdefs.h <<\_ACEOF
19678 #define HAVE_ISNAN_IN_CMATH 1
19683 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19684 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19685 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 ac_cpp='$CXXCPP $CPPFLAGS'
19690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19694 cat >conftest.$ac_ext <<_ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19704 float f; std::isnan(f);
19709 rm -f conftest.$ac_objext
19710 if { (ac_try="$ac_compile"
19711 case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_compile") 2>conftest.er1
19718 grep -v '^ *+' conftest.er1 >conftest.err
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19724 { (case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_try") 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; } &&
19733 { ac_try='test -s conftest.$ac_objext'
19734 { (case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_try") 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
19743 ac_cv_func_std_isnan_in_cmath=yes
19745 echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.$ac_ext >&5
19748 ac_cv_func_std_isnan_in_cmath=no
19751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19753 ac_cpp='$CPP $CPPFLAGS'
19754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19759 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19760 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19762 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_STD_ISNAN_IN_CMATH 1
19771 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19772 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19773 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 ac_cpp='$CXXCPP $CPPFLAGS'
19778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19782 cat >conftest.$ac_ext <<_ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19797 rm -f conftest.$ac_objext
19798 if { (ac_try="$ac_compile"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_compile") 2>conftest.er1
19806 grep -v '^ *+' conftest.er1 >conftest.err
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19812 { (case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_try") 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; } &&
19821 { ac_try='test -s conftest.$ac_objext'
19822 { (case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_try") 2>&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 ac_cv_func_isinf_in_math_h=yes
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 ac_cv_func_isinf_in_math_h=no
19839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19841 ac_cpp='$CPP $CPPFLAGS'
19842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19847 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19848 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19850 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19852 cat >>confdefs.h <<\_ACEOF
19853 #define HAVE_ISINF_IN_MATH_H 1
19858 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19859 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19860 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 ac_cpp='$CXXCPP $CPPFLAGS'
19865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19869 cat >conftest.$ac_ext <<_ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19884 rm -f conftest.$ac_objext
19885 if { (ac_try="$ac_compile"
19886 case "(($ac_try" in
19887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888 *) ac_try_echo=$ac_try;;
19890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891 (eval "$ac_compile") 2>conftest.er1
19893 grep -v '^ *+' conftest.er1 >conftest.err
19895 cat conftest.err >&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } &&
19898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19899 { (case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_try") 2>&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; } &&
19908 { ac_try='test -s conftest.$ac_objext'
19909 { (case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_try") 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19918 ac_cv_func_isinf_in_cmath=yes
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19923 ac_cv_func_isinf_in_cmath=no
19926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928 ac_cpp='$CPP $CPPFLAGS'
19929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19934 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19935 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19937 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19939 cat >>confdefs.h <<\_ACEOF
19940 #define HAVE_ISINF_IN_CMATH 1
19945 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19946 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19947 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 ac_cpp='$CXXCPP $CPPFLAGS'
19952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19956 cat >conftest.$ac_ext <<_ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19966 float f; std::isinf(f);
19971 rm -f conftest.$ac_objext
19972 if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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_func_std_isinf_in_cmath=yes
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ac_cv_func_std_isinf_in_cmath=no
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 ac_cpp='$CPP $CPPFLAGS'
20016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20021 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20022 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20024 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20026 cat >>confdefs.h <<\_ACEOF
20027 #define HAVE_STD_ISINF_IN_CMATH 1
20032 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20033 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20034 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 ac_cpp='$CXXCPP $CPPFLAGS'
20039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 #include <ieeefp.h>
20053 float f; finite(f);
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
20060 case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20073 { (case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_try") 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_try") 2>&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; }; then
20092 ac_cv_func_finite_in_ieeefp_h=yes
20094 echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20097 ac_cv_func_finite_in_ieeefp_h=no
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 ac_cpp='$CPP $CPPFLAGS'
20103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20108 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20109 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20111 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20113 cat >>confdefs.h <<\_ACEOF
20114 #define HAVE_FINITE_IN_IEEEFP_H 1
20121 if test "$llvm_cv_platform_type" = "Unix" ; then
20124 for ac_header in stdlib.h unistd.h
20126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 ac_res=`eval echo '${'$as_ac_Header'}'`
20134 { echo "$as_me:$LINENO: result: $ac_res" >&5
20135 echo "${ECHO_T}$ac_res" >&6; }
20137 # Is the header compilable?
20138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20140 cat >conftest.$ac_ext <<_ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 $ac_includes_default
20147 #include <$ac_header>
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_compile") 2>conftest.er1
20158 grep -v '^ *+' conftest.er1 >conftest.err
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } &&
20163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20164 { (case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_try") 2>&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_header_compiler=yes
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 ac_header_compiler=no
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20193 echo "${ECHO_T}$ac_header_compiler" >&6; }
20195 # Is the header present?
20196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 #include <$ac_header>
20206 if { (ac_try="$ac_cpp conftest.$ac_ext"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20214 grep -v '^ *+' conftest.er1 >conftest.err
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } >/dev/null; then
20219 if test -s conftest.err; then
20220 ac_cpp_err=$ac_c_preproc_warn_flag
20221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20228 if test -z "$ac_cpp_err"; then
20229 ac_header_preproc=yes
20231 echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_header_preproc=no
20237 rm -f conftest.err conftest.$ac_ext
20238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20239 echo "${ECHO_T}$ac_header_preproc" >&6; }
20241 # So? What about this header?
20242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20248 ac_header_preproc=yes
20251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20264 ## ------------------------------------ ##
20265 ## Report this to http://llvm.org/bugs/ ##
20266 ## ------------------------------------ ##
20268 ) | sed "s/^/$as_me: WARNING: /" >&2
20271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 eval "$as_ac_Header=\$ac_header_preproc"
20278 ac_res=`eval echo '${'$as_ac_Header'}'`
20279 { echo "$as_me:$LINENO: result: $ac_res" >&5
20280 echo "${ECHO_T}$ac_res" >&6; }
20283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20284 cat >>confdefs.h <<_ACEOF
20285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20293 for ac_func in getpagesize
20295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20309 #define $ac_func innocuous_$ac_func
20311 /* System header to define __stub macros and hopefully few prototypes,
20312 which can conflict with char $ac_func (); below.
20313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20314 <limits.h> exists even on freestanding compilers. */
20317 # include <limits.h>
20319 # include <assert.h>
20324 /* Override any GCC internal prototype to avoid an error.
20325 Use char because int might match the return type of a GCC
20326 builtin and then its argument prototype would still apply. */
20331 /* The GNU C library defines this for functions which it implements
20332 to always fail with ENOSYS. Some functions are actually named
20333 something starting with __ and the normal name is an alias. */
20334 #if defined __stub_$ac_func || defined __stub___$ac_func
20341 return $ac_func ();
20346 rm -f conftest.$ac_objext conftest$ac_exeext
20347 if { (ac_try="$ac_link"
20348 case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_link") 2>conftest.er1
20355 grep -v '^ *+' conftest.er1 >conftest.err
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20361 { (case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_try") 2>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; } &&
20370 { ac_try='test -s conftest$ac_exeext'
20371 { (case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_try") 2>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
20380 eval "$as_ac_var=yes"
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 eval "$as_ac_var=no"
20388 rm -f core conftest.err conftest.$ac_objext \
20389 conftest$ac_exeext conftest.$ac_ext
20391 ac_res=`eval echo '${'$as_ac_var'}'`
20392 { echo "$as_me:$LINENO: result: $ac_res" >&5
20393 echo "${ECHO_T}$ac_res" >&6; }
20394 if test `eval echo '${'$as_ac_var'}'` = yes; then
20395 cat >>confdefs.h <<_ACEOF
20396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20402 { echo "$as_me:$LINENO: checking for working mmap" >&5
20403 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20404 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 if test "$cross_compiling" = yes; then
20408 ac_cv_func_mmap_fixed_mapped=no
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 $ac_includes_default
20417 /* malloc might have been renamed as rpl_malloc. */
20420 /* Thanks to Mike Haertel and Jim Avera for this test.
20421 Here is a matrix of mmap possibilities:
20422 mmap private not fixed
20423 mmap private fixed at somewhere currently unmapped
20424 mmap private fixed at somewhere already mapped
20425 mmap shared not fixed
20426 mmap shared fixed at somewhere currently unmapped
20427 mmap shared fixed at somewhere already mapped
20428 For private mappings, we should verify that changes cannot be read()
20429 back from the file, nor mmap's back from the file at a different
20430 address. (There have been systems where private was not correctly
20431 implemented like the infamous i386 svr4.0, and systems where the
20432 VM page cache was not coherent with the file system buffer cache
20433 like early versions of FreeBSD and possibly contemporary NetBSD.)
20434 For shared mappings, we should conversely verify that changes get
20435 propagated back to all the places they're supposed to be.
20437 Grep wants private fixed already mapped.
20438 The main things grep needs to know about mmap are:
20439 * does it exist and is it safe to write into the mmap'd area
20440 * how to use it (BSD variants) */
20443 #include <sys/mman.h>
20445 #if !STDC_HEADERS && !HAVE_STDLIB_H
20449 /* This mess was copied from the GNU getpagesize.h. */
20450 #if !HAVE_GETPAGESIZE
20451 /* Assume that all systems that can run configure have sys/param.h. */
20452 # if !HAVE_SYS_PARAM_H
20453 # define HAVE_SYS_PARAM_H 1
20456 # ifdef _SC_PAGESIZE
20457 # define getpagesize() sysconf(_SC_PAGESIZE)
20458 # else /* no _SC_PAGESIZE */
20459 # if HAVE_SYS_PARAM_H
20460 # include <sys/param.h>
20461 # ifdef EXEC_PAGESIZE
20462 # define getpagesize() EXEC_PAGESIZE
20463 # else /* no EXEC_PAGESIZE */
20465 # define getpagesize() NBPG * CLSIZE
20468 # endif /* no CLSIZE */
20469 # else /* no NBPG */
20471 # define getpagesize() NBPC
20472 # else /* no NBPC */
20474 # define getpagesize() PAGESIZE
20475 # endif /* PAGESIZE */
20476 # endif /* no NBPC */
20477 # endif /* no NBPG */
20478 # endif /* no EXEC_PAGESIZE */
20479 # else /* no HAVE_SYS_PARAM_H */
20480 # define getpagesize() 8192 /* punt totally */
20481 # endif /* no HAVE_SYS_PARAM_H */
20482 # endif /* no _SC_PAGESIZE */
20484 #endif /* no HAVE_GETPAGESIZE */
20489 char *data, *data2, *data3;
20493 pagesize = getpagesize ();
20495 /* First, make a file with some known garbage in it. */
20496 data = (char *) malloc (pagesize);
20499 for (i = 0; i < pagesize; ++i)
20500 *(data + i) = rand ();
20502 fd = creat ("conftest.mmap", 0600);
20505 if (write (fd, data, pagesize) != pagesize)
20509 /* Next, try to mmap the file at a fixed address which already has
20510 something else allocated at it. If we can, also make sure that
20511 we see the same garbage. */
20512 fd = open ("conftest.mmap", O_RDWR);
20515 data2 = (char *) malloc (2 * pagesize);
20518 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20519 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20520 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20522 for (i = 0; i < pagesize; ++i)
20523 if (*(data + i) != *(data2 + i))
20526 /* Finally, make sure that changes to the mapped area do not
20527 percolate back to the file as seen by read(). (This is a bug on
20528 some variants of i386 svr4.0.) */
20529 for (i = 0; i < pagesize; ++i)
20530 *(data2 + i) = *(data2 + i) + 1;
20531 data3 = (char *) malloc (pagesize);
20534 if (read (fd, data3, pagesize) != pagesize)
20536 for (i = 0; i < pagesize; ++i)
20537 if (*(data + i) != *(data3 + i))
20543 rm -f conftest$ac_exeext
20544 if { (ac_try="$ac_link"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_link") 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20554 { (case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_try") 2>&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
20563 ac_cv_func_mmap_fixed_mapped=yes
20565 echo "$as_me: program exited with status $ac_status" >&5
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20569 ( exit $ac_status )
20570 ac_cv_func_mmap_fixed_mapped=no
20572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20577 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20578 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20579 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20581 cat >>confdefs.h <<\_ACEOF
20582 #define HAVE_MMAP 1
20586 rm -f conftest.mmap
20588 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20589 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20590 if test "${ac_cv_func_mmap_file+set}" = set; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
20594 ac_cpp='$CPP $CPPFLAGS'
20595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20599 if test "$cross_compiling" = yes; then
20600 ac_cv_func_mmap_file=no
20602 cat >conftest.$ac_ext <<_ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20610 #include <sys/types.h>
20611 #include <sys/mman.h>
20619 fd = creat ("foo",0777);
20620 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20622 return (fd != (int) MAP_FAILED);
20627 rm -f conftest$ac_exeext
20628 if { (ac_try="$ac_link"
20629 case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_link") 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20638 { (case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_try") 2>&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
20647 ac_cv_func_mmap_file=yes
20649 echo "$as_me: program exited with status $ac_status" >&5
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 ( exit $ac_status )
20654 ac_cv_func_mmap_file=no
20656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20661 ac_cpp='$CPP $CPPFLAGS'
20662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20668 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20669 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20670 if test "$ac_cv_func_mmap_file" = yes; then
20672 cat >>confdefs.h <<\_ACEOF
20673 #define HAVE_MMAP_FILE
20680 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20681 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20682 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
20685 if test "$llvm_cv_os_type" = "Interix" ; then
20686 ac_cv_need_dev_zero_for_mmap=yes
20688 ac_cv_need_dev_zero_for_mmap=no
20692 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20693 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20694 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20696 cat >>confdefs.h <<\_ACEOF
20697 #define NEED_DEV_ZERO_FOR_MMAP 1
20702 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20704 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20705 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20707 if test "$ac_cv_func_mmap_file" = "no"
20709 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20710 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20714 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20715 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20717 ac_cpp='$CXXCPP $CPPFLAGS'
20718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20722 cat >conftest.$ac_ext <<_ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20729 volatile unsigned long val = 1;
20730 __sync_synchronize();
20731 __sync_val_compare_and_swap(&val, 1, 0);
20732 __sync_add_and_fetch(&val, 1);
20733 __sync_sub_and_fetch(&val, 1);
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (ac_try="$ac_link"
20740 case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_link") 2>conftest.er1
20747 grep -v '^ *+' conftest.er1 >conftest.err
20749 cat conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } &&
20752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20753 { (case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_try") 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest$ac_exeext'
20763 { (case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_try") 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; }; then
20773 ac_cpp='$CPP $CPPFLAGS'
20774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20778 { echo "$as_me:$LINENO: result: yes" >&5
20779 echo "${ECHO_T}yes" >&6; }
20781 cat >>confdefs.h <<\_ACEOF
20782 #define LLVM_HAS_ATOMICS 1
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20789 { echo "$as_me:$LINENO: result: no" >&5
20790 echo "${ECHO_T}no" >&6; }
20792 cat >>confdefs.h <<\_ACEOF
20793 #define LLVM_HAS_ATOMICS 0
20796 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20797 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20800 rm -f core conftest.err conftest.$ac_objext \
20801 conftest$ac_exeext conftest.$ac_ext
20804 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20805 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20806 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20807 if test "${llvm_cv_linux_mixed+set}" = set; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 ac_cpp='$CPP $CPPFLAGS'
20812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20816 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20823 error: Not x86-64 even if uname says so!
20834 rm -f conftest.$ac_objext
20835 if { (ac_try="$ac_compile"
20836 case "(($ac_try" in
20837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838 *) ac_try_echo=$ac_try;;
20840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841 (eval "$ac_compile") 2>conftest.er1
20843 grep -v '^ *+' conftest.er1 >conftest.err
20845 cat conftest.err >&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } &&
20848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20849 { (case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_try") 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; } &&
20858 { ac_try='test -s conftest.$ac_objext'
20859 { (case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864 (eval "$ac_try") 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 llvm_cv_linux_mixed=no
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 llvm_cv_linux_mixed=yes
20876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20878 ac_cpp='$CPP $CPPFLAGS'
20879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20885 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20886 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20888 if test "$llvm_cv_linux_mixed" = "yes"; then
20889 llvm_cv_target_arch="x86"
20895 for ac_func in __dso_handle
20897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
20903 cat >conftest.$ac_ext <<_ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20911 #define $ac_func innocuous_$ac_func
20913 /* System header to define __stub macros and hopefully few prototypes,
20914 which can conflict with char $ac_func (); below.
20915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20916 <limits.h> exists even on freestanding compilers. */
20919 # include <limits.h>
20921 # include <assert.h>
20926 /* Override any GCC internal prototype to avoid an error.
20927 Use char because int might match the return type of a GCC
20928 builtin and then its argument prototype would still apply. */
20933 /* The GNU C library defines this for functions which it implements
20934 to always fail with ENOSYS. Some functions are actually named
20935 something starting with __ and the normal name is an alias. */
20936 #if defined __stub_$ac_func || defined __stub___$ac_func
20943 return $ac_func ();
20948 rm -f conftest.$ac_objext conftest$ac_exeext
20949 if { (ac_try="$ac_link"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_link") 2>conftest.er1
20957 grep -v '^ *+' conftest.er1 >conftest.err
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } &&
20962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20963 { (case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_try") 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; } &&
20972 { ac_try='test -s conftest$ac_exeext'
20973 { (case "(($ac_try" in
20974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975 *) ac_try_echo=$ac_try;;
20977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978 (eval "$ac_try") 2>&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); }; }; then
20982 eval "$as_ac_var=yes"
20984 echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20987 eval "$as_ac_var=no"
20990 rm -f core conftest.err conftest.$ac_objext \
20991 conftest$ac_exeext conftest.$ac_ext
20993 ac_res=`eval echo '${'$as_ac_var'}'`
20994 { echo "$as_me:$LINENO: result: $ac_res" >&5
20995 echo "${ECHO_T}$ac_res" >&6; }
20996 if test `eval echo '${'$as_ac_var'}'` = yes; then
20997 cat >>confdefs.h <<_ACEOF
20998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21005 SHLIBEXT=$libltdl_cv_shlibext
21008 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21011 if test "${prefix}" = "NONE" ; then
21012 prefix="/usr/local"
21014 eval LLVM_PREFIX="${prefix}";
21015 eval LLVM_BINDIR="${prefix}/bin";
21016 eval LLVM_LIBDIR="${prefix}/lib";
21017 eval LLVM_DATADIR="${prefix}/share/llvm";
21018 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21019 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21020 eval LLVM_INCLUDEDIR="${prefix}/include";
21021 eval LLVM_INFODIR="${prefix}/info";
21022 eval LLVM_MANDIR="${prefix}/man";
21023 LLVM_CONFIGTIME=`date`
21035 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21036 LLVM_CONFIGTIME="(timestamp not enabled)"
21040 cat >>confdefs.h <<_ACEOF
21041 #define LLVM_PREFIX "$LLVM_PREFIX"
21045 cat >>confdefs.h <<_ACEOF
21046 #define LLVM_BINDIR "$LLVM_BINDIR"
21050 cat >>confdefs.h <<_ACEOF
21051 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21055 cat >>confdefs.h <<_ACEOF
21056 #define LLVM_DATADIR "$LLVM_DATADIR"
21060 cat >>confdefs.h <<_ACEOF
21061 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21065 cat >>confdefs.h <<_ACEOF
21066 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21070 cat >>confdefs.h <<_ACEOF
21071 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21075 cat >>confdefs.h <<_ACEOF
21076 #define LLVM_INFODIR "$LLVM_INFODIR"
21080 cat >>confdefs.h <<_ACEOF
21081 #define LLVM_MANDIR "$LLVM_MANDIR"
21085 cat >>confdefs.h <<_ACEOF
21086 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21090 cat >>confdefs.h <<_ACEOF
21091 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21095 if test "$BINDINGS_TO_BUILD" = auto ; then
21096 BINDINGS_TO_BUILD=""
21097 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21098 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21101 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21107 binding_prereqs_failed=0
21108 for a_binding in $BINDINGS_TO_BUILD ; do
21109 case "$a_binding" in
21111 if test "x$OCAMLC" = x ; then
21112 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21113 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21114 binding_prereqs_failed=1
21116 if test "x$OCAMLDEP" = x ; then
21117 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21118 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21119 binding_prereqs_failed=1
21121 if test "x$OCAMLOPT" = x ; then
21122 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21123 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21125 if test "x$with_ocaml_libdir" != xauto ; then
21126 OCAML_LIBDIR=$with_ocaml_libdir
21129 ocaml_stdlib="`"$OCAMLC" -where`"
21130 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21132 # ocaml stdlib is beneath our prefix; use stdlib
21133 OCAML_LIBDIR=$ocaml_stdlib
21136 # ocaml stdlib is outside our prefix; use libdir/ocaml
21137 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21144 if test "$binding_prereqs_failed" = 1 ; then
21145 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21146 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21147 { (exit 1); exit 1; }; }
21150 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21151 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21152 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 ac_cpp='$CXXCPP $CPPFLAGS'
21157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21161 oldcxxflags="$CXXFLAGS"
21162 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21163 cat >conftest.$ac_ext <<_ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h. */
21169 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } &&
21192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21193 { (case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_try") 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; } &&
21202 { ac_try='test -s conftest.$ac_objext'
21203 { (case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_try") 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
21212 llvm_cv_cxx_visibility_inlines_hidden=yes
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 llvm_cv_cxx_visibility_inlines_hidden=no
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221 CXXFLAGS="$oldcxxflags"
21223 ac_cpp='$CPP $CPPFLAGS'
21224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21230 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21231 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21232 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21233 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21236 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21241 if test "$llvm_cv_link_use_r" = "yes" ; then
21248 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21249 RDYNAMIC="-Wl,-export-dynamic"
21256 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21263 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21265 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21267 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21269 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21271 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21274 ac_config_files="$ac_config_files Makefile.config"
21277 ac_config_files="$ac_config_files llvm.spec"
21280 ac_config_files="$ac_config_files docs/doxygen.cfg"
21283 if test "${clang_src_root}" = ""; then
21284 clang_src_root="$srcdir/tools/clang"
21286 if test -f ${clang_src_root}/README.txt; then
21287 configh="include/clang/Config/config.h"
21288 doxy="docs/doxygen.cfg"
21289 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21291 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21295 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21298 ac_config_commands="$ac_config_commands setup"
21300 ac_config_commands="$ac_config_commands Makefile"
21303 ac_config_commands="$ac_config_commands Makefile.common"
21306 ac_config_commands="$ac_config_commands examples/Makefile"
21309 ac_config_commands="$ac_config_commands lib/Makefile"
21312 ac_config_commands="$ac_config_commands runtime/Makefile"
21315 ac_config_commands="$ac_config_commands test/Makefile"
21318 ac_config_commands="$ac_config_commands test/Makefile.tests"
21321 ac_config_commands="$ac_config_commands unittests/Makefile"
21324 ac_config_commands="$ac_config_commands tools/Makefile"
21327 ac_config_commands="$ac_config_commands utils/Makefile"
21330 ac_config_commands="$ac_config_commands projects/Makefile"
21333 ac_config_commands="$ac_config_commands bindings/Makefile"
21336 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21340 cat >confcache <<\_ACEOF
21341 # This file is a shell script that caches the results of configure
21342 # tests run on this system so they can be shared between configure
21343 # scripts and configure runs, see configure's option --config-cache.
21344 # It is not useful on other systems. If it contains results you don't
21345 # want to keep, you may remove or edit it.
21347 # config.status only pays attention to the cache file if you give it
21348 # the --recheck option to rerun configure.
21350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21352 # following values.
21356 # The following way of writing the cache mishandles newlines in values,
21357 # but we know of no workaround that is simple, portable, and efficient.
21358 # So, we kill variables containing newlines.
21359 # Ultrix sh set writes to stderr and can't be redirected directly,
21360 # and sets the high bit in the cache file unless we assign to the vars.
21362 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21363 eval ac_val=\$$ac_var
21367 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21368 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21371 _ | IFS | as_nl) ;; #(
21372 *) $as_unset $ac_var ;;
21378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21379 *${as_nl}ac_space=\ *)
21380 # `set' does not quote correctly, so add quotes (double-quote
21381 # substitution turns \\\\ into \\, and sed turns \\ into \).
21384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21387 # `set' quotes correctly as required by POSIX, so do not add quotes.
21388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21402 if test -w "$cache_file"; then
21403 test "x$cache_file" != "x/dev/null" &&
21404 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21405 echo "$as_me: updating cache $cache_file" >&6;}
21406 cat confcache >$cache_file
21408 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21409 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21415 # Let make expand exec_prefix.
21416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21418 DEFS=-DHAVE_CONFIG_H
21422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21423 # 1. Remove the extension, and $U if already installed.
21424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21425 ac_i=`echo "$ac_i" | sed "$ac_script"`
21426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21427 # will be set to the directory where LIBOBJS objects are built.
21428 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21429 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21431 LIBOBJS=$ac_libobjs
21433 LTLIBOBJS=$ac_ltlibobjs
21436 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21437 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21438 Usually this means the macro was only invoked conditionally." >&5
21439 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21440 Usually this means the macro was only invoked conditionally." >&2;}
21441 { (exit 1); exit 1; }; }
21443 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21444 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21445 Usually this means the macro was only invoked conditionally." >&5
21446 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21447 Usually this means the macro was only invoked conditionally." >&2;}
21448 { (exit 1); exit 1; }; }
21451 : ${CONFIG_STATUS=./config.status}
21452 ac_clean_files_save=$ac_clean_files
21453 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21454 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21455 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21456 cat >$CONFIG_STATUS <<_ACEOF
21458 # Generated by $as_me.
21459 # Run this file to recreate the current configuration.
21460 # Compiler output produced by configure, useful for debugging
21461 # configure, is in config.log if it exists.
21464 ac_cs_recheck=false
21466 SHELL=\${CONFIG_SHELL-$SHELL}
21469 cat >>$CONFIG_STATUS <<\_ACEOF
21470 ## --------------------- ##
21471 ## M4sh Initialization. ##
21472 ## --------------------- ##
21474 # Be Bourne compatible
21475 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21478 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21479 # is contrary to our usage. Disable this feature.
21480 alias -g '${1+"$@"}'='"$@"'
21481 setopt NO_GLOB_SUBST
21483 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21485 BIN_SH=xpg4; export BIN_SH # for Tru64
21486 DUALCASE=1; export DUALCASE # for MKS sh
21490 # Avoid depending upon Character Ranges.
21491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21494 as_cr_digits='0123456789'
21495 as_cr_alnum=$as_cr_Letters$as_cr_digits
21497 # The user is always right.
21498 if test "${PATH_SEPARATOR+set}" != set; then
21499 echo "#! /bin/sh" >conf$$.sh
21500 echo "exit 0" >>conf$$.sh
21502 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21510 # Support unset when possible.
21511 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21519 # We need space, tab and new line, in precisely that order. Quoting is
21520 # there to prevent editors from complaining about space-tab.
21521 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21522 # splitting by setting IFS to empty value.)
21527 # Find who we are. Look in the path if we contain no directory separator.
21529 *[\\/]* ) as_myself=$0 ;;
21530 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21531 for as_dir in $PATH
21534 test -z "$as_dir" && as_dir=.
21535 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21541 # We did not find ourselves, most probably we were run as `sh COMMAND'
21542 # in which case we are not to be found in the path.
21543 if test "x$as_myself" = x; then
21546 if test ! -f "$as_myself"; then
21547 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21548 { (exit 1); exit 1; }
21551 # Work around bugs in pre-3.0 UWIN ksh.
21552 for as_var in ENV MAIL MAILPATH
21553 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21561 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21562 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21563 LC_TELEPHONE LC_TIME
21565 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21566 eval $as_var=C; export $as_var
21568 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21572 # Required to use basename.
21573 if expr a : '\(a\)' >/dev/null 2>&1 &&
21574 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21580 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21581 as_basename=basename
21587 # Name of the executable.
21588 as_me=`$as_basename -- "$0" ||
21589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21590 X"$0" : 'X\(//\)$' \| \
21591 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21593 sed '/^.*\/\([^/][^/]*\)\/*$/{
21612 as_lineno_1=$LINENO
21613 as_lineno_2=$LINENO
21614 test "x$as_lineno_1" != "x$as_lineno_2" &&
21615 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21617 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21618 # uniformly replaced by the line number. The first 'sed' inserts a
21619 # line-number line after each line using $LINENO; the second 'sed'
21620 # does the real work. The second script uses 'N' to pair each
21621 # line-number line with the line containing $LINENO, and appends
21622 # trailing '-' during substitution so that $LINENO is not a special
21623 # case at line end.
21624 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21625 # scripts with optimization help from Paolo Bonzini. Blame Lee
21626 # E. McMahon (1931-1989) for sed's syntax. :-)
21638 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21641 ' >$as_me.lineno &&
21642 chmod +x "$as_me.lineno" ||
21643 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21644 { (exit 1); exit 1; }; }
21646 # Don't try to exec as it changes $[0], causing all sort of problems
21647 # (the dirname of $[0] is not the place where we might find the
21648 # original and so on. Autoconf is especially sensitive to this).
21649 . "./$as_me.lineno"
21650 # Exit status is that of the last command.
21655 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21661 ECHO_C= ECHO_N= ECHO_T=
21662 case `echo -n x` in
21664 case `echo 'x\c'` in
21665 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21672 if expr a : '\(a\)' >/dev/null 2>&1 &&
21673 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21679 rm -f conf$$ conf$$.exe conf$$.file
21680 if test -d conf$$.dir; then
21681 rm -f conf$$.dir/conf$$.file
21687 if ln -s conf$$.file conf$$ 2>/dev/null; then
21689 # ... but there are two gotchas:
21690 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21691 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21692 # In both cases, we have to default to `cp -p'.
21693 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21695 elif ln conf$$.file conf$$ 2>/dev/null; then
21700 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21701 rmdir conf$$.dir 2>/dev/null
21703 if mkdir -p . 2>/dev/null; then
21706 test -d ./-p && rmdir ./-p
21710 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21711 # systems may use methods other than mode bits to determine executability.
21712 cat >conf$$.file <<_ASEOF
21716 chmod +x conf$$.file
21717 if test -x conf$$.file >/dev/null 2>&1; then
21718 as_executable_p="test -x"
21724 # Sed expression to map a string onto a valid CPP name.
21725 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21727 # Sed expression to map a string onto a valid variable name.
21728 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21733 # Save the log message, to keep $[0] and so on meaningful, and to
21734 # report actual input values of CONFIG_FILES etc. instead of their
21735 # values after options handling.
21737 This file was extended by LLVM $as_me 3.2svn, which was
21738 generated by GNU Autoconf 2.60. Invocation command line was
21740 CONFIG_FILES = $CONFIG_FILES
21741 CONFIG_HEADERS = $CONFIG_HEADERS
21742 CONFIG_LINKS = $CONFIG_LINKS
21743 CONFIG_COMMANDS = $CONFIG_COMMANDS
21746 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21751 cat >>$CONFIG_STATUS <<_ACEOF
21752 # Files that config.status was made for.
21753 config_files="$ac_config_files"
21754 config_headers="$ac_config_headers"
21755 config_commands="$ac_config_commands"
21759 cat >>$CONFIG_STATUS <<\_ACEOF
21761 \`$as_me' instantiates files from templates according to the
21762 current configuration.
21764 Usage: $0 [OPTIONS] [FILE]...
21766 -h, --help print this help, then exit
21767 -V, --version print version number, then exit
21768 -q, --quiet do not print progress messages
21769 -d, --debug don't remove temporary files
21770 --recheck update $as_me by reconfiguring in the same conditions
21771 --file=FILE[:TEMPLATE]
21772 instantiate the configuration file FILE
21773 --header=FILE[:TEMPLATE]
21774 instantiate the configuration header FILE
21776 Configuration files:
21779 Configuration headers:
21782 Configuration commands:
21785 Report bugs to <bug-autoconf@gnu.org>."
21788 cat >>$CONFIG_STATUS <<_ACEOF
21790 LLVM config.status 3.2svn
21791 configured by $0, generated by GNU Autoconf 2.60,
21792 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21794 Copyright (C) 2006 Free Software Foundation, Inc.
21795 This config.status script is free software; the Free Software Foundation
21796 gives unlimited permission to copy, distribute and modify it."
21803 cat >>$CONFIG_STATUS <<\_ACEOF
21804 # If no file are specified by the user, then we need to provide default
21805 # value. By we need to know if files were specified by the user.
21811 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21823 # Handling of the options.
21824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21826 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21827 echo "$ac_cs_version"; exit ;;
21828 --debug | --debu | --deb | --de | --d | -d )
21830 --file | --fil | --fi | --f )
21832 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21833 ac_need_defaults=false;;
21834 --header | --heade | --head | --hea )
21836 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21837 ac_need_defaults=false;;
21839 # Conflict between --help and --header
21840 { echo "$as_me: error: ambiguous option: $1
21841 Try \`$0 --help' for more information." >&2
21842 { (exit 1); exit 1; }; };;
21843 --help | --hel | -h )
21844 echo "$ac_cs_usage"; exit ;;
21845 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21846 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21849 # This is an error.
21850 -*) { echo "$as_me: error: unrecognized option: $1
21851 Try \`$0 --help' for more information." >&2
21852 { (exit 1); exit 1; }; } ;;
21854 *) ac_config_targets="$ac_config_targets $1"
21855 ac_need_defaults=false ;;
21861 ac_configure_extra_args=
21863 if $ac_cs_silent; then
21865 ac_configure_extra_args="$ac_configure_extra_args --silent"
21869 cat >>$CONFIG_STATUS <<_ACEOF
21870 if \$ac_cs_recheck; then
21871 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21872 CONFIG_SHELL=$SHELL
21873 export CONFIG_SHELL
21874 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21878 cat >>$CONFIG_STATUS <<\_ACEOF
21882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21883 ## Running $as_me. ##
21889 cat >>$CONFIG_STATUS <<_ACEOF
21893 llvm_src="${srcdir}"
21897 cat >>$CONFIG_STATUS <<\_ACEOF
21899 # Handling of arguments.
21900 for ac_config_target in $ac_config_targets
21902 case $ac_config_target in
21903 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21904 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21905 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21906 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21907 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21908 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21909 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21910 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21911 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21912 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21913 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21914 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21915 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21916 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21917 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21918 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21919 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21920 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21921 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21922 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21923 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21924 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21925 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21926 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21927 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21928 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21929 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21931 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21932 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21933 { (exit 1); exit 1; }; };;
21938 # If the user did not use the arguments to specify the items to instantiate,
21939 # then the envvar interface is used. Set only those that are not.
21940 # We use the long form for the default assignment because of an extremely
21941 # bizarre bug on SunOS 4.1.3.
21942 if $ac_need_defaults; then
21943 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21944 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21945 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21948 # Have a temporary directory for convenience. Make it in the build tree
21949 # simply because there is no reason against having it here, and in addition,
21950 # creating and moving files from /tmp can sometimes cause problems.
21951 # Hook for its removal unless debugging.
21952 # Note that there is a small window in which the directory will not be cleaned:
21953 # after its creation but before its name has been assigned to `$tmp'.
21957 trap 'exit_status=$?
21958 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21960 trap '{ (exit 1); exit 1; }' 1 2 13 15
21962 # Create a (secure) tmp directory for tmp files.
21965 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21966 test -n "$tmp" && test -d "$tmp"
21969 tmp=./conf$$-$RANDOM
21970 (umask 077 && mkdir "$tmp")
21973 echo "$me: cannot create a temporary directory in ." >&2
21974 { (exit 1); exit 1; }
21978 # Set up the sed scripts for CONFIG_FILES section.
21981 # No need to generate the scripts if there are no CONFIG_FILES.
21982 # This happens for instance when ./config.status config.h
21983 if test -n "$CONFIG_FILES"; then
21990 for ac_last_try in false false false false false :; do
21991 cat >conf$$subs.sed <<_ACEOF
21992 SHELL!$SHELL$ac_delim
21993 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21994 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21995 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21996 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21997 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21998 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21999 exec_prefix!$exec_prefix$ac_delim
22000 prefix!$prefix$ac_delim
22001 program_transform_name!$program_transform_name$ac_delim
22002 bindir!$bindir$ac_delim
22003 sbindir!$sbindir$ac_delim
22004 libexecdir!$libexecdir$ac_delim
22005 datarootdir!$datarootdir$ac_delim
22006 datadir!$datadir$ac_delim
22007 sysconfdir!$sysconfdir$ac_delim
22008 sharedstatedir!$sharedstatedir$ac_delim
22009 localstatedir!$localstatedir$ac_delim
22010 includedir!$includedir$ac_delim
22011 oldincludedir!$oldincludedir$ac_delim
22012 docdir!$docdir$ac_delim
22013 infodir!$infodir$ac_delim
22014 htmldir!$htmldir$ac_delim
22015 dvidir!$dvidir$ac_delim
22016 pdfdir!$pdfdir$ac_delim
22017 psdir!$psdir$ac_delim
22018 libdir!$libdir$ac_delim
22019 localedir!$localedir$ac_delim
22020 mandir!$mandir$ac_delim
22021 DEFS!$DEFS$ac_delim
22022 ECHO_C!$ECHO_C$ac_delim
22023 ECHO_N!$ECHO_N$ac_delim
22024 ECHO_T!$ECHO_T$ac_delim
22025 LIBS!$LIBS$ac_delim
22026 build_alias!$build_alias$ac_delim
22027 host_alias!$host_alias$ac_delim
22028 target_alias!$target_alias$ac_delim
22029 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22031 CFLAGS!$CFLAGS$ac_delim
22032 LDFLAGS!$LDFLAGS$ac_delim
22033 CPPFLAGS!$CPPFLAGS$ac_delim
22034 ac_ct_CC!$ac_ct_CC$ac_delim
22035 EXEEXT!$EXEEXT$ac_delim
22036 OBJEXT!$OBJEXT$ac_delim
22038 CXXFLAGS!$CXXFLAGS$ac_delim
22039 ac_ct_CXX!$ac_ct_CXX$ac_delim
22041 subdirs!$subdirs$ac_delim
22042 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22043 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22044 build!$build$ac_delim
22045 build_cpu!$build_cpu$ac_delim
22046 build_vendor!$build_vendor$ac_delim
22047 build_os!$build_os$ac_delim
22048 host!$host$ac_delim
22049 host_cpu!$host_cpu$ac_delim
22050 host_vendor!$host_vendor$ac_delim
22051 host_os!$host_os$ac_delim
22052 target!$target$ac_delim
22053 target_cpu!$target_cpu$ac_delim
22054 target_vendor!$target_vendor$ac_delim
22055 target_os!$target_os$ac_delim
22057 HOST_OS!$HOST_OS$ac_delim
22058 TARGET_OS!$TARGET_OS$ac_delim
22059 LINKALL!$LINKALL$ac_delim
22060 NOLINKALL!$NOLINKALL$ac_delim
22061 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22062 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22063 ARCH!$ARCH$ac_delim
22064 HOST_ARCH!$HOST_ARCH$ac_delim
22065 ENDIAN!$ENDIAN$ac_delim
22066 GREP!$GREP$ac_delim
22067 EGREP!$EGREP$ac_delim
22068 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22069 BUILD_CC!$BUILD_CC$ac_delim
22070 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22071 BUILD_CXX!$BUILD_CXX$ac_delim
22072 CVSBUILD!$CVSBUILD$ac_delim
22073 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22074 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22075 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22076 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22077 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22078 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22079 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22080 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22082 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22083 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22084 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22085 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22086 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22087 ENABLE_PIC!$ENABLE_PIC$ac_delim
22088 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22091 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22093 elif $ac_last_try; then
22094 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22096 { (exit 1); exit 1; }; }
22098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22103 if test -n "$ac_eof"; then
22104 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22105 ac_eof=`expr $ac_eof + 1`
22108 cat >>$CONFIG_STATUS <<_ACEOF
22109 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22114 s/^/s,@/; s/!/@,|#_!!_#|/
22117 s/'"$ac_delim"'$/,g/; t
22119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22120 ' >>$CONFIG_STATUS <conf$$subs.sed
22121 rm -f conf$$subs.sed
22122 cat >>$CONFIG_STATUS <<_ACEOF
22128 for ac_last_try in false false false false false :; do
22129 cat >conf$$subs.sed <<_ACEOF
22130 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22131 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22132 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22133 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22134 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22135 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22136 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22137 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22138 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22139 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22140 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22141 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22142 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22144 ifGNUmake!$ifGNUmake$ac_delim
22145 LN_S!$LN_S$ac_delim
22148 DATE!$DATE$ac_delim
22149 FIND!$FIND$ac_delim
22150 MKDIR!$MKDIR$ac_delim
22152 RANLIB!$RANLIB$ac_delim
22157 BINPWD!$BINPWD$ac_delim
22158 GRAPHVIZ!$GRAPHVIZ$ac_delim
22161 NEATO!$NEATO$ac_delim
22162 TWOPI!$TWOPI$ac_delim
22163 CIRCO!$CIRCO$ac_delim
22165 DOTTY!$DOTTY$ac_delim
22166 XDOT_PY!$XDOT_PY$ac_delim
22167 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22168 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22169 INSTALL_DATA!$INSTALL_DATA$ac_delim
22170 BZIP2!$BZIP2$ac_delim
22172 DOXYGEN!$DOXYGEN$ac_delim
22173 GROFF!$GROFF$ac_delim
22174 GZIPBIN!$GZIPBIN$ac_delim
22175 PDFROFF!$PDFROFF$ac_delim
22176 RUNTEST!$RUNTEST$ac_delim
22177 TCLSH!$TCLSH$ac_delim
22179 OCAMLC!$OCAMLC$ac_delim
22180 OCAMLOPT!$OCAMLOPT$ac_delim
22181 OCAMLDEP!$OCAMLDEP$ac_delim
22182 OCAMLDOC!$OCAMLDOC$ac_delim
22184 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22185 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22186 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22187 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22188 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22189 LIBADD_DL!$LIBADD_DL$ac_delim
22190 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22191 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22192 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22193 USE_UDIS86!$USE_UDIS86$ac_delim
22194 USE_OPROFILE!$USE_OPROFILE$ac_delim
22195 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22196 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22197 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22198 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22199 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22200 MMAP_FILE!$MMAP_FILE$ac_delim
22201 SHLIBEXT!$SHLIBEXT$ac_delim
22202 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22203 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22204 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22205 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22206 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22207 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22208 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22209 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22210 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22211 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22212 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22213 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22214 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22215 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22216 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22217 RPATH!$RPATH$ac_delim
22218 RDYNAMIC!$RDYNAMIC$ac_delim
22219 LIBOBJS!$LIBOBJS$ac_delim
22220 LTLIBOBJS!$LTLIBOBJS$ac_delim
22223 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22225 elif $ac_last_try; then
22226 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22228 { (exit 1); exit 1; }; }
22230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22234 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22235 if test -n "$ac_eof"; then
22236 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22237 ac_eof=`expr $ac_eof + 1`
22240 cat >>$CONFIG_STATUS <<_ACEOF
22241 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22246 s/^/s,@/; s/!/@,|#_!!_#|/
22249 s/'"$ac_delim"'$/,g/; t
22251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22252 ' >>$CONFIG_STATUS <conf$$subs.sed
22253 rm -f conf$$subs.sed
22254 cat >>$CONFIG_STATUS <<_ACEOF
22261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22263 # trailing colons and then remove the whole line if VPATH becomes empty
22264 # (actually we leave an empty line to preserve line numbers).
22265 if test "x$srcdir" = x.; then
22266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22267 s/:*\$(srcdir):*/:/
22268 s/:*\${srcdir}:*/:/
22270 s/^\([^=]*=[ ]*\):*/\1/
22276 cat >>$CONFIG_STATUS <<\_ACEOF
22277 fi # test -n "$CONFIG_FILES"
22280 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22283 :[FHLC]) ac_mode=$ac_tag; continue;;
22285 case $ac_mode$ac_tag in
22287 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22288 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22289 { (exit 1); exit 1; }; };;
22290 :[FH]-) ac_tag=-:-;;
22291 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22308 -) ac_f="$tmp/stdin";;
22309 *) # Look for the file first in the build tree, then in the source tree
22310 # (if the path is not absolute). The absolute path cannot be DOS-style,
22311 # because $ac_f cannot contain `:'.
22315 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22317 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22318 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22319 { (exit 1); exit 1; }; };;
22321 ac_file_inputs="$ac_file_inputs $ac_f"
22324 # Let's still pretend it is `configure' which instantiates (i.e., don't
22325 # use $as_me), people would be surprised to read:
22326 # /* config.h. Generated by config.status. */
22327 configure_input="Generated from "`IFS=:
22328 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22329 if test x"$ac_file" != x-; then
22330 configure_input="$ac_file. $configure_input"
22331 { echo "$as_me:$LINENO: creating $ac_file" >&5
22332 echo "$as_me: creating $ac_file" >&6;}
22336 *:-:* | *:-) cat >"$tmp/stdin";;
22341 ac_dir=`$as_dirname -- "$ac_file" ||
22342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22343 X"$ac_file" : 'X\(//\)[^/]' \| \
22344 X"$ac_file" : 'X\(//\)$' \| \
22345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22351 /^X\(\/\/\)[^/].*/{
22366 -*) as_dir=./$as_dir;;
22368 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22372 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22373 *) as_qdir=$as_dir;;
22375 as_dirs="'$as_qdir' $as_dirs"
22376 as_dir=`$as_dirname -- "$as_dir" ||
22377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378 X"$as_dir" : 'X\(//\)[^/]' \| \
22379 X"$as_dir" : 'X\(//\)$' \| \
22380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22386 /^X\(\/\/\)[^/].*/{
22399 test -d "$as_dir" && break
22401 test -z "$as_dirs" || eval "mkdir $as_dirs"
22402 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22403 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22404 { (exit 1); exit 1; }; }; }
22408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22411 # A ".." for each directory in $ac_dir_suffix.
22412 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22413 case $ac_top_builddir_sub in
22414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22418 ac_abs_top_builddir=$ac_pwd
22419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22420 # for backward compatibility:
22421 ac_top_builddir=$ac_top_build_prefix
22424 .) # We are building in place.
22426 ac_top_srcdir=$ac_top_builddir_sub
22427 ac_abs_top_srcdir=$ac_pwd ;;
22428 [\\/]* | ?:[\\/]* ) # Absolute name.
22429 ac_srcdir=$srcdir$ac_dir_suffix;
22430 ac_top_srcdir=$srcdir
22431 ac_abs_top_srcdir=$srcdir ;;
22432 *) # Relative name.
22433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22434 ac_top_srcdir=$ac_top_build_prefix$srcdir
22435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22452 cat >>$CONFIG_STATUS <<\_ACEOF
22453 # If the template does not know about datarootdir, expand it.
22454 # FIXME: This hack should be removed a few years after 2.60.
22455 ac_datarootdir_hack=; ac_datarootdir_seen=
22457 case `sed -n '/datarootdir/ {
22466 ' $ac_file_inputs` in
22467 *datarootdir*) ac_datarootdir_seen=yes;;
22468 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22469 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22470 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22472 cat >>$CONFIG_STATUS <<_ACEOF
22473 ac_datarootdir_hack='
22474 s&@datadir@&$datadir&g
22475 s&@docdir@&$docdir&g
22476 s&@infodir@&$infodir&g
22477 s&@localedir@&$localedir&g
22478 s&@mandir@&$mandir&g
22479 s&\\\${datarootdir}&$datarootdir&g' ;;
22483 # Neutralize VPATH when `$srcdir' = `.'.
22484 # Shell code in configure.ac might set extrasub.
22485 # FIXME: do we really want to maintain this feature?
22486 cat >>$CONFIG_STATUS <<_ACEOF
22490 cat >>$CONFIG_STATUS <<\_ACEOF
22492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22493 s&@configure_input@&$configure_input&;t t
22494 s&@top_builddir@&$ac_top_builddir_sub&;t t
22495 s&@srcdir@&$ac_srcdir&;t t
22496 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22497 s&@top_srcdir@&$ac_top_srcdir&;t t
22498 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22499 s&@builddir@&$ac_builddir&;t t
22500 s&@abs_builddir@&$ac_abs_builddir&;t t
22501 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22502 s&@INSTALL@&$ac_INSTALL&;t t
22503 $ac_datarootdir_hack
22504 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22509 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22510 which seems to be undefined. Please make sure it is defined." >&5
22511 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22512 which seems to be undefined. Please make sure it is defined." >&2;}
22516 -) cat "$tmp/out"; rm -f "$tmp/out";;
22517 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22526 # Transform confdefs.h into a sed script `conftest.defines', that
22527 # substitutes the proper values into config.h.in to produce config.h.
22528 rm -f conftest.defines conftest.tail
22529 # First, append a space to every undef/define line, to ease matching.
22530 echo 's/$/ /' >conftest.defines
22531 # Then, protect against being on the right side of a sed subst, or in
22532 # an unquoted here document, in config.status. If some macros were
22533 # called several times there might be several #defines for the same
22534 # symbol, which is useless. But do not sort them, since the last
22535 # AC_DEFINE must be honored.
22536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22537 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22538 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22539 # PARAMS is the parameter list in the macro definition--in most cases, it's
22540 # just an empty string.
22541 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22542 ac_dB='\\)[ (].*,\\1define\\2'
22550 s/^[ ]*#[ ]*define[ ][ ]*//
22555 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22556 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22557 ' >>conftest.defines
22559 # Remove the space that was appended to ease matching.
22560 # Then replace #undef with comments. This is necessary, for
22561 # example, in the case of _POSIX_SOURCE, which is predefined and required
22562 # on some systems where configure will not decide to define it.
22563 # (The regexp can be short, since the line contains either #define or #undef.)
22565 s,^[ #]*u.*,/* & */,' >>conftest.defines
22567 # Break up conftest.defines:
22568 ac_max_sed_lines=50
22570 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22571 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22572 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22574 ac_in='$ac_file_inputs'
22575 ac_out='"$tmp/out1"'
22576 ac_nxt='"$tmp/out2"'
22580 # Write a here document:
22581 cat >>$CONFIG_STATUS <<_ACEOF
22582 # First, check the format of the line:
22583 cat >"\$tmp/defines.sed" <<\\CEOF
22584 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22585 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22589 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22591 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22592 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22593 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22594 grep . conftest.tail >/dev/null || break
22595 rm -f conftest.defines
22596 mv conftest.tail conftest.defines
22598 rm -f conftest.defines conftest.tail
22600 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22601 cat >>$CONFIG_STATUS <<\_ACEOF
22602 if test x"$ac_file" != x-; then
22603 echo "/* $configure_input */" >"$tmp/config.h"
22604 cat "$ac_result" >>"$tmp/config.h"
22605 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22607 echo "$as_me: $ac_file is unchanged" >&6;}
22610 mv "$tmp/config.h" $ac_file
22613 echo "/* $configure_input */"
22619 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22620 echo "$as_me: executing $ac_file commands" >&6;}
22625 case $ac_file$ac_mode in
22626 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22627 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22628 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22629 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22630 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22631 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22632 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22633 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22634 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22635 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22636 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22637 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22638 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22640 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22642 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22643 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22644 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22646 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22647 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22648 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22650 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22651 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22657 { (exit 0); exit 0; }
22659 chmod +x $CONFIG_STATUS
22660 ac_clean_files=$ac_clean_files_save
22663 # configure is writing to config.log, and then calls config.status.
22664 # config.status does its own redirection, appending to config.log.
22665 # Unfortunately, on DOS this fails, as config.log is still kept open
22666 # by configure, so config.status won't be able to write to it; its
22667 # output is simply discarded. So we exec the FD to /dev/null,
22668 # effectively closing config.log, so it can be properly (re)opened and
22669 # appended to by config.status. When coming back to configure, we
22670 # need to make the FD available again.
22671 if test "$no_create" != yes; then
22673 ac_config_status_args=
22674 test "$silent" = yes &&
22675 ac_config_status_args="$ac_config_status_args --quiet"
22677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22680 # would make configure fail if this is the last instruction.
22681 $ac_cs_success || { (exit 1); exit 1; }
22685 # CONFIG_SUBDIRS section.
22687 if test "$no_recursion" != yes; then
22689 # Remove --cache-file and --srcdir arguments so they do not pile up.
22690 ac_sub_configure_args=
22692 eval "set x $ac_configure_args"
22696 if test -n "$ac_prev"; then
22701 -cache-file | --cache-file | --cache-fil | --cache-fi \
22702 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22703 ac_prev=cache_file ;;
22704 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22705 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22708 --config-cache | -C)
22710 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22712 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22714 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22716 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22720 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22722 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22726 # Always prepend --prefix to ensure using the same prefix
22727 # in subdir configurations.
22728 ac_arg="--prefix=$prefix"
22730 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22732 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22735 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22737 # Do not complain, so a configure script can configure whichever
22738 # parts of a large source tree are present.
22739 test -d "$srcdir/$ac_dir" || continue
22741 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22742 echo "$as_me:$LINENO: $ac_msg" >&5
22746 -*) as_dir=./$as_dir;;
22748 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22752 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22753 *) as_qdir=$as_dir;;
22755 as_dirs="'$as_qdir' $as_dirs"
22756 as_dir=`$as_dirname -- "$as_dir" ||
22757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22758 X"$as_dir" : 'X\(//\)[^/]' \| \
22759 X"$as_dir" : 'X\(//\)$' \| \
22760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22766 /^X\(\/\/\)[^/].*/{
22779 test -d "$as_dir" && break
22781 test -z "$as_dirs" || eval "mkdir $as_dirs"
22782 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22783 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22784 { (exit 1); exit 1; }; }; }
22788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22791 # A ".." for each directory in $ac_dir_suffix.
22792 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22793 case $ac_top_builddir_sub in
22794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22798 ac_abs_top_builddir=$ac_pwd
22799 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22800 # for backward compatibility:
22801 ac_top_builddir=$ac_top_build_prefix
22804 .) # We are building in place.
22806 ac_top_srcdir=$ac_top_builddir_sub
22807 ac_abs_top_srcdir=$ac_pwd ;;
22808 [\\/]* | ?:[\\/]* ) # Absolute name.
22809 ac_srcdir=$srcdir$ac_dir_suffix;
22810 ac_top_srcdir=$srcdir
22811 ac_abs_top_srcdir=$srcdir ;;
22812 *) # Relative name.
22813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22814 ac_top_srcdir=$ac_top_build_prefix$srcdir
22815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22822 # Check for guested configure; otherwise get Cygnus style configure.
22823 if test -f "$ac_srcdir/configure.gnu"; then
22824 ac_sub_configure=$ac_srcdir/configure.gnu
22825 elif test -f "$ac_srcdir/configure"; then
22826 ac_sub_configure=$ac_srcdir/configure
22827 elif test -f "$ac_srcdir/configure.in"; then
22828 # This should be Cygnus configure.
22829 ac_sub_configure=$ac_aux_dir/configure
22831 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22832 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22836 # The recursion is here.
22837 if test -n "$ac_sub_configure"; then
22838 # Make the cache file name correct relative to the subdirectory.
22839 case $cache_file in
22840 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22841 *) # Relative name.
22842 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22845 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22846 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22847 # The eval makes quoting arguments work.
22848 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22849 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22850 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22851 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22852 { (exit 1); exit 1; }; }