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
692 ENABLE_EXPENSIVE_CHECKS
709 LLVM_ENUM_ASM_PRINTERS
710 LLVM_ENUM_ASM_PARSERS
711 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
798 ac_precious_vars='build_alias
809 ac_subdirs_all='projects/llvm-gcc
813 projects/llvm-poolalloc
816 projects/llvm-stacker
824 # Initialize some variables set by options.
826 ac_init_version=false
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
836 program_transform_name=s,x,x,
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 # Accept the important Cygnus configure options, so we can diagnose typos.
888 case $ac_dashdash$ac_option in
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
910 cache_file=config.cache ;;
912 -datadir | --datadir | --datadi | --datad)
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
924 -disable-* | --disable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931 eval enable_$ac_feature=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 -enable-* | --enable-*)
944 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
947 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
948 { (exit 1); exit 1; }; }
949 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
950 eval enable_$ac_feature=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
965 -help | --help | --hel | --he | -h)
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1114 -site=* | --site=* | --sit=*)
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1141 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package| sed 's/-/_/g'`
1147 eval with_$ac_package=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package | sed 's/-/_/g'`
1156 eval with_$ac_package=no ;;
1159 # Obsolete; use --with-x.
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1176 -*) { echo "$as_me: error: unrecognized option: $ac_option
1177 Try \`$0 --help' for more information." >&2
1178 { (exit 1); exit 1; }; }
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1186 { (exit 1); exit 1; }; }
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 { echo "$as_me: error: missing argument to $ac_option" >&2
1204 { (exit 1); exit 1; }; }
1207 # Be sure to have absolute directory names.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219 { (exit 1); exit 1; }; }
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243 test "$silent" = yes && exec 6>/dev/null
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 { echo "$as_me: error: Working directory cannot be determined" >&2
1250 { (exit 1); exit 1; }; }
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 { echo "$as_me: error: pwd does not report name of working directory" >&2
1253 { (exit 1); exit 1; }; }
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$0" ||
1261 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$0" : 'X\(//\)[^/]' \| \
1263 X"$0" : 'X\(//\)$' \| \
1264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1288 ac_srcdir_defaulted=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293 { (exit 1); exit 1; }; }
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1298 { (exit 1); exit 1; }; }
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1324 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 --target=TARGET configure for building compilers for TARGET [HOST]
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --enable-polly Use polly if available (default is YES)
1398 --enable-libcpp Use libc++ if available (default is NO)
1399 --enable-cxx11 Use c++11 if available (default is NO)
1400 --enable-optimized Compile with optimizations enabled (default is NO)
1401 --enable-profiling Compile with profiling enabled (default is NO)
1402 --enable-assertions Compile with assertion checks enabled (default is
1404 --enable-werror Compile with -Werror enabled (default is NO)
1405 --enable-expensive-checks
1406 Compile with expensive debug checks enabled (default
1408 --enable-debug-runtime Build runtime libs with debug symbols (default is
1410 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1411 optimization is on and YES if it's off)
1412 --enable-keep-symbols Do not strip installed executables)
1413 --enable-jit Enable Just In Time Compiling (default is YES)
1414 --enable-docs Build documents (default is YES)
1415 --enable-doxygen Build doxygen documentation (default is NO)
1416 --enable-threads Use threads if available (default is YES)
1417 --enable-pthreads Use pthreads if available (default is YES)
1418 --enable-pic Build LLVM with Position Independent Code (default
1420 --enable-shared Build a shared library and link tools against it
1422 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1423 Win32 DLL (default is NO)
1424 --enable-timestamps Enable embedding timestamp information in build
1426 --enable-targets Build specific host targets: all or
1427 target1,target2,... Valid targets are: host, x86,
1428 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1429 xcore, msp430, nvptx, and cpp (default=all)
1430 --enable-experimental-targets
1431 Build experimental host targets: disable or
1432 target1,target2,... (default=disable)
1433 --enable-bindings Build specific language bindings:
1434 all,auto,none,{binding-name} (default=auto)
1435 --enable-libffi Check for the presence of libffi (default is NO)
1436 --enable-ltdl-install install libltdl
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-optimize-option Select the compiler options to use for optimized
1443 --with-extra-options Specify additional options to compile LLVM with
1444 --with-extra-ld-options Specify additional options to link LLVM with
1445 --with-ocaml-libdir Specify install location for ocaml bindings (default
1447 --with-clang-srcdir Directory to the out-of-tree Clang source
1448 --with-clang-resource-dir
1449 Relative directory from the Clang binary for
1451 --with-c-include-dirs Colon separated list of directories clang will
1453 --with-gcc-toolchain Directory where gcc is installed.
1454 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1455 --with-binutils-include Specify path to binutils/include/ containing
1456 plugin-api.h file for gold plugin.
1457 --with-bug-report-url Specify the URL where bug reports should be
1458 submitted (default=http://llvm.org/bugs/)
1459 --with-internal-prefix Installation directory for internal files
1460 --with-udis86=<path> Use udis86 external x86 disassembler library
1461 --with-oprofile=<prefix>
1462 Tell OProfile >= 0.9.4 how to symbolize JIT output
1463 --with-intel-jitevents=<vtune-amplifier-dir>
1464 Specify location of run-time support library for
1466 (default=/opt/intel/vtune_amplifier_xe_2011)
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1474 you have headers in a nonstandard directory <include dir>
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1482 Report bugs to <http://llvm.org/bugs/>.
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" || continue
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1510 .) # We are building in place.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1534 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1543 LLVM configure 3.2svn
1544 generated by GNU Autoconf 2.60
1546 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1547 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1551 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1555 cat >config.log <<_ACEOF
1556 This file contains any messages produced by compilers while
1557 running configure, to aid debugging if configure makes a mistake.
1559 It was created by LLVM $as_me 3.2svn, which was
1560 generated by GNU Autoconf 2.60. Invocation command line was
1572 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1573 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1574 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1575 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1576 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1578 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1579 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1581 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1582 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1583 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1584 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1585 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1586 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1587 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 test -z "$as_dir" && as_dir=.
1596 echo "PATH: $as_dir"
1612 # Keep a trace of the command line.
1613 # Strip out --no-create and --no-recursion so they do not pile up.
1614 # Strip out --silent because we don't want to record it for future runs.
1615 # Also quote any args containing shell meta-characters.
1616 # Make two passes to allow for proper duplicate-argument suppression.
1620 ac_must_keep_next=false
1626 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1628 | -silent | --silent | --silen | --sile | --sil)
1631 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1634 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1636 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1637 if test $ac_must_keep_next = true; then
1638 ac_must_keep_next=false # Got value, back to normal.
1641 *=* | --config-cache | -C | -disable-* | --disable-* \
1642 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1643 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1644 | -with-* | --with-* | -without-* | --without-* | --x)
1645 case "$ac_configure_args0 " in
1646 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1649 -* ) ac_must_keep_next=true ;;
1652 ac_configure_args="$ac_configure_args '$ac_arg'"
1657 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1658 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1660 # When interrupted or exit'd, cleanup temporary files, and complete
1661 # config.log. We remove comments because anyway the quotes in there
1662 # would cause problems or look ugly.
1663 # WARNING: Use '\'' to represent an apostrophe within the trap.
1664 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1665 trap 'exit_status=$?
1666 # Save into config.log some information that might help in debugging.
1671 ## ---------------- ##
1672 ## Cache variables. ##
1673 ## ---------------- ##
1676 # The following way of writing the cache mishandles newlines in values,
1678 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1679 eval ac_val=\$$ac_var
1683 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1684 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1687 _ | IFS | as_nl) ;; #(
1688 *) $as_unset $ac_var ;;
1693 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1694 *${as_nl}ac_space=\ *)
1696 "s/'\''/'\''\\\\'\'''\''/g;
1697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1708 ## ----------------- ##
1709 ## Output variables. ##
1710 ## ----------------- ##
1713 for ac_var in $ac_subst_vars
1715 eval ac_val=\$$ac_var
1717 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1719 echo "$ac_var='\''$ac_val'\''"
1723 if test -n "$ac_subst_files"; then
1725 ## ------------------- ##
1726 ## File substitutions. ##
1727 ## ------------------- ##
1730 for ac_var in $ac_subst_files
1732 eval ac_val=\$$ac_var
1734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736 echo "$ac_var='\''$ac_val'\''"
1741 if test -s confdefs.h; then
1751 test "$ac_signal" != 0 &&
1752 echo "$as_me: caught signal $ac_signal"
1753 echo "$as_me: exit $exit_status"
1755 rm -f core *.core core.conftest.* &&
1756 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1759 for ac_signal in 1 2 13 15; do
1760 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1764 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1765 rm -f -r conftest* confdefs.h
1767 # Predefined preprocessor variables.
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_NAME "$PACKAGE_NAME"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_STRING "$PACKAGE_STRING"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1794 # Let the site file select an alternate cache file if it wants to.
1795 # Prefer explicitly selected file to automatically selected ones.
1796 if test -n "$CONFIG_SITE"; then
1797 set x "$CONFIG_SITE"
1798 elif test "x$prefix" != xNONE; then
1799 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1801 set x "$ac_default_prefix/share/config.site" \
1802 "$ac_default_prefix/etc/config.site"
1807 if test -r "$ac_site_file"; then
1808 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1809 echo "$as_me: loading site script $ac_site_file" >&6;}
1810 sed 's/^/| /' "$ac_site_file" >&5
1815 if test -r "$cache_file"; then
1816 # Some versions of bash will fail to source /dev/null (special
1817 # files actually), so we avoid doing that.
1818 if test -f "$cache_file"; then
1819 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1820 echo "$as_me: loading cache $cache_file" >&6;}
1822 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1823 *) . "./$cache_file";;
1827 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1828 echo "$as_me: creating cache $cache_file" >&6;}
1832 # Check that the precious variables saved in the cache have kept the same
1834 ac_cache_corrupted=false
1835 for ac_var in $ac_precious_vars; do
1836 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1837 eval ac_new_set=\$ac_env_${ac_var}_set
1838 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1839 eval ac_new_val=\$ac_env_${ac_var}_value
1840 case $ac_old_set,$ac_new_set in
1842 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1843 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1844 ac_cache_corrupted=: ;;
1846 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1847 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1848 ac_cache_corrupted=: ;;
1851 if test "x$ac_old_val" != "x$ac_new_val"; then
1852 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1853 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1854 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1855 echo "$as_me: former value: $ac_old_val" >&2;}
1856 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1857 echo "$as_me: current value: $ac_new_val" >&2;}
1858 ac_cache_corrupted=:
1861 # Pass precious variables to config.status.
1862 if test "$ac_new_set" = set; then
1864 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1865 *) ac_arg=$ac_var=$ac_new_val ;;
1867 case " $ac_configure_args " in
1868 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1869 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1873 if $ac_cache_corrupted; then
1874 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1875 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1876 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1877 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1878 { (exit 1); exit 1; }; }
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 cat >>confdefs.h <<\_ACEOF
1914 #define LLVM_VERSION_MAJOR 3
1918 cat >>confdefs.h <<\_ACEOF
1919 #define LLVM_VERSION_MINOR 2
1923 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1932 for ac_dir in autoconf "$srcdir"/autoconf; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963 if test ${srcdir} != "." ; then
1964 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1965 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1966 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1967 { (exit 1); exit 1; }; }
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976 if test -n "$ac_tool_prefix"; then
1977 for ac_prog in clang llvm-gcc gcc
1979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1983 if test "${ac_cv_prog_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 if test -n "$CC"; then
1987 ac_cv_prog_CC="$CC" # Let the user override the test.
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 if test -n "$CC"; then
2008 { echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6; }
2011 { echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6; }
2016 test -n "$CC" && break
2019 if test -z "$CC"; then
2021 for ac_prog in clang llvm-gcc gcc
2023 # Extract the first word of "$ac_prog", so it can be a program name with args.
2024 set dummy $ac_prog; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 ac_cv_prog_ac_ct_CC="$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2051 if test -n "$ac_ct_CC"; then
2052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053 echo "${ECHO_T}$ac_ct_CC" >&6; }
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2060 test -n "$ac_ct_CC" && break
2063 if test "x$ac_ct_CC" = x; then
2066 case $cross_compiling:$ac_tool_warned in
2068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2069 whose name does not start with the host triplet. If you think this
2070 configuration is useful to you, please write to autoconf@gnu.org." >&5
2071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet. If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2074 ac_tool_warned=yes ;;
2081 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: no acceptable C compiler found in \$PATH
2084 See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }
2087 # Provide some information about the compiler.
2088 echo "$as_me:$LINENO: checking for C compiler version" >&5
2089 ac_compiler=`set X $ac_compile; echo $2`
2090 { (ac_try="$ac_compiler --version >&5"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler --version >&5") 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (ac_try="$ac_compiler -v >&5"
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler -v >&5") 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110 { (ac_try="$ac_compiler -V >&5"
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler -V >&5") 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2121 cat >conftest.$ac_ext <<_ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2141 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2145 # List of possible output files, starting from the most likely.
2146 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2147 # only as a last resort. b.out is created by i960 compilers.
2148 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2150 # The IRIX 6 linker writes into existing files which may not be
2151 # executable, retaining their permissions. Remove them first so a
2152 # subsequent execution test works.
2154 for ac_file in $ac_files
2157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2163 if { (ac_try="$ac_link_default"
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2169 (eval "$ac_link_default") 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2174 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2175 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2176 # so that the user can short-circuit this test for compilers unknown to
2178 for ac_file in $ac_files
2180 test -f "$ac_file" || continue
2182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2185 # We found the default executable, but exeext='' is most
2189 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193 # We set ac_cv_exeext here because the later test for it is not
2194 # safe: cross compilers may not add the suffix if given an `-o'
2195 # argument, so we may need to know it at that point already.
2196 # Even if this section looks crufty: it has the advantage of
2203 test "$ac_cv_exeext" = no && ac_cv_exeext=
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&2;}
2213 { (exit 77); exit 77; }; }
2216 ac_exeext=$ac_cv_exeext
2217 { echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6; }
2220 # Check that the compiler produces executables we can run. If not, either
2221 # the compiler is broken, or we cross compile.
2222 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225 # If not cross compiling, check that we can run a simple program.
2226 if test "$cross_compiling" != yes; then
2227 if { ac_try='./$ac_file'
2228 { (case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2233 (eval "$ac_try") 2>&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2239 if test "$cross_compiling" = maybe; then
2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2252 { echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6; }
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check that the compiler produces executables we can run. If not, either
2258 # the compiler is broken, or we cross compile.
2259 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2261 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6; }
2264 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2266 if { (ac_try="$ac_link"
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2272 (eval "$ac_link") 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; then
2276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2278 # work properly (i.e., refer to `conftest.exe'), while it won't with
2280 for ac_file in conftest.exe conftest conftest.*; do
2281 test -f "$ac_file" || continue
2283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&2;}
2294 { (exit 1); exit 1; }; }
2297 rm -f conftest$ac_cv_exeext
2298 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2301 rm -f conftest.$ac_ext
2302 EXEEXT=$ac_cv_exeext
2304 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2306 if test "${ac_cv_objext+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 cat >conftest.$ac_ext <<_ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2324 rm -f conftest.o conftest.obj
2325 if { (ac_try="$ac_compile"
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2331 (eval "$ac_compile") 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; then
2335 for ac_file in conftest.o conftest.obj conftest.*; do
2336 test -f "$ac_file" || continue;
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2347 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&2;}
2351 { (exit 1); exit 1; }; }
2354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2356 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2357 echo "${ECHO_T}$ac_cv_objext" >&6; }
2358 OBJEXT=$ac_cv_objext
2360 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2383 rm -f conftest.$ac_objext
2384 if { (ac_try="$ac_compile"
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390 (eval "$ac_compile") 2>conftest.er1
2392 grep -v '^ *+' conftest.er1 >conftest.err
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2398 { (case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_try") 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_try") 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2429 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2430 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2431 GCC=`test $ac_compiler_gnu = yes && echo yes`
2432 ac_test_CFLAGS=${CFLAGS+set}
2433 ac_save_CFLAGS=$CFLAGS
2434 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_cc_g+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 ac_save_c_werror_flag=$ac_c_werror_flag
2440 ac_c_werror_flag=yes
2443 cat >conftest.$ac_ext <<_ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2458 rm -f conftest.$ac_objext
2459 if { (ac_try="$ac_compile"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compile") 2>conftest.er1
2467 grep -v '^ *+' conftest.er1 >conftest.err
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
2472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2473 { (case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_try") 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2513 rm -f conftest.$ac_objext
2514 if { (ac_try="$ac_compile"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compile") 2>conftest.er1
2522 grep -v '^ *+' conftest.er1 >conftest.err
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2528 { (case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_try") 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_try") 2>&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2552 ac_c_werror_flag=$ac_save_c_werror_flag
2554 cat >conftest.$ac_ext <<_ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2569 rm -f conftest.$ac_objext
2570 if { (ac_try="$ac_compile"
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_compile") 2>conftest.er1
2578 grep -v '^ *+' conftest.er1 >conftest.err
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_try") 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_try") 2>&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 ac_c_werror_flag=$ac_save_c_werror_flag
2620 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2621 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2622 if test "$ac_test_CFLAGS" = set; then
2623 CFLAGS=$ac_save_CFLAGS
2624 elif test $ac_cv_prog_cc_g = yes; then
2625 if test "$GCC" = yes; then
2631 if test "$GCC" = yes; then
2637 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2638 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_cc_c89+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 ac_cv_prog_cc_c89=no
2644 cat >conftest.$ac_ext <<_ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2652 #include <sys/types.h>
2653 #include <sys/stat.h>
2654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2655 struct buf { int x; };
2656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2657 static char *e (p, i)
2663 static char *f (char * (*g) (char **, int), char **p, ...)
2668 s = g (p, va_arg (v,int));
2673 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2674 function prototypes and stuff, but not '\xHH' hex character constants.
2675 These don't provoke an error unfortunately, instead are silently treated
2676 as 'x'. The following induces an error, until -std is added to get
2677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2678 array size at least. It's necessary to write '\x00'==0 to get something
2679 that's true only with -std. */
2680 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2682 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2683 inside strings and character constants. */
2685 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2687 int test (int i, double x);
2688 struct s1 {int (*f) (int a);};
2689 struct s2 {int (*f) (double a);};
2690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2701 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2704 CC="$ac_save_CC $ac_arg"
2705 rm -f conftest.$ac_objext
2706 if { (ac_try="$ac_compile"
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compile") 2>conftest.er1
2714 grep -v '^ *+' conftest.er1 >conftest.err
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_try") 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 ac_cv_prog_cc_c89=$ac_arg
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f core conftest.err conftest.$ac_objext
2748 test "x$ac_cv_prog_cc_c89" != "xno" && break
2750 rm -f conftest.$ac_ext
2755 case "x$ac_cv_prog_cc_c89" in
2757 { echo "$as_me:$LINENO: result: none needed" >&5
2758 echo "${ECHO_T}none needed" >&6; } ;;
2760 { echo "$as_me:$LINENO: result: unsupported" >&5
2761 echo "${ECHO_T}unsupported" >&6; } ;;
2763 CC="$CC $ac_cv_prog_cc_c89"
2764 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2765 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776 ac_cpp='$CXXCPP $CPPFLAGS'
2777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2780 if test -z "$CXX"; then
2781 if test -n "$CCC"; then
2784 if test -n "$ac_tool_prefix"; then
2785 for ac_prog in clang++ llvm-g++ g++
2787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2791 if test "${ac_cv_prog_CXX+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 if test -n "$CXX"; then
2795 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 if test -n "$CXX"; then
2816 { echo "$as_me:$LINENO: result: $CXX" >&5
2817 echo "${ECHO_T}$CXX" >&6; }
2819 { echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6; }
2824 test -n "$CXX" && break
2827 if test -z "$CXX"; then
2829 for ac_prog in clang++ llvm-g++ g++
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 if test -n "$ac_ct_CXX"; then
2839 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_ac_ct_CXX="$ac_prog"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2859 if test -n "$ac_ct_CXX"; then
2860 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2861 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2863 { echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6; }
2868 test -n "$ac_ct_CXX" && break
2871 if test "x$ac_ct_CXX" = x; then
2874 case $cross_compiling:$ac_tool_warned in
2876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet. If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&5
2879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet. If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2882 ac_tool_warned=yes ;;
2890 # Provide some information about the compiler.
2891 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2892 ac_compiler=`set X $ac_compile; echo $2`
2893 { (ac_try="$ac_compiler --version >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler --version >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903 { (ac_try="$ac_compiler -v >&5"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -v >&5") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913 { (ac_try="$ac_compiler -V >&5"
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compiler -V >&5") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2925 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2926 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2956 grep -v '^ *+' conftest.er1 >conftest.err
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_try") 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_try") 2>&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2993 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2994 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2995 GXX=`test $ac_compiler_gnu = yes && echo yes`
2996 ac_test_CXXFLAGS=${CXXFLAGS+set}
2997 ac_save_CXXFLAGS=$CXXFLAGS
2998 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2999 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3000 if test "${ac_cv_prog_cxx_g+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3004 ac_cxx_werror_flag=yes
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_try") 2>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_prog_cxx_g=yes
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3062 cat >conftest.$ac_ext <<_ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3077 rm -f conftest.$ac_objext
3078 if { (ac_try="$ac_compile"
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try='test -s conftest.$ac_objext'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3118 cat >conftest.$ac_ext <<_ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_cv_prog_cxx_g=yes
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3184 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3185 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3186 if test "$ac_test_CXXFLAGS" = set; then
3187 CXXFLAGS=$ac_save_CXXFLAGS
3188 elif test $ac_cv_prog_cxx_g = yes; then
3189 if test "$GXX" = yes; then
3195 if test "$GXX" = yes; then
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3214 # On Suns, sometimes $CPP names a directory.
3215 if test -n "$CPP" && test -d "$CPP"; then
3218 if test -z "$CPP"; then
3219 if test "${ac_cv_prog_CPP+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 # Double quotes because CPP needs to be expanded
3223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3226 for ac_c_preproc_warn_flag in '' yes
3228 # Use a header file that comes with gcc, so configuring glibc
3229 # with a fresh cross-compiler works.
3230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3231 # <limits.h> exists even on freestanding compilers.
3232 # On the NeXT, cc -E runs the code through the compiler's parser,
3233 # not just through cpp. "Syntax error" is here to catch this case.
3234 cat >conftest.$ac_ext <<_ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3241 # include <limits.h>
3243 # include <assert.h>
3247 if { (ac_try="$ac_cpp conftest.$ac_ext"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3269 if test -z "$ac_cpp_err"; then
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 # Broken: fails on valid input.
3279 rm -f conftest.err conftest.$ac_ext
3281 # OK, works on sane cases. Now check whether nonexistent headers
3282 # can be detected and how.
3283 cat >conftest.$ac_ext <<_ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include <ac_nonexistent.h>
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null; then
3304 if test -s conftest.err; then
3305 ac_cpp_err=$ac_c_preproc_warn_flag
3306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3313 if test -z "$ac_cpp_err"; then
3314 # Broken: success on invalid input.
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 # Passes both tests.
3325 rm -f conftest.err conftest.$ac_ext
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.err conftest.$ac_ext
3330 if $ac_preproc_ok; then
3342 { echo "$as_me:$LINENO: result: $CPP" >&5
3343 echo "${ECHO_T}$CPP" >&6; }
3345 for ac_c_preproc_warn_flag in '' yes
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
3353 cat >conftest.$ac_ext <<_ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3360 # include <limits.h>
3362 # include <assert.h>
3366 if { (ac_try="$ac_cpp conftest.$ac_ext"
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3374 grep -v '^ *+' conftest.er1 >conftest.err
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3388 if test -z "$ac_cpp_err"; then
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 # Broken: fails on valid input.
3398 rm -f conftest.err conftest.$ac_ext
3400 # OK, works on sane cases. Now check whether nonexistent headers
3401 # can be detected and how.
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #include <ac_nonexistent.h>
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418 grep -v '^ *+' conftest.er1 >conftest.err
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3432 if test -z "$ac_cpp_err"; then
3433 # Broken: success on invalid input.
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 # Passes both tests.
3444 rm -f conftest.err conftest.$ac_ext
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then
3452 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&5
3454 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3455 See \`config.log' for more details." >&2;}
3456 { (exit 1); exit 1; }; }
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 if test -d ${srcdir}/projects/llvm-gcc ; then
3469 subdirs="$subdirs projects/llvm-gcc"
3473 if test -d ${srcdir}/projects/test-suite ; then
3474 subdirs="$subdirs projects/test-suite"
3478 if test -d ${srcdir}/projects/llvm-test ; then
3479 subdirs="$subdirs projects/llvm-test"
3483 if test -d ${srcdir}/projects/poolalloc ; then
3484 subdirs="$subdirs projects/poolalloc"
3488 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3489 subdirs="$subdirs projects/llvm-poolalloc"
3493 for i in `ls ${srcdir}/projects`
3495 if test -d ${srcdir}/projects/${i} ; then
3497 sample) subdirs="$subdirs projects/sample"
3499 privbracket) subdirs="$subdirs projects/privbracket"
3501 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3503 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3505 llvm-java) subdirs="$subdirs projects/llvm-java"
3507 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3509 safecode) subdirs="$subdirs projects/safecode"
3511 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3520 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3521 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3527 # Check whether --enable-polly was given.
3528 if test "${enable_polly+set}" = set; then
3529 enableval=$enable_polly;
3534 case "$enableval" in
3539 default) ENABLE_POLLY=1
3541 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3542 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3543 { (exit 1); exit 1; }; } ;;
3547 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3550 subdirs="$subdirs tools/polly"
3555 # Make sure we can run config.sub.
3556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3557 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3558 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3559 { (exit 1); exit 1; }; }
3561 { echo "$as_me:$LINENO: checking build system type" >&5
3562 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3563 if test "${ac_cv_build+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 ac_build_alias=$build_alias
3567 test "x$ac_build_alias" = x &&
3568 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3569 test "x$ac_build_alias" = x &&
3570 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3571 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3572 { (exit 1); exit 1; }; }
3573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3574 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3575 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3576 { (exit 1); exit 1; }; }
3579 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3580 echo "${ECHO_T}$ac_cv_build" >&6; }
3581 case $ac_cv_build in
3583 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3584 echo "$as_me: error: invalid value of canonical build" >&2;}
3585 { (exit 1); exit 1; }; };;
3588 ac_save_IFS=$IFS; IFS='-'
3594 # Remember, the first character of IFS is used to create $*,
3595 # except with old shells:
3598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3601 { echo "$as_me:$LINENO: checking host system type" >&5
3602 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3603 if test "${ac_cv_host+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 if test "x$host_alias" = x; then
3607 ac_cv_host=$ac_cv_build
3609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3611 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3612 { (exit 1); exit 1; }; }
3616 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3617 echo "${ECHO_T}$ac_cv_host" >&6; }
3620 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3621 echo "$as_me: error: invalid value of canonical host" >&2;}
3622 { (exit 1); exit 1; }; };;
3625 ac_save_IFS=$IFS; IFS='-'
3631 # Remember, the first character of IFS is used to create $*,
3632 # except with old shells:
3635 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3638 { echo "$as_me:$LINENO: checking target system type" >&5
3639 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3640 if test "${ac_cv_target+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 if test "x$target_alias" = x; then
3644 ac_cv_target=$ac_cv_host
3646 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3647 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3648 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3649 { (exit 1); exit 1; }; }
3653 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3654 echo "${ECHO_T}$ac_cv_target" >&6; }
3655 case $ac_cv_target in
3657 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3658 echo "$as_me: error: invalid value of canonical target" >&2;}
3659 { (exit 1); exit 1; }; };;
3661 target=$ac_cv_target
3662 ac_save_IFS=$IFS; IFS='-'
3668 # Remember, the first character of IFS is used to create $*,
3669 # except with old shells:
3672 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3675 # The aliases save the names the user supplied, while $host etc.
3676 # will get canonicalized.
3677 test -n "$target_alias" &&
3678 test "$program_prefix$program_suffix$program_transform_name" = \
3680 program_prefix=${target_alias}-
3682 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3683 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3684 if test "${llvm_cv_os_type+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="AIX"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,--whole-archive"
3695 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696 llvm_cv_os_type="IRIX"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,--whole-archive"
3700 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3701 llvm_cv_os_type="Cygwin"
3702 llvm_cv_platform_type="Unix" ;;
3704 llvm_cv_link_all_option="-Wl,-all_load"
3705 llvm_cv_no_link_all_option="-Wl,-noall_load"
3706 llvm_cv_os_type="Darwin"
3707 llvm_cv_platform_type="Unix" ;;
3709 llvm_cv_link_all_option="-Wl,-all_load"
3710 llvm_cv_no_link_all_option="-Wl,-noall_load"
3711 llvm_cv_os_type="Minix"
3712 llvm_cv_platform_type="Unix" ;;
3713 *-*-freebsd* | *-*-kfreebsd-gnu)
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="FreeBSD"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="OpenBSD"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="NetBSD"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="DragonFly"
3732 llvm_cv_platform_type="Unix" ;;
3734 llvm_cv_link_all_option="-Wl,--whole-archive"
3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736 llvm_cv_os_type="HP-UX"
3737 llvm_cv_platform_type="Unix" ;;
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="Interix"
3742 llvm_cv_platform_type="Unix" ;;
3744 llvm_cv_link_all_option="-Wl,--whole-archive"
3745 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746 llvm_cv_os_type="Linux"
3747 llvm_cv_platform_type="Unix" ;;
3749 llvm_cv_link_all_option="-Wl,--whole-archive"
3750 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3751 llvm_cv_os_type="GNU"
3752 llvm_cv_platform_type="Unix" ;;
3754 llvm_cv_link_all_option="-Wl,-z,allextract"
3755 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3756 llvm_cv_os_type="SunOS"
3757 llvm_cv_platform_type="Unix" ;;
3759 llvm_cv_link_all_option="-Wl,-z,allextract"
3760 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3761 llvm_cv_os_type="AuroraUX"
3762 llvm_cv_platform_type="Unix" ;;
3764 llvm_cv_link_all_option="-Wl,--whole-archive"
3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766 llvm_cv_os_type="Win32"
3767 llvm_cv_platform_type="Win32" ;;
3769 llvm_cv_link_all_option="-Wl,--whole-archive"
3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771 llvm_cv_os_type="MingW"
3772 llvm_cv_platform_type="Win32" ;;
3774 llvm_cv_link_all_option="-Wl,--whole-archive"
3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776 llvm_cv_os_type="Haiku"
3777 llvm_cv_platform_type="Unix" ;;
3779 llvm_cv_link_all_option="-Wl,--whole-archive"
3780 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3781 llvm_cv_os_type="Freestanding"
3782 llvm_cv_platform_type="Unix" ;;
3784 llvm_cv_link_all_option="-Wl,--whole-archive"
3785 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3786 llvm_cv_os_type="Freestanding"
3787 llvm_cv_platform_type="Unix" ;;
3789 llvm_cv_link_all_option=""
3790 llvm_cv_no_link_all_option=""
3791 llvm_cv_os_type="Unknown"
3792 llvm_cv_platform_type="Unknown" ;;
3795 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3796 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3799 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3800 if test "${llvm_cv_target_os_type+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 llvm_cv_target_os_type="AIX" ;;
3807 llvm_cv_target_os_type="IRIX" ;;
3809 llvm_cv_target_os_type="Cygwin" ;;
3811 llvm_cv_target_os_type="Darwin" ;;
3813 llvm_cv_target_os_type="Minix" ;;
3814 *-*-freebsd* | *-*-kfreebsd-gnu)
3815 llvm_cv_target_os_type="FreeBSD" ;;
3817 llvm_cv_target_os_type="OpenBSD" ;;
3819 llvm_cv_target_os_type="NetBSD" ;;
3821 llvm_cv_target_os_type="DragonFly" ;;
3823 llvm_cv_target_os_type="HP-UX" ;;
3825 llvm_cv_target_os_type="Interix" ;;
3827 llvm_cv_target_os_type="Linux" ;;
3829 llvm_cv_target_os_type="GNU" ;;
3831 llvm_cv_target_os_type="SunOS" ;;
3833 llvm_cv_target_os_type="AuroraUX" ;;
3835 llvm_cv_target_os_type="Win32" ;;
3837 llvm_cv_target_os_type="MingW" ;;
3839 llvm_cv_target_os_type="Haiku" ;;
3841 llvm_cv_target_os_type="RTEMS" ;;
3843 llvm_cv_target_os_type="NativeClient" ;;
3845 llvm_cv_target_os_type="Freestanding" ;;
3847 llvm_cv_target_os_type="Unknown" ;;
3850 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3851 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3853 if test "$llvm_cv_os_type" = "Unknown" ; then
3854 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3855 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3856 { (exit 1); exit 1; }; }
3861 HOST_OS=$llvm_cv_os_type
3863 TARGET_OS=$llvm_cv_target_os_type
3866 LINKALL=$llvm_cv_link_all_option
3868 NOLINKALL=$llvm_cv_no_link_all_option
3871 case $llvm_cv_platform_type in
3874 cat >>confdefs.h <<\_ACEOF
3875 #define LLVM_ON_UNIX 1
3885 cat >>confdefs.h <<\_ACEOF
3886 #define LLVM_ON_WIN32 1
3896 { echo "$as_me:$LINENO: checking target architecture" >&5
3897 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3898 if test "${llvm_cv_target_arch+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 i?86-*) llvm_cv_target_arch="x86" ;;
3903 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3904 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3905 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3906 arm*-*) llvm_cv_target_arch="ARM" ;;
3907 mips-*) llvm_cv_target_arch="Mips" ;;
3908 mipsel-*) llvm_cv_target_arch="Mips" ;;
3909 xcore-*) llvm_cv_target_arch="XCore" ;;
3910 msp430-*) llvm_cv_target_arch="MSP430" ;;
3911 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3912 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3913 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3914 *) llvm_cv_target_arch="Unknown" ;;
3917 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3918 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3920 if test "$llvm_cv_target_arch" = "Unknown" ; then
3921 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3922 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3925 case "$llvm_cv_target_arch" in
3926 x86) LLVM_NATIVE_ARCH="X86" ;;
3927 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3928 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3931 ARCH=$llvm_cv_target_arch
3935 i?86-*) host_arch="x86" ;;
3936 amd64-* | x86_64-*) host_arch="x86_64" ;;
3937 sparc*-*) host_arch="Sparc" ;;
3938 powerpc*-*) host_arch="PowerPC" ;;
3939 arm*-*) host_arch="ARM" ;;
3940 mips-*) host_arch="Mips" ;;
3941 mipsel-*) host_arch="Mips" ;;
3942 xcore-*) host_arch="XCore" ;;
3943 msp430-*) host_arch="MSP430" ;;
3944 hexagon-*) host_arch="Hexagon" ;;
3945 mblaze-*) host_arch="MBlaze" ;;
3946 *) host_arch="Unknown" ;;
3949 if test "$host_arch" = "Unknown" ; then
3950 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3951 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3954 HOST_ARCH=$host_arch
3959 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3960 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3961 if test "${ac_cv_path_GREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 # Extract the first word of "grep ggrep" to use in msg output
3965 if test -z "$GREP"; then
3966 set dummy grep ggrep; ac_prog_name=$2
3967 if test "${ac_cv_path_GREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_path_GREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in grep ggrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3981 # Check for GNU ac_path_GREP and select it if it is found.
3982 # Check for GNU $ac_path_GREP
3983 case `"$ac_path_GREP" --version 2>&1` in
3985 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'GREP' >> "conftest.nl"
3995 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_GREP="$ac_path_GREP"
4001 ac_path_GREP_max=$ac_count
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_GREP_found && break 3
4020 GREP="$ac_cv_path_GREP"
4021 if test -z "$GREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4028 ac_cv_path_GREP=$GREP
4033 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4035 GREP="$ac_cv_path_GREP"
4038 { echo "$as_me:$LINENO: checking for egrep" >&5
4039 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044 then ac_cv_path_EGREP="$GREP -E"
4046 # Extract the first word of "egrep" to use in msg output
4047 if test -z "$EGREP"; then
4048 set dummy egrep; ac_prog_name=$2
4049 if test "${ac_cv_path_EGREP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 ac_path_EGREP_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 test -z "$as_dir" && as_dir=.
4059 for ac_prog in egrep; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4063 # Check for GNU ac_path_EGREP and select it if it is found.
4064 # Check for GNU $ac_path_EGREP
4065 case `"$ac_path_EGREP" --version 2>&1` in
4067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
4076 echo 'EGREP' >> "conftest.nl"
4077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079 ac_count=`expr $ac_count + 1`
4080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_EGREP="$ac_path_EGREP"
4083 ac_path_EGREP_max=$ac_count
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092 $ac_path_EGREP_found && break 3
4102 EGREP="$ac_cv_path_EGREP"
4103 if test -z "$EGREP"; then
4104 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106 { (exit 1); exit 1; }; }
4110 ac_cv_path_EGREP=$EGREP
4116 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4121 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4122 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4123 if test "${ac_cv_header_stdc+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4145 rm -f conftest.$ac_objext
4146 if { (ac_try="$ac_compile"
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4154 grep -v '^ *+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_header_stdc=yes
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 ac_cv_header_stdc=no
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 if test $ac_cv_header_stdc = yes; then
4190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4191 cat >conftest.$ac_ext <<_ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 $EGREP "memchr" >/dev/null 2>&1; then
4204 ac_cv_header_stdc=no
4210 if test $ac_cv_header_stdc = yes; then
4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 $EGREP "free" >/dev/null 2>&1; then
4225 ac_cv_header_stdc=no
4231 if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233 if test "$cross_compiling" = yes; then
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4244 #if ((' ' & 0x0FF) == 0x020)
4245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4248 # define ISLOWER(c) \
4249 (('a' <= (c) && (c) <= 'i') \
4250 || ('j' <= (c) && (c) <= 'r') \
4251 || ('s' <= (c) && (c) <= 'z'))
4252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4260 for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i))
4262 || toupper (i) != TOUPPER (i))
4267 rm -f conftest$ac_exeext
4268 if { (ac_try="$ac_link"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_link") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4278 { (case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_try") 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4289 echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4294 ac_cv_header_stdc=no
4296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4302 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4303 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4304 if test $ac_cv_header_stdc = yes; then
4306 cat >>confdefs.h <<\_ACEOF
4307 #define STDC_HEADERS 1
4312 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4323 inttypes.h stdint.h unistd.h
4325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 $ac_includes_default
4339 #include <$ac_header>
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_try") 2>&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 eval "$as_ac_Header=yes"
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4380 eval "$as_ac_Header=no"
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 ac_res=`eval echo '${'$as_ac_Header'}'`
4386 { echo "$as_me:$LINENO: result: $ac_res" >&5
4387 echo "${ECHO_T}$ac_res" >&6; }
4388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4389 cat >>confdefs.h <<_ACEOF
4390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4398 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4399 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4400 if test "${ac_cv_c_bigendian+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 # See if sys/param.h defines the BYTE_ORDER macro.
4404 cat >conftest.$ac_ext <<_ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #include <sys/types.h>
4411 #include <sys/param.h>
4416 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4424 rm -f conftest.$ac_objext
4425 if { (ac_try="$ac_compile"
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_compile") 2>conftest.er1
4433 grep -v '^ *+' conftest.er1 >conftest.err
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4439 { (case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_try") 2>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try='test -s conftest.$ac_objext'
4449 { (case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_try") 2>&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 # It does; now see whether it defined to BIG_ENDIAN or not.
4459 cat >conftest.$ac_ext <<_ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <sys/types.h>
4466 #include <sys/param.h>
4471 #if BYTE_ORDER != BIG_ENDIAN
4479 rm -f conftest.$ac_objext
4480 if { (ac_try="$ac_compile"
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_compile") 2>conftest.er1
4488 grep -v '^ *+' conftest.er1 >conftest.err
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4494 { (case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_try") 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_try") 2>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 ac_cv_c_bigendian=yes
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 ac_cv_c_bigendian=no
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 # It does not; compile a test program.
4527 if test "$cross_compiling" = yes; then
4528 # try to guess the endianness by grepping values into an object file
4529 ac_cv_c_bigendian=unknown
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4537 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4538 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4539 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4540 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4541 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4545 _ascii (); _ebcdic ();
4550 rm -f conftest.$ac_objext
4551 if { (ac_try="$ac_compile"
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_compile") 2>conftest.er1
4559 grep -v '^ *+' conftest.er1 >conftest.err
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565 { (case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_try") 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_try") 2>&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4585 ac_cv_c_bigendian=yes
4587 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4588 if test "$ac_cv_c_bigendian" = unknown; then
4589 ac_cv_c_bigendian=no
4591 # finding both strings is unlikely to happen, but who knows?
4592 ac_cv_c_bigendian=unknown
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 cat >conftest.$ac_ext <<_ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 $ac_includes_default
4615 /* Are we little or big endian? From Harbison&Steele. */
4619 char c[sizeof (long int)];
4622 return u.c[sizeof (long int) - 1] == 1;
4628 rm -f conftest$ac_exeext
4629 if { (ac_try="$ac_link"
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_link") 2>&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4639 { (case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_try") 2>&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 ac_cv_c_bigendian=no
4650 echo "$as_me: program exited with status $ac_status" >&5
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4655 ac_cv_c_bigendian=yes
4657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4666 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4667 case $ac_cv_c_bigendian in
4675 { { echo "$as_me:$LINENO: error: unknown endianness
4676 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4677 echo "$as_me: error: unknown endianness
4678 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4679 { (exit 1); exit 1; }; } ;;
4683 if test "$cross_compiling" = yes; then
4684 LLVM_CROSS_COMPILING=1
4687 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4688 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4689 if test "${ac_cv_build_exeext+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4693 ac_cv_build_exeext=.exe
4695 ac_build_prefix=${build_alias}-
4697 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4698 set dummy ${ac_build_prefix}gcc; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 if test -n "$BUILD_CC"; then
4705 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 BUILD_CC=$ac_cv_prog_BUILD_CC
4725 if test -n "$BUILD_CC"; then
4726 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727 echo "${ECHO_T}$BUILD_CC" >&6; }
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4734 if test -z "$BUILD_CC"; then
4735 # Extract the first word of "gcc", so it can be a program name with args.
4736 set dummy gcc; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 if test -n "$BUILD_CC"; then
4743 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_BUILD_CC="gcc"
4753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 BUILD_CC=$ac_cv_prog_BUILD_CC
4763 if test -n "$BUILD_CC"; then
4764 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4765 echo "${ECHO_T}$BUILD_CC" >&6; }
4767 { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4772 if test -z "$BUILD_CC"; then
4773 # Extract the first word of "cc", so it can be a program name with args.
4774 set dummy cc; ac_word=$2
4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 if test -n "$BUILD_CC"; then
4781 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4792 ac_prog_rejected=yes
4795 ac_cv_prog_BUILD_CC="cc"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 if test $ac_prog_rejected = yes; then
4804 # We found a bogon in the path, so make sure we never use it.
4805 set dummy $ac_cv_prog_BUILD_CC
4807 if test $# != 0; then
4808 # We chose a different compiler from the bogus one.
4809 # However, it has the same basename, so the bogon will be chosen
4810 # first if we set BUILD_CC to just the basename; use the full file name.
4812 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4817 BUILD_CC=$ac_cv_prog_BUILD_CC
4818 if test -n "$BUILD_CC"; then
4819 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4820 echo "${ECHO_T}$BUILD_CC" >&6; }
4822 { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4829 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4830 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4831 { (exit 1); exit 1; }; }
4832 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4834 echo 'int main () { return 0; }' > conftest.$ac_ext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4837 (eval $ac_build_link) 2>&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; then
4841 for file in conftest.*; do
4843 *.c | *.o | *.obj | *.dSYM) ;;
4844 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4848 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4849 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4850 { (exit 1); exit 1; }; }
4853 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4858 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4859 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4860 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4861 ac_build_exeext=$BUILD_EXEEXT
4863 ac_build_prefix=${build_alias}-
4864 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4865 set dummy ${ac_build_prefix}g++; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 if test -n "$BUILD_CXX"; then
4872 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892 if test -n "$BUILD_CXX"; then
4893 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894 echo "${ECHO_T}$BUILD_CXX" >&6; }
4896 { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4901 if test -z "$BUILD_CXX"; then
4902 # Extract the first word of "g++", so it can be a program name with args.
4903 set dummy g++; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$BUILD_CXX"; then
4910 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_BUILD_CXX="g++"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4930 if test -n "$BUILD_CXX"; then
4931 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4932 echo "${ECHO_T}$BUILD_CXX" >&6; }
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4939 if test -z "$BUILD_CXX"; then
4940 # Extract the first word of "c++", so it can be a program name with args.
4941 set dummy c++; ac_word=$2
4942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4944 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 if test -n "$BUILD_CXX"; then
4948 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4959 ac_prog_rejected=yes
4962 ac_cv_prog_BUILD_CXX="c++"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 if test $ac_prog_rejected = yes; then
4971 # We found a bogon in the path, so make sure we never use it.
4972 set dummy $ac_cv_prog_BUILD_CXX
4974 if test $# != 0; then
4975 # We chose a different compiler from the bogus one.
4976 # However, it has the same basename, so the bogon will be chosen
4977 # first if we set BUILD_CXX to just the basename; use the full file name.
4979 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4984 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4985 if test -n "$BUILD_CXX"; then
4986 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4987 echo "${ECHO_T}$BUILD_CXX" >&6; }
4989 { echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6; }
4997 LLVM_CROSS_COMPILING=0
5001 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5012 # Check whether --enable-libcpp was given.
5013 if test "${enable_libcpp+set}" = set; then
5014 enableval=$enable_libcpp;
5019 case "$enableval" in
5020 yes) ENABLE_LIBCPP=1
5024 default) ENABLE_LIBCPP=0
5026 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5027 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5028 { (exit 1); exit 1; }; } ;;
5031 # Check whether --enable-cxx11 was given.
5032 if test "${enable_cxx11+set}" = set; then
5033 enableval=$enable_cxx11;
5038 case "$enableval" in
5043 default) ENABLE_CXX11=0
5045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5046 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5050 # Check whether --enable-optimized was given.
5051 if test "${enable_optimized+set}" = set; then
5052 enableval=$enable_optimized;
5057 if test ${enableval} = "no" ; then
5061 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5065 # Check whether --enable-profiling was given.
5066 if test "${enable_profiling+set}" = set; then
5067 enableval=$enable_profiling;
5072 if test ${enableval} = "no" ; then
5076 ENABLE_PROFILING=ENABLE_PROFILING=1
5080 # Check whether --enable-assertions was given.
5081 if test "${enable_assertions+set}" = set; then
5082 enableval=$enable_assertions;
5087 if test ${enableval} = "yes" ; then
5091 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5095 # Check whether --enable-werror was given.
5096 if test "${enable_werror+set}" = set; then
5097 enableval=$enable_werror;
5102 case "$enableval" in
5103 yes) ENABLE_WERROR=1
5107 default) ENABLE_WERROR=0
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5110 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5114 # Check whether --enable-expensive-checks was given.
5115 if test "${enable_expensive_checks+set}" = set; then
5116 enableval=$enable_expensive_checks;
5121 if test ${enableval} = "yes" ; then
5122 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5124 EXPENSIVE_CHECKS=yes
5127 ENABLE_EXPENSIVE_CHECKS=
5133 # Check whether --enable-debug-runtime was given.
5134 if test "${enable_debug_runtime+set}" = set; then
5135 enableval=$enable_debug_runtime;
5140 if test ${enableval} = "no" ; then
5144 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5148 # Check whether --enable-debug-symbols was given.
5149 if test "${enable_debug_symbols+set}" = set; then
5150 enableval=$enable_debug_symbols;
5155 if test ${enableval} = "no" ; then
5159 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5163 # Check whether --enable-keep-symbols was given.
5164 if test "${enable_keep_symbols+set}" = set; then
5165 enableval=$enable_keep_symbols;
5170 if test ${enableval} = "no" ; then
5174 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5178 # Check whether --enable-jit was given.
5179 if test "${enable_jit+set}" = set; then
5180 enableval=$enable_jit;
5185 if test ${enableval} = "no"
5190 case "$llvm_cv_target_arch" in
5191 x86) TARGET_HAS_JIT=1
5193 Sparc) TARGET_HAS_JIT=0
5195 PowerPC) TARGET_HAS_JIT=1
5197 x86_64) TARGET_HAS_JIT=1
5199 ARM) TARGET_HAS_JIT=1
5201 Mips) TARGET_HAS_JIT=1
5203 XCore) TARGET_HAS_JIT=0
5205 MSP430) TARGET_HAS_JIT=0
5207 Hexagon) TARGET_HAS_JIT=0
5209 MBlaze) TARGET_HAS_JIT=0
5211 NVPTX) TARGET_HAS_JIT=0
5218 # Check whether --enable-docs was given.
5219 if test "${enable_docs+set}" = set; then
5220 enableval=$enable_docs;
5225 case "$enableval" in
5230 default) ENABLE_DOCS=1
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5237 # Check whether --enable-doxygen was given.
5238 if test "${enable_doxygen+set}" = set; then
5239 enableval=$enable_doxygen;
5244 case "$enableval" in
5245 yes) ENABLE_DOXYGEN=1
5247 no) ENABLE_DOXYGEN=0
5249 default) ENABLE_DOXYGEN=0
5251 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5252 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5253 { (exit 1); exit 1; }; } ;;
5256 # Check whether --enable-threads was given.
5257 if test "${enable_threads+set}" = set; then
5258 enableval=$enable_threads;
5263 case "$enableval" in
5264 yes) LLVM_ENABLE_THREADS=1
5266 no) LLVM_ENABLE_THREADS=0
5268 default) LLVM_ENABLE_THREADS=1
5270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5272 { (exit 1); exit 1; }; } ;;
5275 cat >>confdefs.h <<_ACEOF
5276 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5280 # Check whether --enable-pthreads was given.
5281 if test "${enable_pthreads+set}" = set; then
5282 enableval=$enable_pthreads;
5287 case "$enableval" in
5288 yes) ENABLE_PTHREADS=1
5290 no) ENABLE_PTHREADS=0
5292 default) ENABLE_PTHREADS=1
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5299 # Check whether --enable-pic was given.
5300 if test "${enable_pic+set}" = set; then
5301 enableval=$enable_pic;
5306 case "$enableval" in
5311 default) ENABLE_PIC=1
5313 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5314 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5315 { (exit 1); exit 1; }; } ;;
5318 cat >>confdefs.h <<_ACEOF
5319 #define ENABLE_PIC $ENABLE_PIC
5323 # Check whether --enable-shared was given.
5324 if test "${enable_shared+set}" = set; then
5325 enableval=$enable_shared;
5330 case "$enableval" in
5331 yes) ENABLE_SHARED=1
5335 default) ENABLE_SHARED=0
5337 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5338 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5339 { (exit 1); exit 1; }; } ;;
5342 # Check whether --enable-embed-stdcxx was given.
5343 if test "${enable_embed_stdcxx+set}" = set; then
5344 enableval=$enable_embed_stdcxx;
5349 case "$enableval" in
5350 yes) ENABLE_EMBED_STDCXX=1
5352 no) ENABLE_EMBED_STDCXX=0
5354 default) ENABLE_EMBED_STDCXX=0
5356 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5357 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5358 { (exit 1); exit 1; }; } ;;
5361 # Check whether --enable-timestamps was given.
5362 if test "${enable_timestamps+set}" = set; then
5363 enableval=$enable_timestamps;
5368 case "$enableval" in
5369 yes) ENABLE_TIMESTAMPS=1
5371 no) ENABLE_TIMESTAMPS=0
5373 default) ENABLE_TIMESTAMPS=1
5375 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5376 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5377 { (exit 1); exit 1; }; } ;;
5380 cat >>confdefs.h <<_ACEOF
5381 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5386 # Check whether --enable-targets was given.
5387 if test "${enable_targets+set}" = set; then
5388 enableval=$enable_targets;
5393 if test "$enableval" = host-only ; then
5396 case "$enableval" in
5397 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5398 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5400 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5401 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5402 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5403 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5404 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5405 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5406 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5407 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5408 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5409 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5410 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5411 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5412 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5413 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5414 host) case "$llvm_cv_target_arch" in
5415 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5416 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5417 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5418 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5419 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5420 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5421 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5422 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5423 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5424 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5425 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5426 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5427 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5428 echo "$as_me: error: Can not set target to build" >&2;}
5429 { (exit 1); exit 1; }; } ;;
5431 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5432 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5433 { (exit 1); exit 1; }; } ;;
5439 # Check whether --enable-experimental-targets was given.
5440 if test "${enable_experimental_targets+set}" = set; then
5441 enableval=$enable_experimental_targets;
5447 if test ${enableval} != "disable"
5449 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5452 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5455 for a_target in $TARGETS_TO_BUILD; do
5456 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5458 cat >>confdefs.h <<_ACEOF
5459 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5462 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5463 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5464 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5465 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5466 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5467 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5469 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5470 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5473 cat >>confdefs.h <<_ACEOF
5474 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5478 cat >>confdefs.h <<_ACEOF
5479 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5483 cat >>confdefs.h <<_ACEOF
5484 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5488 cat >>confdefs.h <<_ACEOF
5489 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5492 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5494 cat >>confdefs.h <<_ACEOF
5495 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5499 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5501 cat >>confdefs.h <<_ACEOF
5502 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5509 LLVM_ENUM_TARGETS=""
5510 LLVM_ENUM_ASM_PRINTERS=""
5511 LLVM_ENUM_ASM_PARSERS=""
5512 LLVM_ENUM_DISASSEMBLERS=""
5513 for target_to_build in $TARGETS_TO_BUILD; do
5514 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5515 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5516 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5518 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5519 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5521 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5522 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5531 # Check whether --with-optimize-option was given.
5532 if test "${with_optimize_option+set}" = set; then
5533 withval=$with_optimize_option;
5538 { echo "$as_me:$LINENO: checking optimization flags" >&5
5539 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5542 case "$llvm_cv_os_type" in
5543 FreeBSD) optimize_option=-O2 ;;
5544 MingW) optimize_option=-O2 ;;
5545 *) optimize_option=-O3 ;;
5547 *) optimize_option="$withval" ;;
5549 OPTIMIZE_OPTION=$optimize_option
5551 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5552 echo "${ECHO_T}$optimize_option" >&6; }
5555 # Check whether --with-extra-options was given.
5556 if test "${with_extra_options+set}" = set; then
5557 withval=$with_extra_options;
5563 default) EXTRA_OPTIONS= ;;
5564 *) EXTRA_OPTIONS=$withval ;;
5566 EXTRA_OPTIONS=$EXTRA_OPTIONS
5570 # Check whether --with-extra-ld-options was given.
5571 if test "${with_extra_ld_options+set}" = set; then
5572 withval=$with_extra_ld_options;
5578 default) EXTRA_LD_OPTIONS= ;;
5579 *) EXTRA_LD_OPTIONS=$withval ;;
5581 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5584 # Check whether --enable-bindings was given.
5585 if test "${enable_bindings+set}" = set; then
5586 enableval=$enable_bindings;
5591 BINDINGS_TO_BUILD=""
5592 case "$enableval" in
5593 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5594 all ) BINDINGS_TO_BUILD="ocaml" ;;
5595 none | no) BINDINGS_TO_BUILD="" ;;
5596 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5597 case "$a_binding" in
5598 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5599 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5600 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5601 { (exit 1); exit 1; }; } ;;
5608 # Check whether --with-ocaml-libdir was given.
5609 if test "${with_ocaml_libdir+set}" = set; then
5610 withval=$with_ocaml_libdir;
5616 auto) with_ocaml_libdir="$withval" ;;
5617 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5618 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5619 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5620 { (exit 1); exit 1; }; } ;;
5624 # Check whether --with-clang-srcdir was given.
5625 if test "${with_clang_srcdir+set}" = set; then
5626 withval=$with_clang_srcdir;
5632 -) clang_src_root="" ;;
5633 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5634 *) clang_src_root="$ac_pwd/$withval" ;;
5636 CLANG_SRC_ROOT=$clang_src_root
5640 # Check whether --with-clang-resource-dir was given.
5641 if test "${with_clang_resource_dir+set}" = set; then
5642 withval=$with_clang_resource_dir;
5648 cat >>confdefs.h <<_ACEOF
5649 #define CLANG_RESOURCE_DIR "$withval"
5654 # Check whether --with-c-include-dirs was given.
5655 if test "${with_c_include_dirs+set}" = set; then
5656 withval=$with_c_include_dirs;
5662 cat >>confdefs.h <<_ACEOF
5663 #define C_INCLUDE_DIRS "$withval"
5667 # Clang normally uses the system c++ headers and libraries. With this option,
5668 # clang will use the ones provided by a gcc installation instead. This option should
5669 # be passed the same value that was used with --prefix when configuring gcc.
5671 # Check whether --with-gcc-toolchain was given.
5672 if test "${with_gcc_toolchain+set}" = set; then
5673 withval=$with_gcc_toolchain;
5679 cat >>confdefs.h <<_ACEOF
5680 #define GCC_INSTALL_PREFIX "$withval"
5685 # Check whether --with-default-sysroot was given.
5686 if test "${with_default_sysroot+set}" = set; then
5687 withval=$with_default_sysroot;
5693 cat >>confdefs.h <<_ACEOF
5694 #define DEFAULT_SYSROOT "$withval"
5699 # Check whether --with-binutils-include was given.
5700 if test "${with_binutils_include+set}" = set; then
5701 withval=$with_binutils_include;
5707 default) WITH_BINUTILS_INCDIR=default ;;
5708 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5709 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5710 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5711 { (exit 1); exit 1; }; } ;;
5713 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5714 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5716 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5717 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5718 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5719 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5720 { (exit 1); exit 1; }; };
5725 # Check whether --with-bug-report-url was given.
5726 if test "${with_bug_report_url+set}" = set; then
5727 withval=$with_bug_report_url;
5729 withval="http://llvm.org/bugs/"
5733 cat >>confdefs.h <<_ACEOF
5734 #define BUG_REPORT_URL "$withval"
5738 # Check whether --enable-libffi was given.
5739 if test "${enable_libffi+set}" = set; then
5740 enableval=$enable_libffi; case "$enableval" in
5741 yes) llvm_cv_enable_libffi="yes" ;;
5742 no) llvm_cv_enable_libffi="no" ;;
5743 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5744 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5745 { (exit 1); exit 1; }; } ;;
5748 llvm_cv_enable_libffi=no
5753 # Check whether --with-internal-prefix was given.
5754 if test "${with_internal_prefix+set}" = set; then
5755 withval=$with_internal_prefix;
5760 INTERNAL_PREFIX=$withval
5764 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5765 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5766 if test "${lt_cv_path_NM+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 if test -n "$NM"; then
5770 # Let the user override the test.
5773 lt_nm_to_check="${ac_tool_prefix}nm"
5774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5775 lt_nm_to_check="$lt_nm_to_check nm"
5777 for lt_tmp_nm in $lt_nm_to_check; do
5778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5781 test -z "$ac_dir" && ac_dir=.
5782 tmp_nm="$ac_dir/$lt_tmp_nm"
5783 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5784 # Check to see if the nm accepts a BSD-compat flag.
5785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5786 # nm: unknown option "B" ignored
5787 # Tru64's nm complains that /dev/null is an invalid object file
5788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5789 */dev/null* | *'Invalid file or object type'*)
5790 lt_cv_path_NM="$tmp_nm -B"
5794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5796 lt_cv_path_NM="$tmp_nm -p"
5800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5801 continue # so that we can try to find one that supports BSD flags
5810 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5813 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5814 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5819 { echo "$as_me:$LINENO: checking for GNU make" >&5
5820 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5821 if test "${llvm_cv_gnu_make_command+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 llvm_cv_gnu_make_command=''
5825 for a in "$MAKE" make gmake gnumake ; do
5826 if test -z "$a" ; then continue ; fi ;
5827 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5829 llvm_cv_gnu_make_command=$a ;
5834 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5835 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5836 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5840 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5841 echo "${ECHO_T}\"Not found\"" >&6; };
5845 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5846 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5848 if test "$LN_S" = "ln -s"; then
5849 { echo "$as_me:$LINENO: result: yes" >&5
5850 echo "${ECHO_T}yes" >&6; }
5852 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5853 echo "${ECHO_T}no, using $LN_S" >&6; }
5856 # Extract the first word of "cmp", so it can be a program name with args.
5857 set dummy cmp; ac_word=$2
5858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5860 if test "${ac_cv_path_CMP+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5888 if test -n "$CMP"; then
5889 { echo "$as_me:$LINENO: result: $CMP" >&5
5890 echo "${ECHO_T}$CMP" >&6; }
5892 { echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6; }
5897 # Extract the first word of "cp", so it can be a program name with args.
5898 set dummy cp; ac_word=$2
5899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5901 if test "${ac_cv_path_CP+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5929 if test -n "$CP"; then
5930 { echo "$as_me:$LINENO: result: $CP" >&5
5931 echo "${ECHO_T}$CP" >&6; }
5933 { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5938 # Extract the first word of "date", so it can be a program name with args.
5939 set dummy date; ac_word=$2
5940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5942 if test "${ac_cv_path_DATE+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5957 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5969 DATE=$ac_cv_path_DATE
5970 if test -n "$DATE"; then
5971 { echo "$as_me:$LINENO: result: $DATE" >&5
5972 echo "${ECHO_T}$DATE" >&6; }
5974 { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5979 # Extract the first word of "find", so it can be a program name with args.
5980 set dummy find; ac_word=$2
5981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5983 if test "${ac_cv_path_FIND+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5998 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6010 FIND=$ac_cv_path_FIND
6011 if test -n "$FIND"; then
6012 { echo "$as_me:$LINENO: result: $FIND" >&5
6013 echo "${ECHO_T}$FIND" >&6; }
6015 { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6020 # Extract the first word of "grep", so it can be a program name with args.
6021 set dummy grep; ac_word=$2
6022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6024 if test "${ac_cv_path_GREP+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6051 GREP=$ac_cv_path_GREP
6052 if test -n "$GREP"; then
6053 { echo "$as_me:$LINENO: result: $GREP" >&5
6054 echo "${ECHO_T}$GREP" >&6; }
6056 { echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6; }
6061 # Extract the first word of "mkdir", so it can be a program name with args.
6062 set dummy mkdir; ac_word=$2
6063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6065 if test "${ac_cv_path_MKDIR+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6080 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6092 MKDIR=$ac_cv_path_MKDIR
6093 if test -n "$MKDIR"; then
6094 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6095 echo "${ECHO_T}$MKDIR" >&6; }
6097 { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6102 # Extract the first word of "mv", so it can be a program name with args.
6103 set dummy mv; ac_word=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_path_MV+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6134 if test -n "$MV"; then
6135 { echo "$as_me:$LINENO: result: $MV" >&5
6136 echo "${ECHO_T}$MV" >&6; }
6138 { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6143 if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6145 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_prog_RANLIB+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 if test -n "$RANLIB"; then
6152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 RANLIB=$ac_cv_prog_RANLIB
6172 if test -n "$RANLIB"; then
6173 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6174 echo "${ECHO_T}$RANLIB" >&6; }
6176 { echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6; }
6182 if test -z "$ac_cv_prog_RANLIB"; then
6183 ac_ct_RANLIB=$RANLIB
6184 # Extract the first word of "ranlib", so it can be a program name with args.
6185 set dummy ranlib; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 if test -n "$ac_ct_RANLIB"; then
6192 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_ac_ct_RANLIB="ranlib"
6202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6212 if test -n "$ac_ct_RANLIB"; then
6213 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6214 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6216 { echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6; }
6220 if test "x$ac_ct_RANLIB" = x; then
6223 case $cross_compiling:$ac_tool_warned in
6225 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6226 whose name does not start with the host triplet. If you think this
6227 configuration is useful to you, please write to autoconf@gnu.org." >&5
6228 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet. If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6231 ac_tool_warned=yes ;;
6233 RANLIB=$ac_ct_RANLIB
6236 RANLIB="$ac_cv_prog_RANLIB"
6239 if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6241 set dummy ${ac_tool_prefix}ar; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_AR+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 if test -n "$AR"; then
6248 ac_cv_prog_AR="$AR" # Let the user override the test.
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_AR="${ac_tool_prefix}ar"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 if test -n "$AR"; then
6269 { echo "$as_me:$LINENO: result: $AR" >&5
6270 echo "${ECHO_T}$AR" >&6; }
6272 { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6278 if test -z "$ac_cv_prog_AR"; then
6280 # Extract the first word of "ar", so it can be a program name with args.
6281 set dummy ar; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 if test -n "$ac_ct_AR"; then
6288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_ac_ct_AR="ar"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6308 if test -n "$ac_ct_AR"; then
6309 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6310 echo "${ECHO_T}$ac_ct_AR" >&6; }
6312 { echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6; }
6316 if test "x$ac_ct_AR" = x; then
6319 case $cross_compiling:$ac_tool_warned in
6321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6322 whose name does not start with the host triplet. If you think this
6323 configuration is useful to you, please write to autoconf@gnu.org." >&5
6324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet. If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6327 ac_tool_warned=yes ;;
6335 # Extract the first word of "rm", so it can be a program name with args.
6336 set dummy rm; ac_word=$2
6337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6339 if test "${ac_cv_path_RM+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6367 if test -n "$RM"; then
6368 { echo "$as_me:$LINENO: result: $RM" >&5
6369 echo "${ECHO_T}$RM" >&6; }
6371 { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6376 # Extract the first word of "sed", so it can be a program name with args.
6377 set dummy sed; ac_word=$2
6378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6380 if test "${ac_cv_path_SED+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6408 if test -n "$SED"; then
6409 { echo "$as_me:$LINENO: result: $SED" >&5
6410 echo "${ECHO_T}$SED" >&6; }
6412 { echo "$as_me:$LINENO: result: no" >&5
6413 echo "${ECHO_T}no" >&6; }
6417 # Extract the first word of "tar", so it can be a program name with args.
6418 set dummy tar; ac_word=$2
6419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6421 if test "${ac_cv_path_TAR+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6449 if test -n "$TAR"; then
6450 { echo "$as_me:$LINENO: result: $TAR" >&5
6451 echo "${ECHO_T}$TAR" >&6; }
6453 { echo "$as_me:$LINENO: result: no" >&5
6454 echo "${ECHO_T}no" >&6; }
6458 # Extract the first word of "pwd", so it can be a program name with args.
6459 set dummy pwd; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_BINPWD+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6489 BINPWD=$ac_cv_path_BINPWD
6490 if test -n "$BINPWD"; then
6491 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6492 echo "${ECHO_T}$BINPWD" >&6; }
6494 { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6500 # Extract the first word of "Graphviz", so it can be a program name with args.
6501 set dummy Graphviz; ac_word=$2
6502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6504 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6531 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6532 if test -n "$GRAPHVIZ"; then
6533 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6534 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6536 { echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6; }
6541 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6543 cat >>confdefs.h <<\_ACEOF
6544 #define HAVE_GRAPHVIZ 1
6547 if test "$llvm_cv_os_type" = "MingW" ; then
6548 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6551 cat >>confdefs.h <<_ACEOF
6552 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6556 # Extract the first word of "dot", so it can be a program name with args.
6557 set dummy dot; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_path_DOT+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6588 if test -n "$DOT"; then
6589 { echo "$as_me:$LINENO: result: $DOT" >&5
6590 echo "${ECHO_T}$DOT" >&6; }
6592 { echo "$as_me:$LINENO: result: no" >&5
6593 echo "${ECHO_T}no" >&6; }
6597 if test "$DOT" != "echo dot" ; then
6599 cat >>confdefs.h <<\_ACEOF
6603 if test "$llvm_cv_os_type" = "MingW" ; then
6604 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6607 cat >>confdefs.h <<_ACEOF
6608 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6612 # Extract the first word of "fdp", so it can be a program name with args.
6613 set dummy fdp; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_FDP+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6644 if test -n "$FDP"; then
6645 { echo "$as_me:$LINENO: result: $FDP" >&5
6646 echo "${ECHO_T}$FDP" >&6; }
6648 { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6653 if test "$FDP" != "echo fdp" ; then
6655 cat >>confdefs.h <<\_ACEOF
6659 if test "$llvm_cv_os_type" = "MingW" ; then
6660 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6663 cat >>confdefs.h <<_ACEOF
6664 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6668 # Extract the first word of "neato", so it can be a program name with args.
6669 set dummy neato; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_path_NEATO+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6699 NEATO=$ac_cv_path_NEATO
6700 if test -n "$NEATO"; then
6701 { echo "$as_me:$LINENO: result: $NEATO" >&5
6702 echo "${ECHO_T}$NEATO" >&6; }
6704 { echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6; }
6709 if test "$NEATO" != "echo neato" ; then
6711 cat >>confdefs.h <<\_ACEOF
6712 #define HAVE_NEATO 1
6715 if test "$llvm_cv_os_type" = "MingW" ; then
6716 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6719 cat >>confdefs.h <<_ACEOF
6720 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6724 # Extract the first word of "twopi", so it can be a program name with args.
6725 set dummy twopi; ac_word=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_path_TWOPI+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6755 TWOPI=$ac_cv_path_TWOPI
6756 if test -n "$TWOPI"; then
6757 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6758 echo "${ECHO_T}$TWOPI" >&6; }
6760 { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6765 if test "$TWOPI" != "echo twopi" ; then
6767 cat >>confdefs.h <<\_ACEOF
6768 #define HAVE_TWOPI 1
6771 if test "$llvm_cv_os_type" = "MingW" ; then
6772 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6775 cat >>confdefs.h <<_ACEOF
6776 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6780 # Extract the first word of "circo", so it can be a program name with args.
6781 set dummy circo; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_path_CIRCO+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6811 CIRCO=$ac_cv_path_CIRCO
6812 if test -n "$CIRCO"; then
6813 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6814 echo "${ECHO_T}$CIRCO" >&6; }
6816 { echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6; }
6821 if test "$CIRCO" != "echo circo" ; then
6823 cat >>confdefs.h <<\_ACEOF
6824 #define HAVE_CIRCO 1
6827 if test "$llvm_cv_os_type" = "MingW" ; then
6828 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6831 cat >>confdefs.h <<_ACEOF
6832 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6836 for ac_prog in gv gsview32
6838 # Extract the first word of "$ac_prog", so it can be a program name with args.
6839 set dummy $ac_prog; ac_word=$2
6840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6842 if test "${ac_cv_path_GV+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 if test -n "$GV"; then
6870 { echo "$as_me:$LINENO: result: $GV" >&5
6871 echo "${ECHO_T}$GV" >&6; }
6873 { echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6; }
6878 test -n "$GV" && break
6880 test -n "$GV" || GV="echo gv"
6882 if test "$GV" != "echo gv" ; then
6884 cat >>confdefs.h <<\_ACEOF
6888 if test "$llvm_cv_os_type" = "MingW" ; then
6889 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6892 cat >>confdefs.h <<_ACEOF
6893 #define LLVM_PATH_GV "$GV${EXEEXT}"
6897 # Extract the first word of "dotty", so it can be a program name with args.
6898 set dummy dotty; ac_word=$2
6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901 if test "${ac_cv_path_DOTTY+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6928 DOTTY=$ac_cv_path_DOTTY
6929 if test -n "$DOTTY"; then
6930 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6931 echo "${ECHO_T}$DOTTY" >&6; }
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6938 if test "$DOTTY" != "echo dotty" ; then
6940 cat >>confdefs.h <<\_ACEOF
6941 #define HAVE_DOTTY 1
6944 if test "$llvm_cv_os_type" = "MingW" ; then
6945 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6948 cat >>confdefs.h <<_ACEOF
6949 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6953 # Extract the first word of "xdot.py", so it can be a program name with args.
6954 set dummy xdot.py; ac_word=$2
6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6984 XDOT_PY=$ac_cv_path_XDOT_PY
6985 if test -n "$XDOT_PY"; then
6986 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6987 echo "${ECHO_T}$XDOT_PY" >&6; }
6989 { echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6; }
6994 if test "$XDOT_PY" != "echo xdot.py" ; then
6996 cat >>confdefs.h <<\_ACEOF
6997 #define HAVE_XDOT_PY 1
7000 if test "$llvm_cv_os_type" = "MingW" ; then
7001 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7004 cat >>confdefs.h <<_ACEOF
7005 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7010 # Find a good install program. We prefer a C program (faster),
7011 # so one script is as good as another. But avoid the broken or
7012 # incompatible versions:
7013 # SysV /etc/install, /usr/sbin/install
7014 # SunOS /usr/etc/install
7015 # IRIX /sbin/install
7017 # AmigaOS /C/install, which installs bootblocks on floppy discs
7018 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7021 # OS/2's system install, which has a completely different semantic
7022 # ./install, which can be erroneously created by make from ./install.sh.
7023 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7024 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7025 if test -z "$INSTALL"; then
7026 if test "${ac_cv_path_install+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 # Account for people who put trailing slashes in PATH elements.
7036 ./ | .// | /cC/* | \
7037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7038 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7041 # OSF1 and SCO ODT 3.0 have their own names for install.
7042 # Don't use installbsd from OSF since it installs stuff as root
7044 for ac_prog in ginstall scoinst install; do
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7047 if test $ac_prog = install &&
7048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7049 # AIX install. It has an incompatible calling convention.
7051 elif test $ac_prog = install &&
7052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7053 # program-specific install script used by HP pwplus--don't use.
7056 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7069 if test "${ac_cv_path_install+set}" = set; then
7070 INSTALL=$ac_cv_path_install
7072 # As a last resort, use the slow shell script. Don't cache a
7073 # value for INSTALL within a source directory, because that will
7074 # break other packages using the cache if that directory is
7075 # removed, or if the value is a relative name.
7076 INSTALL=$ac_install_sh
7079 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7080 echo "${ECHO_T}$INSTALL" >&6; }
7082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7083 # It thinks the first close brace ends the variable substitution.
7084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7091 [\\/$]* | ?:[\\/]* ) ;;
7092 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7095 # Extract the first word of "bzip2", so it can be a program name with args.
7096 set dummy bzip2; ac_word=$2
7097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099 if test "${ac_cv_path_BZIP2+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 BZIP2=$ac_cv_path_BZIP2
7126 if test -n "$BZIP2"; then
7127 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7128 echo "${ECHO_T}$BZIP2" >&6; }
7130 { echo "$as_me:$LINENO: result: no" >&5
7131 echo "${ECHO_T}no" >&6; }
7135 # Extract the first word of "cat", so it can be a program name with args.
7136 set dummy cat; ac_word=$2
7137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139 if test "${ac_cv_path_CAT+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 if test -n "$CAT"; then
7167 { echo "$as_me:$LINENO: result: $CAT" >&5
7168 echo "${ECHO_T}$CAT" >&6; }
7170 { echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6; }
7175 # Extract the first word of "doxygen", so it can be a program name with args.
7176 set dummy doxygen; ac_word=$2
7177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 DOXYGEN=$ac_cv_path_DOXYGEN
7206 if test -n "$DOXYGEN"; then
7207 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7208 echo "${ECHO_T}$DOXYGEN" >&6; }
7210 { echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6; }
7215 # Extract the first word of "groff", so it can be a program name with args.
7216 set dummy groff; ac_word=$2
7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219 if test "${ac_cv_path_GROFF+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 GROFF=$ac_cv_path_GROFF
7246 if test -n "$GROFF"; then
7247 { echo "$as_me:$LINENO: result: $GROFF" >&5
7248 echo "${ECHO_T}$GROFF" >&6; }
7250 { echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6; }
7255 # Extract the first word of "gzip", so it can be a program name with args.
7256 set dummy gzip; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 GZIPBIN=$ac_cv_path_GZIPBIN
7286 if test -n "$GZIPBIN"; then
7287 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7288 echo "${ECHO_T}$GZIPBIN" >&6; }
7290 { echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6; }
7295 # Extract the first word of "pdfroff", so it can be a program name with args.
7296 set dummy pdfroff; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_path_PDFROFF+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 PDFROFF=$ac_cv_path_PDFROFF
7326 if test -n "$PDFROFF"; then
7327 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7328 echo "${ECHO_T}$PDFROFF" >&6; }
7330 { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7335 # Extract the first word of "zip", so it can be a program name with args.
7336 set dummy zip; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_path_ZIP+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 if test -n "$ZIP"; then
7367 { echo "$as_me:$LINENO: result: $ZIP" >&5
7368 echo "${ECHO_T}$ZIP" >&6; }
7370 { echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6; }
7375 for ac_prog in ocamlc
7377 # Extract the first word of "$ac_prog", so it can be a program name with args.
7378 set dummy $ac_prog; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_OCAMLC+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 OCAMLC=$ac_cv_path_OCAMLC
7408 if test -n "$OCAMLC"; then
7409 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7410 echo "${ECHO_T}$OCAMLC" >&6; }
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7417 test -n "$OCAMLC" && break
7420 for ac_prog in ocamlopt
7422 # Extract the first word of "$ac_prog", so it can be a program name with args.
7423 set dummy $ac_prog; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 OCAMLOPT=$ac_cv_path_OCAMLOPT
7453 if test -n "$OCAMLOPT"; then
7454 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7455 echo "${ECHO_T}$OCAMLOPT" >&6; }
7457 { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7462 test -n "$OCAMLOPT" && break
7465 for ac_prog in ocamldep
7467 # Extract the first word of "$ac_prog", so it can be a program name with args.
7468 set dummy $ac_prog; ac_word=$2
7469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7471 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7486 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 OCAMLDEP=$ac_cv_path_OCAMLDEP
7498 if test -n "$OCAMLDEP"; then
7499 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7500 echo "${ECHO_T}$OCAMLDEP" >&6; }
7502 { echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6; }
7507 test -n "$OCAMLDEP" && break
7510 for ac_prog in ocamldoc
7512 # Extract the first word of "$ac_prog", so it can be a program name with args.
7513 set dummy $ac_prog; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 OCAMLDOC=$ac_cv_path_OCAMLDOC
7543 if test -n "$OCAMLDOC"; then
7544 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7545 echo "${ECHO_T}$OCAMLDOC" >&6; }
7547 { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7552 test -n "$OCAMLDOC" && break
7555 for ac_prog in gas as
7557 # Extract the first word of "$ac_prog", so it can be a program name with args.
7558 set dummy $ac_prog; ac_word=$2
7559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7561 if test "${ac_cv_path_GAS+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 if test -n "$GAS"; then
7589 { echo "$as_me:$LINENO: result: $GAS" >&5
7590 echo "${ECHO_T}$GAS" >&6; }
7592 { echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6; }
7597 test -n "$GAS" && break
7601 { echo "$as_me:$LINENO: checking for linker version" >&5
7602 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7603 if test "${llvm_cv_link_version+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 version_string="$(ld -v 2>&1 | head -1)"
7610 if (echo "$version_string" | grep -q "ld64"); then
7611 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7613 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7617 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7618 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7620 cat >>confdefs.h <<_ACEOF
7621 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7626 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7627 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7628 if test "${llvm_cv_link_use_r+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 ac_cpp='$CPP $CPPFLAGS'
7633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7638 CFLAGS="$CFLAGS -Wl,-R."
7639 cat >conftest.$ac_ext <<_ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (ac_try="$ac_link"
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661 (eval "$ac_link") 2>conftest.er1
7663 grep -v '^ *+' conftest.er1 >conftest.err
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7669 { (case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_try") 2>&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; } &&
7678 { ac_try='test -s conftest$ac_exeext'
7679 { (case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_try") 2>&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 llvm_cv_link_use_r=yes
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7693 llvm_cv_link_use_r=no
7696 rm -f core conftest.err conftest.$ac_objext \
7697 conftest$ac_exeext conftest.$ac_ext
7700 ac_cpp='$CPP $CPPFLAGS'
7701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7707 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7708 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7709 if test "$llvm_cv_link_use_r" = yes ; then
7711 cat >>confdefs.h <<\_ACEOF
7712 #define HAVE_LINK_R 1
7718 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7719 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7720 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (ac_try="$ac_link"
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_link") 2>conftest.er1
7755 grep -v '^ *+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7761 { (case "(($ac_try" in
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_try") 2>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; } &&
7770 { ac_try='test -s conftest$ac_exeext'
7771 { (case "(($ac_try" in
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_try") 2>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 llvm_cv_link_use_export_dynamic=yes
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 llvm_cv_link_use_export_dynamic=no
7788 rm -f core conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7792 ac_cpp='$CPP $CPPFLAGS'
7793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7800 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7801 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7803 cat >>confdefs.h <<\_ACEOF
7804 #define HAVE_LINK_EXPORT_DYNAMIC 1
7810 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7811 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7812 if test "${llvm_cv_link_use_version_script+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823 # The following code is from the autoconf manual,
7824 # "11.13: Limitations of Usual Tools".
7825 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7826 # Use mktemp if possible; otherwise fall back on mkdir,
7827 # with $RANDOM to make collisions less likely.
7831 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7833 test -n "$tmp" && test -d "$tmp"
7835 tmp=$TMPDIR/foo$$-$RANDOM
7836 (umask 077 && mkdir "$tmp")
7839 echo "{" > "$tmp/export.map"
7840 echo " global: main;" >> "$tmp/export.map"
7841 echo " local: *;" >> "$tmp/export.map"
7842 echo "};" >> "$tmp/export.map"
7844 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7845 cat >conftest.$ac_ext <<_ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (ac_try="$ac_link"
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_link") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875 { (case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_try") 2>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_try") 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 llvm_cv_link_use_version_script=yes
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 llvm_cv_link_use_version_script=no
7902 rm -f core conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7904 rm "$tmp/export.map"
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7916 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7917 if test "$llvm_cv_link_use_version_script" = yes ; then
7918 HAVE_LINK_VERSION_SCRIPT=1
7925 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7926 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7927 if test "${ac_cv_c_const+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7940 /* FIXME: Include the comments suggested by Paul. */
7942 /* Ultrix mips cc rejects this. */
7943 typedef int charset[2];
7945 /* SunOS 4.1.1 cc rejects this. */
7946 char const *const *ccp;
7948 /* NEC SVR4.0.2 mips cc rejects this. */
7949 struct point {int x, y;};
7950 static struct point const zero = {0,0};
7951 /* AIX XL C 1.02.0.0 rejects this.
7952 It does not let you subtract one const X* pointer from another in
7953 an arm of an if-expression whose if-part is not a constant
7955 const char *g = "string";
7956 ccp = &g + (g ? g-g : 0);
7957 /* HPUX 7.0 cc rejects these. */
7960 ccp = (char const *const *) p;
7961 { /* SCO 3.2v4 cc rejects this. */
7963 char const *s = 0 ? (char *) 0 : (char const *) 0;
7968 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7970 const int *foo = &x[0];
7973 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7974 typedef const int *iptr;
7978 { /* AIX XL C 1.02.0.0 rejects this saying
7979 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7980 struct s { int j; const int *ap[3]; };
7981 struct s *b; b->j = 5;
7983 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7987 return !x[0] && !zero.x;
7994 rm -f conftest.$ac_objext
7995 if { (ac_try="$ac_compile"
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8009 { (case "(($ac_try" in
8010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011 *) ac_try_echo=$ac_try;;
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014 (eval "$ac_try") 2>&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; } &&
8018 { ac_try='test -s conftest.$ac_objext'
8019 { (case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_try") 2>&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8039 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8040 if test $ac_cv_c_const = no; then
8042 cat >>confdefs.h <<\_ACEOF
8054 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8055 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8056 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8057 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.$ac_ext <<_ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 #include <sys/types.h>
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8088 grep -v '^ *+' conftest.er1 >conftest.err
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8094 { (case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_try") 2>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_try") 2>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 eval "$as_ac_Header=yes"
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 eval "$as_ac_Header=no"
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 ac_res=`eval echo '${'$as_ac_Header'}'`
8124 { echo "$as_me:$LINENO: result: $ac_res" >&5
8125 echo "${ECHO_T}$ac_res" >&6; }
8126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8127 cat >>confdefs.h <<_ACEOF
8128 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8131 ac_header_dirent=$ac_hdr; break
8135 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8136 if test $ac_header_dirent = dirent.h; then
8137 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8138 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8139 if test "${ac_cv_search_opendir+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 ac_func_search_save_LIBS=$LIBS
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8150 /* Override any GCC internal prototype to avoid an error.
8151 Use char because int might match the return type of a GCC
8152 builtin and then its argument prototype would still apply. */
8165 for ac_lib in '' dir; do
8166 if test -z "$ac_lib"; then
8167 ac_res="none required"
8170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_link") 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8187 { (case "(($ac_try" in
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_try") 2>&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; } &&
8196 { ac_try='test -s conftest$ac_exeext'
8197 { (case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_try") 2>&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 ac_cv_search_opendir=$ac_res
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8214 rm -f core conftest.err conftest.$ac_objext \
8216 if test "${ac_cv_search_opendir+set}" = set; then
8220 if test "${ac_cv_search_opendir+set}" = set; then
8223 ac_cv_search_opendir=no
8226 LIBS=$ac_func_search_save_LIBS
8228 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8229 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8230 ac_res=$ac_cv_search_opendir
8231 if test "$ac_res" != no; then
8232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8237 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8238 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8239 if test "${ac_cv_search_opendir+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 ac_func_search_save_LIBS=$LIBS
8243 cat >conftest.$ac_ext <<_ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8250 /* Override any GCC internal prototype to avoid an error.
8251 Use char because int might match the return type of a GCC
8252 builtin and then its argument prototype would still apply. */
8265 for ac_lib in '' x; do
8266 if test -z "$ac_lib"; then
8267 ac_res="none required"
8270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (ac_try="$ac_link"
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_link") 2>conftest.er1
8281 grep -v '^ *+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8287 { (case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_try") 2>&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_try") 2>&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_search_opendir=$ac_res
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8314 rm -f core conftest.err conftest.$ac_objext \
8316 if test "${ac_cv_search_opendir+set}" = set; then
8320 if test "${ac_cv_search_opendir+set}" = set; then
8323 ac_cv_search_opendir=no
8326 LIBS=$ac_func_search_save_LIBS
8328 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8329 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8330 ac_res=$ac_cv_search_opendir
8331 if test "$ac_res" != no; then
8332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8339 for ac_header in dlfcn.h
8341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 ac_res=`eval echo '${'$as_ac_Header'}'`
8349 { echo "$as_me:$LINENO: result: $ac_res" >&5
8350 echo "${ECHO_T}$ac_res" >&6; }
8352 # Is the header compilable?
8353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8362 #include <$ac_header>
8364 rm -f conftest.$ac_objext
8365 if { (ac_try="$ac_compile"
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_compile") 2>conftest.er1
8373 grep -v '^ *+' conftest.er1 >conftest.err
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8379 { (case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_try") 2>&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest.$ac_objext'
8389 { (case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_try") 2>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 ac_header_compiler=yes
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 ac_header_compiler=no
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8408 echo "${ECHO_T}$ac_header_compiler" >&6; }
8410 # Is the header present?
8411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8413 cat >conftest.$ac_ext <<_ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 #include <$ac_header>
8421 if { (ac_try="$ac_cpp conftest.$ac_ext"
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8429 grep -v '^ *+' conftest.er1 >conftest.err
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } >/dev/null; then
8434 if test -s conftest.err; then
8435 ac_cpp_err=$ac_c_preproc_warn_flag
8436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8443 if test -z "$ac_cpp_err"; then
8444 ac_header_preproc=yes
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_header_preproc=no
8452 rm -f conftest.err conftest.$ac_ext
8453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8454 echo "${ECHO_T}$ac_header_preproc" >&6; }
8456 # So? What about this header?
8457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8463 ac_header_preproc=yes
8466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8479 ## ------------------------------------ ##
8480 ## Report this to http://llvm.org/bugs/ ##
8481 ## ------------------------------------ ##
8483 ) | sed "s/^/$as_me: WARNING: /" >&2
8486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 eval "$as_ac_Header=\$ac_header_preproc"
8493 ac_res=`eval echo '${'$as_ac_Header'}'`
8494 { echo "$as_me:$LINENO: result: $ac_res" >&5
8495 echo "${ECHO_T}$ac_res" >&6; }
8498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8499 cat >>confdefs.h <<_ACEOF
8500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8507 # Check whether --enable-ltdl-install was given.
8508 if test "${enable_ltdl_install+set}" = set; then
8509 enableval=$enable_ltdl_install;
8515 if test x"${enable_ltdl_install-no}" != xno; then
8517 INSTALL_LTDL_FALSE='#'
8519 INSTALL_LTDL_TRUE='#'
8525 if test x"${enable_ltdl_convenience-no}" != xno; then
8526 CONVENIENCE_LTDL_TRUE=
8527 CONVENIENCE_LTDL_FALSE='#'
8529 CONVENIENCE_LTDL_TRUE='#'
8530 CONVENIENCE_LTDL_FALSE=
8534 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8537 libname_spec='lib$name'
8545 shlibpath_overrides_runpath=unknown
8547 dynamic_linker="$host_os ld.so"
8548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8549 if test "$GCC" = yes; then
8550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8552 # if the path contains ";" then we assume it to be the separator
8553 # otherwise default to the standard path separator (i.e. ":") - it is
8554 # assumed that no part of a normal pathname contains ";" but that should
8555 # okay in the real world where ";" in dirpaths is itself problematic.
8556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8563 need_lib_prefix=unknown
8564 hardcode_into_libs=no
8566 # when you set need_version to no, make sure it does not cause -set_version
8567 # flags to be left without arguments
8568 need_version=unknown
8573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8574 shlibpath_var=LIBPATH
8576 # AIX 3 has no versioning support, so we append a major version to the name.
8577 soname_spec='${libname}${release}${shared_ext}$major'
8584 hardcode_into_libs=yes
8585 if test "$host_cpu" = ia64; then
8586 # AIX 5 supports IA64
8587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8588 shlibpath_var=LD_LIBRARY_PATH
8590 # With GCC up to 2.95.x, collect2 would create an import file
8591 # for dependence libraries. The import file would start with
8592 # the line `#! .'. This would cause the generated library to
8593 # depend on `.', always an invalid library. This was fixed in
8594 # development snapshots of GCC prior to 3.0.
8596 aix4 | aix4.[01] | aix4.[01].*)
8597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8607 # soname into executable. Probably we can add versioning support to
8608 # collect2, so additional links can be useful in future.
8609 if test "$aix_use_runtimelinking" = yes; then
8610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8611 # instead of lib<name>.a to let people know that these are not
8612 # typical AIX shared libraries.
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8615 # We preserve .a as extension for shared libraries through AIX4.2
8616 # and later when we are not doing run time linking.
8617 library_names_spec='${libname}${release}.a $libname.a'
8618 soname_spec='${libname}${release}${shared_ext}$major'
8620 shlibpath_var=LIBPATH
8625 library_names_spec='$libname.ixlibrary $libname.a'
8626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8627 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'
8631 library_names_spec='${libname}${shared_ext}'
8632 dynamic_linker="$host_os ld.so"
8633 shlibpath_var=LIBRARY_PATH
8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640 soname_spec='${libname}${release}${shared_ext}$major'
8641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8642 shlibpath_var=LD_LIBRARY_PATH
8643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8645 # the default ld.so.conf also contains /usr/contrib/lib and
8646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8647 # libtool to hard-code these into programs
8650 cygwin* | mingw* | pw32*)
8651 version_type=windows
8656 case $GCC,$host_os in
8657 yes,cygwin* | yes,mingw* | yes,pw32*)
8658 library_names_spec='$libname.dll.a'
8659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8660 postinstall_cmds='base_file=`basename \${file}`~
8661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8662 dldir=$destdir/`dirname \$dlpath`~
8663 test -d \$dldir || mkdir -p \$dldir~
8664 $install_prog $dir/$dlname \$dldir/$dlname~
8665 chmod a+x \$dldir/$dlname'
8666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8667 dlpath=$dir/\$dldll~
8669 shlibpath_overrides_runpath=yes
8673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8678 # MinGW DLLs use traditional 'lib' prefix
8679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8682 # It is most probably a Windows format PATH printed by
8683 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8684 # path with ; separators, and with drive letters. We can handle the
8685 # drive letters (cygwin fileutils understands them), so leave them,
8686 # especially as we might pass files found there to a mingw objdump,
8687 # which wouldn't understand a cygwinified path. Ahh.
8688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8694 # pw32 DLLs use 'pw' prefix rather than 'lib'
8695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8704 dynamic_linker='Win32 ld.exe'
8705 # FIXME: first we should search . and the directory the executable is in
8709 darwin* | rhapsody*)
8710 dynamic_linker="$host_os dyld"
8714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8715 soname_spec='${libname}${release}${major}$shared_ext'
8716 shlibpath_overrides_runpath=yes
8717 shlibpath_var=DYLD_LIBRARY_PATH
8718 shrext_cmds='.dylib'
8719 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8720 if test "$GCC" = yes; then
8721 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"`
8723 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 shlibpath_var=LD_LIBRARY_PATH
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 shlibpath_var=LD_LIBRARY_PATH
8748 shlibpath_overrides_runpath=no
8749 hardcode_into_libs=yes
8750 dynamic_linker='GNU ld.so'
8753 freebsd* | dragonfly*)
8754 # DragonFly does not have aout. When/if they implement a new
8755 # versioning mechanism, adjust this.
8756 if test -x /usr/bin/objformat; then
8757 objformat=`/usr/bin/objformat`
8760 freebsd[123].*) objformat=aout ;;
8764 version_type=freebsd-$objformat
8765 case $version_type in
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8776 shlibpath_var=LD_LIBRARY_PATH
8779 shlibpath_overrides_runpath=yes
8781 freebsd3.[01]* | freebsdelf3.[01]*)
8782 shlibpath_overrides_runpath=yes
8783 hardcode_into_libs=yes
8785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8787 shlibpath_overrides_runpath=no
8788 hardcode_into_libs=yes
8790 freebsd*) # from 4.6 on
8791 shlibpath_overrides_runpath=yes
8792 hardcode_into_libs=yes
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 shlibpath_var=LD_LIBRARY_PATH
8804 hardcode_into_libs=yes
8807 hpux9* | hpux10* | hpux11*)
8808 # Give a soname corresponding to the major version so that dld.sl refuses to
8809 # link against other versions.
8816 hardcode_into_libs=yes
8817 dynamic_linker="$host_os dld.so"
8818 shlibpath_var=LD_LIBRARY_PATH
8819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 if test "X$HPUX_IA64_MODE" = X32; then
8823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8831 hardcode_into_libs=yes
8832 dynamic_linker="$host_os dld.sl"
8833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8842 dynamic_linker="$host_os dld.sl"
8843 shlibpath_var=SHLIB_PATH
8844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8849 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8850 postinstall_cmds='chmod 555 $lib'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=no
8862 hardcode_into_libs=yes
8865 irix5* | irix6* | nonstopux*)
8867 nonstopux*) version_type=nonstopux ;;
8869 if test "$lt_cv_prog_gnu_ld" = yes; then
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8880 irix5* | nonstopux*)
8884 case $LD in # libtool.m4 will add one of these switches to LD
8885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8886 libsuff= shlibsuff= libmagic=32-bit;;
8887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8888 libsuff=32 shlibsuff=N32 libmagic=N32;;
8889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8890 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8891 *) libsuff= shlibsuff= libmagic=never-match;;
8895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8896 shlibpath_overrides_runpath=no
8897 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8898 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8899 hardcode_into_libs=yes
8902 # No shared lib support for Linux oldld, aout, or coff.
8903 linux*oldld* | linux*aout* | linux*coff*)
8907 # This must be Linux ELF.
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=no
8917 # This implies no fast_install, which is unacceptable.
8918 # Some rework will be needed to allow for fast_install
8919 # before this can be enabled.
8920 hardcode_into_libs=yes
8922 # Append ld.so.conf contents to the search path
8923 if test -f /etc/ld.so.conf; then
8924 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' ' '`
8925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8928 # We used to test for /lib/ld.so.1 and disable shared libraries on
8929 # powerpc, because MkLinux only supported shared libraries with the
8930 # GNU dynamic linker. Since this was broken with cross compilers,
8931 # most powerpc-linux boxes support dynamic linking these days and
8932 # people can always --disable-shared, the test was removed, and we
8933 # assume the GNU/Linux dynamic linker is in use.
8934 dynamic_linker='GNU/Linux ld.so'
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=no
8945 hardcode_into_libs=yes
8946 dynamic_linker='GNU ld.so'
8953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8956 dynamic_linker='NetBSD (a.out) ld.so'
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 dynamic_linker='NetBSD ld.elf_so'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=yes
8964 hardcode_into_libs=yes
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 shlibpath_overrides_runpath=yes
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=yes
8986 sys_lib_dlsearch_path_spec="/usr/lib"
8988 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8990 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8991 *) need_version=no ;;
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8995 shlibpath_var=LD_LIBRARY_PATH
8996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8998 openbsd2.[89] | openbsd2.[89].*)
8999 shlibpath_overrides_runpath=no
9002 shlibpath_overrides_runpath=yes
9006 shlibpath_overrides_runpath=yes
9011 libname_spec='$name'
9014 library_names_spec='$libname${shared_ext} $libname.a'
9015 dynamic_linker='OS/2 ld.exe'
9016 shlibpath_var=LIBPATH
9019 osf3* | osf4* | osf5*)
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9027 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 shlibpath_overrides_runpath=yes
9038 hardcode_into_libs=yes
9039 # ldd complains unless libraries are executable
9040 postinstall_cmds='chmod +x $lib'
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 if test "$with_gnu_ld" = yes; then
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 case $host_vendor in
9062 shlibpath_overrides_runpath=no
9064 export_dynamic_flag_spec='${wl}-Blargedynsym'
9065 runpath_var=LD_RUN_PATH
9073 shlibpath_overrides_runpath=no
9074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9080 if test -d /usr/nec ;then
9082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9083 soname_spec='$libname${shared_ext}.$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9089 version_type=freebsd-elf
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 hardcode_into_libs=yes
9096 if test "$with_gnu_ld" = yes; then
9097 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9098 shlibpath_overrides_runpath=no
9100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9101 shlibpath_overrides_runpath=yes
9104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9108 sys_lib_dlsearch_path_spec='/usr/lib'
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 shlibpath_var=LD_LIBRARY_PATH
9122 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9123 echo "${ECHO_T}$dynamic_linker" >&6; }
9124 test "$dynamic_linker" = no && can_build_shared=no
9126 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9127 if test "$GCC" = yes; then
9128 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9132 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9133 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9134 if test "${libltdl_cv_shlibext+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 eval libltdl_cv_shlibext=$shrext_cmds
9142 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9143 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9144 if test -n "$libltdl_cv_shlibext"; then
9146 cat >>confdefs.h <<_ACEOF
9147 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9153 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9154 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9155 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 libltdl_cv_shlibpath_var="$shlibpath_var"
9160 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9161 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9162 if test -n "$libltdl_cv_shlibpath_var"; then
9164 cat >>confdefs.h <<_ACEOF
9165 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9171 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9172 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9173 if test "${libltdl_cv_sys_search_path+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9178 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9179 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9180 if test -n "$libltdl_cv_sys_search_path"; then
9182 for dir in $libltdl_cv_sys_search_path; do
9183 if test -z "$sys_search_path"; then
9184 sys_search_path="$dir"
9186 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9190 cat >>confdefs.h <<_ACEOF
9191 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9196 { echo "$as_me:$LINENO: checking for objdir" >&5
9197 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9198 if test "${libltdl_cv_objdir+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 libltdl_cv_objdir="$objdir"
9202 if test -n "$objdir"; then
9205 rm -f .libs 2>/dev/null
9206 mkdir .libs 2>/dev/null
9207 if test -d .libs; then
9208 libltdl_cv_objdir=.libs
9210 # MS-DOS does not allow filenames that begin with a dot.
9211 libltdl_cv_objdir=_libs
9213 rmdir .libs 2>/dev/null
9217 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9218 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9220 cat >>confdefs.h <<_ACEOF
9221 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9229 # Check for command to grab the raw symbol name followed by C symbol from nm.
9230 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9231 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9232 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 # These are sane defaults that work on at least a few old systems.
9237 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9239 # Character class describing NM global symbol codes.
9240 symcode='[BCDEGRST]'
9242 # Regexp to match symbols that can be accessed directly from C.
9243 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9245 # Transform an extracted symbol line into a proper C declaration
9246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9248 # Transform an extracted symbol line into symbol name and symbol address
9249 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'"
9251 # Define system-specific variables.
9256 cygwin* | mingw* | pw32*)
9257 symcode='[ABCDGISTW]'
9259 hpux*) # Its linker distinguishes data from code symbols
9260 if test "$host_cpu" = ia64; then
9261 symcode='[ABCDEGRST]'
9263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9264 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'"
9267 if test "$host_cpu" = ia64; then
9268 symcode='[ABCDGIRSTW]'
9269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9270 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'"
9274 symcode='[BCDEGRST]'
9277 symcode='[BCDEGQRST]'
9288 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9296 # Handle CRLF in mingw tool chain
9300 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9304 # If we're using GNU nm, then use its standard symbol codes.
9305 case `$NM -V 2>&1` in
9306 *GNU* | *'with BFD'*)
9307 symcode='[ABCDGIRSTW]' ;;
9310 # Try without a prefix undercore, then with it.
9311 for ac_symprfx in "" "_"; do
9313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9314 symxfrm="\\1 $ac_symprfx\\2 \\2"
9316 # Write the raw and C identifiers.
9317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9319 # Check to see that the pipe works correctly.
9323 cat > conftest.$ac_ext <<EOF
9328 void nm_test_func(){}
9332 int main(){nm_test_var='a';nm_test_func();return(0);}
9335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9336 (eval $ac_compile) 2>&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; then
9340 # Now try to grab the symbols.
9342 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9343 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && test -s "$nlist"; then
9347 # Try sorting and uniquifying the output.
9348 if sort "$nlist" | uniq > "$nlist"T; then
9349 mv -f "$nlist"T "$nlist"
9354 # Make sure that we snagged all the symbols we need.
9355 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9356 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9357 cat <<EOF > conftest.$ac_ext
9363 # Now generate the symbol file.
9364 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9366 cat <<EOF >> conftest.$ac_ext
9367 #if defined (__STDC__) && __STDC__
9368 # define lt_ptr_t void *
9370 # define lt_ptr_t char *
9374 /* The mapping between symbol names and symbols. */
9379 lt_preloaded_symbols[] =
9382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9383 cat <<\EOF >> conftest.$ac_ext
9391 # Now try linking the two files.
9392 mv conftest.$ac_objext conftstm.$ac_objext
9393 lt_save_LIBS="$LIBS"
9394 lt_save_CFLAGS="$CFLAGS"
9395 LIBS="conftstm.$ac_objext"
9396 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9398 (eval $ac_link) 2>&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9404 LIBS="$lt_save_LIBS"
9405 CFLAGS="$lt_save_CFLAGS"
9407 echo "cannot find nm_test_func in $nlist" >&5
9410 echo "cannot find nm_test_var in $nlist" >&5
9413 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9416 echo "$progname: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9419 rm -f conftest* conftst*
9421 # Do not use the global_symbol_pipe unless it works.
9422 if test "$pipe_works" = yes; then
9425 lt_cv_sys_global_symbol_pipe=
9431 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9432 lt_cv_sys_global_symbol_to_cdecl=
9434 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9435 { echo "$as_me:$LINENO: result: failed" >&5
9436 echo "${ECHO_T}failed" >&6; }
9438 { echo "$as_me:$LINENO: result: ok" >&5
9439 echo "${ECHO_T}ok" >&6; }
9443 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9444 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9445 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9449 libltdl_cv_preloaded_symbols=yes
9451 libltdl_cv_preloaded_symbols=no
9455 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9456 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9457 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9459 cat >>confdefs.h <<\_ACEOF
9460 #define HAVE_PRELOADED_SYMBOLS 1
9468 ac_cpp='$CPP $CPPFLAGS'
9469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9474 { echo "$as_me:$LINENO: checking for shl_load" >&5
9475 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9476 if test "${ac_cv_func_shl_load+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9487 #define shl_load innocuous_shl_load
9489 /* System header to define __stub macros and hopefully few prototypes,
9490 which can conflict with char shl_load (); below.
9491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9492 <limits.h> exists even on freestanding compilers. */
9495 # include <limits.h>
9497 # include <assert.h>
9502 /* Override any GCC internal prototype to avoid an error.
9503 Use char because int might match the return type of a GCC
9504 builtin and then its argument prototype would still apply. */
9509 /* The GNU C library defines this for functions which it implements
9510 to always fail with ENOSYS. Some functions are actually named
9511 something starting with __ and the normal name is an alias. */
9512 #if defined __stub_shl_load || defined __stub___shl_load
9524 rm -f conftest.$ac_objext conftest$ac_exeext
9525 if { (ac_try="$ac_link"
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531 (eval "$ac_link") 2>conftest.er1
9533 grep -v '^ *+' conftest.er1 >conftest.err
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9539 { (case "(($ac_try" in
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_try") 2>&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest$ac_exeext'
9549 { (case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_try") 2>&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 ac_cv_func_shl_load=yes
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 ac_cv_func_shl_load=no
9566 rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9569 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9570 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9571 if test $ac_cv_func_shl_load = yes; then
9573 cat >>confdefs.h <<\_ACEOF
9574 #define HAVE_SHL_LOAD 1
9578 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9579 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9580 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 ac_check_lib_save_LIBS=$LIBS
9585 cat >conftest.$ac_ext <<_ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9592 /* Override any GCC internal prototype to avoid an error.
9593 Use char because int might match the return type of a GCC
9594 builtin and then its argument prototype would still apply. */
9607 rm -f conftest.$ac_objext conftest$ac_exeext
9608 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9616 grep -v '^ *+' conftest.er1 >conftest.err
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9622 { (case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_try") 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; } &&
9631 { ac_try='test -s conftest$ac_exeext'
9632 { (case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_try") 2>&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_lib_dld_shl_load=yes
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_cv_lib_dld_shl_load=no
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651 LIBS=$ac_check_lib_save_LIBS
9653 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9654 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9655 if test $ac_cv_lib_dld_shl_load = yes; then
9657 cat >>confdefs.h <<\_ACEOF
9658 #define HAVE_SHL_LOAD 1
9661 LIBADD_DL="$LIBADD_DL -ldld"
9663 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_check_lib_save_LIBS=$LIBS
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707 { (case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_try") 2>&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest$ac_exeext'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_lib_dl_dlopen=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_lib_dl_dlopen=no
9734 rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736 LIBS=$ac_check_lib_save_LIBS
9738 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9739 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9740 if test $ac_cv_lib_dl_dlopen = yes; then
9742 cat >>confdefs.h <<\_ACEOF
9743 #define HAVE_LIBDL 1
9746 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9748 cat >conftest.$ac_ext <<_ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (ac_try="$ac_link"
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_link") 2>conftest.er1
9775 grep -v '^ *+' conftest.er1 >conftest.err
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9781 { (case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_try") 2>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; } &&
9790 { ac_try='test -s conftest$ac_exeext'
9791 { (case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_try") 2>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }; then
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_LIBDL 1
9804 libltdl_cv_func_dlopen="yes"
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9810 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9811 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 ac_check_lib_save_LIBS=$LIBS
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9823 /* Override any GCC internal prototype to avoid an error.
9824 Use char because int might match the return type of a GCC
9825 builtin and then its argument prototype would still apply. */
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (ac_try="$ac_link"
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_link") 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9853 { (case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_try") 2>&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; } &&
9862 { ac_try='test -s conftest$ac_exeext'
9863 { (case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_try") 2>&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_cv_lib_svld_dlopen=yes
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 ac_cv_lib_svld_dlopen=no
9880 rm -f core conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9882 LIBS=$ac_check_lib_save_LIBS
9884 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9885 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9886 if test $ac_cv_lib_svld_dlopen = yes; then
9888 cat >>confdefs.h <<\_ACEOF
9889 #define HAVE_LIBDL 1
9892 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9894 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9895 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9896 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 ac_check_lib_save_LIBS=$LIBS
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (ac_try="$ac_link"
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_link") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_try") 2>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_lib_dld_dld_link=yes
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_cv_lib_dld_dld_link=no
9965 rm -f core conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9969 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9970 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9971 if test $ac_cv_lib_dld_dld_link = yes; then
9973 cat >>confdefs.h <<\_ACEOF
9977 LIBADD_DL="$LIBADD_DL -ldld"
9979 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9980 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9981 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9992 #define _dyld_func_lookup innocuous__dyld_func_lookup
9994 /* System header to define __stub macros and hopefully few prototypes,
9995 which can conflict with char _dyld_func_lookup (); below.
9996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9997 <limits.h> exists even on freestanding compilers. */
10000 # include <limits.h>
10002 # include <assert.h>
10005 #undef _dyld_func_lookup
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10013 char _dyld_func_lookup ();
10014 /* The GNU C library defines this for functions which it implements
10015 to always fail with ENOSYS. Some functions are actually named
10016 something starting with __ and the normal name is an alias. */
10017 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10024 return _dyld_func_lookup ();
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
10038 grep -v '^ *+' conftest.er1 >conftest.err
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044 { (case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_try") 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_func__dyld_func_lookup=yes
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_cv_func__dyld_func_lookup=no
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10074 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10075 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10076 if test $ac_cv_func__dyld_func_lookup = yes; then
10078 cat >>confdefs.h <<\_ACEOF
10079 #define HAVE_DYLD 1
10093 rm -f core conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10105 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10107 lt_save_LIBS="$LIBS"
10108 LIBS="$LIBS $LIBADD_DL"
10110 for ac_func in dlerror
10112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10126 #define $ac_func innocuous_$ac_func
10128 /* System header to define __stub macros and hopefully few prototypes,
10129 which can conflict with char $ac_func (); below.
10130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10131 <limits.h> exists even on freestanding compilers. */
10134 # include <limits.h>
10136 # include <assert.h>
10141 /* Override any GCC internal prototype to avoid an error.
10142 Use char because int might match the return type of a GCC
10143 builtin and then its argument prototype would still apply. */
10148 /* The GNU C library defines this for functions which it implements
10149 to always fail with ENOSYS. Some functions are actually named
10150 something starting with __ and the normal name is an alias. */
10151 #if defined __stub_$ac_func || defined __stub___$ac_func
10158 return $ac_func ();
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10178 { (case "(($ac_try" in
10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180 *) ac_try_echo=$ac_try;;
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 (eval "$ac_try") 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; } &&
10187 { ac_try='test -s conftest$ac_exeext'
10188 { (case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_try") 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 eval "$as_ac_var=yes"
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 eval "$as_ac_var=no"
10205 rm -f core conftest.err conftest.$ac_objext \
10206 conftest$ac_exeext conftest.$ac_ext
10208 ac_res=`eval echo '${'$as_ac_var'}'`
10209 { echo "$as_me:$LINENO: result: $ac_res" >&5
10210 echo "${ECHO_T}$ac_res" >&6; }
10211 if test `eval echo '${'$as_ac_var'}'` = yes; then
10212 cat >>confdefs.h <<_ACEOF
10213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10219 LIBS="$lt_save_LIBS"
10222 ac_cpp='$CPP $CPPFLAGS'
10223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10229 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10230 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10231 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 ac_cv_sys_symbol_underscore=no
10235 cat > conftest.$ac_ext <<EOF
10236 void nm_test_func(){}
10237 int main(){nm_test_func;return 0;}
10239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10240 (eval $ac_compile) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; then
10244 # Now try to grab the symbols.
10245 ac_nlist=conftest.nm
10246 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10247 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } && test -s "$ac_nlist"; then
10251 # See whether the symbols have a leading underscore.
10252 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10253 ac_cv_sys_symbol_underscore=yes
10255 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10258 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10262 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10265 echo "configure: failed program was:" >&5
10271 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10272 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10275 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10276 if test x"$libltdl_cv_func_dlopen" = xyes ||
10277 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10278 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10279 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10280 if test "${libltdl_cv_need_uscore+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 libltdl_cv_need_uscore=unknown
10285 LIBS="$LIBS $LIBADD_DL"
10286 if test "$cross_compiling" = yes; then :
10287 libltdl_cv_need_uscore=cross
10289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10290 lt_status=$lt_dlunknown
10291 cat > conftest.$ac_ext <<EOF
10292 #line 10292 "configure"
10293 #include "confdefs.h"
10302 # define LT_DLGLOBAL RTLD_GLOBAL
10305 # define LT_DLGLOBAL DL_GLOBAL
10307 # define LT_DLGLOBAL 0
10311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10312 find out it does not work in some platform. */
10313 #ifndef LT_DLLAZY_OR_NOW
10315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10318 # define LT_DLLAZY_OR_NOW DL_LAZY
10321 # define LT_DLLAZY_OR_NOW RTLD_NOW
10324 # define LT_DLLAZY_OR_NOW DL_NOW
10326 # define LT_DLLAZY_OR_NOW 0
10334 extern "C" void exit (int);
10337 void fnord() { int i=42;}
10340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10341 int status = $lt_dlunknown;
10345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10347 /* dlclose (self); */
10355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10356 (eval $ac_link) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10360 (./conftest; exit; ) >&5 2>/dev/null
10362 case x$lt_status in
10363 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10364 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10365 x$lt_dlunknown|x*) ;;
10368 # compilation failed
10377 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10378 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10382 if test x"$libltdl_cv_need_uscore" = xyes; then
10384 cat >>confdefs.h <<\_ACEOF
10385 #define NEED_USCORE 1
10391 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10392 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10393 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 # PORTME does your system automatically load deplibs for dlopen?
10397 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10398 # For now, we just catch OSes we know something about -- in the
10399 # future, we'll try test this programmatically.
10400 libltdl_cv_sys_dlopen_deplibs=unknown
10402 aix3*|aix4.1.*|aix4.2.*)
10403 # Unknown whether this is true for these versions of AIX, but
10404 # we want this `case' here to explicitly catch those versions.
10405 libltdl_cv_sys_dlopen_deplibs=unknown
10408 libltdl_cv_sys_dlopen_deplibs=yes
10411 # Assuming the user has installed a libdl from somewhere, this is true
10412 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10413 libltdl_cv_sys_dlopen_deplibs=yes
10415 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10416 # GNU and its variants, using gnu ld.so (Glibc)
10417 libltdl_cv_sys_dlopen_deplibs=yes
10420 libltdl_cv_sys_dlopen_deplibs=yes
10423 libltdl_cv_sys_dlopen_deplibs=yes
10425 irix[12345]*|irix6.[01]*)
10426 # Catch all versions of IRIX before 6.2, and indicate that we don't
10427 # know how it worked for any of those versions.
10428 libltdl_cv_sys_dlopen_deplibs=unknown
10431 # The case above catches anything before 6.2, and it's known that
10432 # at 6.2 and later dlopen does load deplibs.
10433 libltdl_cv_sys_dlopen_deplibs=yes
10436 libltdl_cv_sys_dlopen_deplibs=yes
10439 libltdl_cv_sys_dlopen_deplibs=yes
10442 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10443 # it did *not* use an RPATH in a shared library to find objects the
10444 # library depends on, so we explicitly say `no'.
10445 libltdl_cv_sys_dlopen_deplibs=no
10447 osf5.0|osf5.0a|osf5.1)
10448 # dlopen *does* load deplibs and with the right loader patch applied
10449 # it even uses RPATH in a shared library to search for shared objects
10450 # that the library depends on, but there's no easy way to know if that
10451 # patch is installed. Since this is the case, all we can really
10452 # say is unknown -- it depends on the patch being installed. If
10453 # it is, this changes to `yes'. Without it, it would be `no'.
10454 libltdl_cv_sys_dlopen_deplibs=unknown
10457 # the two cases above should catch all versions of osf <= 5.1. Read
10458 # the comments above for what we know about them.
10459 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10460 # is used to find them so we can finally say `yes'.
10461 libltdl_cv_sys_dlopen_deplibs=yes
10464 libltdl_cv_sys_dlopen_deplibs=yes
10466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10467 libltdl_cv_sys_dlopen_deplibs=yes
10472 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10473 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10474 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10476 cat >>confdefs.h <<\_ACEOF
10477 #define LTDL_DLOPEN_DEPLIBS 1
10483 for ac_header in argz.h
10485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 ac_res=`eval echo '${'$as_ac_Header'}'`
10493 { echo "$as_me:$LINENO: result: $ac_res" >&5
10494 echo "${ECHO_T}$ac_res" >&6; }
10496 # Is the header compilable?
10497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 $ac_includes_default
10506 #include <$ac_header>
10508 rm -f conftest.$ac_objext
10509 if { (ac_try="$ac_compile"
10510 case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_compile") 2>conftest.er1
10517 grep -v '^ *+' conftest.er1 >conftest.err
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10523 { (case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_try") 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; } &&
10532 { ac_try='test -s conftest.$ac_objext'
10533 { (case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_try") 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 ac_header_compiler=yes
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_header_compiler=no
10550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10552 echo "${ECHO_T}$ac_header_compiler" >&6; }
10554 # Is the header present?
10555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10557 cat >conftest.$ac_ext <<_ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 #include <$ac_header>
10565 if { (ac_try="$ac_cpp conftest.$ac_ext"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } >/dev/null; then
10578 if test -s conftest.err; then
10579 ac_cpp_err=$ac_c_preproc_warn_flag
10580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10587 if test -z "$ac_cpp_err"; then
10588 ac_header_preproc=yes
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_header_preproc=no
10596 rm -f conftest.err conftest.$ac_ext
10597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10598 echo "${ECHO_T}$ac_header_preproc" >&6; }
10600 # So? What about this header?
10601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10607 ac_header_preproc=yes
10610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10623 ## ------------------------------------ ##
10624 ## Report this to http://llvm.org/bugs/ ##
10625 ## ------------------------------------ ##
10627 ) | sed "s/^/$as_me: WARNING: /" >&2
10630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 eval "$as_ac_Header=\$ac_header_preproc"
10637 ac_res=`eval echo '${'$as_ac_Header'}'`
10638 { echo "$as_me:$LINENO: result: $ac_res" >&5
10639 echo "${ECHO_T}$ac_res" >&6; }
10642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10643 cat >>confdefs.h <<_ACEOF
10644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10652 { echo "$as_me:$LINENO: checking for error_t" >&5
10653 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10654 if test "${ac_cv_type_error_t+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 cat >conftest.$ac_ext <<_ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10667 typedef error_t ac__type_new_;
10671 if ((ac__type_new_ *) 0)
10673 if (sizeof (ac__type_new_))
10679 rm -f conftest.$ac_objext
10680 if { (ac_try="$ac_compile"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_compile") 2>conftest.er1
10688 grep -v '^ *+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; } &&
10703 { ac_try='test -s conftest.$ac_objext'
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_try") 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 ac_cv_type_error_t=yes
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 ac_cv_type_error_t=no
10721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10724 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10725 if test $ac_cv_type_error_t = yes; then
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_ERROR_T 1
10734 cat >>confdefs.h <<\_ACEOF
10735 #define error_t int
10746 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 cat >conftest.$ac_ext <<_ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10762 #define $ac_func innocuous_$ac_func
10764 /* System header to define __stub macros and hopefully few prototypes,
10765 which can conflict with char $ac_func (); below.
10766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10767 <limits.h> exists even on freestanding compilers. */
10770 # include <limits.h>
10772 # include <assert.h>
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10784 /* The GNU C library defines this for functions which it implements
10785 to always fail with ENOSYS. Some functions are actually named
10786 something starting with __ and the normal name is an alias. */
10787 #if defined __stub_$ac_func || defined __stub___$ac_func
10794 return $ac_func ();
10799 rm -f conftest.$ac_objext conftest$ac_exeext
10800 if { (ac_try="$ac_link"
10801 case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_link") 2>conftest.er1
10808 grep -v '^ *+' conftest.er1 >conftest.err
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10814 { (case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_try") 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; } &&
10823 { ac_try='test -s conftest$ac_exeext'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 eval "$as_ac_var=yes"
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 eval "$as_ac_var=no"
10841 rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10844 ac_res=`eval echo '${'$as_ac_var'}'`
10845 { echo "$as_me:$LINENO: result: $ac_res" >&5
10846 echo "${ECHO_T}$ac_res" >&6; }
10847 if test `eval echo '${'$as_ac_var'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10882 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 ac_res=`eval echo '${'$as_ac_Header'}'`
10893 { echo "$as_me:$LINENO: result: $ac_res" >&5
10894 echo "${ECHO_T}$ac_res" >&6; }
10896 # Is the header compilable?
10897 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 $ac_includes_default
10906 #include <$ac_header>
10908 rm -f conftest.$ac_objext
10909 if { (ac_try="$ac_compile"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_compile") 2>conftest.er1
10917 grep -v '^ *+' conftest.er1 >conftest.err
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest.$ac_objext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 ac_header_compiler=yes
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ac_header_compiler=no
10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10952 echo "${ECHO_T}$ac_header_compiler" >&6; }
10954 # Is the header present?
10955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10957 cat >conftest.$ac_ext <<_ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10963 #include <$ac_header>
10965 if { (ac_try="$ac_cpp conftest.$ac_ext"
10966 case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10973 grep -v '^ *+' conftest.er1 >conftest.err
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } >/dev/null; then
10978 if test -s conftest.err; then
10979 ac_cpp_err=$ac_c_preproc_warn_flag
10980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10987 if test -z "$ac_cpp_err"; then
10988 ac_header_preproc=yes
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 ac_header_preproc=no
10996 rm -f conftest.err conftest.$ac_ext
10997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10998 echo "${ECHO_T}$ac_header_preproc" >&6; }
11000 # So? What about this header?
11001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11007 ac_header_preproc=yes
11010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11023 ## ------------------------------------ ##
11024 ## Report this to http://llvm.org/bugs/ ##
11025 ## ------------------------------------ ##
11027 ) | sed "s/^/$as_me: WARNING: /" >&2
11030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 eval "$as_ac_Header=\$ac_header_preproc"
11037 ac_res=`eval echo '${'$as_ac_Header'}'`
11038 { echo "$as_me:$LINENO: result: $ac_res" >&5
11039 echo "${ECHO_T}$ac_res" >&6; }
11042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11043 cat >>confdefs.h <<_ACEOF
11044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11055 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 ac_res=`eval echo '${'$as_ac_Header'}'`
11065 { echo "$as_me:$LINENO: result: $ac_res" >&5
11066 echo "${ECHO_T}$ac_res" >&6; }
11068 # Is the header compilable?
11069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 $ac_includes_default
11078 #include <$ac_header>
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 ac_header_compiler=yes
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_header_compiler=no
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11124 echo "${ECHO_T}$ac_header_compiler" >&6; }
11126 # Is the header present?
11127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 #include <$ac_header>
11137 if { (ac_try="$ac_cpp conftest.$ac_ext"
11138 case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11145 grep -v '^ *+' conftest.er1 >conftest.err
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } >/dev/null; then
11150 if test -s conftest.err; then
11151 ac_cpp_err=$ac_c_preproc_warn_flag
11152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11159 if test -z "$ac_cpp_err"; then
11160 ac_header_preproc=yes
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 ac_header_preproc=no
11168 rm -f conftest.err conftest.$ac_ext
11169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11170 echo "${ECHO_T}$ac_header_preproc" >&6; }
11172 # So? What about this header?
11173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11179 ac_header_preproc=yes
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11195 ## ------------------------------------ ##
11196 ## Report this to http://llvm.org/bugs/ ##
11197 ## ------------------------------------ ##
11199 ) | sed "s/^/$as_me: WARNING: /" >&2
11202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 eval "$as_ac_Header=\$ac_header_preproc"
11209 ac_res=`eval echo '${'$as_ac_Header'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211 echo "${ECHO_T}$ac_res" >&6; }
11214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11225 for ac_header in string.h strings.h
11227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 ac_res=`eval echo '${'$as_ac_Header'}'`
11235 { echo "$as_me:$LINENO: result: $ac_res" >&5
11236 echo "${ECHO_T}$ac_res" >&6; }
11238 # Is the header compilable?
11239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 $ac_includes_default
11248 #include <$ac_header>
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11259 grep -v '^ *+' conftest.er1 >conftest.err
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265 { (case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_try") 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_header_compiler=yes
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_header_compiler=no
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11294 echo "${ECHO_T}$ac_header_compiler" >&6; }
11296 # Is the header present?
11297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11299 cat >conftest.$ac_ext <<_ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 #include <$ac_header>
11307 if { (ac_try="$ac_cpp conftest.$ac_ext"
11308 case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11315 grep -v '^ *+' conftest.er1 >conftest.err
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } >/dev/null; then
11320 if test -s conftest.err; then
11321 ac_cpp_err=$ac_c_preproc_warn_flag
11322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11329 if test -z "$ac_cpp_err"; then
11330 ac_header_preproc=yes
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11335 ac_header_preproc=no
11338 rm -f conftest.err conftest.$ac_ext
11339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11340 echo "${ECHO_T}$ac_header_preproc" >&6; }
11342 # So? What about this header?
11343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11349 ac_header_preproc=yes
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11365 ## ------------------------------------ ##
11366 ## Report this to http://llvm.org/bugs/ ##
11367 ## ------------------------------------ ##
11369 ) | sed "s/^/$as_me: WARNING: /" >&2
11372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 eval "$as_ac_Header=\$ac_header_preproc"
11379 ac_res=`eval echo '${'$as_ac_Header'}'`
11380 { echo "$as_me:$LINENO: result: $ac_res" >&5
11381 echo "${ECHO_T}$ac_res" >&6; }
11384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11385 cat >>confdefs.h <<_ACEOF
11386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396 for ac_func in strchr index
11398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 cat >conftest.$ac_ext <<_ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11412 #define $ac_func innocuous_$ac_func
11414 /* System header to define __stub macros and hopefully few prototypes,
11415 which can conflict with char $ac_func (); below.
11416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11417 <limits.h> exists even on freestanding compilers. */
11420 # include <limits.h>
11422 # include <assert.h>
11427 /* Override any GCC internal prototype to avoid an error.
11428 Use char because int might match the return type of a GCC
11429 builtin and then its argument prototype would still apply. */
11434 /* The GNU C library defines this for functions which it implements
11435 to always fail with ENOSYS. Some functions are actually named
11436 something starting with __ and the normal name is an alias. */
11437 #if defined __stub_$ac_func || defined __stub___$ac_func
11444 return $ac_func ();
11449 rm -f conftest.$ac_objext conftest$ac_exeext
11450 if { (ac_try="$ac_link"
11451 case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_link") 2>conftest.er1
11458 grep -v '^ *+' conftest.er1 >conftest.err
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11464 { (case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_try") 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest$ac_exeext'
11474 { (case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_try") 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 eval "$as_ac_var=yes"
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11488 eval "$as_ac_var=no"
11491 rm -f core conftest.err conftest.$ac_objext \
11492 conftest$ac_exeext conftest.$ac_ext
11494 ac_res=`eval echo '${'$as_ac_var'}'`
11495 { echo "$as_me:$LINENO: result: $ac_res" >&5
11496 echo "${ECHO_T}$ac_res" >&6; }
11497 if test `eval echo '${'$as_ac_var'}'` = yes; then
11498 cat >>confdefs.h <<_ACEOF
11499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11507 for ac_func in strrchr rindex
11509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 cat >conftest.$ac_ext <<_ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11523 #define $ac_func innocuous_$ac_func
11525 /* System header to define __stub macros and hopefully few prototypes,
11526 which can conflict with char $ac_func (); below.
11527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11528 <limits.h> exists even on freestanding compilers. */
11531 # include <limits.h>
11533 # include <assert.h>
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11545 /* The GNU C library defines this for functions which it implements
11546 to always fail with ENOSYS. Some functions are actually named
11547 something starting with __ and the normal name is an alias. */
11548 #if defined __stub_$ac_func || defined __stub___$ac_func
11555 return $ac_func ();
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (ac_try="$ac_link"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
11569 grep -v '^ *+' conftest.er1 >conftest.err
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_try") 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try='test -s conftest$ac_exeext'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 eval "$as_ac_var=yes"
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11599 eval "$as_ac_var=no"
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11605 ac_res=`eval echo '${'$as_ac_var'}'`
11606 { echo "$as_me:$LINENO: result: $ac_res" >&5
11607 echo "${ECHO_T}$ac_res" >&6; }
11608 if test `eval echo '${'$as_ac_var'}'` = yes; then
11609 cat >>confdefs.h <<_ACEOF
11610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11618 for ac_func in memcpy bcopy
11620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 cat >conftest.$ac_ext <<_ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11634 #define $ac_func innocuous_$ac_func
11636 /* System header to define __stub macros and hopefully few prototypes,
11637 which can conflict with char $ac_func (); below.
11638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11639 <limits.h> exists even on freestanding compilers. */
11642 # include <limits.h>
11644 # include <assert.h>
11649 /* Override any GCC internal prototype to avoid an error.
11650 Use char because int might match the return type of a GCC
11651 builtin and then its argument prototype would still apply. */
11656 /* The GNU C library defines this for functions which it implements
11657 to always fail with ENOSYS. Some functions are actually named
11658 something starting with __ and the normal name is an alias. */
11659 #if defined __stub_$ac_func || defined __stub___$ac_func
11666 return $ac_func ();
11671 rm -f conftest.$ac_objext conftest$ac_exeext
11672 if { (ac_try="$ac_link"
11673 case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_link") 2>conftest.er1
11680 grep -v '^ *+' conftest.er1 >conftest.err
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } &&
11685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11686 { (case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_try") 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; } &&
11695 { ac_try='test -s conftest$ac_exeext'
11696 { (case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_try") 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 eval "$as_ac_var=yes"
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 eval "$as_ac_var=no"
11713 rm -f core conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11716 ac_res=`eval echo '${'$as_ac_var'}'`
11717 { echo "$as_me:$LINENO: result: $ac_res" >&5
11718 echo "${ECHO_T}$ac_res" >&6; }
11719 if test `eval echo '${'$as_ac_var'}'` = yes; then
11720 cat >>confdefs.h <<_ACEOF
11721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11729 for ac_func in memmove strcmp
11731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 cat >conftest.$ac_ext <<_ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11745 #define $ac_func innocuous_$ac_func
11747 /* System header to define __stub macros and hopefully few prototypes,
11748 which can conflict with char $ac_func (); below.
11749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11750 <limits.h> exists even on freestanding compilers. */
11753 # include <limits.h>
11755 # include <assert.h>
11760 /* Override any GCC internal prototype to avoid an error.
11761 Use char because int might match the return type of a GCC
11762 builtin and then its argument prototype would still apply. */
11767 /* The GNU C library defines this for functions which it implements
11768 to always fail with ENOSYS. Some functions are actually named
11769 something starting with __ and the normal name is an alias. */
11770 #if defined __stub_$ac_func || defined __stub___$ac_func
11777 return $ac_func ();
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (ac_try="$ac_link"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_link") 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797 { (case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_try") 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; } &&
11806 { ac_try='test -s conftest$ac_exeext'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 eval "$as_ac_var=yes"
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11821 eval "$as_ac_var=no"
11824 rm -f core conftest.err conftest.$ac_objext \
11825 conftest$ac_exeext conftest.$ac_ext
11827 ac_res=`eval echo '${'$as_ac_var'}'`
11828 { echo "$as_me:$LINENO: result: $ac_res" >&5
11829 echo "${ECHO_T}$ac_res" >&6; }
11830 if test `eval echo '${'$as_ac_var'}'` = yes; then
11831 cat >>confdefs.h <<_ACEOF
11832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11841 for ac_func in closedir opendir readdir
11843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 cat >conftest.$ac_ext <<_ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11857 #define $ac_func innocuous_$ac_func
11859 /* System header to define __stub macros and hopefully few prototypes,
11860 which can conflict with char $ac_func (); below.
11861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11862 <limits.h> exists even on freestanding compilers. */
11865 # include <limits.h>
11867 # include <assert.h>
11872 /* Override any GCC internal prototype to avoid an error.
11873 Use char because int might match the return type of a GCC
11874 builtin and then its argument prototype would still apply. */
11879 /* The GNU C library defines this for functions which it implements
11880 to always fail with ENOSYS. Some functions are actually named
11881 something starting with __ and the normal name is an alias. */
11882 #if defined __stub_$ac_func || defined __stub___$ac_func
11889 return $ac_func ();
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (ac_try="$ac_link"
11896 case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_link") 2>conftest.er1
11903 grep -v '^ *+' conftest.er1 >conftest.err
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11909 { (case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_try") 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 eval "$as_ac_var=yes"
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 eval "$as_ac_var=no"
11936 rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11939 ac_res=`eval echo '${'$as_ac_var'}'`
11940 { echo "$as_me:$LINENO: result: $ac_res" >&5
11941 echo "${ECHO_T}$ac_res" >&6; }
11942 if test `eval echo '${'$as_ac_var'}'` = yes; then
11943 cat >>confdefs.h <<_ACEOF
11944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11952 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11953 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11966 if test "$GCC" != "yes" && test "$ICC" != "yes"
11968 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11969 echo "$as_me: error: gcc|icc required but not found" >&2;}
11970 { (exit 1); exit 1; }; }
11973 if test "$GXX" != "yes" && test "$IXX" != "yes"
11975 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11976 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11977 { (exit 1); exit 1; }; }
11980 if test "$GCC" = "yes"
11982 cat >conftest.$ac_ext <<_ACEOF
11983 #if !defined(__GNUC__) || __GNUC__ < 3
11984 #error Unsupported GCC version
11988 rm -f conftest.$ac_objext
11989 if { (ac_try="$ac_compile"
11990 case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_compile") 2>conftest.er1
11997 grep -v '^ *+' conftest.er1 >conftest.err
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; } &&
12012 { ac_try='test -s conftest.$ac_objext'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12028 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12029 { (exit 1); exit 1; }; }
12032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035 if test -z "$llvm_cv_gnu_make_command"
12037 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12038 echo "$as_me: error: GNU Make required but not found" >&2;}
12039 { (exit 1); exit 1; }; }
12042 { echo "$as_me:$LINENO: result: ok" >&5
12043 echo "${ECHO_T}ok" >&6; }
12045 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12046 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12047 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12049 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12051 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12053 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12054 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12058 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12059 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12060 if test "${ac_cv_lib_m_sin+set}" = set; then
12061 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 ac_check_lib_save_LIBS=$LIBS
12065 cat >conftest.$ac_ext <<_ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12072 /* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (ac_try="$ac_link"
12089 case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_link") 2>conftest.er1
12096 grep -v '^ *+' conftest.er1 >conftest.err
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12102 { (case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_try") 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_try") 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_cv_lib_m_sin=yes
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12129 rm -f core conftest.err conftest.$ac_objext \
12130 conftest$ac_exeext conftest.$ac_ext
12131 LIBS=$ac_check_lib_save_LIBS
12133 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12134 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12135 if test $ac_cv_lib_m_sin = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137 #define HAVE_LIBM 1
12144 if test "$llvm_cv_os_type" = "MingW" ; then
12146 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12147 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12148 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 ac_check_lib_save_LIBS=$LIBS
12152 LIBS="-limagehlp $LIBS"
12153 cat >conftest.$ac_ext <<_ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (ac_try="$ac_link"
12171 case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_link") 2>conftest.er1
12178 grep -v '^ *+' conftest.er1 >conftest.err
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12184 { (case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_try") 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try='test -s conftest$ac_exeext'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 ac_cv_lib_imagehlp_main=yes
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ac_cv_lib_imagehlp_main=no
12211 rm -f core conftest.err conftest.$ac_objext \
12212 conftest$ac_exeext conftest.$ac_ext
12213 LIBS=$ac_check_lib_save_LIBS
12215 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12216 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12217 if test $ac_cv_lib_imagehlp_main = yes; then
12218 cat >>confdefs.h <<_ACEOF
12219 #define HAVE_LIBIMAGEHLP 1
12222 LIBS="-limagehlp $LIBS"
12227 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12228 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12229 if test "${ac_cv_lib_psapi_main+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lpsapi $LIBS"
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12250 rm -f conftest.$ac_objext conftest$ac_exeext
12251 if { (ac_try="$ac_link"
12252 case "(($ac_try" in
12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254 *) ac_try_echo=$ac_try;;
12256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257 (eval "$ac_link") 2>conftest.er1
12259 grep -v '^ *+' conftest.er1 >conftest.err
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12265 { (case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_try") 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest$ac_exeext'
12275 { (case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_try") 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_lib_psapi_main=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 ac_cv_lib_psapi_main=no
12292 rm -f core conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12296 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12297 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12298 if test $ac_cv_lib_psapi_main = yes; then
12299 cat >>confdefs.h <<_ACEOF
12300 #define HAVE_LIBPSAPI 1
12303 LIBS="-lpsapi $LIBS"
12309 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12310 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12311 if test "${ac_cv_search_dlopen+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 ac_func_search_save_LIBS=$LIBS
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12322 /* Override any GCC internal prototype to avoid an error.
12323 Use char because int might match the return type of a GCC
12324 builtin and then its argument prototype would still apply. */
12337 for ac_lib in '' dl; do
12338 if test -z "$ac_lib"; then
12339 ac_res="none required"
12342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (ac_try="$ac_link"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_link") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_try") 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_search_dlopen=$ac_res
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12386 rm -f core conftest.err conftest.$ac_objext \
12388 if test "${ac_cv_search_dlopen+set}" = set; then
12392 if test "${ac_cv_search_dlopen+set}" = set; then
12395 ac_cv_search_dlopen=no
12397 rm conftest.$ac_ext
12398 LIBS=$ac_func_search_save_LIBS
12400 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12401 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12402 ac_res=$ac_cv_search_dlopen
12403 if test "$ac_res" != no; then
12404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12406 cat >>confdefs.h <<\_ACEOF
12407 #define HAVE_DLOPEN 1
12411 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12412 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12416 if test "$llvm_cv_enable_libffi" = "yes" ; then
12417 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12418 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12419 if test "${ac_cv_search_ffi_call+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 ac_func_search_save_LIBS=$LIBS
12423 cat >conftest.$ac_ext <<_ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12430 /* Override any GCC internal prototype to avoid an error.
12431 Use char because int might match the return type of a GCC
12432 builtin and then its argument prototype would still apply. */
12440 return ffi_call ();
12445 for ac_lib in '' ffi; do
12446 if test -z "$ac_lib"; then
12447 ac_res="none required"
12450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (ac_try="$ac_link"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_link") 2>conftest.er1
12461 grep -v '^ *+' conftest.er1 >conftest.err
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12467 { (case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_try") 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest$ac_exeext'
12477 { (case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_try") 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_cv_search_ffi_call=$ac_res
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12494 rm -f core conftest.err conftest.$ac_objext \
12496 if test "${ac_cv_search_ffi_call+set}" = set; then
12500 if test "${ac_cv_search_ffi_call+set}" = set; then
12503 ac_cv_search_ffi_call=no
12505 rm conftest.$ac_ext
12506 LIBS=$ac_func_search_save_LIBS
12508 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12509 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12510 ac_res=$ac_cv_search_ffi_call
12511 if test "$ac_res" != no; then
12512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12514 cat >>confdefs.h <<\_ACEOF
12515 #define HAVE_FFI_CALL 1
12519 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12520 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12521 { (exit 1); exit 1; }; }
12526 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12527 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12528 if test "${ac_cv_search_mallinfo+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 ac_func_search_save_LIBS=$LIBS
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12539 /* Override any GCC internal prototype to avoid an error.
12540 Use char because int might match the return type of a GCC
12541 builtin and then its argument prototype would still apply. */
12549 return mallinfo ();
12554 for ac_lib in '' malloc; do
12555 if test -z "$ac_lib"; then
12556 ac_res="none required"
12559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12561 rm -f conftest.$ac_objext conftest$ac_exeext
12562 if { (ac_try="$ac_link"
12563 case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_link") 2>conftest.er1
12570 grep -v '^ *+' conftest.er1 >conftest.err
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12576 { (case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_try") 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest$ac_exeext'
12586 { (case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_try") 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_cv_search_mallinfo=$ac_res
12597 echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12603 rm -f core conftest.err conftest.$ac_objext \
12605 if test "${ac_cv_search_mallinfo+set}" = set; then
12609 if test "${ac_cv_search_mallinfo+set}" = set; then
12612 ac_cv_search_mallinfo=no
12614 rm conftest.$ac_ext
12615 LIBS=$ac_func_search_save_LIBS
12617 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12618 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12619 ac_res=$ac_cv_search_mallinfo
12620 if test "$ac_res" != no; then
12621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12623 cat >>confdefs.h <<\_ACEOF
12624 #define HAVE_MALLINFO 1
12630 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12632 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12633 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12634 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12637 ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-lpthread $LIBS"
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12652 char pthread_mutex_init ();
12656 return pthread_mutex_init ();
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_link") 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676 { (case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_try") 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_lib_pthread_pthread_mutex_init=yes
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700 ac_cv_lib_pthread_pthread_mutex_init=no
12703 rm -f core conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12707 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12708 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12709 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12710 cat >>confdefs.h <<_ACEOF
12711 #define HAVE_LIBPTHREAD 1
12714 LIBS="-lpthread $LIBS"
12718 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12719 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12720 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 ac_func_search_save_LIBS=$LIBS
12724 cat >conftest.$ac_ext <<_ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12737 char pthread_mutex_lock ();
12741 return pthread_mutex_lock ();
12746 for ac_lib in '' pthread; do
12747 if test -z "$ac_lib"; then
12748 ac_res="none required"
12751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12753 rm -f conftest.$ac_objext conftest$ac_exeext
12754 if { (ac_try="$ac_link"
12755 case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760 (eval "$ac_link") 2>conftest.er1
12762 grep -v '^ *+' conftest.er1 >conftest.err
12764 cat conftest.err >&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); } &&
12767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12768 { (case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_try") 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; } &&
12777 { ac_try='test -s conftest$ac_exeext'
12778 { (case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_try") 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 ac_cv_search_pthread_mutex_lock=$ac_res
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12795 rm -f core conftest.err conftest.$ac_objext \
12797 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12801 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12804 ac_cv_search_pthread_mutex_lock=no
12806 rm conftest.$ac_ext
12807 LIBS=$ac_func_search_save_LIBS
12809 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12810 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12811 ac_res=$ac_cv_search_pthread_mutex_lock
12812 if test "$ac_res" != no; then
12813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12815 cat >>confdefs.h <<\_ACEOF
12816 #define HAVE_PTHREAD_MUTEX_LOCK 1
12821 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12822 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12823 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 ac_func_search_save_LIBS=$LIBS
12827 cat >conftest.$ac_ext <<_ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12834 /* Override any GCC internal prototype to avoid an error.
12835 Use char because int might match the return type of a GCC
12836 builtin and then its argument prototype would still apply. */
12840 char pthread_rwlock_init ();
12844 return pthread_rwlock_init ();
12849 for ac_lib in '' pthread; do
12850 if test -z "$ac_lib"; then
12851 ac_res="none required"
12854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12856 rm -f conftest.$ac_objext conftest$ac_exeext
12857 if { (ac_try="$ac_link"
12858 case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_link") 2>conftest.er1
12865 grep -v '^ *+' conftest.er1 >conftest.err
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12871 { (case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876 (eval "$ac_try") 2>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest$ac_exeext'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 ac_cv_search_pthread_rwlock_init=$ac_res
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12898 rm -f core conftest.err conftest.$ac_objext \
12900 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12904 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12907 ac_cv_search_pthread_rwlock_init=no
12909 rm conftest.$ac_ext
12910 LIBS=$ac_func_search_save_LIBS
12912 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12913 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12914 ac_res=$ac_cv_search_pthread_rwlock_init
12915 if test "$ac_res" != no; then
12916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12918 cat >>confdefs.h <<\_ACEOF
12919 #define HAVE_PTHREAD_RWLOCK_INIT 1
12924 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12925 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12926 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12929 ac_func_search_save_LIBS=$LIBS
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12943 char pthread_getspecific ();
12947 return pthread_getspecific ();
12952 for ac_lib in '' pthread; do
12953 if test -z "$ac_lib"; then
12954 ac_res="none required"
12957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12959 rm -f conftest.$ac_objext conftest$ac_exeext
12960 if { (ac_try="$ac_link"
12961 case "(($ac_try" in
12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963 *) ac_try_echo=$ac_try;;
12965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966 (eval "$ac_link") 2>conftest.er1
12968 grep -v '^ *+' conftest.er1 >conftest.err
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest$ac_exeext'
12984 { (case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_try") 2>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_search_pthread_getspecific=$ac_res
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
13001 rm -f core conftest.err conftest.$ac_objext \
13003 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13007 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13010 ac_cv_search_pthread_getspecific=no
13012 rm conftest.$ac_ext
13013 LIBS=$ac_func_search_save_LIBS
13015 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13016 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13017 ac_res=$ac_cv_search_pthread_getspecific
13018 if test "$ac_res" != no; then
13019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13021 cat >>confdefs.h <<\_ACEOF
13022 #define HAVE_PTHREAD_GETSPECIFIC 1
13030 # Check whether --with-udis86 was given.
13031 if test "${with_udis86+set}" = set; then
13032 withval=$with_udis86;
13037 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13040 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13041 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13042 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13045 ac_check_lib_save_LIBS=$LIBS
13046 LIBS="-ludis86 $LIBS"
13047 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13069 rm -f conftest.$ac_objext conftest$ac_exeext
13070 if { (ac_try="$ac_link"
13071 case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_link") 2>conftest.er1
13078 grep -v '^ *+' conftest.er1 >conftest.err
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084 { (case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_try") 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_try") 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_cv_lib_udis86_ud_init=yes
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_cv_lib_udis86_ud_init=no
13111 rm -f core conftest.err conftest.$ac_objext \
13112 conftest$ac_exeext conftest.$ac_ext
13113 LIBS=$ac_check_lib_save_LIBS
13115 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13116 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13117 if test $ac_cv_lib_udis86_ud_init = yes; then
13118 cat >>confdefs.h <<_ACEOF
13119 #define HAVE_LIBUDIS86 1
13122 LIBS="-ludis86 $LIBS"
13126 echo "Error! You need to have libudis86 around."
13138 cat >>confdefs.h <<_ACEOF
13139 #define USE_UDIS86 $USE_UDIS86
13144 # Check whether --with-oprofile was given.
13145 if test "${with_oprofile+set}" = set; then
13146 withval=$with_oprofile;
13150 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13151 no) llvm_cv_oppath=
13154 *) llvm_cv_oppath="${withval}/lib/oprofile"
13155 CPPFLAGS="-I${withval}/include";;
13157 case $llvm_cv_os_type in
13159 if test -n "$llvm_cv_oppath" ; then
13160 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13161 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13162 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13163 if test "${ac_cv_search_bfd_init+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 ac_func_search_save_LIBS=$LIBS
13167 cat >conftest.$ac_ext <<_ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13174 /* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13184 return bfd_init ();
13189 for ac_lib in '' bfd; do
13190 if test -z "$ac_lib"; then
13191 ac_res="none required"
13194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (ac_try="$ac_link"
13198 case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_link") 2>conftest.er1
13205 grep -v '^ *+' conftest.er1 >conftest.err
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211 { (case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_try") 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest$ac_exeext'
13221 { (case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_try") 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_cv_search_bfd_init=$ac_res
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13238 rm -f core conftest.err conftest.$ac_objext \
13240 if test "${ac_cv_search_bfd_init+set}" = set; then
13244 if test "${ac_cv_search_bfd_init+set}" = set; then
13247 ac_cv_search_bfd_init=no
13249 rm conftest.$ac_ext
13250 LIBS=$ac_func_search_save_LIBS
13252 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13253 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13254 ac_res=$ac_cv_search_bfd_init
13255 if test "$ac_res" != no; then
13256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13260 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13261 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13262 if test "${ac_cv_search_op_open_agent+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 ac_func_search_save_LIBS=$LIBS
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13273 /* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
13279 char op_open_agent ();
13283 return op_open_agent ();
13288 for ac_lib in '' opagent; do
13289 if test -z "$ac_lib"; then
13290 ac_res="none required"
13293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (ac_try="$ac_link"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_link") 2>conftest.er1
13304 grep -v '^ *+' conftest.er1 >conftest.err
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13310 { (case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_try") 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest$ac_exeext'
13320 { (case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_try") 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13329 ac_cv_search_op_open_agent=$ac_res
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13337 rm -f core conftest.err conftest.$ac_objext \
13339 if test "${ac_cv_search_op_open_agent+set}" = set; then
13343 if test "${ac_cv_search_op_open_agent+set}" = set; then
13346 ac_cv_search_op_open_agent=no
13348 rm conftest.$ac_ext
13349 LIBS=$ac_func_search_save_LIBS
13351 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13352 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13353 ac_res=$ac_cv_search_op_open_agent
13354 if test "$ac_res" != no; then
13355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13359 echo "Error! You need to have libopagent around."
13364 if test "${ac_cv_header_opagent_h+set}" = set; then
13365 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13366 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13367 if test "${ac_cv_header_opagent_h+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13371 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13373 # Is the header compilable?
13374 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13375 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 $ac_includes_default
13383 #include <opagent.h>
13385 rm -f conftest.$ac_objext
13386 if { (ac_try="$ac_compile"
13387 case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392 (eval "$ac_compile") 2>conftest.er1
13394 grep -v '^ *+' conftest.er1 >conftest.err
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
13399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13400 { (case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_try") 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest.$ac_objext'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_header_compiler=yes
13421 echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13424 ac_header_compiler=no
13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13429 echo "${ECHO_T}$ac_header_compiler" >&6; }
13431 # Is the header present?
13432 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13433 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13434 cat >conftest.$ac_ext <<_ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 #include <opagent.h>
13442 if { (ac_try="$ac_cpp conftest.$ac_ext"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } >/dev/null; then
13455 if test -s conftest.err; then
13456 ac_cpp_err=$ac_c_preproc_warn_flag
13457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13464 if test -z "$ac_cpp_err"; then
13465 ac_header_preproc=yes
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13470 ac_header_preproc=no
13473 rm -f conftest.err conftest.$ac_ext
13474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13475 echo "${ECHO_T}$ac_header_preproc" >&6; }
13477 # So? What about this header?
13478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13480 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13481 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13482 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13483 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13484 ac_header_preproc=yes
13487 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13488 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13490 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13492 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13494 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13496 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13498 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13500 ## ------------------------------------ ##
13501 ## Report this to http://llvm.org/bugs/ ##
13502 ## ------------------------------------ ##
13504 ) | sed "s/^/$as_me: WARNING: /" >&2
13507 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13508 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13509 if test "${ac_cv_header_opagent_h+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 ac_cv_header_opagent_h=$ac_header_preproc
13514 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13515 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13518 if test $ac_cv_header_opagent_h = yes; then
13522 echo "Error! You need to have opagent.h around."
13530 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13531 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13532 { (exit 1); exit 1; }; } ;;
13543 cat >>confdefs.h <<_ACEOF
13544 #define LLVM_USE_OPROFILE $USE_OPROFILE
13549 # Check whether --with-intel-jitevents was given.
13550 if test "${with_intel_jitevents+set}" = set; then
13551 withval=$with_intel_jitevents;
13552 case $llvm_cv_os_type in
13553 Linux|Win32|Cygwin|MingW) ;;
13555 { { echo "$as_me:$LINENO: error:
13556 Intel JIT API support is available on Linux and Windows only.\"" >&5
13557 echo "$as_me: error:
13558 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13559 { (exit 1); exit 1; }; } ;;
13562 USE_INTEL_JITEVENTS=1
13564 case "$llvm_cv_target_arch" in
13565 x86) llvm_intel_jitevents_archdir="lib32";;
13566 x86_64) llvm_intel_jitevents_archdir="lib64";;
13567 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13570 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13571 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13573 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13574 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13581 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13582 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13584 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13585 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13586 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 ac_func_search_save_LIBS=$LIBS
13590 cat >conftest.$ac_ext <<_ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13603 char iJIT_IsProfilingActive ();
13607 return iJIT_IsProfilingActive ();
13612 for ac_lib in '' jitprofiling; do
13613 if test -z "$ac_lib"; then
13614 ac_res="none required"
13617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (ac_try="$ac_link"
13621 case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_link") 2>conftest.er1
13628 grep -v '^ *+' conftest.er1 >conftest.err
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13634 { (case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_try") 2>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest$ac_exeext'
13644 { (case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_try") 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13661 rm -f core conftest.err conftest.$ac_objext \
13663 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13667 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13670 ac_cv_search_iJIT_IsProfilingActive=no
13672 rm conftest.$ac_ext
13673 LIBS=$ac_func_search_save_LIBS
13675 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13676 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13677 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13678 if test "$ac_res" != no; then
13679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13683 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13688 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13689 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13690 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13691 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13695 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13697 # Is the header compilable?
13698 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13699 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13700 cat >conftest.$ac_ext <<_ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 $ac_includes_default
13707 #include <jitprofiling.h>
13709 rm -f conftest.$ac_objext
13710 if { (ac_try="$ac_compile"
13711 case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_compile") 2>conftest.er1
13718 grep -v '^ *+' conftest.er1 >conftest.err
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724 { (case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_try") 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest.$ac_objext'
13734 { (case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_try") 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_header_compiler=yes
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 ac_header_compiler=no
13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13753 echo "${ECHO_T}$ac_header_compiler" >&6; }
13755 # Is the header present?
13756 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13757 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13758 cat >conftest.$ac_ext <<_ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13764 #include <jitprofiling.h>
13766 if { (ac_try="$ac_cpp conftest.$ac_ext"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } >/dev/null; then
13779 if test -s conftest.err; then
13780 ac_cpp_err=$ac_c_preproc_warn_flag
13781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13788 if test -z "$ac_cpp_err"; then
13789 ac_header_preproc=yes
13791 echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13794 ac_header_preproc=no
13797 rm -f conftest.err conftest.$ac_ext
13798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13799 echo "${ECHO_T}$ac_header_preproc" >&6; }
13801 # So? What about this header?
13802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13804 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13805 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13807 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13808 ac_header_preproc=yes
13811 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13812 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13814 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13816 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13818 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13820 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13822 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13824 ## ------------------------------------ ##
13825 ## Report this to http://llvm.org/bugs/ ##
13826 ## ------------------------------------ ##
13828 ) | sed "s/^/$as_me: WARNING: /" >&2
13831 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13832 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13833 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 ac_cv_header_jitprofiling_h=$ac_header_preproc
13838 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13839 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13842 if test $ac_cv_header_jitprofiling_h = yes; then
13846 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13856 USE_INTEL_JITEVENTS=0
13862 cat >>confdefs.h <<_ACEOF
13863 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13867 for ac_prog in xml2-config
13869 # Extract the first word of "$ac_prog", so it can be a program name with args.
13870 set dummy $ac_prog; ac_word=$2
13871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13873 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 if test -n "$XML2CONFIG"; then
13877 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13886 ac_cv_prog_XML2CONFIG="$ac_prog"
13887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13896 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13897 if test -n "$XML2CONFIG"; then
13898 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13899 echo "${ECHO_T}$XML2CONFIG" >&6; }
13901 { echo "$as_me:$LINENO: result: no" >&5
13902 echo "${ECHO_T}no" >&6; }
13906 test -n "$XML2CONFIG" && break
13910 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13911 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13912 if test "x$XML2CONFIG" = "x"; then
13913 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13914 echo "${ECHO_T}xml2-config not found" >&6; }
13916 LIBXML2_INC=`$XML2CONFIG --cflags`
13917 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13918 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13919 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13920 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13921 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 ac_check_lib_save_LIBS=$LIBS
13925 LIBS="-lxml2 $LIBS"
13926 cat >conftest.$ac_ext <<_ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13933 /* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply. */
13939 char xmlReadFile ();
13943 return xmlReadFile ();
13948 rm -f conftest.$ac_objext conftest$ac_exeext
13949 if { (ac_try="$ac_link"
13950 case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_link") 2>conftest.er1
13957 grep -v '^ *+' conftest.er1 >conftest.err
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13963 { (case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_try") 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest$ac_exeext'
13973 { (case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_try") 2>&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_lib_xml2_xmlReadFile=yes
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13987 ac_cv_lib_xml2_xmlReadFile=no
13990 rm -f core conftest.err conftest.$ac_objext \
13991 conftest$ac_exeext conftest.$ac_ext
13992 LIBS=$ac_check_lib_save_LIBS
13994 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13995 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13996 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13998 cat >>confdefs.h <<\_ACEOF
13999 #define CLANG_HAVE_LIBXML 1
14002 LIBXML2_LIBS="-lxml2"
14015 ac_header_dirent=no
14016 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14017 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14018 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14019 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 #include <sys/types.h>
14041 rm -f conftest.$ac_objext
14042 if { (ac_try="$ac_compile"
14043 case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_compile") 2>conftest.er1
14050 grep -v '^ *+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14056 { (case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061 (eval "$ac_try") 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; } &&
14065 { ac_try='test -s conftest.$ac_objext'
14066 { (case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_try") 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 eval "$as_ac_Header=yes"
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080 eval "$as_ac_Header=no"
14083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14085 ac_res=`eval echo '${'$as_ac_Header'}'`
14086 { echo "$as_me:$LINENO: result: $ac_res" >&5
14087 echo "${ECHO_T}$ac_res" >&6; }
14088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14089 cat >>confdefs.h <<_ACEOF
14090 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14093 ac_header_dirent=$ac_hdr; break
14097 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14098 if test $ac_header_dirent = dirent.h; then
14099 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14100 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14101 if test "${ac_cv_search_opendir+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 ac_func_search_save_LIBS=$LIBS
14105 cat >conftest.$ac_ext <<_ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14112 /* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
14114 builtin and then its argument prototype would still apply. */
14127 for ac_lib in '' dir; do
14128 if test -z "$ac_lib"; then
14129 ac_res="none required"
14132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14134 rm -f conftest.$ac_objext conftest$ac_exeext
14135 if { (ac_try="$ac_link"
14136 case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_link") 2>conftest.er1
14143 grep -v '^ *+' conftest.er1 >conftest.err
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14149 { (case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_try") 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest$ac_exeext'
14159 { (case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_try") 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14168 ac_cv_search_opendir=$ac_res
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14176 rm -f core conftest.err conftest.$ac_objext \
14178 if test "${ac_cv_search_opendir+set}" = set; then
14182 if test "${ac_cv_search_opendir+set}" = set; then
14185 ac_cv_search_opendir=no
14187 rm conftest.$ac_ext
14188 LIBS=$ac_func_search_save_LIBS
14190 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14191 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14192 ac_res=$ac_cv_search_opendir
14193 if test "$ac_res" != no; then
14194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14199 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14200 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14201 if test "${ac_cv_search_opendir+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 ac_func_search_save_LIBS=$LIBS
14205 cat >conftest.$ac_ext <<_ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14212 /* Override any GCC internal prototype to avoid an error.
14213 Use char because int might match the return type of a GCC
14214 builtin and then its argument prototype would still apply. */
14227 for ac_lib in '' x; do
14228 if test -z "$ac_lib"; then
14229 ac_res="none required"
14232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14234 rm -f conftest.$ac_objext conftest$ac_exeext
14235 if { (ac_try="$ac_link"
14236 case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_link") 2>conftest.er1
14243 grep -v '^ *+' conftest.er1 >conftest.err
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; } &&
14258 { ac_try='test -s conftest$ac_exeext'
14259 { (case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_try") 2>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }; then
14268 ac_cv_search_opendir=$ac_res
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14276 rm -f core conftest.err conftest.$ac_objext \
14278 if test "${ac_cv_search_opendir+set}" = set; then
14282 if test "${ac_cv_search_opendir+set}" = set; then
14285 ac_cv_search_opendir=no
14287 rm conftest.$ac_ext
14288 LIBS=$ac_func_search_save_LIBS
14290 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14291 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14292 ac_res=$ac_cv_search_opendir
14293 if test "$ac_res" != no; then
14294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14300 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14301 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14302 if test "${ac_cv_header_mmap_anon+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 ac_cpp='$CPP $CPPFLAGS'
14307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14311 cat >conftest.$ac_ext <<_ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 #include <sys/mman.h>
14318 #include <unistd.h>
14323 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14328 rm -f conftest.$ac_objext
14329 if { (ac_try="$ac_compile"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_compile") 2>conftest.er1
14337 grep -v '^ *+' conftest.er1 >conftest.err
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
14342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14343 { (case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_try") 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; } &&
14352 { ac_try='test -s conftest.$ac_objext'
14353 { (case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_try") 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14362 ac_cv_header_mmap_anon=yes
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14367 ac_cv_header_mmap_anon=no
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 ac_cpp='$CPP $CPPFLAGS'
14373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14379 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14380 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14381 if test "$ac_cv_header_mmap_anon" = yes; then
14383 cat >>confdefs.h <<\_ACEOF
14384 #define HAVE_MMAP_ANONYMOUS 1
14389 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14390 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14391 if test "${ac_cv_header_stat_broken+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 cat >conftest.$ac_ext <<_ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #include <sys/types.h>
14401 #include <sys/stat.h>
14403 #if defined S_ISBLK && defined S_IFDIR
14404 # if S_ISBLK (S_IFDIR)
14409 #if defined S_ISBLK && defined S_IFCHR
14410 # if S_ISBLK (S_IFCHR)
14415 #if defined S_ISLNK && defined S_IFREG
14416 # if S_ISLNK (S_IFREG)
14421 #if defined S_ISSOCK && defined S_IFREG
14422 # if S_ISSOCK (S_IFREG)
14428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14429 $EGREP "You lose" >/dev/null 2>&1; then
14430 ac_cv_header_stat_broken=yes
14432 ac_cv_header_stat_broken=no
14437 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14438 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14439 if test $ac_cv_header_stat_broken = yes; then
14441 cat >>confdefs.h <<\_ACEOF
14442 #define STAT_MACROS_BROKEN 1
14447 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14448 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14449 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 cat >conftest.$ac_ext <<_ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14458 #include <sys/types.h>
14459 #include <sys/wait.h>
14460 #ifndef WEXITSTATUS
14461 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14464 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14472 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14477 rm -f conftest.$ac_objext
14478 if { (ac_try="$ac_compile"
14479 case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_compile") 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14492 { (case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_try") 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try='test -s conftest.$ac_objext'
14502 { (case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_try") 2>&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14511 ac_cv_header_sys_wait_h=yes
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 ac_cv_header_sys_wait_h=no
14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14521 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14522 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14523 if test $ac_cv_header_sys_wait_h = yes; then
14525 cat >>confdefs.h <<\_ACEOF
14526 #define HAVE_SYS_WAIT_H 1
14531 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14532 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14533 if test "${ac_cv_header_time+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 cat >conftest.$ac_ext <<_ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h. */
14542 #include <sys/types.h>
14543 #include <sys/time.h>
14549 if ((struct tm *) 0)
14555 rm -f conftest.$ac_objext
14556 if { (ac_try="$ac_compile"
14557 case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14564 grep -v '^ *+' conftest.er1 >conftest.err
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
14569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14570 { (case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_try") 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; } &&
14579 { ac_try='test -s conftest.$ac_objext'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 ac_cv_header_time=yes
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 ac_cv_header_time=no
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14600 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14601 if test $ac_cv_header_time = yes; then
14603 cat >>confdefs.h <<\_ACEOF
14604 #define TIME_WITH_SYS_TIME 1
14616 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 ac_res=`eval echo '${'$as_ac_Header'}'`
14626 { echo "$as_me:$LINENO: result: $ac_res" >&5
14627 echo "${ECHO_T}$ac_res" >&6; }
14629 # Is the header compilable?
14630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14632 cat >conftest.$ac_ext <<_ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 $ac_includes_default
14639 #include <$ac_header>
14641 rm -f conftest.$ac_objext
14642 if { (ac_try="$ac_compile"
14643 case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_compile") 2>conftest.er1
14650 grep -v '^ *+' conftest.er1 >conftest.err
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14656 { (case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_try") 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_try") 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; }; then
14675 ac_header_compiler=yes
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 ac_header_compiler=no
14683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14685 echo "${ECHO_T}$ac_header_compiler" >&6; }
14687 # Is the header present?
14688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14690 cat >conftest.$ac_ext <<_ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 #include <$ac_header>
14698 if { (ac_try="$ac_cpp conftest.$ac_ext"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } >/dev/null; then
14711 if test -s conftest.err; then
14712 ac_cpp_err=$ac_c_preproc_warn_flag
14713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14720 if test -z "$ac_cpp_err"; then
14721 ac_header_preproc=yes
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ac_header_preproc=no
14729 rm -f conftest.err conftest.$ac_ext
14730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14731 echo "${ECHO_T}$ac_header_preproc" >&6; }
14733 # So? What about this header?
14734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14740 ac_header_preproc=yes
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14756 ## ------------------------------------ ##
14757 ## Report this to http://llvm.org/bugs/ ##
14758 ## ------------------------------------ ##
14760 ) | sed "s/^/$as_me: WARNING: /" >&2
14763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 eval "$as_ac_Header=\$ac_header_preproc"
14770 ac_res=`eval echo '${'$as_ac_Header'}'`
14771 { echo "$as_me:$LINENO: result: $ac_res" >&5
14772 echo "${ECHO_T}$ac_res" >&6; }
14775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14776 cat >>confdefs.h <<_ACEOF
14777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14790 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 ac_res=`eval echo '${'$as_ac_Header'}'`
14800 { echo "$as_me:$LINENO: result: $ac_res" >&5
14801 echo "${ECHO_T}$ac_res" >&6; }
14803 # Is the header compilable?
14804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14806 cat >conftest.$ac_ext <<_ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 $ac_includes_default
14813 #include <$ac_header>
14815 rm -f conftest.$ac_objext
14816 if { (ac_try="$ac_compile"
14817 case "(($ac_try" in
14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819 *) ac_try_echo=$ac_try;;
14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_compile") 2>conftest.er1
14824 grep -v '^ *+' conftest.er1 >conftest.err
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14830 { (case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_try") 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_try") 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_header_compiler=yes
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_header_compiler=no
14857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14859 echo "${ECHO_T}$ac_header_compiler" >&6; }
14861 # Is the header present?
14862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14864 cat >conftest.$ac_ext <<_ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 #include <$ac_header>
14872 if { (ac_try="$ac_cpp conftest.$ac_ext"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14880 grep -v '^ *+' conftest.er1 >conftest.err
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } >/dev/null; then
14885 if test -s conftest.err; then
14886 ac_cpp_err=$ac_c_preproc_warn_flag
14887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14894 if test -z "$ac_cpp_err"; then
14895 ac_header_preproc=yes
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900 ac_header_preproc=no
14903 rm -f conftest.err conftest.$ac_ext
14904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14905 echo "${ECHO_T}$ac_header_preproc" >&6; }
14907 # So? What about this header?
14908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14914 ac_header_preproc=yes
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14930 ## ------------------------------------ ##
14931 ## Report this to http://llvm.org/bugs/ ##
14932 ## ------------------------------------ ##
14934 ) | sed "s/^/$as_me: WARNING: /" >&2
14937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 eval "$as_ac_Header=\$ac_header_preproc"
14944 ac_res=`eval echo '${'$as_ac_Header'}'`
14945 { echo "$as_me:$LINENO: result: $ac_res" >&5
14946 echo "${ECHO_T}$ac_res" >&6; }
14949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14950 cat >>confdefs.h <<_ACEOF
14951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14960 for ac_header in utime.h windows.h
14962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14969 ac_res=`eval echo '${'$as_ac_Header'}'`
14970 { echo "$as_me:$LINENO: result: $ac_res" >&5
14971 echo "${ECHO_T}$ac_res" >&6; }
14973 # Is the header compilable?
14974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14976 cat >conftest.$ac_ext <<_ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 $ac_includes_default
14983 #include <$ac_header>
14985 rm -f conftest.$ac_objext
14986 if { (ac_try="$ac_compile"
14987 case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_compile") 2>conftest.er1
14994 grep -v '^ *+' conftest.er1 >conftest.err
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15000 { (case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_try") 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest.$ac_objext'
15010 { (case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_try") 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_header_compiler=yes
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15024 ac_header_compiler=no
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15029 echo "${ECHO_T}$ac_header_compiler" >&6; }
15031 # Is the header present?
15032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15034 cat >conftest.$ac_ext <<_ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #include <$ac_header>
15042 if { (ac_try="$ac_cpp conftest.$ac_ext"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15050 grep -v '^ *+' conftest.er1 >conftest.err
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } >/dev/null; then
15055 if test -s conftest.err; then
15056 ac_cpp_err=$ac_c_preproc_warn_flag
15057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15064 if test -z "$ac_cpp_err"; then
15065 ac_header_preproc=yes
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 ac_header_preproc=no
15073 rm -f conftest.err conftest.$ac_ext
15074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15075 echo "${ECHO_T}$ac_header_preproc" >&6; }
15077 # So? What about this header?
15078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15084 ac_header_preproc=yes
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15100 ## ------------------------------------ ##
15101 ## Report this to http://llvm.org/bugs/ ##
15102 ## ------------------------------------ ##
15104 ) | sed "s/^/$as_me: WARNING: /" >&2
15107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 eval "$as_ac_Header=\$ac_header_preproc"
15114 ac_res=`eval echo '${'$as_ac_Header'}'`
15115 { echo "$as_me:$LINENO: result: $ac_res" >&5
15116 echo "${ECHO_T}$ac_res" >&6; }
15119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15120 cat >>confdefs.h <<_ACEOF
15121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15133 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 ac_res=`eval echo '${'$as_ac_Header'}'`
15143 { echo "$as_me:$LINENO: result: $ac_res" >&5
15144 echo "${ECHO_T}$ac_res" >&6; }
15146 # Is the header compilable?
15147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15149 cat >conftest.$ac_ext <<_ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15155 $ac_includes_default
15156 #include <$ac_header>
15158 rm -f conftest.$ac_objext
15159 if { (ac_try="$ac_compile"
15160 case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_compile") 2>conftest.er1
15167 grep -v '^ *+' conftest.er1 >conftest.err
15169 cat conftest.err >&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } &&
15172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15173 { (case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178 (eval "$ac_try") 2>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; } &&
15182 { ac_try='test -s conftest.$ac_objext'
15183 { (case "(($ac_try" in
15184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15185 *) ac_try_echo=$ac_try;;
15187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15188 (eval "$ac_try") 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_header_compiler=yes
15194 echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15197 ac_header_compiler=no
15200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15202 echo "${ECHO_T}$ac_header_compiler" >&6; }
15204 # Is the header present?
15205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 #include <$ac_header>
15215 if { (ac_try="$ac_cpp conftest.$ac_ext"
15216 case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15223 grep -v '^ *+' conftest.er1 >conftest.err
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } >/dev/null; then
15228 if test -s conftest.err; then
15229 ac_cpp_err=$ac_c_preproc_warn_flag
15230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15237 if test -z "$ac_cpp_err"; then
15238 ac_header_preproc=yes
15240 echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15243 ac_header_preproc=no
15246 rm -f conftest.err conftest.$ac_ext
15247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15248 echo "${ECHO_T}$ac_header_preproc" >&6; }
15250 # So? What about this header?
15251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15257 ac_header_preproc=yes
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15273 ## ------------------------------------ ##
15274 ## Report this to http://llvm.org/bugs/ ##
15275 ## ------------------------------------ ##
15277 ) | sed "s/^/$as_me: WARNING: /" >&2
15280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 eval "$as_ac_Header=\$ac_header_preproc"
15287 ac_res=`eval echo '${'$as_ac_Header'}'`
15288 { echo "$as_me:$LINENO: result: $ac_res" >&5
15289 echo "${ECHO_T}$ac_res" >&6; }
15292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15293 cat >>confdefs.h <<_ACEOF
15294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15305 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 ac_res=`eval echo '${'$as_ac_Header'}'`
15315 { echo "$as_me:$LINENO: result: $ac_res" >&5
15316 echo "${ECHO_T}$ac_res" >&6; }
15318 # Is the header compilable?
15319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15321 cat >conftest.$ac_ext <<_ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 $ac_includes_default
15328 #include <$ac_header>
15330 rm -f conftest.$ac_objext
15331 if { (ac_try="$ac_compile"
15332 case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_compile") 2>conftest.er1
15339 grep -v '^ *+' conftest.er1 >conftest.err
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15345 { (case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_try") 2>&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; } &&
15354 { ac_try='test -s conftest.$ac_objext'
15355 { (case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_try") 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_header_compiler=yes
15366 echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15369 ac_header_compiler=no
15372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15374 echo "${ECHO_T}$ac_header_compiler" >&6; }
15376 # Is the header present?
15377 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15379 cat >conftest.$ac_ext <<_ACEOF
15382 cat confdefs.h >>conftest.$ac_ext
15383 cat >>conftest.$ac_ext <<_ACEOF
15384 /* end confdefs.h. */
15385 #include <$ac_header>
15387 if { (ac_try="$ac_cpp conftest.$ac_ext"
15388 case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15395 grep -v '^ *+' conftest.er1 >conftest.err
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } >/dev/null; then
15400 if test -s conftest.err; then
15401 ac_cpp_err=$ac_c_preproc_warn_flag
15402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15409 if test -z "$ac_cpp_err"; then
15410 ac_header_preproc=yes
15412 echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15415 ac_header_preproc=no
15418 rm -f conftest.err conftest.$ac_ext
15419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15420 echo "${ECHO_T}$ac_header_preproc" >&6; }
15422 # So? What about this header?
15423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15429 ac_header_preproc=yes
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15445 ## ------------------------------------ ##
15446 ## Report this to http://llvm.org/bugs/ ##
15447 ## ------------------------------------ ##
15449 ) | sed "s/^/$as_me: WARNING: /" >&2
15452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 eval "$as_ac_Header=\$ac_header_preproc"
15459 ac_res=`eval echo '${'$as_ac_Header'}'`
15460 { echo "$as_me:$LINENO: result: $ac_res" >&5
15461 echo "${ECHO_T}$ac_res" >&6; }
15464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15465 cat >>confdefs.h <<_ACEOF
15466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15474 for ac_header in valgrind/valgrind.h
15476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15483 ac_res=`eval echo '${'$as_ac_Header'}'`
15484 { echo "$as_me:$LINENO: result: $ac_res" >&5
15485 echo "${ECHO_T}$ac_res" >&6; }
15487 # Is the header compilable?
15488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15490 cat >conftest.$ac_ext <<_ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 $ac_includes_default
15497 #include <$ac_header>
15499 rm -f conftest.$ac_objext
15500 if { (ac_try="$ac_compile"
15501 case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_compile") 2>conftest.er1
15508 grep -v '^ *+' conftest.er1 >conftest.err
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15514 { (case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_try") 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 ac_header_compiler=yes
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 ac_header_compiler=no
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15543 echo "${ECHO_T}$ac_header_compiler" >&6; }
15545 # Is the header present?
15546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15548 cat >conftest.$ac_ext <<_ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15554 #include <$ac_header>
15556 if { (ac_try="$ac_cpp conftest.$ac_ext"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15564 grep -v '^ *+' conftest.er1 >conftest.err
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } >/dev/null; then
15569 if test -s conftest.err; then
15570 ac_cpp_err=$ac_c_preproc_warn_flag
15571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15578 if test -z "$ac_cpp_err"; then
15579 ac_header_preproc=yes
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_header_preproc=no
15587 rm -f conftest.err conftest.$ac_ext
15588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15589 echo "${ECHO_T}$ac_header_preproc" >&6; }
15591 # So? What about this header?
15592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15598 ac_header_preproc=yes
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15614 ## ------------------------------------ ##
15615 ## Report this to http://llvm.org/bugs/ ##
15616 ## ------------------------------------ ##
15618 ) | sed "s/^/$as_me: WARNING: /" >&2
15621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 eval "$as_ac_Header=\$ac_header_preproc"
15628 ac_res=`eval echo '${'$as_ac_Header'}'`
15629 { echo "$as_me:$LINENO: result: $ac_res" >&5
15630 echo "${ECHO_T}$ac_res" >&6; }
15633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15634 cat >>confdefs.h <<_ACEOF
15635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15643 for ac_header in fenv.h
15645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 ac_res=`eval echo '${'$as_ac_Header'}'`
15653 { echo "$as_me:$LINENO: result: $ac_res" >&5
15654 echo "${ECHO_T}$ac_res" >&6; }
15656 # Is the header compilable?
15657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15659 cat >conftest.$ac_ext <<_ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665 $ac_includes_default
15666 #include <$ac_header>
15668 rm -f conftest.$ac_objext
15669 if { (ac_try="$ac_compile"
15670 case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_compile") 2>conftest.er1
15677 grep -v '^ *+' conftest.er1 >conftest.err
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15683 { (case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_try") 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_try") 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_header_compiler=yes
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 ac_header_compiler=no
15710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15712 echo "${ECHO_T}$ac_header_compiler" >&6; }
15714 # Is the header present?
15715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 #include <$ac_header>
15725 if { (ac_try="$ac_cpp conftest.$ac_ext"
15726 case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15733 grep -v '^ *+' conftest.er1 >conftest.err
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } >/dev/null; then
15738 if test -s conftest.err; then
15739 ac_cpp_err=$ac_c_preproc_warn_flag
15740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15747 if test -z "$ac_cpp_err"; then
15748 ac_header_preproc=yes
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_header_preproc=no
15756 rm -f conftest.err conftest.$ac_ext
15757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15758 echo "${ECHO_T}$ac_header_preproc" >&6; }
15760 # So? What about this header?
15761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15767 ac_header_preproc=yes
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15783 ## ------------------------------------ ##
15784 ## Report this to http://llvm.org/bugs/ ##
15785 ## ------------------------------------ ##
15787 ) | sed "s/^/$as_me: WARNING: /" >&2
15790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 eval "$as_ac_Header=\$ac_header_preproc"
15797 ac_res=`eval echo '${'$as_ac_Header'}'`
15798 { echo "$as_me:$LINENO: result: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15803 cat >>confdefs.h <<_ACEOF
15804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15811 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15813 for ac_header in pthread.h
15815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 ac_res=`eval echo '${'$as_ac_Header'}'`
15823 { echo "$as_me:$LINENO: result: $ac_res" >&5
15824 echo "${ECHO_T}$ac_res" >&6; }
15826 # Is the header compilable?
15827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 $ac_includes_default
15836 #include <$ac_header>
15838 rm -f conftest.$ac_objext
15839 if { (ac_try="$ac_compile"
15840 case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_compile") 2>conftest.er1
15847 grep -v '^ *+' conftest.er1 >conftest.err
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15853 { (case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_try") 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_try") 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 ac_header_compiler=yes
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15877 ac_header_compiler=no
15880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15882 echo "${ECHO_T}$ac_header_compiler" >&6; }
15884 # Is the header present?
15885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15887 cat >conftest.$ac_ext <<_ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 #include <$ac_header>
15895 if { (ac_try="$ac_cpp conftest.$ac_ext"
15896 case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15903 grep -v '^ *+' conftest.er1 >conftest.err
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } >/dev/null; then
15908 if test -s conftest.err; then
15909 ac_cpp_err=$ac_c_preproc_warn_flag
15910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15917 if test -z "$ac_cpp_err"; then
15918 ac_header_preproc=yes
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_header_preproc=no
15926 rm -f conftest.err conftest.$ac_ext
15927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928 echo "${ECHO_T}$ac_header_preproc" >&6; }
15930 # So? What about this header?
15931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15953 ## ------------------------------------ ##
15954 ## Report this to http://llvm.org/bugs/ ##
15955 ## ------------------------------------ ##
15957 ) | sed "s/^/$as_me: WARNING: /" >&2
15960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 eval "$as_ac_Header=\$ac_header_preproc"
15967 ac_res=`eval echo '${'$as_ac_Header'}'`
15968 { echo "$as_me:$LINENO: result: $ac_res" >&5
15969 echo "${ECHO_T}$ac_res" >&6; }
15972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15973 cat >>confdefs.h <<_ACEOF
15974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15990 if test "$llvm_cv_enable_libffi" = "yes" ; then
15993 for ac_header in ffi.h ffi/ffi.h
15995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 ac_res=`eval echo '${'$as_ac_Header'}'`
16003 { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16006 # Is the header compilable?
16007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16009 cat >conftest.$ac_ext <<_ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16016 #include <$ac_header>
16018 rm -f conftest.$ac_objext
16019 if { (ac_try="$ac_compile"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_compile") 2>conftest.er1
16027 grep -v '^ *+' conftest.er1 >conftest.err
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_try") 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_header_compiler=yes
16054 echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16057 ac_header_compiler=no
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16062 echo "${ECHO_T}$ac_header_compiler" >&6; }
16064 # Is the header present?
16065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16067 cat >conftest.$ac_ext <<_ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 #include <$ac_header>
16075 if { (ac_try="$ac_cpp conftest.$ac_ext"
16076 case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16083 grep -v '^ *+' conftest.er1 >conftest.err
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } >/dev/null; then
16088 if test -s conftest.err; then
16089 ac_cpp_err=$ac_c_preproc_warn_flag
16090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16097 if test -z "$ac_cpp_err"; then
16098 ac_header_preproc=yes
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16103 ac_header_preproc=no
16106 rm -f conftest.err conftest.$ac_ext
16107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16108 echo "${ECHO_T}$ac_header_preproc" >&6; }
16110 # So? What about this header?
16111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16117 ac_header_preproc=yes
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16133 ## ------------------------------------ ##
16134 ## Report this to http://llvm.org/bugs/ ##
16135 ## ------------------------------------ ##
16137 ) | sed "s/^/$as_me: WARNING: /" >&2
16140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 eval "$as_ac_Header=\$ac_header_preproc"
16147 ac_res=`eval echo '${'$as_ac_Header'}'`
16148 { echo "$as_me:$LINENO: result: $ac_res" >&5
16149 echo "${ECHO_T}$ac_res" >&6; }
16152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16153 cat >>confdefs.h <<_ACEOF
16154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16164 for ac_header in CrashReporterClient.h
16166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 ac_res=`eval echo '${'$as_ac_Header'}'`
16174 { echo "$as_me:$LINENO: result: $ac_res" >&5
16175 echo "${ECHO_T}$ac_res" >&6; }
16177 # Is the header compilable?
16178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16180 cat >conftest.$ac_ext <<_ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 $ac_includes_default
16187 #include <$ac_header>
16189 rm -f conftest.$ac_objext
16190 if { (ac_try="$ac_compile"
16191 case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_compile") 2>conftest.er1
16198 grep -v '^ *+' conftest.er1 >conftest.err
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } &&
16203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16204 { (case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_try") 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; } &&
16213 { ac_try='test -s conftest.$ac_objext'
16214 { (case "(($ac_try" in
16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16219 (eval "$ac_try") 2>&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223 ac_header_compiler=yes
16225 echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16228 ac_header_compiler=no
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16233 echo "${ECHO_T}$ac_header_compiler" >&6; }
16235 # Is the header present?
16236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16238 cat >conftest.$ac_ext <<_ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 #include <$ac_header>
16246 if { (ac_try="$ac_cpp conftest.$ac_ext"
16247 case "(($ac_try" in
16248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249 *) ac_try_echo=$ac_try;;
16251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16254 grep -v '^ *+' conftest.er1 >conftest.err
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } >/dev/null; then
16259 if test -s conftest.err; then
16260 ac_cpp_err=$ac_c_preproc_warn_flag
16261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16268 if test -z "$ac_cpp_err"; then
16269 ac_header_preproc=yes
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16274 ac_header_preproc=no
16277 rm -f conftest.err conftest.$ac_ext
16278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16279 echo "${ECHO_T}$ac_header_preproc" >&6; }
16281 # So? What about this header?
16282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16288 ac_header_preproc=yes
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16304 ## ------------------------------------ ##
16305 ## Report this to http://llvm.org/bugs/ ##
16306 ## ------------------------------------ ##
16308 ) | sed "s/^/$as_me: WARNING: /" >&2
16311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 eval "$as_ac_Header=\$ac_header_preproc"
16318 ac_res=`eval echo '${'$as_ac_Header'}'`
16319 { echo "$as_me:$LINENO: result: $ac_res" >&5
16320 echo "${ECHO_T}$ac_res" >&6; }
16323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16324 cat >>confdefs.h <<_ACEOF
16325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16333 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16334 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16335 cat >conftest.$ac_ext <<_ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 extern const char *__crashreporter_info__;
16343 __crashreporter_info__ = "test";
16348 rm -f conftest.$ac_objext conftest$ac_exeext
16349 if { (ac_try="$ac_link"
16350 case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_link") 2>conftest.er1
16357 grep -v '^ *+' conftest.er1 >conftest.err
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest$ac_exeext'
16373 { (case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_try") 2>&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 { echo "$as_me:$LINENO: result: yes" >&5
16383 echo "${ECHO_T}yes" >&6; }
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE_CRASHREPORTER_INFO 1
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 { echo "$as_me:$LINENO: result: no" >&5
16394 echo "${ECHO_T}no" >&6; }
16396 cat >>confdefs.h <<\_ACEOF
16397 #define HAVE_CRASHREPORTER_INFO 0
16402 rm -f core conftest.err conftest.$ac_objext \
16403 conftest$ac_exeext conftest.$ac_ext
16408 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16409 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16410 if test "${ac_cv_huge_val_sanity+set}" = set; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 ac_cpp='$CXXCPP $CPPFLAGS'
16416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16420 ac_save_CXXFLAGS=$CXXFLAGS
16421 CXXFLAGS="$CXXFLAGS -pedantic"
16422 if test "$cross_compiling" = yes; then
16423 ac_cv_huge_val_sanity=yes
16425 cat >conftest.$ac_ext <<_ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16435 double x = HUGE_VAL; return x != x;
16440 rm -f conftest$ac_exeext
16441 if { (ac_try="$ac_link"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_link") 2>&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16451 { (case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_try") 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_huge_val_sanity=yes
16462 echo "$as_me: program exited with status $ac_status" >&5
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 ( exit $ac_status )
16467 ac_cv_huge_val_sanity=no
16469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16473 CXXFLAGS=$ac_save_CXXFLAGS
16475 ac_cpp='$CPP $CPPFLAGS'
16476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16482 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16483 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16484 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16487 { echo "$as_me:$LINENO: checking for pid_t" >&5
16488 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16489 if test "${ac_cv_type_pid_t+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 cat >conftest.$ac_ext <<_ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 $ac_includes_default
16499 typedef pid_t ac__type_new_;
16503 if ((ac__type_new_ *) 0)
16505 if (sizeof (ac__type_new_))
16511 rm -f conftest.$ac_objext
16512 if { (ac_try="$ac_compile"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_compile") 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_try") 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest.$ac_objext'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_type_pid_t=yes
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ac_cv_type_pid_t=no
16553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16556 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16557 if test $ac_cv_type_pid_t = yes; then
16561 cat >>confdefs.h <<_ACEOF
16567 { echo "$as_me:$LINENO: checking for size_t" >&5
16568 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16569 if test "${ac_cv_type_size_t+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 cat >conftest.$ac_ext <<_ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578 $ac_includes_default
16579 typedef size_t ac__type_new_;
16583 if ((ac__type_new_ *) 0)
16585 if (sizeof (ac__type_new_))
16591 rm -f conftest.$ac_objext
16592 if { (ac_try="$ac_compile"
16593 case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_compile") 2>conftest.er1
16600 grep -v '^ *+' conftest.er1 >conftest.err
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest.$ac_objext'
16616 { (case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_try") 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_type_size_t=yes
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 ac_cv_type_size_t=no
16633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16636 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16637 if test $ac_cv_type_size_t = yes; then
16641 cat >>confdefs.h <<_ACEOF
16642 #define size_t unsigned int
16648 cat >>confdefs.h <<_ACEOF
16649 #define RETSIGTYPE void
16652 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16653 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16654 if test "${ac_cv_struct_tm+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 cat >conftest.$ac_ext <<_ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16663 #include <sys/types.h>
16669 struct tm *tp; tp->tm_sec;
16674 rm -f conftest.$ac_objext
16675 if { (ac_try="$ac_compile"
16676 case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_compile") 2>conftest.er1
16683 grep -v '^ *+' conftest.er1 >conftest.err
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16689 { (case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_try") 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; } &&
16698 { ac_try='test -s conftest.$ac_objext'
16699 { (case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_try") 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 ac_cv_struct_tm=time.h
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 ac_cv_struct_tm=sys/time.h
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16718 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16719 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16720 if test $ac_cv_struct_tm = sys/time.h; then
16722 cat >>confdefs.h <<\_ACEOF
16723 #define TM_IN_SYS_TIME 1
16728 { echo "$as_me:$LINENO: checking for int64_t" >&5
16729 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16730 if test "${ac_cv_type_int64_t+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 cat >conftest.$ac_ext <<_ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 $ac_includes_default
16740 typedef int64_t ac__type_new_;
16744 if ((ac__type_new_ *) 0)
16746 if (sizeof (ac__type_new_))
16752 rm -f conftest.$ac_objext
16753 if { (ac_try="$ac_compile"
16754 case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_compile") 2>conftest.er1
16761 grep -v '^ *+' conftest.er1 >conftest.err
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
16766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; } &&
16776 { ac_try='test -s conftest.$ac_objext'
16777 { (case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_try") 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_cv_type_int64_t=yes
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16791 ac_cv_type_int64_t=no
16794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16797 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16798 if test $ac_cv_type_int64_t = yes; then
16800 cat >>confdefs.h <<_ACEOF
16801 #define HAVE_INT64_T 1
16806 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16807 echo "$as_me: error: Type int64_t required but not found" >&2;}
16808 { (exit 1); exit 1; }; }
16811 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16812 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16813 if test "${ac_cv_type_uint64_t+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 cat >conftest.$ac_ext <<_ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 $ac_includes_default
16823 typedef uint64_t ac__type_new_;
16827 if ((ac__type_new_ *) 0)
16829 if (sizeof (ac__type_new_))
16835 rm -f conftest.$ac_objext
16836 if { (ac_try="$ac_compile"
16837 case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_compile") 2>conftest.er1
16844 grep -v '^ *+' conftest.er1 >conftest.err
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16850 { (case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_try") 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; } &&
16859 { ac_try='test -s conftest.$ac_objext'
16860 { (case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_try") 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
16869 ac_cv_type_uint64_t=yes
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16874 ac_cv_type_uint64_t=no
16877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16880 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16881 if test $ac_cv_type_uint64_t = yes; then
16883 cat >>confdefs.h <<_ACEOF
16884 #define HAVE_UINT64_T 1
16889 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16890 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16891 if test "${ac_cv_type_u_int64_t+set}" = set; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 cat >conftest.$ac_ext <<_ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 $ac_includes_default
16901 typedef u_int64_t ac__type_new_;
16905 if ((ac__type_new_ *) 0)
16907 if (sizeof (ac__type_new_))
16913 rm -f conftest.$ac_objext
16914 if { (ac_try="$ac_compile"
16915 case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_compile") 2>conftest.er1
16922 grep -v '^ *+' conftest.er1 >conftest.err
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16928 { (case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_try") 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_try") 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 ac_cv_type_u_int64_t=yes
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16952 ac_cv_type_u_int64_t=no
16955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16957 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16958 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16959 if test $ac_cv_type_u_int64_t = yes; then
16961 cat >>confdefs.h <<_ACEOF
16962 #define HAVE_U_INT64_T 1
16967 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16968 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16969 { (exit 1); exit 1; }; }
16983 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 cat >conftest.$ac_ext <<_ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16999 #define $ac_func innocuous_$ac_func
17001 /* System header to define __stub macros and hopefully few prototypes,
17002 which can conflict with char $ac_func (); below.
17003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17004 <limits.h> exists even on freestanding compilers. */
17007 # include <limits.h>
17009 # include <assert.h>
17014 /* Override any GCC internal prototype to avoid an error.
17015 Use char because int might match the return type of a GCC
17016 builtin and then its argument prototype would still apply. */
17021 /* The GNU C library defines this for functions which it implements
17022 to always fail with ENOSYS. Some functions are actually named
17023 something starting with __ and the normal name is an alias. */
17024 #if defined __stub_$ac_func || defined __stub___$ac_func
17031 return $ac_func ();
17036 rm -f conftest.$ac_objext conftest$ac_exeext
17037 if { (ac_try="$ac_link"
17038 case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_link") 2>conftest.er1
17045 grep -v '^ *+' conftest.er1 >conftest.err
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest$ac_exeext'
17061 { (case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_try") 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 eval "$as_ac_var=yes"
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 eval "$as_ac_var=no"
17078 rm -f core conftest.err conftest.$ac_objext \
17079 conftest$ac_exeext conftest.$ac_ext
17081 ac_res=`eval echo '${'$as_ac_var'}'`
17082 { echo "$as_me:$LINENO: result: $ac_res" >&5
17083 echo "${ECHO_T}$ac_res" >&6; }
17084 if test `eval echo '${'$as_ac_var'}'` = yes; then
17085 cat >>confdefs.h <<_ACEOF
17086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17096 for ac_func in powf fmodf strtof round
17098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 cat >conftest.$ac_ext <<_ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17112 #define $ac_func innocuous_$ac_func
17114 /* System header to define __stub macros and hopefully few prototypes,
17115 which can conflict with char $ac_func (); below.
17116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17117 <limits.h> exists even on freestanding compilers. */
17120 # include <limits.h>
17122 # include <assert.h>
17127 /* Override any GCC internal prototype to avoid an error.
17128 Use char because int might match the return type of a GCC
17129 builtin and then its argument prototype would still apply. */
17134 /* The GNU C library defines this for functions which it implements
17135 to always fail with ENOSYS. Some functions are actually named
17136 something starting with __ and the normal name is an alias. */
17137 #if defined __stub_$ac_func || defined __stub___$ac_func
17144 return $ac_func ();
17149 rm -f conftest.$ac_objext conftest$ac_exeext
17150 if { (ac_try="$ac_link"
17151 case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_link") 2>conftest.er1
17158 grep -v '^ *+' conftest.er1 >conftest.err
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
17163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest$ac_exeext'
17174 { (case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_try") 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 eval "$as_ac_var=yes"
17185 echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17188 eval "$as_ac_var=no"
17191 rm -f core conftest.err conftest.$ac_objext \
17192 conftest$ac_exeext conftest.$ac_ext
17194 ac_res=`eval echo '${'$as_ac_var'}'`
17195 { echo "$as_me:$LINENO: result: $ac_res" >&5
17196 echo "${ECHO_T}$ac_res" >&6; }
17197 if test `eval echo '${'$as_ac_var'}'` = yes; then
17198 cat >>confdefs.h <<_ACEOF
17199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17210 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17226 #define $ac_func innocuous_$ac_func
17228 /* System header to define __stub macros and hopefully few prototypes,
17229 which can conflict with char $ac_func (); below.
17230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17231 <limits.h> exists even on freestanding compilers. */
17234 # include <limits.h>
17236 # include <assert.h>
17241 /* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17248 /* The GNU C library defines this for functions which it implements
17249 to always fail with ENOSYS. Some functions are actually named
17250 something starting with __ and the normal name is an alias. */
17251 #if defined __stub_$ac_func || defined __stub___$ac_func
17258 return $ac_func ();
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17272 grep -v '^ *+' conftest.er1 >conftest.err
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17278 { (case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_try") 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest$ac_exeext'
17288 { (case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_try") 2>&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 eval "$as_ac_var=yes"
17299 echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17302 eval "$as_ac_var=no"
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17308 ac_res=`eval echo '${'$as_ac_var'}'`
17309 { echo "$as_me:$LINENO: result: $ac_res" >&5
17310 echo "${ECHO_T}$ac_res" >&6; }
17311 if test `eval echo '${'$as_ac_var'}'` = yes; then
17312 cat >>confdefs.h <<_ACEOF
17313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17322 for ac_func in isatty mkdtemp mkstemp
17324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 cat >conftest.$ac_ext <<_ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h. */
17336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17338 #define $ac_func innocuous_$ac_func
17340 /* System header to define __stub macros and hopefully few prototypes,
17341 which can conflict with char $ac_func (); below.
17342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17343 <limits.h> exists even on freestanding compilers. */
17346 # include <limits.h>
17348 # include <assert.h>
17353 /* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
17360 /* The GNU C library defines this for functions which it implements
17361 to always fail with ENOSYS. Some functions are actually named
17362 something starting with __ and the normal name is an alias. */
17363 #if defined __stub_$ac_func || defined __stub___$ac_func
17370 return $ac_func ();
17375 rm -f conftest.$ac_objext conftest$ac_exeext
17376 if { (ac_try="$ac_link"
17377 case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_link") 2>conftest.er1
17384 grep -v '^ *+' conftest.er1 >conftest.err
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest$ac_exeext'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 eval "$as_ac_var=yes"
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 eval "$as_ac_var=no"
17417 rm -f core conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17420 ac_res=`eval echo '${'$as_ac_var'}'`
17421 { echo "$as_me:$LINENO: result: $ac_res" >&5
17422 echo "${ECHO_T}$ac_res" >&6; }
17423 if test `eval echo '${'$as_ac_var'}'` = yes; then
17424 cat >>confdefs.h <<_ACEOF
17425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17438 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 cat >conftest.$ac_ext <<_ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17454 #define $ac_func innocuous_$ac_func
17456 /* System header to define __stub macros and hopefully few prototypes,
17457 which can conflict with char $ac_func (); below.
17458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17459 <limits.h> exists even on freestanding compilers. */
17462 # include <limits.h>
17464 # include <assert.h>
17469 /* Override any GCC internal prototype to avoid an error.
17470 Use char because int might match the return type of a GCC
17471 builtin and then its argument prototype would still apply. */
17476 /* The GNU C library defines this for functions which it implements
17477 to always fail with ENOSYS. Some functions are actually named
17478 something starting with __ and the normal name is an alias. */
17479 #if defined __stub_$ac_func || defined __stub___$ac_func
17486 return $ac_func ();
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (ac_try="$ac_link"
17493 case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_link") 2>conftest.er1
17500 grep -v '^ *+' conftest.er1 >conftest.err
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest$ac_exeext'
17516 { (case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_try") 2>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 eval "$as_ac_var=yes"
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 eval "$as_ac_var=no"
17533 rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17536 ac_res=`eval echo '${'$as_ac_var'}'`
17537 { echo "$as_me:$LINENO: result: $ac_res" >&5
17538 echo "${ECHO_T}$ac_res" >&6; }
17539 if test `eval echo '${'$as_ac_var'}'` = yes; then
17540 cat >>confdefs.h <<_ACEOF
17541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17551 for ac_func in strerror strerror_r setenv arc4random
17553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 cat >conftest.$ac_ext <<_ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17567 #define $ac_func innocuous_$ac_func
17569 /* System header to define __stub macros and hopefully few prototypes,
17570 which can conflict with char $ac_func (); below.
17571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572 <limits.h> exists even on freestanding compilers. */
17575 # include <limits.h>
17577 # include <assert.h>
17582 /* Override any GCC internal prototype to avoid an error.
17583 Use char because int might match the return type of a GCC
17584 builtin and then its argument prototype would still apply. */
17589 /* The GNU C library defines this for functions which it implements
17590 to always fail with ENOSYS. Some functions are actually named
17591 something starting with __ and the normal name is an alias. */
17592 #if defined __stub_$ac_func || defined __stub___$ac_func
17599 return $ac_func ();
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_link") 2>conftest.er1
17613 grep -v '^ *+' conftest.er1 >conftest.err
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest$ac_exeext'
17629 { (case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_try") 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 eval "$as_ac_var=yes"
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 eval "$as_ac_var=no"
17646 rm -f core conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17649 ac_res=`eval echo '${'$as_ac_var'}'`
17650 { echo "$as_me:$LINENO: result: $ac_res" >&5
17651 echo "${ECHO_T}$ac_res" >&6; }
17652 if test `eval echo '${'$as_ac_var'}'` = yes; then
17653 cat >>confdefs.h <<_ACEOF
17654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17664 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 cat >conftest.$ac_ext <<_ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17680 #define $ac_func innocuous_$ac_func
17682 /* System header to define __stub macros and hopefully few prototypes,
17683 which can conflict with char $ac_func (); below.
17684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685 <limits.h> exists even on freestanding compilers. */
17688 # include <limits.h>
17690 # include <assert.h>
17695 /* Override any GCC internal prototype to avoid an error.
17696 Use char because int might match the return type of a GCC
17697 builtin and then its argument prototype would still apply. */
17702 /* The GNU C library defines this for functions which it implements
17703 to always fail with ENOSYS. Some functions are actually named
17704 something starting with __ and the normal name is an alias. */
17705 #if defined __stub_$ac_func || defined __stub___$ac_func
17712 return $ac_func ();
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (ac_try="$ac_link"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_link") 2>conftest.er1
17726 grep -v '^ *+' conftest.er1 >conftest.err
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } &&
17731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17732 { (case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_try") 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; } &&
17741 { ac_try='test -s conftest$ac_exeext'
17742 { (case "(($ac_try" in
17743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744 *) ac_try_echo=$ac_try;;
17746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747 (eval "$ac_try") 2>&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; }; then
17751 eval "$as_ac_var=yes"
17753 echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17756 eval "$as_ac_var=no"
17759 rm -f core conftest.err conftest.$ac_objext \
17760 conftest$ac_exeext conftest.$ac_ext
17762 ac_res=`eval echo '${'$as_ac_var'}'`
17763 { echo "$as_me:$LINENO: result: $ac_res" >&5
17764 echo "${ECHO_T}$ac_res" >&6; }
17765 if test `eval echo '${'$as_ac_var'}'` = yes; then
17766 cat >>confdefs.h <<_ACEOF
17767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17778 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 cat >conftest.$ac_ext <<_ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17794 #define $ac_func innocuous_$ac_func
17796 /* System header to define __stub macros and hopefully few prototypes,
17797 which can conflict with char $ac_func (); below.
17798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17799 <limits.h> exists even on freestanding compilers. */
17802 # include <limits.h>
17804 # include <assert.h>
17809 /* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17816 /* The GNU C library defines this for functions which it implements
17817 to always fail with ENOSYS. Some functions are actually named
17818 something starting with __ and the normal name is an alias. */
17819 #if defined __stub_$ac_func || defined __stub___$ac_func
17826 return $ac_func ();
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (ac_try="$ac_link"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_link") 2>conftest.er1
17840 grep -v '^ *+' conftest.er1 >conftest.err
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest$ac_exeext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 eval "$as_ac_var=yes"
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 eval "$as_ac_var=no"
17873 rm -f core conftest.err conftest.$ac_objext \
17874 conftest$ac_exeext conftest.$ac_ext
17876 ac_res=`eval echo '${'$as_ac_var'}'`
17877 { echo "$as_me:$LINENO: result: $ac_res" >&5
17878 echo "${ECHO_T}$ac_res" >&6; }
17879 if test `eval echo '${'$as_ac_var'}'` = yes; then
17880 cat >>confdefs.h <<_ACEOF
17881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17887 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17888 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17889 if test "${llvm_cv_c_printf_a+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 ac_cpp='$CPP $CPPFLAGS'
17894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17898 if test "$cross_compiling" = yes; then
17899 llvmac_cv_c_printf_a=no
17901 cat >conftest.$ac_ext <<_ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17910 #include <stdlib.h>
17916 volatile double A, B;
17920 sprintf(Buffer, "%a", A);
17924 if (A != 0x1.999999999999ap-4)
17931 rm -f conftest$ac_exeext
17932 if { (ac_try="$ac_link"
17933 case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_link") 2>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17942 { (case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_try") 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 llvm_cv_c_printf_a=yes
17953 echo "$as_me: program exited with status $ac_status" >&5
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 ( exit $ac_status )
17958 llvmac_cv_c_printf_a=no
17960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17965 ac_cpp='$CPP $CPPFLAGS'
17966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17971 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17972 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17973 if test "$llvm_cv_c_printf_a" = "yes"; then
17975 cat >>confdefs.h <<\_ACEOF
17976 #define HAVE_PRINTF_A 1
17982 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17983 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17984 if test "${ac_cv_func_rand48+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 ac_cpp='$CXXCPP $CPPFLAGS'
17989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17993 cat >conftest.$ac_ext <<_ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 #include <stdlib.h>
18003 srand48(0);lrand48();drand48();
18008 rm -f conftest.$ac_objext
18009 if { (ac_try="$ac_compile"
18010 case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_compile") 2>conftest.er1
18017 grep -v '^ *+' conftest.er1 >conftest.err
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18023 { (case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_try") 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest.$ac_objext'
18033 { (case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_try") 2>&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18042 ac_cv_func_rand48=yes
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 ac_cv_func_rand48=no
18050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18052 ac_cpp='$CPP $CPPFLAGS'
18053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18058 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18059 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18061 if test "$ac_cv_func_rand48" = "yes" ; then
18063 cat >>confdefs.h <<\_ACEOF
18064 #define HAVE_RAND48 1
18070 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18071 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18072 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 cat >conftest.$ac_ext <<_ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18081 $ac_includes_default
18086 char *p = (char *) strerror_s;
18094 rm -f conftest.$ac_objext
18095 if { (ac_try="$ac_compile"
18096 case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_compile") 2>conftest.er1
18103 grep -v '^ *+' conftest.er1 >conftest.err
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
18108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109 { (case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_try") 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest.$ac_objext'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_have_decl_strerror_s=yes
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18133 ac_cv_have_decl_strerror_s=no
18136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18138 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18139 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18140 if test $ac_cv_have_decl_strerror_s = yes; then
18142 cat >>confdefs.h <<_ACEOF
18143 #define HAVE_DECL_STRERROR_S 1
18148 cat >>confdefs.h <<_ACEOF
18149 #define HAVE_DECL_STRERROR_S 0
18157 if test "$llvm_cv_os_type" = "MingW" ; then
18158 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18159 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18160 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 ac_check_lib_save_LIBS=$LIBS
18165 cat >conftest.$ac_ext <<_ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18172 /* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>conftest.er1
18196 grep -v '^ *+' conftest.er1 >conftest.err
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
18201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest$ac_exeext'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_lib_gcc__alloca=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_cv_lib_gcc__alloca=no
18229 rm -f core conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18231 LIBS=$ac_check_lib_save_LIBS
18233 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18234 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18235 if test $ac_cv_lib_gcc__alloca = yes; then
18237 cat >>confdefs.h <<\_ACEOF
18238 #define HAVE__ALLOCA 1
18243 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18244 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18245 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 ac_check_lib_save_LIBS=$LIBS
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18257 /* Override any GCC internal prototype to avoid an error.
18258 Use char because int might match the return type of a GCC
18259 builtin and then its argument prototype would still apply. */
18267 return __alloca ();
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (ac_try="$ac_link"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_link") 2>conftest.er1
18281 grep -v '^ *+' conftest.er1 >conftest.err
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest$ac_exeext'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_gcc___alloca=yes
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 ac_cv_lib_gcc___alloca=no
18314 rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316 LIBS=$ac_check_lib_save_LIBS
18318 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18319 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18320 if test $ac_cv_lib_gcc___alloca = yes; then
18322 cat >>confdefs.h <<\_ACEOF
18323 #define HAVE___ALLOCA 1
18328 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18329 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18330 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18331 echo $ECHO_N "(cached) $ECHO_C" >&6
18333 ac_check_lib_save_LIBS=$LIBS
18335 cat >conftest.$ac_ext <<_ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18342 /* Override any GCC internal prototype to avoid an error.
18343 Use char because int might match the return type of a GCC
18344 builtin and then its argument prototype would still apply. */
18352 return __chkstk ();
18357 rm -f conftest.$ac_objext conftest$ac_exeext
18358 if { (ac_try="$ac_link"
18359 case "(($ac_try" in
18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361 *) ac_try_echo=$ac_try;;
18363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364 (eval "$ac_link") 2>conftest.er1
18366 grep -v '^ *+' conftest.er1 >conftest.err
18368 cat conftest.err >&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18372 { (case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_try") 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; } &&
18381 { ac_try='test -s conftest$ac_exeext'
18382 { (case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18387 (eval "$ac_try") 2>&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_lib_gcc___chkstk=yes
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_cv_lib_gcc___chkstk=no
18399 rm -f core conftest.err conftest.$ac_objext \
18400 conftest$ac_exeext conftest.$ac_ext
18401 LIBS=$ac_check_lib_save_LIBS
18403 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18404 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18405 if test $ac_cv_lib_gcc___chkstk = yes; then
18407 cat >>confdefs.h <<\_ACEOF
18408 #define HAVE___CHKSTK 1
18413 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18414 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18415 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 ac_check_lib_save_LIBS=$LIBS
18420 cat >conftest.$ac_ext <<_ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18427 /* Override any GCC internal prototype to avoid an error.
18428 Use char because int might match the return type of a GCC
18429 builtin and then its argument prototype would still apply. */
18437 return ___chkstk ();
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (ac_try="$ac_link"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_link") 2>conftest.er1
18451 grep -v '^ *+' conftest.er1 >conftest.err
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
18456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest$ac_exeext'
18467 { (case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_try") 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 ac_cv_lib_gcc____chkstk=yes
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 ac_cv_lib_gcc____chkstk=no
18484 rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext conftest.$ac_ext
18486 LIBS=$ac_check_lib_save_LIBS
18488 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18489 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18490 if test $ac_cv_lib_gcc____chkstk = yes; then
18492 cat >>confdefs.h <<\_ACEOF
18493 #define HAVE____CHKSTK 1
18499 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18500 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18501 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 ac_check_lib_save_LIBS=$LIBS
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18523 return __ashldi3 ();
18528 rm -f conftest.$ac_objext conftest$ac_exeext
18529 if { (ac_try="$ac_link"
18530 case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_link") 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18543 { (case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_try") 2>&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; } &&
18552 { ac_try='test -s conftest$ac_exeext'
18553 { (case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_try") 2>&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 ac_cv_lib_gcc___ashldi3=yes
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18567 ac_cv_lib_gcc___ashldi3=no
18570 rm -f core conftest.err conftest.$ac_objext \
18571 conftest$ac_exeext conftest.$ac_ext
18572 LIBS=$ac_check_lib_save_LIBS
18574 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18575 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18576 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE___ASHLDI3 1
18584 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18585 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18586 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 ac_check_lib_save_LIBS=$LIBS
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18598 /* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18608 return __ashrdi3 ();
18613 rm -f conftest.$ac_objext conftest$ac_exeext
18614 if { (ac_try="$ac_link"
18615 case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_link") 2>conftest.er1
18622 grep -v '^ *+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18628 { (case "(($ac_try" in
18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630 *) ac_try_echo=$ac_try;;
18632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633 (eval "$ac_try") 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; } &&
18637 { ac_try='test -s conftest$ac_exeext'
18638 { (case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_try") 2>&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18647 ac_cv_lib_gcc___ashrdi3=yes
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18652 ac_cv_lib_gcc___ashrdi3=no
18655 rm -f core conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657 LIBS=$ac_check_lib_save_LIBS
18659 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18660 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18661 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE___ASHRDI3 1
18669 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18670 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18671 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 ac_check_lib_save_LIBS=$LIBS
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18683 /* Override any GCC internal prototype to avoid an error.
18684 Use char because int might match the return type of a GCC
18685 builtin and then its argument prototype would still apply. */
18693 return __divdi3 ();
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (ac_try="$ac_link"
18700 case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_link") 2>conftest.er1
18707 grep -v '^ *+' conftest.er1 >conftest.err
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } &&
18712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18713 { (case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_try") 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; } &&
18722 { ac_try='test -s conftest$ac_exeext'
18723 { (case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_try") 2>&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 ac_cv_lib_gcc___divdi3=yes
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18737 ac_cv_lib_gcc___divdi3=no
18740 rm -f core conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext conftest.$ac_ext
18742 LIBS=$ac_check_lib_save_LIBS
18744 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18745 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18746 if test $ac_cv_lib_gcc___divdi3 = yes; then
18748 cat >>confdefs.h <<\_ACEOF
18749 #define HAVE___DIVDI3 1
18754 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18755 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18756 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18759 ac_check_lib_save_LIBS=$LIBS
18761 cat >conftest.$ac_ext <<_ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18768 /* Override any GCC internal prototype to avoid an error.
18769 Use char because int might match the return type of a GCC
18770 builtin and then its argument prototype would still apply. */
18778 return __fixdfdi ();
18783 rm -f conftest.$ac_objext conftest$ac_exeext
18784 if { (ac_try="$ac_link"
18785 case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_link") 2>conftest.er1
18792 grep -v '^ *+' conftest.er1 >conftest.err
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18798 { (case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_try") 2>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest$ac_exeext'
18808 { (case "(($ac_try" in
18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810 *) ac_try_echo=$ac_try;;
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813 (eval "$ac_try") 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 ac_cv_lib_gcc___fixdfdi=yes
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 ac_cv_lib_gcc___fixdfdi=no
18825 rm -f core conftest.err conftest.$ac_objext \
18826 conftest$ac_exeext conftest.$ac_ext
18827 LIBS=$ac_check_lib_save_LIBS
18829 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18830 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18831 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18833 cat >>confdefs.h <<\_ACEOF
18834 #define HAVE___FIXDFDI 1
18839 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18840 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18841 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 ac_check_lib_save_LIBS=$LIBS
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18853 /* Override any GCC internal prototype to avoid an error.
18854 Use char because int might match the return type of a GCC
18855 builtin and then its argument prototype would still apply. */
18863 return __fixsfdi ();
18868 rm -f conftest.$ac_objext conftest$ac_exeext
18869 if { (ac_try="$ac_link"
18870 case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_link") 2>conftest.er1
18877 grep -v '^ *+' conftest.er1 >conftest.err
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18883 { (case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_try") 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest$ac_exeext'
18893 { (case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_try") 2>&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_cv_lib_gcc___fixsfdi=yes
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18907 ac_cv_lib_gcc___fixsfdi=no
18910 rm -f core conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912 LIBS=$ac_check_lib_save_LIBS
18914 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18915 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18916 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18918 cat >>confdefs.h <<\_ACEOF
18919 #define HAVE___FIXSFDI 1
18924 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18925 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18926 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 ac_check_lib_save_LIBS=$LIBS
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18938 /* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18944 char __floatdidf ();
18948 return __floatdidf ();
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (ac_try="$ac_link"
18955 case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_link") 2>conftest.er1
18962 grep -v '^ *+' conftest.er1 >conftest.err
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } &&
18967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18968 { (case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_try") 2>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest$ac_exeext'
18978 { (case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_try") 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_cv_lib_gcc___floatdidf=yes
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 ac_cv_lib_gcc___floatdidf=no
18995 rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
18997 LIBS=$ac_check_lib_save_LIBS
18999 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19000 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19001 if test $ac_cv_lib_gcc___floatdidf = yes; then
19003 cat >>confdefs.h <<\_ACEOF
19004 #define HAVE___FLOATDIDF 1
19009 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19010 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19011 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 ac_check_lib_save_LIBS=$LIBS
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19023 /* Override any GCC internal prototype to avoid an error.
19024 Use char because int might match the return type of a GCC
19025 builtin and then its argument prototype would still apply. */
19033 return __lshrdi3 ();
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_try") 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19072 ac_cv_lib_gcc___lshrdi3=yes
19074 echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19077 ac_cv_lib_gcc___lshrdi3=no
19080 rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19082 LIBS=$ac_check_lib_save_LIBS
19084 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19085 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19086 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19088 cat >>confdefs.h <<\_ACEOF
19089 #define HAVE___LSHRDI3 1
19094 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19095 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19096 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 ac_check_lib_save_LIBS=$LIBS
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19108 /* Override any GCC internal prototype to avoid an error.
19109 Use char because int might match the return type of a GCC
19110 builtin and then its argument prototype would still apply. */
19118 return __moddi3 ();
19123 rm -f conftest.$ac_objext conftest$ac_exeext
19124 if { (ac_try="$ac_link"
19125 case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_link") 2>conftest.er1
19132 grep -v '^ *+' conftest.er1 >conftest.err
19134 cat conftest.err >&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
19137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19138 { (case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_try") 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try='test -s conftest$ac_exeext'
19148 { (case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_try") 2>&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; }; then
19157 ac_cv_lib_gcc___moddi3=yes
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_lib_gcc___moddi3=no
19165 rm -f core conftest.err conftest.$ac_objext \
19166 conftest$ac_exeext conftest.$ac_ext
19167 LIBS=$ac_check_lib_save_LIBS
19169 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19170 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19171 if test $ac_cv_lib_gcc___moddi3 = yes; then
19173 cat >>confdefs.h <<\_ACEOF
19174 #define HAVE___MODDI3 1
19179 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19180 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19181 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 ac_check_lib_save_LIBS=$LIBS
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19193 /* Override any GCC internal prototype to avoid an error.
19194 Use char because int might match the return type of a GCC
19195 builtin and then its argument prototype would still apply. */
19203 return __udivdi3 ();
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (ac_try="$ac_link"
19210 case "(($ac_try" in
19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212 *) ac_try_echo=$ac_try;;
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215 (eval "$ac_link") 2>conftest.er1
19217 grep -v '^ *+' conftest.er1 >conftest.err
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19223 { (case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_try") 2>&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest$ac_exeext'
19233 { (case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_try") 2>&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_cv_lib_gcc___udivdi3=yes
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_cv_lib_gcc___udivdi3=no
19250 rm -f core conftest.err conftest.$ac_objext \
19251 conftest$ac_exeext conftest.$ac_ext
19252 LIBS=$ac_check_lib_save_LIBS
19254 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19255 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19256 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19258 cat >>confdefs.h <<\_ACEOF
19259 #define HAVE___UDIVDI3 1
19264 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19265 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19266 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 ac_check_lib_save_LIBS=$LIBS
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19278 /* Override any GCC internal prototype to avoid an error.
19279 Use char because int might match the return type of a GCC
19280 builtin and then its argument prototype would still apply. */
19288 return __umoddi3 ();
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (ac_try="$ac_link"
19295 case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_link") 2>conftest.er1
19302 grep -v '^ *+' conftest.er1 >conftest.err
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
19307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19308 { (case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_try") 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest$ac_exeext'
19318 { (case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_try") 2>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
19327 ac_cv_lib_gcc___umoddi3=yes
19329 echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19332 ac_cv_lib_gcc___umoddi3=no
19335 rm -f core conftest.err conftest.$ac_objext \
19336 conftest$ac_exeext conftest.$ac_ext
19337 LIBS=$ac_check_lib_save_LIBS
19339 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19340 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19341 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19343 cat >>confdefs.h <<\_ACEOF
19344 #define HAVE___UMODDI3 1
19350 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19351 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19352 if test "${ac_cv_lib_gcc___main+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 ac_check_lib_save_LIBS=$LIBS
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19364 /* Override any GCC internal prototype to avoid an error.
19365 Use char because int might match the return type of a GCC
19366 builtin and then its argument prototype would still apply. */
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (ac_try="$ac_link"
19381 case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_link") 2>conftest.er1
19388 grep -v '^ *+' conftest.er1 >conftest.err
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
19393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19394 { (case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399 (eval "$ac_try") 2>&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest$ac_exeext'
19404 { (case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_try") 2>&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
19413 ac_cv_lib_gcc___main=yes
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19418 ac_cv_lib_gcc___main=no
19421 rm -f core conftest.err conftest.$ac_objext \
19422 conftest$ac_exeext conftest.$ac_ext
19423 LIBS=$ac_check_lib_save_LIBS
19425 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19426 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19427 if test $ac_cv_lib_gcc___main = yes; then
19429 cat >>confdefs.h <<\_ACEOF
19430 #define HAVE___MAIN 1
19435 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19436 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19437 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19440 ac_check_lib_save_LIBS=$LIBS
19442 cat >conftest.$ac_ext <<_ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19449 /* Override any GCC internal prototype to avoid an error.
19450 Use char because int might match the return type of a GCC
19451 builtin and then its argument prototype would still apply. */
19459 return __cmpdi2 ();
19464 rm -f conftest.$ac_objext conftest$ac_exeext
19465 if { (ac_try="$ac_link"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_link") 2>conftest.er1
19473 grep -v '^ *+' conftest.er1 >conftest.err
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } &&
19478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19479 { (case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_try") 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try='test -s conftest$ac_exeext'
19489 { (case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_try") 2>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
19498 ac_cv_lib_gcc___cmpdi2=yes
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19503 ac_cv_lib_gcc___cmpdi2=no
19506 rm -f core conftest.err conftest.$ac_objext \
19507 conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19510 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19511 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19512 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19514 cat >>confdefs.h <<\_ACEOF
19515 #define HAVE___CMPDI2 1
19522 if test "$llvm_cv_os_type" = "MingW" ; then
19523 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19524 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19525 cat >conftest.$ac_ext <<_ACEOF
19526 #include <windows.h>
19527 #include <imagehlp.h>
19528 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19529 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19531 rm -f conftest.$ac_objext
19532 if { (ac_try="$ac_compile"
19533 case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_compile") 2>conftest.er1
19540 grep -v '^ *+' conftest.er1 >conftest.err
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19546 { (case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_try") 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest.$ac_objext'
19556 { (case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_try") 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19566 { echo "$as_me:$LINENO: result: yes" >&5
19567 echo "${ECHO_T}yes" >&6; }
19568 llvm_cv_win32_elmcb_pcstr="PCSTR"
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19575 { echo "$as_me:$LINENO: result: no" >&5
19576 echo "${ECHO_T}no" >&6; }
19577 llvm_cv_win32_elmcb_pcstr="PSTR"
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19583 cat >>confdefs.h <<_ACEOF
19584 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19590 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19591 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19592 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 ac_cpp='$CXXCPP $CPPFLAGS'
19597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_cv_func_isnan_in_math_h=yes
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 ac_cv_func_isnan_in_math_h=no
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19666 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19667 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19670 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19672 cat >>confdefs.h <<\_ACEOF
19673 #define HAVE_ISNAN_IN_MATH_H 1
19678 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19679 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19680 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19681 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 ac_cpp='$CXXCPP $CPPFLAGS'
19685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19689 cat >conftest.$ac_ext <<_ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19704 rm -f conftest.$ac_objext
19705 if { (ac_try="$ac_compile"
19706 case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_compile") 2>conftest.er1
19713 grep -v '^ *+' conftest.er1 >conftest.err
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
19718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; } &&
19728 { ac_try='test -s conftest.$ac_objext'
19729 { (case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_try") 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_cv_func_isnan_in_cmath=yes
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19743 ac_cv_func_isnan_in_cmath=no
19746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19748 ac_cpp='$CPP $CPPFLAGS'
19749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19754 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19755 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19757 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19759 cat >>confdefs.h <<\_ACEOF
19760 #define HAVE_ISNAN_IN_CMATH 1
19765 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19766 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19767 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 ac_cpp='$CXXCPP $CPPFLAGS'
19772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19776 cat >conftest.$ac_ext <<_ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19786 float f; std::isnan(f);
19791 rm -f conftest.$ac_objext
19792 if { (ac_try="$ac_compile"
19793 case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_compile") 2>conftest.er1
19800 grep -v '^ *+' conftest.er1 >conftest.err
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
19805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19806 { (case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_try") 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
19816 { (case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_try") 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_cv_func_std_isnan_in_cmath=yes
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ac_cv_func_std_isnan_in_cmath=no
19833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19835 ac_cpp='$CPP $CPPFLAGS'
19836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19841 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19842 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19844 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19846 cat >>confdefs.h <<\_ACEOF
19847 #define HAVE_STD_ISNAN_IN_CMATH 1
19853 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19854 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19855 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 ac_cpp='$CXXCPP $CPPFLAGS'
19860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19864 cat >conftest.$ac_ext <<_ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19879 rm -f conftest.$ac_objext
19880 if { (ac_try="$ac_compile"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_compile") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
19893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; } &&
19903 { ac_try='test -s conftest.$ac_objext'
19904 { (case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909 (eval "$ac_try") 2>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; }; then
19913 ac_cv_func_isinf_in_math_h=yes
19915 echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19918 ac_cv_func_isinf_in_math_h=no
19921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 ac_cpp='$CPP $CPPFLAGS'
19924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19929 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19930 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19932 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19934 cat >>confdefs.h <<\_ACEOF
19935 #define HAVE_ISINF_IN_MATH_H 1
19940 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19941 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19942 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 ac_cpp='$CXXCPP $CPPFLAGS'
19947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19951 cat >conftest.$ac_ext <<_ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19975 grep -v '^ *+' conftest.er1 >conftest.err
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_cv_func_isinf_in_cmath=yes
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_cv_func_isinf_in_cmath=no
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 ac_cpp='$CPP $CPPFLAGS'
20011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20016 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20017 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20019 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE_ISINF_IN_CMATH 1
20027 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20028 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20029 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 ac_cpp='$CXXCPP $CPPFLAGS'
20034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20038 cat >conftest.$ac_ext <<_ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20048 float f; std::isinf(f);
20053 rm -f conftest.$ac_objext
20054 if { (ac_try="$ac_compile"
20055 case "(($ac_try" in
20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_compile") 2>conftest.er1
20062 grep -v '^ *+' conftest.er1 >conftest.err
20064 cat conftest.err >&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } &&
20067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20068 { (case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_try") 2>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; } &&
20077 { ac_try='test -s conftest.$ac_objext'
20078 { (case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_try") 2>&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; }; then
20087 ac_cv_func_std_isinf_in_cmath=yes
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 ac_cv_func_std_isinf_in_cmath=no
20095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097 ac_cpp='$CPP $CPPFLAGS'
20098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20103 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20104 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20106 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20108 cat >>confdefs.h <<\_ACEOF
20109 #define HAVE_STD_ISINF_IN_CMATH 1
20114 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20115 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20116 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 ac_cpp='$CXXCPP $CPPFLAGS'
20121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 #include <ieeefp.h>
20135 float f; finite(f);
20140 rm -f conftest.$ac_objext
20141 if { (ac_try="$ac_compile"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_compile") 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
20154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20155 { (case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160 (eval "$ac_try") 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try='test -s conftest.$ac_objext'
20165 { (case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_try") 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 ac_cv_func_finite_in_ieeefp_h=yes
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20179 ac_cv_func_finite_in_ieeefp_h=no
20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184 ac_cpp='$CPP $CPPFLAGS'
20185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20190 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20191 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20193 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20195 cat >>confdefs.h <<\_ACEOF
20196 #define HAVE_FINITE_IN_IEEEFP_H 1
20203 if test "$llvm_cv_platform_type" = "Unix" ; then
20206 for ac_header in stdlib.h unistd.h
20208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 ac_res=`eval echo '${'$as_ac_Header'}'`
20216 { echo "$as_me:$LINENO: result: $ac_res" >&5
20217 echo "${ECHO_T}$ac_res" >&6; }
20219 # Is the header compilable?
20220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20222 cat >conftest.$ac_ext <<_ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20228 $ac_includes_default
20229 #include <$ac_header>
20231 rm -f conftest.$ac_objext
20232 if { (ac_try="$ac_compile"
20233 case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_compile") 2>conftest.er1
20240 grep -v '^ *+' conftest.er1 >conftest.err
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20246 { (case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_try") 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; } &&
20255 { ac_try='test -s conftest.$ac_objext'
20256 { (case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_try") 2>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_header_compiler=yes
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_header_compiler=no
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20275 echo "${ECHO_T}$ac_header_compiler" >&6; }
20277 # Is the header present?
20278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 #include <$ac_header>
20288 if { (ac_try="$ac_cpp conftest.$ac_ext"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20296 grep -v '^ *+' conftest.er1 >conftest.err
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } >/dev/null; then
20301 if test -s conftest.err; then
20302 ac_cpp_err=$ac_c_preproc_warn_flag
20303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20310 if test -z "$ac_cpp_err"; then
20311 ac_header_preproc=yes
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 ac_header_preproc=no
20319 rm -f conftest.err conftest.$ac_ext
20320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20321 echo "${ECHO_T}$ac_header_preproc" >&6; }
20323 # So? What about this header?
20324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20330 ac_header_preproc=yes
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20346 ## ------------------------------------ ##
20347 ## Report this to http://llvm.org/bugs/ ##
20348 ## ------------------------------------ ##
20350 ) | sed "s/^/$as_me: WARNING: /" >&2
20353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20358 eval "$as_ac_Header=\$ac_header_preproc"
20360 ac_res=`eval echo '${'$as_ac_Header'}'`
20361 { echo "$as_me:$LINENO: result: $ac_res" >&5
20362 echo "${ECHO_T}$ac_res" >&6; }
20365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20366 cat >>confdefs.h <<_ACEOF
20367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20375 for ac_func in getpagesize
20377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 cat >conftest.$ac_ext <<_ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20391 #define $ac_func innocuous_$ac_func
20393 /* System header to define __stub macros and hopefully few prototypes,
20394 which can conflict with char $ac_func (); below.
20395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20396 <limits.h> exists even on freestanding compilers. */
20399 # include <limits.h>
20401 # include <assert.h>
20406 /* Override any GCC internal prototype to avoid an error.
20407 Use char because int might match the return type of a GCC
20408 builtin and then its argument prototype would still apply. */
20413 /* The GNU C library defines this for functions which it implements
20414 to always fail with ENOSYS. Some functions are actually named
20415 something starting with __ and the normal name is an alias. */
20416 #if defined __stub_$ac_func || defined __stub___$ac_func
20423 return $ac_func ();
20428 rm -f conftest.$ac_objext conftest$ac_exeext
20429 if { (ac_try="$ac_link"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
20442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20443 { (case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_try") 2>&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; } &&
20452 { ac_try='test -s conftest$ac_exeext'
20453 { (case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_try") 2>&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; }; then
20462 eval "$as_ac_var=yes"
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 eval "$as_ac_var=no"
20470 rm -f core conftest.err conftest.$ac_objext \
20471 conftest$ac_exeext conftest.$ac_ext
20473 ac_res=`eval echo '${'$as_ac_var'}'`
20474 { echo "$as_me:$LINENO: result: $ac_res" >&5
20475 echo "${ECHO_T}$ac_res" >&6; }
20476 if test `eval echo '${'$as_ac_var'}'` = yes; then
20477 cat >>confdefs.h <<_ACEOF
20478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20484 { echo "$as_me:$LINENO: checking for working mmap" >&5
20485 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20486 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20489 if test "$cross_compiling" = yes; then
20490 ac_cv_func_mmap_fixed_mapped=no
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 $ac_includes_default
20499 /* malloc might have been renamed as rpl_malloc. */
20502 /* Thanks to Mike Haertel and Jim Avera for this test.
20503 Here is a matrix of mmap possibilities:
20504 mmap private not fixed
20505 mmap private fixed at somewhere currently unmapped
20506 mmap private fixed at somewhere already mapped
20507 mmap shared not fixed
20508 mmap shared fixed at somewhere currently unmapped
20509 mmap shared fixed at somewhere already mapped
20510 For private mappings, we should verify that changes cannot be read()
20511 back from the file, nor mmap's back from the file at a different
20512 address. (There have been systems where private was not correctly
20513 implemented like the infamous i386 svr4.0, and systems where the
20514 VM page cache was not coherent with the file system buffer cache
20515 like early versions of FreeBSD and possibly contemporary NetBSD.)
20516 For shared mappings, we should conversely verify that changes get
20517 propagated back to all the places they're supposed to be.
20519 Grep wants private fixed already mapped.
20520 The main things grep needs to know about mmap are:
20521 * does it exist and is it safe to write into the mmap'd area
20522 * how to use it (BSD variants) */
20525 #include <sys/mman.h>
20527 #if !STDC_HEADERS && !HAVE_STDLIB_H
20531 /* This mess was copied from the GNU getpagesize.h. */
20532 #if !HAVE_GETPAGESIZE
20533 /* Assume that all systems that can run configure have sys/param.h. */
20534 # if !HAVE_SYS_PARAM_H
20535 # define HAVE_SYS_PARAM_H 1
20538 # ifdef _SC_PAGESIZE
20539 # define getpagesize() sysconf(_SC_PAGESIZE)
20540 # else /* no _SC_PAGESIZE */
20541 # if HAVE_SYS_PARAM_H
20542 # include <sys/param.h>
20543 # ifdef EXEC_PAGESIZE
20544 # define getpagesize() EXEC_PAGESIZE
20545 # else /* no EXEC_PAGESIZE */
20547 # define getpagesize() NBPG * CLSIZE
20550 # endif /* no CLSIZE */
20551 # else /* no NBPG */
20553 # define getpagesize() NBPC
20554 # else /* no NBPC */
20556 # define getpagesize() PAGESIZE
20557 # endif /* PAGESIZE */
20558 # endif /* no NBPC */
20559 # endif /* no NBPG */
20560 # endif /* no EXEC_PAGESIZE */
20561 # else /* no HAVE_SYS_PARAM_H */
20562 # define getpagesize() 8192 /* punt totally */
20563 # endif /* no HAVE_SYS_PARAM_H */
20564 # endif /* no _SC_PAGESIZE */
20566 #endif /* no HAVE_GETPAGESIZE */
20571 char *data, *data2, *data3;
20575 pagesize = getpagesize ();
20577 /* First, make a file with some known garbage in it. */
20578 data = (char *) malloc (pagesize);
20581 for (i = 0; i < pagesize; ++i)
20582 *(data + i) = rand ();
20584 fd = creat ("conftest.mmap", 0600);
20587 if (write (fd, data, pagesize) != pagesize)
20591 /* Next, try to mmap the file at a fixed address which already has
20592 something else allocated at it. If we can, also make sure that
20593 we see the same garbage. */
20594 fd = open ("conftest.mmap", O_RDWR);
20597 data2 = (char *) malloc (2 * pagesize);
20600 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20604 for (i = 0; i < pagesize; ++i)
20605 if (*(data + i) != *(data2 + i))
20608 /* Finally, make sure that changes to the mapped area do not
20609 percolate back to the file as seen by read(). (This is a bug on
20610 some variants of i386 svr4.0.) */
20611 for (i = 0; i < pagesize; ++i)
20612 *(data2 + i) = *(data2 + i) + 1;
20613 data3 = (char *) malloc (pagesize);
20616 if (read (fd, data3, pagesize) != pagesize)
20618 for (i = 0; i < pagesize; ++i)
20619 if (*(data + i) != *(data3 + i))
20625 rm -f conftest$ac_exeext
20626 if { (ac_try="$ac_link"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_link") 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20636 { (case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_try") 2>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
20645 ac_cv_func_mmap_fixed_mapped=yes
20647 echo "$as_me: program exited with status $ac_status" >&5
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651 ( exit $ac_status )
20652 ac_cv_func_mmap_fixed_mapped=no
20654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20659 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20660 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20661 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20663 cat >>confdefs.h <<\_ACEOF
20664 #define HAVE_MMAP 1
20668 rm -f conftest.mmap
20670 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20671 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20672 if test "${ac_cv_func_mmap_file+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 ac_cpp='$CPP $CPPFLAGS'
20677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20681 if test "$cross_compiling" = yes; then
20682 ac_cv_func_mmap_file=no
20684 cat >conftest.$ac_ext <<_ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20692 #include <sys/types.h>
20693 #include <sys/mman.h>
20701 fd = creat ("foo",0777);
20702 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20704 return (fd != (int) MAP_FAILED);
20709 rm -f conftest$ac_exeext
20710 if { (ac_try="$ac_link"
20711 case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_link") 2>&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20720 { (case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_try") 2>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
20729 ac_cv_func_mmap_file=yes
20731 echo "$as_me: program exited with status $ac_status" >&5
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 ( exit $ac_status )
20736 ac_cv_func_mmap_file=no
20738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20743 ac_cpp='$CPP $CPPFLAGS'
20744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20750 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20751 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20752 if test "$ac_cv_func_mmap_file" = yes; then
20754 cat >>confdefs.h <<\_ACEOF
20755 #define HAVE_MMAP_FILE
20762 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20763 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20764 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20767 if test "$llvm_cv_os_type" = "Interix" ; then
20768 ac_cv_need_dev_zero_for_mmap=yes
20770 ac_cv_need_dev_zero_for_mmap=no
20774 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20775 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20776 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20778 cat >>confdefs.h <<\_ACEOF
20779 #define NEED_DEV_ZERO_FOR_MMAP 1
20784 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20786 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20787 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20789 if test "$ac_cv_func_mmap_file" = "no"
20791 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20792 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20796 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20797 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20799 ac_cpp='$CXXCPP $CPPFLAGS'
20800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20811 volatile unsigned long val = 1;
20812 __sync_synchronize();
20813 __sync_val_compare_and_swap(&val, 1, 0);
20814 __sync_add_and_fetch(&val, 1);
20815 __sync_sub_and_fetch(&val, 1);
20820 rm -f conftest.$ac_objext conftest$ac_exeext
20821 if { (ac_try="$ac_link"
20822 case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_link") 2>conftest.er1
20829 grep -v '^ *+' conftest.er1 >conftest.err
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } &&
20834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20835 { (case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_try") 2>&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; } &&
20844 { ac_try='test -s conftest$ac_exeext'
20845 { (case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_try") 2>&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
20855 ac_cpp='$CPP $CPPFLAGS'
20856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20860 { echo "$as_me:$LINENO: result: yes" >&5
20861 echo "${ECHO_T}yes" >&6; }
20863 cat >>confdefs.h <<\_ACEOF
20864 #define LLVM_HAS_ATOMICS 1
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 { echo "$as_me:$LINENO: result: no" >&5
20872 echo "${ECHO_T}no" >&6; }
20874 cat >>confdefs.h <<\_ACEOF
20875 #define LLVM_HAS_ATOMICS 0
20878 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20879 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20882 rm -f core conftest.err conftest.$ac_objext \
20883 conftest$ac_exeext conftest.$ac_ext
20886 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20887 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20888 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20889 if test "${llvm_cv_linux_mixed+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 ac_cpp='$CPP $CPPFLAGS'
20894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20905 error: Not x86-64 even if uname says so!
20916 rm -f conftest.$ac_objext
20917 if { (ac_try="$ac_compile"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_compile") 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } &&
20930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20931 { (case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_try") 2>&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; } &&
20940 { ac_try='test -s conftest.$ac_objext'
20941 { (case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_try") 2>&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 llvm_cv_linux_mixed=no
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 llvm_cv_linux_mixed=yes
20958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960 ac_cpp='$CPP $CPPFLAGS'
20961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20967 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20968 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20970 if test "$llvm_cv_linux_mixed" = "yes"; then
20971 llvm_cv_target_arch="x86"
20977 for ac_func in __dso_handle
20979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20985 cat >conftest.$ac_ext <<_ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20993 #define $ac_func innocuous_$ac_func
20995 /* System header to define __stub macros and hopefully few prototypes,
20996 which can conflict with char $ac_func (); below.
20997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20998 <limits.h> exists even on freestanding compilers. */
21001 # include <limits.h>
21003 # include <assert.h>
21008 /* Override any GCC internal prototype to avoid an error.
21009 Use char because int might match the return type of a GCC
21010 builtin and then its argument prototype would still apply. */
21015 /* The GNU C library defines this for functions which it implements
21016 to always fail with ENOSYS. Some functions are actually named
21017 something starting with __ and the normal name is an alias. */
21018 #if defined __stub_$ac_func || defined __stub___$ac_func
21025 return $ac_func ();
21030 rm -f conftest.$ac_objext conftest$ac_exeext
21031 if { (ac_try="$ac_link"
21032 case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_link") 2>conftest.er1
21039 grep -v '^ *+' conftest.er1 >conftest.err
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } &&
21044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21045 { (case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_try") 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest$ac_exeext'
21055 { (case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_try") 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064 eval "$as_ac_var=yes"
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 eval "$as_ac_var=no"
21072 rm -f core conftest.err conftest.$ac_objext \
21073 conftest$ac_exeext conftest.$ac_ext
21075 ac_res=`eval echo '${'$as_ac_var'}'`
21076 { echo "$as_me:$LINENO: result: $ac_res" >&5
21077 echo "${ECHO_T}$ac_res" >&6; }
21078 if test `eval echo '${'$as_ac_var'}'` = yes; then
21079 cat >>confdefs.h <<_ACEOF
21080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21087 SHLIBEXT=$libltdl_cv_shlibext
21090 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21093 if test "${prefix}" = "NONE" ; then
21094 prefix="/usr/local"
21096 eval LLVM_PREFIX="${prefix}";
21097 eval LLVM_BINDIR="${prefix}/bin";
21098 eval LLVM_LIBDIR="${prefix}/lib";
21099 eval LLVM_DATADIR="${prefix}/share/llvm";
21100 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21101 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21102 eval LLVM_INCLUDEDIR="${prefix}/include";
21103 eval LLVM_INFODIR="${prefix}/info";
21104 eval LLVM_MANDIR="${prefix}/man";
21105 LLVM_CONFIGTIME=`date`
21117 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21118 LLVM_CONFIGTIME="(timestamp not enabled)"
21122 cat >>confdefs.h <<_ACEOF
21123 #define LLVM_PREFIX "$LLVM_PREFIX"
21127 cat >>confdefs.h <<_ACEOF
21128 #define LLVM_BINDIR "$LLVM_BINDIR"
21132 cat >>confdefs.h <<_ACEOF
21133 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21137 cat >>confdefs.h <<_ACEOF
21138 #define LLVM_DATADIR "$LLVM_DATADIR"
21142 cat >>confdefs.h <<_ACEOF
21143 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21147 cat >>confdefs.h <<_ACEOF
21148 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21152 cat >>confdefs.h <<_ACEOF
21153 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21157 cat >>confdefs.h <<_ACEOF
21158 #define LLVM_INFODIR "$LLVM_INFODIR"
21162 cat >>confdefs.h <<_ACEOF
21163 #define LLVM_MANDIR "$LLVM_MANDIR"
21167 cat >>confdefs.h <<_ACEOF
21168 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21172 cat >>confdefs.h <<_ACEOF
21173 #define LLVM_HOSTTRIPLE "$host"
21177 cat >>confdefs.h <<_ACEOF
21178 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21182 if test "$BINDINGS_TO_BUILD" = auto ; then
21183 BINDINGS_TO_BUILD=""
21184 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21185 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21188 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21194 binding_prereqs_failed=0
21195 for a_binding in $BINDINGS_TO_BUILD ; do
21196 case "$a_binding" in
21198 if test "x$OCAMLC" = x ; then
21199 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21200 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21201 binding_prereqs_failed=1
21203 if test "x$OCAMLDEP" = x ; then
21204 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21205 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21206 binding_prereqs_failed=1
21208 if test "x$OCAMLOPT" = x ; then
21209 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21210 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21212 if test "x$with_ocaml_libdir" != xauto ; then
21213 OCAML_LIBDIR=$with_ocaml_libdir
21216 ocaml_stdlib="`"$OCAMLC" -where`"
21217 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21219 # ocaml stdlib is beneath our prefix; use stdlib
21220 OCAML_LIBDIR=$ocaml_stdlib
21223 # ocaml stdlib is outside our prefix; use libdir/ocaml
21224 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21231 if test "$binding_prereqs_failed" = 1 ; then
21232 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21233 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21234 { (exit 1); exit 1; }; }
21237 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21238 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21239 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 ac_cpp='$CXXCPP $CPPFLAGS'
21244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21248 oldcxxflags="$CXXFLAGS"
21249 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21256 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21265 rm -f conftest.$ac_objext
21266 if { (ac_try="$ac_compile"
21267 case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272 (eval "$ac_compile") 2>conftest.er1
21274 grep -v '^ *+' conftest.er1 >conftest.err
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } &&
21279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21280 { (case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_try") 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; } &&
21289 { ac_try='test -s conftest.$ac_objext'
21290 { (case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_try") 2>&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; }; then
21299 llvm_cv_cxx_visibility_inlines_hidden=yes
21301 echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21304 llvm_cv_cxx_visibility_inlines_hidden=no
21307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21308 CXXFLAGS="$oldcxxflags"
21310 ac_cpp='$CPP $CPPFLAGS'
21311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21317 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21318 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21319 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21320 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21323 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21328 if test "$llvm_cv_link_use_r" = "yes" ; then
21335 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21336 RDYNAMIC="-Wl,-export-dynamic"
21343 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21350 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21352 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21354 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21356 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21358 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21361 ac_config_files="$ac_config_files Makefile.config"
21364 ac_config_files="$ac_config_files llvm.spec"
21367 ac_config_files="$ac_config_files docs/doxygen.cfg"
21370 if test "${clang_src_root}" = ""; then
21371 clang_src_root="$srcdir/tools/clang"
21373 if test -f ${clang_src_root}/README.txt; then
21374 configh="include/clang/Config/config.h"
21375 doxy="docs/doxygen.cfg"
21376 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21378 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21382 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21385 ac_config_commands="$ac_config_commands setup"
21387 ac_config_commands="$ac_config_commands Makefile"
21390 ac_config_commands="$ac_config_commands Makefile.common"
21393 ac_config_commands="$ac_config_commands examples/Makefile"
21396 ac_config_commands="$ac_config_commands lib/Makefile"
21399 ac_config_commands="$ac_config_commands runtime/Makefile"
21402 ac_config_commands="$ac_config_commands test/Makefile"
21405 ac_config_commands="$ac_config_commands test/Makefile.tests"
21408 ac_config_commands="$ac_config_commands unittests/Makefile"
21411 ac_config_commands="$ac_config_commands tools/Makefile"
21414 ac_config_commands="$ac_config_commands utils/Makefile"
21417 ac_config_commands="$ac_config_commands projects/Makefile"
21420 ac_config_commands="$ac_config_commands bindings/Makefile"
21423 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21427 cat >confcache <<\_ACEOF
21428 # This file is a shell script that caches the results of configure
21429 # tests run on this system so they can be shared between configure
21430 # scripts and configure runs, see configure's option --config-cache.
21431 # It is not useful on other systems. If it contains results you don't
21432 # want to keep, you may remove or edit it.
21434 # config.status only pays attention to the cache file if you give it
21435 # the --recheck option to rerun configure.
21437 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21439 # following values.
21443 # The following way of writing the cache mishandles newlines in values,
21444 # but we know of no workaround that is simple, portable, and efficient.
21445 # So, we kill variables containing newlines.
21446 # Ultrix sh set writes to stderr and can't be redirected directly,
21447 # and sets the high bit in the cache file unless we assign to the vars.
21449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21450 eval ac_val=\$$ac_var
21454 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21455 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21458 _ | IFS | as_nl) ;; #(
21459 *) $as_unset $ac_var ;;
21465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21466 *${as_nl}ac_space=\ *)
21467 # `set' does not quote correctly, so add quotes (double-quote
21468 # substitution turns \\\\ into \\, and sed turns \\ into \).
21471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21474 # `set' quotes correctly as required by POSIX, so do not add quotes.
21475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21489 if test -w "$cache_file"; then
21490 test "x$cache_file" != "x/dev/null" &&
21491 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21492 echo "$as_me: updating cache $cache_file" >&6;}
21493 cat confcache >$cache_file
21495 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21496 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21502 # Let make expand exec_prefix.
21503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21505 DEFS=-DHAVE_CONFIG_H
21509 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21510 # 1. Remove the extension, and $U if already installed.
21511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21512 ac_i=`echo "$ac_i" | sed "$ac_script"`
21513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21514 # will be set to the directory where LIBOBJS objects are built.
21515 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21516 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21518 LIBOBJS=$ac_libobjs
21520 LTLIBOBJS=$ac_ltlibobjs
21523 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21524 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21525 Usually this means the macro was only invoked conditionally." >&5
21526 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21527 Usually this means the macro was only invoked conditionally." >&2;}
21528 { (exit 1); exit 1; }; }
21530 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21531 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21532 Usually this means the macro was only invoked conditionally." >&5
21533 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21534 Usually this means the macro was only invoked conditionally." >&2;}
21535 { (exit 1); exit 1; }; }
21538 : ${CONFIG_STATUS=./config.status}
21539 ac_clean_files_save=$ac_clean_files
21540 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21541 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21542 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21543 cat >$CONFIG_STATUS <<_ACEOF
21545 # Generated by $as_me.
21546 # Run this file to recreate the current configuration.
21547 # Compiler output produced by configure, useful for debugging
21548 # configure, is in config.log if it exists.
21551 ac_cs_recheck=false
21553 SHELL=\${CONFIG_SHELL-$SHELL}
21556 cat >>$CONFIG_STATUS <<\_ACEOF
21557 ## --------------------- ##
21558 ## M4sh Initialization. ##
21559 ## --------------------- ##
21561 # Be Bourne compatible
21562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21565 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21566 # is contrary to our usage. Disable this feature.
21567 alias -g '${1+"$@"}'='"$@"'
21568 setopt NO_GLOB_SUBST
21570 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21572 BIN_SH=xpg4; export BIN_SH # for Tru64
21573 DUALCASE=1; export DUALCASE # for MKS sh
21577 # Avoid depending upon Character Ranges.
21578 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21581 as_cr_digits='0123456789'
21582 as_cr_alnum=$as_cr_Letters$as_cr_digits
21584 # The user is always right.
21585 if test "${PATH_SEPARATOR+set}" != set; then
21586 echo "#! /bin/sh" >conf$$.sh
21587 echo "exit 0" >>conf$$.sh
21589 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21597 # Support unset when possible.
21598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21606 # We need space, tab and new line, in precisely that order. Quoting is
21607 # there to prevent editors from complaining about space-tab.
21608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21609 # splitting by setting IFS to empty value.)
21614 # Find who we are. Look in the path if we contain no directory separator.
21616 *[\\/]* ) as_myself=$0 ;;
21617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21618 for as_dir in $PATH
21621 test -z "$as_dir" && as_dir=.
21622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21628 # We did not find ourselves, most probably we were run as `sh COMMAND'
21629 # in which case we are not to be found in the path.
21630 if test "x$as_myself" = x; then
21633 if test ! -f "$as_myself"; then
21634 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21635 { (exit 1); exit 1; }
21638 # Work around bugs in pre-3.0 UWIN ksh.
21639 for as_var in ENV MAIL MAILPATH
21640 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21648 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21649 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21650 LC_TELEPHONE LC_TIME
21652 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21653 eval $as_var=C; export $as_var
21655 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21659 # Required to use basename.
21660 if expr a : '\(a\)' >/dev/null 2>&1 &&
21661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21667 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21668 as_basename=basename
21674 # Name of the executable.
21675 as_me=`$as_basename -- "$0" ||
21676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21677 X"$0" : 'X\(//\)$' \| \
21678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21680 sed '/^.*\/\([^/][^/]*\)\/*$/{
21699 as_lineno_1=$LINENO
21700 as_lineno_2=$LINENO
21701 test "x$as_lineno_1" != "x$as_lineno_2" &&
21702 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21704 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21705 # uniformly replaced by the line number. The first 'sed' inserts a
21706 # line-number line after each line using $LINENO; the second 'sed'
21707 # does the real work. The second script uses 'N' to pair each
21708 # line-number line with the line containing $LINENO, and appends
21709 # trailing '-' during substitution so that $LINENO is not a special
21710 # case at line end.
21711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21712 # scripts with optimization help from Paolo Bonzini. Blame Lee
21713 # E. McMahon (1931-1989) for sed's syntax. :-)
21725 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21728 ' >$as_me.lineno &&
21729 chmod +x "$as_me.lineno" ||
21730 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21731 { (exit 1); exit 1; }; }
21733 # Don't try to exec as it changes $[0], causing all sort of problems
21734 # (the dirname of $[0] is not the place where we might find the
21735 # original and so on. Autoconf is especially sensitive to this).
21736 . "./$as_me.lineno"
21737 # Exit status is that of the last command.
21742 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21748 ECHO_C= ECHO_N= ECHO_T=
21749 case `echo -n x` in
21751 case `echo 'x\c'` in
21752 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21759 if expr a : '\(a\)' >/dev/null 2>&1 &&
21760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21766 rm -f conf$$ conf$$.exe conf$$.file
21767 if test -d conf$$.dir; then
21768 rm -f conf$$.dir/conf$$.file
21774 if ln -s conf$$.file conf$$ 2>/dev/null; then
21776 # ... but there are two gotchas:
21777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21779 # In both cases, we have to default to `cp -p'.
21780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21782 elif ln conf$$.file conf$$ 2>/dev/null; then
21787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21788 rmdir conf$$.dir 2>/dev/null
21790 if mkdir -p . 2>/dev/null; then
21793 test -d ./-p && rmdir ./-p
21797 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21798 # systems may use methods other than mode bits to determine executability.
21799 cat >conf$$.file <<_ASEOF
21803 chmod +x conf$$.file
21804 if test -x conf$$.file >/dev/null 2>&1; then
21805 as_executable_p="test -x"
21811 # Sed expression to map a string onto a valid CPP name.
21812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21814 # Sed expression to map a string onto a valid variable name.
21815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21820 # Save the log message, to keep $[0] and so on meaningful, and to
21821 # report actual input values of CONFIG_FILES etc. instead of their
21822 # values after options handling.
21824 This file was extended by LLVM $as_me 3.2svn, which was
21825 generated by GNU Autoconf 2.60. Invocation command line was
21827 CONFIG_FILES = $CONFIG_FILES
21828 CONFIG_HEADERS = $CONFIG_HEADERS
21829 CONFIG_LINKS = $CONFIG_LINKS
21830 CONFIG_COMMANDS = $CONFIG_COMMANDS
21833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21838 cat >>$CONFIG_STATUS <<_ACEOF
21839 # Files that config.status was made for.
21840 config_files="$ac_config_files"
21841 config_headers="$ac_config_headers"
21842 config_commands="$ac_config_commands"
21846 cat >>$CONFIG_STATUS <<\_ACEOF
21848 \`$as_me' instantiates files from templates according to the
21849 current configuration.
21851 Usage: $0 [OPTIONS] [FILE]...
21853 -h, --help print this help, then exit
21854 -V, --version print version number, then exit
21855 -q, --quiet do not print progress messages
21856 -d, --debug don't remove temporary files
21857 --recheck update $as_me by reconfiguring in the same conditions
21858 --file=FILE[:TEMPLATE]
21859 instantiate the configuration file FILE
21860 --header=FILE[:TEMPLATE]
21861 instantiate the configuration header FILE
21863 Configuration files:
21866 Configuration headers:
21869 Configuration commands:
21872 Report bugs to <bug-autoconf@gnu.org>."
21875 cat >>$CONFIG_STATUS <<_ACEOF
21877 LLVM config.status 3.2svn
21878 configured by $0, generated by GNU Autoconf 2.60,
21879 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21881 Copyright (C) 2006 Free Software Foundation, Inc.
21882 This config.status script is free software; the Free Software Foundation
21883 gives unlimited permission to copy, distribute and modify it."
21890 cat >>$CONFIG_STATUS <<\_ACEOF
21891 # If no file are specified by the user, then we need to provide default
21892 # value. By we need to know if files were specified by the user.
21898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21910 # Handling of the options.
21911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21914 echo "$ac_cs_version"; exit ;;
21915 --debug | --debu | --deb | --de | --d | -d )
21917 --file | --fil | --fi | --f )
21919 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21920 ac_need_defaults=false;;
21921 --header | --heade | --head | --hea )
21923 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21924 ac_need_defaults=false;;
21926 # Conflict between --help and --header
21927 { echo "$as_me: error: ambiguous option: $1
21928 Try \`$0 --help' for more information." >&2
21929 { (exit 1); exit 1; }; };;
21930 --help | --hel | -h )
21931 echo "$ac_cs_usage"; exit ;;
21932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21936 # This is an error.
21937 -*) { echo "$as_me: error: unrecognized option: $1
21938 Try \`$0 --help' for more information." >&2
21939 { (exit 1); exit 1; }; } ;;
21941 *) ac_config_targets="$ac_config_targets $1"
21942 ac_need_defaults=false ;;
21948 ac_configure_extra_args=
21950 if $ac_cs_silent; then
21952 ac_configure_extra_args="$ac_configure_extra_args --silent"
21956 cat >>$CONFIG_STATUS <<_ACEOF
21957 if \$ac_cs_recheck; then
21958 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21959 CONFIG_SHELL=$SHELL
21960 export CONFIG_SHELL
21961 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21965 cat >>$CONFIG_STATUS <<\_ACEOF
21969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21970 ## Running $as_me. ##
21976 cat >>$CONFIG_STATUS <<_ACEOF
21980 llvm_src="${srcdir}"
21984 cat >>$CONFIG_STATUS <<\_ACEOF
21986 # Handling of arguments.
21987 for ac_config_target in $ac_config_targets
21989 case $ac_config_target in
21990 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21991 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21992 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21993 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21994 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21995 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21996 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21997 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21998 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21999 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22000 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22001 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22002 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22003 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22004 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22005 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22006 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22007 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22008 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22009 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22010 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22011 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22012 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22013 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22014 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22015 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22016 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22018 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22019 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22020 { (exit 1); exit 1; }; };;
22025 # If the user did not use the arguments to specify the items to instantiate,
22026 # then the envvar interface is used. Set only those that are not.
22027 # We use the long form for the default assignment because of an extremely
22028 # bizarre bug on SunOS 4.1.3.
22029 if $ac_need_defaults; then
22030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22035 # Have a temporary directory for convenience. Make it in the build tree
22036 # simply because there is no reason against having it here, and in addition,
22037 # creating and moving files from /tmp can sometimes cause problems.
22038 # Hook for its removal unless debugging.
22039 # Note that there is a small window in which the directory will not be cleaned:
22040 # after its creation but before its name has been assigned to `$tmp'.
22044 trap 'exit_status=$?
22045 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22047 trap '{ (exit 1); exit 1; }' 1 2 13 15
22049 # Create a (secure) tmp directory for tmp files.
22052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22053 test -n "$tmp" && test -d "$tmp"
22056 tmp=./conf$$-$RANDOM
22057 (umask 077 && mkdir "$tmp")
22060 echo "$me: cannot create a temporary directory in ." >&2
22061 { (exit 1); exit 1; }
22065 # Set up the sed scripts for CONFIG_FILES section.
22068 # No need to generate the scripts if there are no CONFIG_FILES.
22069 # This happens for instance when ./config.status config.h
22070 if test -n "$CONFIG_FILES"; then
22077 for ac_last_try in false false false false false :; do
22078 cat >conf$$subs.sed <<_ACEOF
22079 SHELL!$SHELL$ac_delim
22080 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22081 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22082 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22083 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22084 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22085 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22086 exec_prefix!$exec_prefix$ac_delim
22087 prefix!$prefix$ac_delim
22088 program_transform_name!$program_transform_name$ac_delim
22089 bindir!$bindir$ac_delim
22090 sbindir!$sbindir$ac_delim
22091 libexecdir!$libexecdir$ac_delim
22092 datarootdir!$datarootdir$ac_delim
22093 datadir!$datadir$ac_delim
22094 sysconfdir!$sysconfdir$ac_delim
22095 sharedstatedir!$sharedstatedir$ac_delim
22096 localstatedir!$localstatedir$ac_delim
22097 includedir!$includedir$ac_delim
22098 oldincludedir!$oldincludedir$ac_delim
22099 docdir!$docdir$ac_delim
22100 infodir!$infodir$ac_delim
22101 htmldir!$htmldir$ac_delim
22102 dvidir!$dvidir$ac_delim
22103 pdfdir!$pdfdir$ac_delim
22104 psdir!$psdir$ac_delim
22105 libdir!$libdir$ac_delim
22106 localedir!$localedir$ac_delim
22107 mandir!$mandir$ac_delim
22108 DEFS!$DEFS$ac_delim
22109 ECHO_C!$ECHO_C$ac_delim
22110 ECHO_N!$ECHO_N$ac_delim
22111 ECHO_T!$ECHO_T$ac_delim
22112 LIBS!$LIBS$ac_delim
22113 build_alias!$build_alias$ac_delim
22114 host_alias!$host_alias$ac_delim
22115 target_alias!$target_alias$ac_delim
22116 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22118 CFLAGS!$CFLAGS$ac_delim
22119 LDFLAGS!$LDFLAGS$ac_delim
22120 CPPFLAGS!$CPPFLAGS$ac_delim
22121 ac_ct_CC!$ac_ct_CC$ac_delim
22122 EXEEXT!$EXEEXT$ac_delim
22123 OBJEXT!$OBJEXT$ac_delim
22125 CXXFLAGS!$CXXFLAGS$ac_delim
22126 ac_ct_CXX!$ac_ct_CXX$ac_delim
22128 subdirs!$subdirs$ac_delim
22129 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22130 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22131 build!$build$ac_delim
22132 build_cpu!$build_cpu$ac_delim
22133 build_vendor!$build_vendor$ac_delim
22134 build_os!$build_os$ac_delim
22135 host!$host$ac_delim
22136 host_cpu!$host_cpu$ac_delim
22137 host_vendor!$host_vendor$ac_delim
22138 host_os!$host_os$ac_delim
22139 target!$target$ac_delim
22140 target_cpu!$target_cpu$ac_delim
22141 target_vendor!$target_vendor$ac_delim
22142 target_os!$target_os$ac_delim
22144 HOST_OS!$HOST_OS$ac_delim
22145 TARGET_OS!$TARGET_OS$ac_delim
22146 LINKALL!$LINKALL$ac_delim
22147 NOLINKALL!$NOLINKALL$ac_delim
22148 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22149 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22150 ARCH!$ARCH$ac_delim
22151 HOST_ARCH!$HOST_ARCH$ac_delim
22152 ENDIAN!$ENDIAN$ac_delim
22153 GREP!$GREP$ac_delim
22154 EGREP!$EGREP$ac_delim
22155 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22156 BUILD_CC!$BUILD_CC$ac_delim
22157 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22158 BUILD_CXX!$BUILD_CXX$ac_delim
22159 CVSBUILD!$CVSBUILD$ac_delim
22160 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22161 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22162 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22163 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22164 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22165 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22166 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22167 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22168 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22169 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22170 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22172 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22173 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22174 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22175 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22180 elif $ac_last_try; then
22181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22182 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22183 { (exit 1); exit 1; }; }
22185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22189 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22190 if test -n "$ac_eof"; then
22191 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22192 ac_eof=`expr $ac_eof + 1`
22195 cat >>$CONFIG_STATUS <<_ACEOF
22196 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22200 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22201 s/^/s,@/; s/!/@,|#_!!_#|/
22204 s/'"$ac_delim"'$/,g/; t
22206 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22207 ' >>$CONFIG_STATUS <conf$$subs.sed
22208 rm -f conf$$subs.sed
22209 cat >>$CONFIG_STATUS <<_ACEOF
22215 for ac_last_try in false false false false false :; do
22216 cat >conf$$subs.sed <<_ACEOF
22217 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22218 ENABLE_PIC!$ENABLE_PIC$ac_delim
22219 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22220 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22221 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22222 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22223 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22224 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22225 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22226 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22227 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22228 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22229 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22230 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22231 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22232 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22234 ifGNUmake!$ifGNUmake$ac_delim
22235 LN_S!$LN_S$ac_delim
22238 DATE!$DATE$ac_delim
22239 FIND!$FIND$ac_delim
22240 MKDIR!$MKDIR$ac_delim
22242 RANLIB!$RANLIB$ac_delim
22247 BINPWD!$BINPWD$ac_delim
22248 GRAPHVIZ!$GRAPHVIZ$ac_delim
22251 NEATO!$NEATO$ac_delim
22252 TWOPI!$TWOPI$ac_delim
22253 CIRCO!$CIRCO$ac_delim
22255 DOTTY!$DOTTY$ac_delim
22256 XDOT_PY!$XDOT_PY$ac_delim
22257 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22258 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22259 INSTALL_DATA!$INSTALL_DATA$ac_delim
22260 BZIP2!$BZIP2$ac_delim
22262 DOXYGEN!$DOXYGEN$ac_delim
22263 GROFF!$GROFF$ac_delim
22264 GZIPBIN!$GZIPBIN$ac_delim
22265 PDFROFF!$PDFROFF$ac_delim
22267 OCAMLC!$OCAMLC$ac_delim
22268 OCAMLOPT!$OCAMLOPT$ac_delim
22269 OCAMLDEP!$OCAMLDEP$ac_delim
22270 OCAMLDOC!$OCAMLDOC$ac_delim
22272 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22273 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22274 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22275 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22276 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22277 LIBADD_DL!$LIBADD_DL$ac_delim
22278 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22279 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22280 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22281 USE_UDIS86!$USE_UDIS86$ac_delim
22282 USE_OPROFILE!$USE_OPROFILE$ac_delim
22283 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22284 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22285 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22286 XML2CONFIG!$XML2CONFIG$ac_delim
22287 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22288 LIBXML2_INC!$LIBXML2_INC$ac_delim
22289 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22290 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22291 MMAP_FILE!$MMAP_FILE$ac_delim
22292 SHLIBEXT!$SHLIBEXT$ac_delim
22293 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22294 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22295 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22296 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22297 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22298 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22299 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22300 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22301 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22302 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22303 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22304 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22305 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22306 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22307 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22308 RPATH!$RPATH$ac_delim
22309 RDYNAMIC!$RDYNAMIC$ac_delim
22310 LIBOBJS!$LIBOBJS$ac_delim
22311 LTLIBOBJS!$LTLIBOBJS$ac_delim
22314 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
22316 elif $ac_last_try; then
22317 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22318 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22319 { (exit 1); exit 1; }; }
22321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22325 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22326 if test -n "$ac_eof"; then
22327 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22328 ac_eof=`expr $ac_eof + 1`
22331 cat >>$CONFIG_STATUS <<_ACEOF
22332 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22336 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22337 s/^/s,@/; s/!/@,|#_!!_#|/
22340 s/'"$ac_delim"'$/,g/; t
22342 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22343 ' >>$CONFIG_STATUS <conf$$subs.sed
22344 rm -f conf$$subs.sed
22345 cat >>$CONFIG_STATUS <<_ACEOF
22352 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22353 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22354 # trailing colons and then remove the whole line if VPATH becomes empty
22355 # (actually we leave an empty line to preserve line numbers).
22356 if test "x$srcdir" = x.; then
22357 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22358 s/:*\$(srcdir):*/:/
22359 s/:*\${srcdir}:*/:/
22361 s/^\([^=]*=[ ]*\):*/\1/
22367 cat >>$CONFIG_STATUS <<\_ACEOF
22368 fi # test -n "$CONFIG_FILES"
22371 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22374 :[FHLC]) ac_mode=$ac_tag; continue;;
22376 case $ac_mode$ac_tag in
22378 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22379 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22380 { (exit 1); exit 1; }; };;
22381 :[FH]-) ac_tag=-:-;;
22382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22399 -) ac_f="$tmp/stdin";;
22400 *) # Look for the file first in the build tree, then in the source tree
22401 # (if the path is not absolute). The absolute path cannot be DOS-style,
22402 # because $ac_f cannot contain `:'.
22406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22408 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22409 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22410 { (exit 1); exit 1; }; };;
22412 ac_file_inputs="$ac_file_inputs $ac_f"
22415 # Let's still pretend it is `configure' which instantiates (i.e., don't
22416 # use $as_me), people would be surprised to read:
22417 # /* config.h. Generated by config.status. */
22418 configure_input="Generated from "`IFS=:
22419 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22420 if test x"$ac_file" != x-; then
22421 configure_input="$ac_file. $configure_input"
22422 { echo "$as_me:$LINENO: creating $ac_file" >&5
22423 echo "$as_me: creating $ac_file" >&6;}
22427 *:-:* | *:-) cat >"$tmp/stdin";;
22432 ac_dir=`$as_dirname -- "$ac_file" ||
22433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22434 X"$ac_file" : 'X\(//\)[^/]' \| \
22435 X"$ac_file" : 'X\(//\)$' \| \
22436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22442 /^X\(\/\/\)[^/].*/{
22457 -*) as_dir=./$as_dir;;
22459 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22463 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22464 *) as_qdir=$as_dir;;
22466 as_dirs="'$as_qdir' $as_dirs"
22467 as_dir=`$as_dirname -- "$as_dir" ||
22468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22469 X"$as_dir" : 'X\(//\)[^/]' \| \
22470 X"$as_dir" : 'X\(//\)$' \| \
22471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22477 /^X\(\/\/\)[^/].*/{
22490 test -d "$as_dir" && break
22492 test -z "$as_dirs" || eval "mkdir $as_dirs"
22493 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22494 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22495 { (exit 1); exit 1; }; }; }
22499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22502 # A ".." for each directory in $ac_dir_suffix.
22503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22504 case $ac_top_builddir_sub in
22505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22509 ac_abs_top_builddir=$ac_pwd
22510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22511 # for backward compatibility:
22512 ac_top_builddir=$ac_top_build_prefix
22515 .) # We are building in place.
22517 ac_top_srcdir=$ac_top_builddir_sub
22518 ac_abs_top_srcdir=$ac_pwd ;;
22519 [\\/]* | ?:[\\/]* ) # Absolute name.
22520 ac_srcdir=$srcdir$ac_dir_suffix;
22521 ac_top_srcdir=$srcdir
22522 ac_abs_top_srcdir=$srcdir ;;
22523 *) # Relative name.
22524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22525 ac_top_srcdir=$ac_top_build_prefix$srcdir
22526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22543 cat >>$CONFIG_STATUS <<\_ACEOF
22544 # If the template does not know about datarootdir, expand it.
22545 # FIXME: This hack should be removed a few years after 2.60.
22546 ac_datarootdir_hack=; ac_datarootdir_seen=
22548 case `sed -n '/datarootdir/ {
22557 ' $ac_file_inputs` in
22558 *datarootdir*) ac_datarootdir_seen=yes;;
22559 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22560 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22561 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22563 cat >>$CONFIG_STATUS <<_ACEOF
22564 ac_datarootdir_hack='
22565 s&@datadir@&$datadir&g
22566 s&@docdir@&$docdir&g
22567 s&@infodir@&$infodir&g
22568 s&@localedir@&$localedir&g
22569 s&@mandir@&$mandir&g
22570 s&\\\${datarootdir}&$datarootdir&g' ;;
22574 # Neutralize VPATH when `$srcdir' = `.'.
22575 # Shell code in configure.ac might set extrasub.
22576 # FIXME: do we really want to maintain this feature?
22577 cat >>$CONFIG_STATUS <<_ACEOF
22581 cat >>$CONFIG_STATUS <<\_ACEOF
22583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22584 s&@configure_input@&$configure_input&;t t
22585 s&@top_builddir@&$ac_top_builddir_sub&;t t
22586 s&@srcdir@&$ac_srcdir&;t t
22587 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22588 s&@top_srcdir@&$ac_top_srcdir&;t t
22589 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22590 s&@builddir@&$ac_builddir&;t t
22591 s&@abs_builddir@&$ac_abs_builddir&;t t
22592 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22593 s&@INSTALL@&$ac_INSTALL&;t t
22594 $ac_datarootdir_hack
22595 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22597 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22598 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22600 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22601 which seems to be undefined. Please make sure it is defined." >&5
22602 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22603 which seems to be undefined. Please make sure it is defined." >&2;}
22607 -) cat "$tmp/out"; rm -f "$tmp/out";;
22608 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22617 # Transform confdefs.h into a sed script `conftest.defines', that
22618 # substitutes the proper values into config.h.in to produce config.h.
22619 rm -f conftest.defines conftest.tail
22620 # First, append a space to every undef/define line, to ease matching.
22621 echo 's/$/ /' >conftest.defines
22622 # Then, protect against being on the right side of a sed subst, or in
22623 # an unquoted here document, in config.status. If some macros were
22624 # called several times there might be several #defines for the same
22625 # symbol, which is useless. But do not sort them, since the last
22626 # AC_DEFINE must be honored.
22627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22628 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22629 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22630 # PARAMS is the parameter list in the macro definition--in most cases, it's
22631 # just an empty string.
22632 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22633 ac_dB='\\)[ (].*,\\1define\\2'
22641 s/^[ ]*#[ ]*define[ ][ ]*//
22646 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22647 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22648 ' >>conftest.defines
22650 # Remove the space that was appended to ease matching.
22651 # Then replace #undef with comments. This is necessary, for
22652 # example, in the case of _POSIX_SOURCE, which is predefined and required
22653 # on some systems where configure will not decide to define it.
22654 # (The regexp can be short, since the line contains either #define or #undef.)
22656 s,^[ #]*u.*,/* & */,' >>conftest.defines
22658 # Break up conftest.defines:
22659 ac_max_sed_lines=50
22661 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22662 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22663 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22665 ac_in='$ac_file_inputs'
22666 ac_out='"$tmp/out1"'
22667 ac_nxt='"$tmp/out2"'
22671 # Write a here document:
22672 cat >>$CONFIG_STATUS <<_ACEOF
22673 # First, check the format of the line:
22674 cat >"\$tmp/defines.sed" <<\\CEOF
22675 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22676 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22680 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22682 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22683 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22684 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22685 grep . conftest.tail >/dev/null || break
22686 rm -f conftest.defines
22687 mv conftest.tail conftest.defines
22689 rm -f conftest.defines conftest.tail
22691 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22692 cat >>$CONFIG_STATUS <<\_ACEOF
22693 if test x"$ac_file" != x-; then
22694 echo "/* $configure_input */" >"$tmp/config.h"
22695 cat "$ac_result" >>"$tmp/config.h"
22696 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22697 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22698 echo "$as_me: $ac_file is unchanged" >&6;}
22701 mv "$tmp/config.h" $ac_file
22704 echo "/* $configure_input */"
22710 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22711 echo "$as_me: executing $ac_file commands" >&6;}
22716 case $ac_file$ac_mode in
22717 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22718 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22719 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22720 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22721 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22723 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22724 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22725 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22727 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22729 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22731 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22732 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22733 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22735 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22737 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22739 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22741 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22748 { (exit 0); exit 0; }
22750 chmod +x $CONFIG_STATUS
22751 ac_clean_files=$ac_clean_files_save
22754 # configure is writing to config.log, and then calls config.status.
22755 # config.status does its own redirection, appending to config.log.
22756 # Unfortunately, on DOS this fails, as config.log is still kept open
22757 # by configure, so config.status won't be able to write to it; its
22758 # output is simply discarded. So we exec the FD to /dev/null,
22759 # effectively closing config.log, so it can be properly (re)opened and
22760 # appended to by config.status. When coming back to configure, we
22761 # need to make the FD available again.
22762 if test "$no_create" != yes; then
22764 ac_config_status_args=
22765 test "$silent" = yes &&
22766 ac_config_status_args="$ac_config_status_args --quiet"
22768 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22770 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22771 # would make configure fail if this is the last instruction.
22772 $ac_cs_success || { (exit 1); exit 1; }
22776 # CONFIG_SUBDIRS section.
22778 if test "$no_recursion" != yes; then
22780 # Remove --cache-file and --srcdir arguments so they do not pile up.
22781 ac_sub_configure_args=
22783 eval "set x $ac_configure_args"
22787 if test -n "$ac_prev"; then
22792 -cache-file | --cache-file | --cache-fil | --cache-fi \
22793 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22794 ac_prev=cache_file ;;
22795 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22796 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22799 --config-cache | -C)
22801 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22803 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22805 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22807 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22811 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22813 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22817 # Always prepend --prefix to ensure using the same prefix
22818 # in subdir configurations.
22819 ac_arg="--prefix=$prefix"
22821 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22823 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22826 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22828 # Do not complain, so a configure script can configure whichever
22829 # parts of a large source tree are present.
22830 test -d "$srcdir/$ac_dir" || continue
22832 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22833 echo "$as_me:$LINENO: $ac_msg" >&5
22837 -*) as_dir=./$as_dir;;
22839 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22843 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22844 *) as_qdir=$as_dir;;
22846 as_dirs="'$as_qdir' $as_dirs"
22847 as_dir=`$as_dirname -- "$as_dir" ||
22848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22849 X"$as_dir" : 'X\(//\)[^/]' \| \
22850 X"$as_dir" : 'X\(//\)$' \| \
22851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22857 /^X\(\/\/\)[^/].*/{
22870 test -d "$as_dir" && break
22872 test -z "$as_dirs" || eval "mkdir $as_dirs"
22873 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22874 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22875 { (exit 1); exit 1; }; }; }
22879 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22882 # A ".." for each directory in $ac_dir_suffix.
22883 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22884 case $ac_top_builddir_sub in
22885 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22886 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22889 ac_abs_top_builddir=$ac_pwd
22890 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22891 # for backward compatibility:
22892 ac_top_builddir=$ac_top_build_prefix
22895 .) # We are building in place.
22897 ac_top_srcdir=$ac_top_builddir_sub
22898 ac_abs_top_srcdir=$ac_pwd ;;
22899 [\\/]* | ?:[\\/]* ) # Absolute name.
22900 ac_srcdir=$srcdir$ac_dir_suffix;
22901 ac_top_srcdir=$srcdir
22902 ac_abs_top_srcdir=$srcdir ;;
22903 *) # Relative name.
22904 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22905 ac_top_srcdir=$ac_top_build_prefix$srcdir
22906 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22908 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22913 # Check for guested configure; otherwise get Cygnus style configure.
22914 if test -f "$ac_srcdir/configure.gnu"; then
22915 ac_sub_configure=$ac_srcdir/configure.gnu
22916 elif test -f "$ac_srcdir/configure"; then
22917 ac_sub_configure=$ac_srcdir/configure
22918 elif test -f "$ac_srcdir/configure.in"; then
22919 # This should be Cygnus configure.
22920 ac_sub_configure=$ac_aux_dir/configure
22922 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22927 # The recursion is here.
22928 if test -n "$ac_sub_configure"; then
22929 # Make the cache file name correct relative to the subdirectory.
22930 case $cache_file in
22931 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22932 *) # Relative name.
22933 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22936 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22937 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22938 # The eval makes quoting arguments work.
22939 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22940 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22941 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22942 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22943 { (exit 1); exit 1; }; }