2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
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-2014 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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/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
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
693 ENABLE_EXPENSIVE_CHECKS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
798 ENABLE_VISIBILITY_INLINES_HIDDEN
805 ac_precious_vars='build_alias
817 ac_subdirs_all='projects/test-suite
820 projects/llvm-poolalloc
825 # Initialize some variables set by options.
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
837 program_transform_name=s,x,x,
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930 { (exit 1); exit 1; }; }
931 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932 eval enable_$ac_feature=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 -enable-* | --enable-*)
945 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949 { (exit 1); exit 1; }; }
950 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951 eval enable_$ac_feature=\$ac_optarg ;;
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
966 -help | --help | --hel | --he | -h)
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 htmldir=$ac_optarg ;;
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
996 -libdir | --libdir | --libdi | --libd)
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1087 -psdir | --psdir | --psdi | --psd | --ps)
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 sbindir=$ac_optarg ;;
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 sharedstatedir=$ac_optarg ;;
1113 -site | --site | --sit)
1115 -site=* | --site=* | --sit=*)
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1142 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package| sed 's/-/_/g'`
1148 eval with_$ac_package=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package | sed 's/-/_/g'`
1157 eval with_$ac_package=no ;;
1160 # Obsolete; use --with-x.
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179 { (exit 1); exit 1; }; }
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187 { (exit 1); exit 1; }; }
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 { echo "$as_me: error: missing argument to $ac_option" >&2
1205 { (exit 1); exit 1; }; }
1208 # Be sure to have absolute directory names.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1214 eval ac_val=\$$ac_var
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220 { (exit 1); exit 1; }; }
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 { echo "$as_me: error: Working directory cannot be determined" >&2
1251 { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 { echo "$as_me: error: pwd does not report name of working directory" >&2
1254 { (exit 1); exit 1; }; }
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$0" : 'X\(//\)[^/]' \| \
1264 X"$0" : 'X\(//\)$' \| \
1265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1289 ac_srcdir_defaulted=no
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294 { (exit 1); exit 1; }; }
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299 { (exit 1); exit 1; }; }
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-polly Use polly if available (default is YES)
1399 --enable-libcpp Use libc++ if available (default is NO)
1400 --enable-compiler-version-checks
1401 Check the version of the host compiler (default is
1403 --enable-cxx11 Use c++11 if available (default is NO)
1404 --enable-split-dwarf Use split-dwarf if available (default is NO)
1405 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1406 --enable-clang-static-analyzer
1407 Enable building of clang Static Analyzer (default is
1409 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1410 --enable-optimized Compile with optimizations enabled (default is NO)
1411 --enable-profiling Compile with profiling enabled (default is NO)
1412 --enable-assertions Compile with assertion checks enabled (default is
1414 --enable-werror Compile with -Werror enabled (default is NO)
1415 --enable-expensive-checks
1416 Compile with expensive debug checks enabled (default
1418 --enable-debug-runtime Build runtime libs with debug symbols (default is
1420 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1421 optimization is on and YES if it's off)
1422 --enable-keep-symbols Do not strip installed executables)
1423 --enable-jit Enable Just In Time Compiling (default is YES)
1424 --enable-docs Build documents (default is YES)
1425 --enable-doxygen Build doxygen documentation (default is NO)
1426 --enable-threads Use threads if available (default is YES)
1427 --enable-pthreads Use pthreads if available (default is YES)
1428 --enable-zlib Use zlib for compression/decompression if available
1430 --enable-pic Build LLVM with Position Independent Code (default
1432 --enable-shared Build a shared library and link tools against it
1434 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1435 Win32 DLL (default is NO)
1436 --enable-timestamps Enable embedding timestamp information in build
1438 --enable-backtraces Enable embedding backtraces on crash (default is
1440 --enable-crash-overrides
1441 Enable crash handling overrides (default is YES)
1442 --enable-targets Build specific host targets: all or
1443 target1,target2,... Valid targets are: host, x86,
1444 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1445 xcore, msp430, nvptx, systemz, r600, and cpp
1447 --enable-experimental-targets
1448 Build experimental host targets: disable or
1449 target1,target2,... (default=disable)
1450 --enable-bindings Build specific language bindings:
1451 all,auto,none,{binding-name} (default=auto)
1452 --enable-terminfo Query the terminfo database if available (default is
1454 --enable-libffi Check for the presence of libffi (default is NO)
1455 --enable-ltdl-install install libltdl
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-optimize-option Select the compiler options to use for optimized
1462 --with-extra-options Specify additional options to compile LLVM with
1463 --with-extra-ld-options Specify additional options to link LLVM with
1464 --with-ocaml-libdir Specify install location for ocaml bindings (default
1466 --with-clang-srcdir Directory to the out-of-tree Clang source
1467 --with-clang-resource-dir
1468 Relative directory from the Clang binary for
1470 --with-c-include-dirs Colon separated list of directories clang will
1472 --with-gcc-toolchain Directory where gcc is installed.
1473 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1474 --with-binutils-include Specify path to binutils/include/ containing
1475 plugin-api.h file for gold plugin.
1476 --with-bug-report-url Specify the URL where bug reports should be
1477 submitted (default=http://llvm.org/bugs/)
1478 --with-internal-prefix Installation directory for internal files
1479 --with-python path to python
1480 --with-udis86=<path> Use udis86 external x86 disassembler library
1481 --with-oprofile=<prefix>
1482 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1496 CXXCPP C++ preprocessor
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to <http://llvm.org/bugs/>.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" || continue
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1529 .) # We are building in place.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1562 LLVM configure 3.5svn
1563 generated by GNU Autoconf 2.60
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1570 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1578 It was created by LLVM $as_me 3.5svn, which was
1579 generated by GNU Autoconf 2.60. Invocation command line was
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1600 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1601 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1604 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1605 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1606 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 test -z "$as_dir" && as_dir=.
1615 echo "PATH: $as_dir"
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_must_keep_next=false
1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647 | -silent | --silent | --silen | --sile | --sil)
1650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656 if test $ac_must_keep_next = true; then
1657 ac_must_keep_next=false # Got value, back to normal.
1660 *=* | --config-cache | -C | -disable-* | --disable-* \
1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663 | -with-* | --with-* | -without-* | --without-* | --x)
1664 case "$ac_configure_args0 " in
1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 -* ) ac_must_keep_next=true ;;
1671 ac_configure_args="$ac_configure_args '$ac_arg'"
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log. We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685 # Save into config.log some information that might help in debugging.
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1695 # The following way of writing the cache mishandles newlines in values,
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 _ | IFS | as_nl) ;; #(
1707 *) $as_unset $ac_var ;;
1712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
1715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1732 for ac_var in $ac_subst_vars
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 echo "$ac_var='\''$ac_val'\''"
1742 if test -n "$ac_subst_files"; then
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1749 for ac_var in $ac_subst_files
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1760 if test -s confdefs.h; then
1770 test "$ac_signal" != 0 &&
1771 echo "$as_me: caught signal $ac_signal"
1772 echo "$as_me: exit $exit_status"
1774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 for ac_signal in 1 2 13 15; do
1779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1786 # Predefined preprocessor variables.
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816 set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 set x "$ac_default_prefix/share/config.site" \
1821 "$ac_default_prefix/etc/config.site"
1826 if test -r "$ac_site_file"; then
1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829 sed 's/^/| /' "$ac_site_file" >&5
1834 if test -r "$cache_file"; then
1835 # Some versions of bash will fail to source /dev/null (special
1836 # files actually), so we avoid doing that.
1837 if test -f "$cache_file"; then
1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
1846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1851 # Check that the precious variables saved in the cache have kept the same
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
1859 case $ac_old_set,$ac_new_set in
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
1871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1874 echo "$as_me: former value: $ac_old_val" >&2;}
1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1876 echo "$as_me: current value: $ac_new_val" >&2;}
1877 ac_cache_corrupted=:
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892 if $ac_cache_corrupted; then
1893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 5
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952 if test -f "$ac_dir/install-sh"; then
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1956 elif test -f "$ac_dir/install.sh"; then
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1960 elif test -f "$ac_dir/shtool"; then
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1966 if test -z "$ac_aux_dir"; then
1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969 { (exit 1); exit 1; }; }
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1982 if test ${srcdir} != "." ; then
1983 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986 { (exit 1); exit 1; }; }
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999 for ac_prog in clang gcc
2001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$CC"; then
2009 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 if test -n "$CC"; then
2030 { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2033 { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2038 test -n "$CC" && break
2041 if test -z "$CC"; then
2043 for ac_prog in clang gcc
2045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$ac_ct_CC"; then
2053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062 ac_cv_prog_ac_ct_CC="$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2077 { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2082 test -n "$ac_ct_CC" && break
2085 if test "x$ac_ct_CC" = x; then
2088 case $cross_compiling:$ac_tool_warned in
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet. If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet. If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler --version >&5") 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler -v >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -V >&5") 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort. b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions. Remove them first so a
2174 # subsequent execution test works.
2176 for ac_file in $ac_files
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2185 if { (ac_try="$ac_link_default"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191 (eval "$ac_link_default") 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; then
2195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2200 for ac_file in $ac_files
2202 test -f "$ac_file" || continue
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2207 # We found the default executable, but exeext='' is most
2211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215 # We set ac_cv_exeext here because the later test for it is not
2216 # safe: cross compilers may not add the suffix if given an `-o'
2217 # argument, so we may need to know it at that point already.
2218 # Even if this section looks crufty: it has the advantage of
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235 { (exit 77); exit 77; }; }
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2242 # Check that the compiler produces executables we can run. If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249 if { ac_try='./$ac_file'
2250 { (case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_try") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 if test "$cross_compiling" = maybe; then
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294 (eval "$ac_link") 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 for ac_file in conftest.exe conftest conftest.*; do
2303 test -f "$ac_file" || continue
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353 (eval "$ac_compile") 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 for ac_file in conftest.o conftest.obj conftest.*; do
2358 test -f "$ac_file" || continue;
2360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373 { (exit 1); exit 1; }; }
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_compile") 2>conftest.er1
2414 grep -v '^ *+' conftest.er1 >conftest.err
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420 { (case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_try") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 ac_save_c_werror_flag=$ac_c_werror_flag
2462 ac_c_werror_flag=yes
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_compile") 2>conftest.er1
2489 grep -v '^ *+' conftest.er1 >conftest.err
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550 { (case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_try") 2>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 ac_c_werror_flag=$ac_save_c_werror_flag
2576 cat >conftest.$ac_ext <<_ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606 { (case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_try") 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645 CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647 if test "$GCC" = yes; then
2653 if test "$GCC" = yes; then
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 ac_cv_prog_cc_c89=no
2666 cat >conftest.$ac_ext <<_ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2690 s = g (p, va_arg (v,int));
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2696 function prototypes and stuff, but not '\xHH' hex character constants.
2697 These don't provoke an error unfortunately, instead are silently treated
2698 as 'x'. The following induces an error, until -std is added to get
2699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2700 array size at least. It's necessary to write '\x00'==0 to get something
2701 that's true only with -std. */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705 inside strings and character constants. */
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compile") 2>conftest.er1
2736 grep -v '^ *+' conftest.er1 >conftest.err
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742 { (case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_try") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_prog_cc_c89=$ac_arg
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2769 rm -f core conftest.err conftest.$ac_objext
2770 test "x$ac_cv_prog_cc_c89" != "xno" && break
2772 rm -f conftest.$ac_ext
2777 case "x$ac_cv_prog_cc_c89" in
2779 { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2782 { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2785 CC="$CC $ac_cv_prog_cc_c89"
2786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803 if test -n "$CCC"; then
2806 if test -n "$ac_tool_prefix"; then
2807 for ac_prog in clang++ g++
2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CXX"; then
2817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CXX"; then
2838 { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2846 test -n "$CXX" && break
2849 if test -z "$CXX"; then
2851 for ac_prog in clang++ g++
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CXX"; then
2861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_CXX="$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2890 test -n "$ac_ct_CXX" && break
2893 if test "x$ac_ct_CXX" = x; then
2896 case $cross_compiling:$ac_tool_warned in
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet. If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet. If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler --version >&5") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler -v >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -V >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026 ac_cxx_werror_flag=yes
3029 cat >conftest.$ac_ext <<_ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_cv_prog_cxx_g=yes
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_prog_cxx_g=yes
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209 CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211 if test "$GXX" = yes; then
3217 if test "$GXX" = yes; then
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3240 if test -z "$CPP"; then
3241 if test "${ac_cv_prog_CPP+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 # Double quotes because CPP needs to be expanded
3245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 for ac_c_preproc_warn_flag in '' yes
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3263 # include <limits.h>
3265 # include <assert.h>
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291 if test -z "$ac_cpp_err"; then
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 # Broken: fails on valid input.
3301 rm -f conftest.err conftest.$ac_ext
3303 # OK, works on sane cases. Now check whether nonexistent headers
3304 # can be detected and how.
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <ac_nonexistent.h>
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3335 if test -z "$ac_cpp_err"; then
3336 # Broken: success on invalid input.
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 # Passes both tests.
3347 rm -f conftest.err conftest.$ac_ext
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3367 for ac_c_preproc_warn_flag in '' yes
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3382 # include <limits.h>
3384 # include <assert.h>
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410 if test -z "$ac_cpp_err"; then
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Broken: fails on valid input.
3420 rm -f conftest.err conftest.$ac_ext
3422 # OK, works on sane cases. Now check whether nonexistent headers
3423 # can be detected and how.
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <ac_nonexistent.h>
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 if test -z "$ac_cpp_err"; then
3455 # Broken: success on invalid input.
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Passes both tests.
3466 rm -f conftest.err conftest.$ac_ext
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478 { (exit 1); exit 1; }; }
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 if test "$CXX" = "clang++" ; then
3489 { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3505 #if __has_include (<cxxabi.h>)
3508 #if __has_include (<unwind.h>)
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_try") 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest.$ac_objext'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3555 { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3566 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3567 { (exit 1); exit 1; }; }
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3581 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3583 ac_cpp='$CXXCPP $CPPFLAGS'
3584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3588 llvm_cv_cxx_compiler=unknown
3589 cat >conftest.$ac_ext <<_ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_compile") 2>conftest.er1
3609 grep -v '^ *+' conftest.er1 >conftest.err
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3615 { (case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_try") 2>&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_try") 2>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 llvm_cv_cxx_compiler=clang
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 cat >conftest.$ac_ext <<_ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3665 { (case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_try") 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest.$ac_objext'
3675 { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 llvm_cv_cxx_compiler=gcc
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3703 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3707 if test -d ${srcdir}/projects/test-suite ; then
3708 subdirs="$subdirs projects/test-suite"
3712 if test -d ${srcdir}/projects/llvm-test ; then
3713 subdirs="$subdirs projects/llvm-test"
3717 if test -d ${srcdir}/projects/poolalloc ; then
3718 subdirs="$subdirs projects/poolalloc"
3722 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3723 subdirs="$subdirs projects/llvm-poolalloc"
3727 for i in `ls ${srcdir}/projects`
3729 if test -d ${srcdir}/projects/${i} ; then
3731 sample) subdirs="$subdirs projects/sample"
3733 safecode) subdirs="$subdirs projects/safecode"
3741 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3742 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3748 # Check whether --enable-polly was given.
3749 if test "${enable_polly+set}" = set; then
3750 enableval=$enable_polly;
3755 case "$enableval" in
3760 default) ENABLE_POLLY=1
3762 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3763 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3764 { (exit 1); exit 1; }; } ;;
3768 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3771 subdirs="$subdirs tools/polly"
3776 # Make sure we can run config.sub.
3777 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3778 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3779 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3780 { (exit 1); exit 1; }; }
3782 { echo "$as_me:$LINENO: checking build system type" >&5
3783 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3784 if test "${ac_cv_build+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_build_alias=$build_alias
3788 test "x$ac_build_alias" = x &&
3789 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3790 test "x$ac_build_alias" = x &&
3791 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3792 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3793 { (exit 1); exit 1; }; }
3794 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3795 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3796 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3797 { (exit 1); exit 1; }; }
3800 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3801 echo "${ECHO_T}$ac_cv_build" >&6; }
3802 case $ac_cv_build in
3804 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3805 echo "$as_me: error: invalid value of canonical build" >&2;}
3806 { (exit 1); exit 1; }; };;
3809 ac_save_IFS=$IFS; IFS='-'
3815 # Remember, the first character of IFS is used to create $*,
3816 # except with old shells:
3819 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3822 { echo "$as_me:$LINENO: checking host system type" >&5
3823 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3824 if test "${ac_cv_host+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 if test "x$host_alias" = x; then
3828 ac_cv_host=$ac_cv_build
3830 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3831 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3832 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3833 { (exit 1); exit 1; }; }
3837 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3838 echo "${ECHO_T}$ac_cv_host" >&6; }
3841 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3842 echo "$as_me: error: invalid value of canonical host" >&2;}
3843 { (exit 1); exit 1; }; };;
3846 ac_save_IFS=$IFS; IFS='-'
3852 # Remember, the first character of IFS is used to create $*,
3853 # except with old shells:
3856 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3859 { echo "$as_me:$LINENO: checking target system type" >&5
3860 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3861 if test "${ac_cv_target+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 if test "x$target_alias" = x; then
3865 ac_cv_target=$ac_cv_host
3867 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3868 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3869 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3870 { (exit 1); exit 1; }; }
3874 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3875 echo "${ECHO_T}$ac_cv_target" >&6; }
3876 case $ac_cv_target in
3878 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3879 echo "$as_me: error: invalid value of canonical target" >&2;}
3880 { (exit 1); exit 1; }; };;
3882 target=$ac_cv_target
3883 ac_save_IFS=$IFS; IFS='-'
3889 # Remember, the first character of IFS is used to create $*,
3890 # except with old shells:
3893 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3896 # The aliases save the names the user supplied, while $host etc.
3897 # will get canonicalized.
3898 test -n "$target_alias" &&
3899 test "$program_prefix$program_suffix$program_transform_name" = \
3901 program_prefix=${target_alias}-
3903 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3904 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3905 if test "${llvm_cv_os_type+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 llvm_cv_link_all_option="-Wl,--whole-archive"
3911 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3912 llvm_cv_os_type="AIX"
3913 llvm_cv_platform_type="Unix" ;;
3915 llvm_cv_link_all_option="-Wl,--whole-archive"
3916 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3917 llvm_cv_os_type="IRIX"
3918 llvm_cv_platform_type="Unix" ;;
3920 llvm_cv_link_all_option="-Wl,--whole-archive"
3921 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922 llvm_cv_os_type="Cygwin"
3923 llvm_cv_platform_type="Unix" ;;
3925 llvm_cv_link_all_option="-Wl,-all_load"
3926 llvm_cv_no_link_all_option="-Wl,-noall_load"
3927 llvm_cv_os_type="Darwin"
3928 llvm_cv_platform_type="Unix" ;;
3930 llvm_cv_link_all_option="-Wl,-all_load"
3931 llvm_cv_no_link_all_option="-Wl,-noall_load"
3932 llvm_cv_os_type="Minix"
3933 llvm_cv_platform_type="Unix" ;;
3935 llvm_cv_link_all_option="-Wl,--whole-archive"
3936 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3937 llvm_cv_os_type="FreeBSD"
3938 llvm_cv_platform_type="Unix" ;;
3940 llvm_cv_link_all_option="-Wl,--whole-archive"
3941 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942 llvm_cv_os_type="GNU/kFreeBSD"
3943 llvm_cv_platform_type="Unix" ;;
3945 llvm_cv_link_all_option="-Wl,--whole-archive"
3946 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947 llvm_cv_os_type="OpenBSD"
3948 llvm_cv_platform_type="Unix" ;;
3950 llvm_cv_link_all_option="-Wl,--whole-archive"
3951 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952 llvm_cv_os_type="NetBSD"
3953 llvm_cv_platform_type="Unix" ;;
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="DragonFly"
3958 llvm_cv_platform_type="Unix" ;;
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="HP-UX"
3963 llvm_cv_platform_type="Unix" ;;
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="Interix"
3968 llvm_cv_platform_type="Unix" ;;
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="Linux"
3973 llvm_cv_platform_type="Unix" ;;
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="GNU"
3978 llvm_cv_platform_type="Unix" ;;
3980 llvm_cv_link_all_option="-Wl,-z,allextract"
3981 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3982 llvm_cv_os_type="SunOS"
3983 llvm_cv_platform_type="Unix" ;;
3985 llvm_cv_link_all_option="-Wl,-z,allextract"
3986 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3987 llvm_cv_os_type="AuroraUX"
3988 llvm_cv_platform_type="Unix" ;;
3990 llvm_cv_link_all_option="-Wl,--whole-archive"
3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992 llvm_cv_os_type="Win32"
3993 llvm_cv_platform_type="Win32" ;;
3995 llvm_cv_link_all_option="-Wl,--whole-archive"
3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997 llvm_cv_os_type="MingW"
3998 llvm_cv_platform_type="Win32" ;;
4000 llvm_cv_link_all_option="-Wl,--whole-archive"
4001 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002 llvm_cv_os_type="Haiku"
4003 llvm_cv_platform_type="Unix" ;;
4005 llvm_cv_link_all_option="-Wl,--whole-archive"
4006 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007 llvm_cv_os_type="Freestanding"
4008 llvm_cv_platform_type="Unix" ;;
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Freestanding"
4013 llvm_cv_platform_type="Unix" ;;
4015 llvm_cv_link_all_option=""
4016 llvm_cv_no_link_all_option=""
4017 llvm_cv_os_type="Unknown"
4018 llvm_cv_platform_type="Unknown" ;;
4021 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4022 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4024 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4025 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4026 if test "${llvm_cv_target_os_type+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 llvm_cv_target_os_type="AIX" ;;
4033 llvm_cv_target_os_type="IRIX" ;;
4035 llvm_cv_target_os_type="Cygwin" ;;
4037 llvm_cv_target_os_type="Darwin" ;;
4039 llvm_cv_target_os_type="Minix" ;;
4041 llvm_cv_target_os_type="FreeBSD" ;;
4043 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4045 llvm_cv_target_os_type="OpenBSD" ;;
4047 llvm_cv_target_os_type="NetBSD" ;;
4049 llvm_cv_target_os_type="DragonFly" ;;
4051 llvm_cv_target_os_type="HP-UX" ;;
4053 llvm_cv_target_os_type="Interix" ;;
4055 llvm_cv_target_os_type="Linux" ;;
4057 llvm_cv_target_os_type="GNU" ;;
4059 llvm_cv_target_os_type="SunOS" ;;
4061 llvm_cv_target_os_type="AuroraUX" ;;
4063 llvm_cv_target_os_type="Win32" ;;
4065 llvm_cv_target_os_type="MingW" ;;
4067 llvm_cv_target_os_type="Haiku" ;;
4069 llvm_cv_target_os_type="RTEMS" ;;
4071 llvm_cv_target_os_type="NativeClient" ;;
4073 llvm_cv_target_os_type="Freestanding" ;;
4075 llvm_cv_target_os_type="Unknown" ;;
4078 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4079 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4081 if test "$llvm_cv_os_type" = "Unknown" ; then
4082 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4083 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4084 { (exit 1); exit 1; }; }
4089 HOST_OS=$llvm_cv_os_type
4091 TARGET_OS=$llvm_cv_target_os_type
4094 LINKALL=$llvm_cv_link_all_option
4096 NOLINKALL=$llvm_cv_no_link_all_option
4099 case $llvm_cv_platform_type in
4102 cat >>confdefs.h <<\_ACEOF
4103 #define LLVM_ON_UNIX 1
4113 cat >>confdefs.h <<\_ACEOF
4114 #define LLVM_ON_WIN32 1
4124 { echo "$as_me:$LINENO: checking target architecture" >&5
4125 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4126 if test "${llvm_cv_target_arch+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 i?86-*) llvm_cv_target_arch="x86" ;;
4131 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4132 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4133 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4134 arm*-*) llvm_cv_target_arch="ARM" ;;
4135 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4136 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4137 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4138 xcore-*) llvm_cv_target_arch="XCore" ;;
4139 msp430-*) llvm_cv_target_arch="MSP430" ;;
4140 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4141 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4142 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4143 *) llvm_cv_target_arch="Unknown" ;;
4146 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4147 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4149 if test "$llvm_cv_target_arch" = "Unknown" ; then
4150 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4151 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4154 case "$llvm_cv_target_arch" in
4155 x86) LLVM_NATIVE_ARCH="X86" ;;
4156 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4157 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4160 ARCH=$llvm_cv_target_arch
4164 i?86-*) host_arch="x86" ;;
4165 amd64-* | x86_64-*) host_arch="x86_64" ;;
4166 sparc*-*) host_arch="Sparc" ;;
4167 powerpc*-*) host_arch="PowerPC" ;;
4168 arm*-*) host_arch="ARM" ;;
4169 aarch64*-*) host_arch="AArch64" ;;
4170 mips-* | mips64-*) host_arch="Mips" ;;
4171 mipsel-* | mips64el-*) host_arch="Mips" ;;
4172 xcore-*) host_arch="XCore" ;;
4173 msp430-*) host_arch="MSP430" ;;
4174 hexagon-*) host_arch="Hexagon" ;;
4175 s390x-*) host_arch="SystemZ" ;;
4176 *) host_arch="Unknown" ;;
4179 if test "$host_arch" = "Unknown" ; then
4180 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4181 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4184 HOST_ARCH=$host_arch
4187 if test "$cross_compiling" = yes; then
4188 LLVM_CROSS_COMPILING=1
4191 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4192 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4193 if test "${ac_cv_build_exeext+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4197 ac_cv_build_exeext=.exe
4199 ac_build_prefix=${build_alias}-
4201 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4202 set dummy ${ac_build_prefix}gcc; ac_word=$2
4203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4205 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 if test -n "$BUILD_CC"; then
4209 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 BUILD_CC=$ac_cv_prog_BUILD_CC
4229 if test -n "$BUILD_CC"; then
4230 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4231 echo "${ECHO_T}$BUILD_CC" >&6; }
4233 { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4238 if test -z "$BUILD_CC"; then
4239 # Extract the first word of "gcc", so it can be a program name with args.
4240 set dummy gcc; ac_word=$2
4241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4243 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 if test -n "$BUILD_CC"; then
4247 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_BUILD_CC="gcc"
4257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 BUILD_CC=$ac_cv_prog_BUILD_CC
4267 if test -n "$BUILD_CC"; then
4268 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4269 echo "${ECHO_T}$BUILD_CC" >&6; }
4271 { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4276 if test -z "$BUILD_CC"; then
4277 # Extract the first word of "cc", so it can be a program name with args.
4278 set dummy cc; ac_word=$2
4279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4281 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 if test -n "$BUILD_CC"; then
4285 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4296 ac_prog_rejected=yes
4299 ac_cv_prog_BUILD_CC="cc"
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 if test $ac_prog_rejected = yes; then
4308 # We found a bogon in the path, so make sure we never use it.
4309 set dummy $ac_cv_prog_BUILD_CC
4311 if test $# != 0; then
4312 # We chose a different compiler from the bogus one.
4313 # However, it has the same basename, so the bogon will be chosen
4314 # first if we set BUILD_CC to just the basename; use the full file name.
4316 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4321 BUILD_CC=$ac_cv_prog_BUILD_CC
4322 if test -n "$BUILD_CC"; then
4323 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4324 echo "${ECHO_T}$BUILD_CC" >&6; }
4326 { echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6; }
4333 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4334 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4335 { (exit 1); exit 1; }; }
4336 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4338 echo 'int main () { return 0; }' > conftest.$ac_ext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4341 (eval $ac_build_link) 2>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; then
4345 for file in conftest.*; do
4347 *.c | *.o | *.obj | *.dSYM) ;;
4348 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4352 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4353 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4354 { (exit 1); exit 1; }; }
4357 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4362 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4363 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4364 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4365 ac_build_exeext=$BUILD_EXEEXT
4367 ac_build_prefix=${build_alias}-
4368 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4369 set dummy ${ac_build_prefix}g++; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 if test -n "$BUILD_CXX"; then
4376 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4396 if test -n "$BUILD_CXX"; then
4397 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4398 echo "${ECHO_T}$BUILD_CXX" >&6; }
4400 { echo "$as_me:$LINENO: result: no" >&5
4401 echo "${ECHO_T}no" >&6; }
4405 if test -z "$BUILD_CXX"; then
4406 # Extract the first word of "g++", so it can be a program name with args.
4407 set dummy g++; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test -n "$BUILD_CXX"; then
4414 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_BUILD_CXX="g++"
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4434 if test -n "$BUILD_CXX"; then
4435 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4436 echo "${ECHO_T}$BUILD_CXX" >&6; }
4438 { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4443 if test -z "$BUILD_CXX"; then
4444 # Extract the first word of "c++", so it can be a program name with args.
4445 set dummy c++; ac_word=$2
4446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 if test -n "$BUILD_CXX"; then
4452 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4463 ac_prog_rejected=yes
4466 ac_cv_prog_BUILD_CXX="c++"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 if test $ac_prog_rejected = yes; then
4475 # We found a bogon in the path, so make sure we never use it.
4476 set dummy $ac_cv_prog_BUILD_CXX
4478 if test $# != 0; then
4479 # We chose a different compiler from the bogus one.
4480 # However, it has the same basename, so the bogon will be chosen
4481 # first if we set BUILD_CXX to just the basename; use the full file name.
4483 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4488 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4489 if test -n "$BUILD_CXX"; then
4490 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4491 echo "${ECHO_T}$BUILD_CXX" >&6; }
4493 { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4501 LLVM_CROSS_COMPILING=0
4505 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4516 # Check whether --enable-libcpp was given.
4517 if test "${enable_libcpp+set}" = set; then
4518 enableval=$enable_libcpp;
4523 case "$enableval" in
4524 yes) ENABLE_LIBCPP=1
4528 default) ENABLE_LIBCPP=0
4530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4531 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4532 { (exit 1); exit 1; }; } ;;
4535 # Check whether --enable-compiler-version-checks was given.
4536 if test "${enable_compiler_version_checks+set}" = set; then
4537 enableval=$enable_compiler_version_checks;
4542 case "$enableval" in
4547 ac_cpp='$CXXCPP $CPPFLAGS'
4548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4552 case "$llvm_cv_cxx_compiler" in
4554 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4555 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4556 cat >conftest.$ac_ext <<_ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4563 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4564 #error This version of Clang is too old to build LLVM
4568 rm -f conftest.$ac_objext
4569 if { (ac_try="$ac_compile"
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4575 (eval "$ac_compile") 2>conftest.er1
4577 grep -v '^ *+' conftest.er1 >conftest.err
4579 cat conftest.err >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } &&
4582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4583 { (case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_try") 2>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; } &&
4592 { ac_try='test -s conftest.$ac_objext'
4593 { (case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598 (eval "$ac_try") 2>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 { echo "$as_me:$LINENO: result: yes" >&5
4603 echo "${ECHO_T}yes" >&6; }
4605 echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4608 { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4610 { { echo "$as_me:$LINENO: error:
4611 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4612 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4613 bypass these sanity checks." >&5
4614 echo "$as_me: error:
4615 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4616 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4617 bypass these sanity checks." >&2;}
4618 { (exit 1); exit 1; }; }
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 if test "$ENABLE_LIBCPP" -eq 0 ; then
4624 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4625 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4626 llvm_cv_old_cxxflags="$CXXFLAGS"
4627 CXXFLAGS="$CXXFLAGS -std=c++0x"
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4636 std::atomic<float> x(0.0f);
4637 int main() { return (float)x; }
4640 rm -f conftest.$ac_objext conftest$ac_exeext
4641 if { (ac_try="$ac_link"
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_link") 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4655 { (case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660 (eval "$ac_try") 2>&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest$ac_exeext'
4665 { (case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_try") 2>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 { echo "$as_me:$LINENO: result: yes" >&5
4675 echo "${ECHO_T}yes" >&6; }
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4682 { { echo "$as_me:$LINENO: error:
4683 We detected a missing feature in the standard C++ library that was known to be
4684 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4685 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4686 than 4.7. You will need to update your system and ensure Clang uses the newer
4689 If this error is incorrect or you need to force things to work, you may pass
4690 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4691 echo "$as_me: error:
4692 We detected a missing feature in the standard C++ library that was known to be
4693 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4694 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4695 than 4.7. You will need to update your system and ensure Clang uses the newer
4698 If this error is incorrect or you need to force things to work, you may pass
4699 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4700 { (exit 1); exit 1; }; }
4703 rm -f core conftest.err conftest.$ac_objext \
4704 conftest$ac_exeext conftest.$ac_ext
4705 CXXFLAGS="$llvm_cv_old_cxxflags"
4709 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4710 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4711 cat >conftest.$ac_ext <<_ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4718 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4719 #error This version of GCC is too old to build LLVM
4723 rm -f conftest.$ac_objext
4724 if { (ac_try="$ac_compile"
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_compile") 2>conftest.er1
4732 grep -v '^ *+' conftest.er1 >conftest.err
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4738 { (case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_try") 2>&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest.$ac_objext'
4748 { (case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_try") 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 { echo "$as_me:$LINENO: result: yes" >&5
4758 echo "${ECHO_T}yes" >&6; }
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4765 { { echo "$as_me:$LINENO: error:
4766 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4767 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4768 bypass these sanity checks." >&5
4769 echo "$as_me: error:
4770 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4771 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4772 bypass these sanity checks." >&2;}
4773 { (exit 1); exit 1; }; }
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4790 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4791 { (exit 1); exit 1; }; }
4795 # Check whether --enable-cxx11 was given.
4796 if test "${enable_cxx11+set}" = set; then
4797 enableval=$enable_cxx11;
4802 case "$enableval" in
4807 default) ENABLE_CXX11=0
4809 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4810 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4811 { (exit 1); exit 1; }; } ;;
4814 # Check whether --enable-split-dwarf was given.
4815 if test "${enable_split_dwarf+set}" = set; then
4816 enableval=$enable_split_dwarf;
4821 case "$enableval" in
4822 yes) ENABLE_SPLIT_DWARF=1
4824 no) ENABLE_SPLIT_DWARF=0
4826 default) ENABLE_SPLIT_DWARF=0
4828 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4829 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4830 { (exit 1); exit 1; }; } ;;
4834 # Check whether --enable-clang-arcmt was given.
4835 if test "${enable_clang_arcmt+set}" = set; then
4836 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4841 case "$enableval" in
4842 yes) ENABLE_CLANG_ARCMT=1
4844 no) ENABLE_CLANG_ARCMT=0
4846 default) ENABLE_CLANG_ARCMT=1
4848 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4849 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4850 { (exit 1); exit 1; }; } ;;
4853 clang_static_analyzer="yes"
4854 # Check whether --enable-clang-static-analyzer was given.
4855 if test "${enable_clang_static_analyzer+set}" = set; then
4856 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4861 case "$enableval" in
4862 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4865 if test ${clang_arcmt} != "no" ; then
4866 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4867 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4868 { (exit 1); exit 1; }; }
4870 ENABLE_CLANG_STATIC_ANALYZER=0
4873 default) ENABLE_CLANG_STATIC_ANALYZER=1
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4880 # Check whether --enable-clang-rewriter was given.
4881 if test "${enable_clang_rewriter+set}" = set; then
4882 enableval=$enable_clang_rewriter;
4887 case "$enableval" in
4888 yes) ENABLE_CLANG_REWRITER=1
4891 if test ${clang_arcmt} != "no" ; then
4892 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4893 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4894 { (exit 1); exit 1; }; }
4896 if test ${clang_static_analyzer} != "no" ; then
4897 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4898 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4899 { (exit 1); exit 1; }; }
4901 ENABLE_CLANG_REWRITER=0
4904 default) ENABLE_CLANG_REWRITER=1
4906 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4907 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4908 { (exit 1); exit 1; }; } ;;
4911 # Check whether --enable-optimized was given.
4912 if test "${enable_optimized+set}" = set; then
4913 enableval=$enable_optimized;
4918 if test ${enableval} = "no" ; then
4922 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4926 # Check whether --enable-profiling was given.
4927 if test "${enable_profiling+set}" = set; then
4928 enableval=$enable_profiling;
4933 if test ${enableval} = "no" ; then
4937 ENABLE_PROFILING=ENABLE_PROFILING=1
4941 # Check whether --enable-assertions was given.
4942 if test "${enable_assertions+set}" = set; then
4943 enableval=$enable_assertions;
4948 if test ${enableval} = "yes" ; then
4952 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4956 # Check whether --enable-werror was given.
4957 if test "${enable_werror+set}" = set; then
4958 enableval=$enable_werror;
4963 case "$enableval" in
4964 yes) ENABLE_WERROR=1
4968 default) ENABLE_WERROR=0
4970 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4971 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4972 { (exit 1); exit 1; }; } ;;
4975 # Check whether --enable-expensive-checks was given.
4976 if test "${enable_expensive_checks+set}" = set; then
4977 enableval=$enable_expensive_checks;
4982 if test ${enableval} = "yes" ; then
4983 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4985 EXPENSIVE_CHECKS=yes
4988 ENABLE_EXPENSIVE_CHECKS=
4994 # Check whether --enable-debug-runtime was given.
4995 if test "${enable_debug_runtime+set}" = set; then
4996 enableval=$enable_debug_runtime;
5001 if test ${enableval} = "no" ; then
5005 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5009 # Check whether --enable-debug-symbols was given.
5010 if test "${enable_debug_symbols+set}" = set; then
5011 enableval=$enable_debug_symbols;
5016 if test ${enableval} = "no" ; then
5020 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5024 # Check whether --enable-keep-symbols was given.
5025 if test "${enable_keep_symbols+set}" = set; then
5026 enableval=$enable_keep_symbols;
5031 if test ${enableval} = "no" ; then
5035 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5039 # Check whether --enable-jit was given.
5040 if test "${enable_jit+set}" = set; then
5041 enableval=$enable_jit;
5046 if test ${enableval} = "no"
5051 case "$llvm_cv_target_arch" in
5052 x86) TARGET_HAS_JIT=1
5054 Sparc) TARGET_HAS_JIT=0
5056 PowerPC) TARGET_HAS_JIT=1
5058 x86_64) TARGET_HAS_JIT=1
5060 ARM) TARGET_HAS_JIT=1
5062 AArch64) TARGET_HAS_JIT=0
5064 Mips) TARGET_HAS_JIT=1
5066 XCore) TARGET_HAS_JIT=0
5068 MSP430) TARGET_HAS_JIT=0
5070 Hexagon) TARGET_HAS_JIT=0
5072 NVPTX) TARGET_HAS_JIT=0
5074 SystemZ) TARGET_HAS_JIT=1
5081 # Check whether --enable-docs was given.
5082 if test "${enable_docs+set}" = set; then
5083 enableval=$enable_docs;
5088 case "$enableval" in
5093 default) ENABLE_DOCS=1
5095 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5096 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5097 { (exit 1); exit 1; }; } ;;
5100 # Check whether --enable-doxygen was given.
5101 if test "${enable_doxygen+set}" = set; then
5102 enableval=$enable_doxygen;
5107 case "$enableval" in
5108 yes) ENABLE_DOXYGEN=1
5110 no) ENABLE_DOXYGEN=0
5112 default) ENABLE_DOXYGEN=0
5114 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5115 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5116 { (exit 1); exit 1; }; } ;;
5119 # Check whether --enable-threads was given.
5120 if test "${enable_threads+set}" = set; then
5121 enableval=$enable_threads;
5126 case "$enableval" in
5127 yes) LLVM_ENABLE_THREADS=1
5129 no) LLVM_ENABLE_THREADS=0
5131 default) LLVM_ENABLE_THREADS=1
5133 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5134 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5135 { (exit 1); exit 1; }; } ;;
5138 cat >>confdefs.h <<_ACEOF
5139 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5143 # Check whether --enable-pthreads was given.
5144 if test "${enable_pthreads+set}" = set; then
5145 enableval=$enable_pthreads;
5150 case "$enableval" in
5151 yes) ENABLE_PTHREADS=1
5153 no) ENABLE_PTHREADS=0
5155 default) ENABLE_PTHREADS=1
5157 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5158 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5162 # Check whether --enable-zlib was given.
5163 if test "${enable_zlib+set}" = set; then
5164 enableval=$enable_zlib;
5169 case "$enableval" in
5170 yes) LLVM_ENABLE_ZLIB=1
5172 no) LLVM_ENABLE_ZLIB=0
5174 default) LLVM_ENABLE_ZLIB=1
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5181 cat >>confdefs.h <<_ACEOF
5182 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5186 # Check whether --enable-pic was given.
5187 if test "${enable_pic+set}" = set; then
5188 enableval=$enable_pic;
5193 case "$enableval" in
5198 default) ENABLE_PIC=1
5200 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5205 cat >>confdefs.h <<_ACEOF
5206 #define ENABLE_PIC $ENABLE_PIC
5210 # Check whether --enable-shared was given.
5211 if test "${enable_shared+set}" = set; then
5212 enableval=$enable_shared;
5217 case "$enableval" in
5218 yes) ENABLE_SHARED=1
5222 default) ENABLE_SHARED=0
5224 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5229 # Check whether --enable-embed-stdcxx was given.
5230 if test "${enable_embed_stdcxx+set}" = set; then
5231 enableval=$enable_embed_stdcxx;
5236 case "$enableval" in
5237 yes) ENABLE_EMBED_STDCXX=1
5239 no) ENABLE_EMBED_STDCXX=0
5241 default) ENABLE_EMBED_STDCXX=0
5243 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5244 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5248 # Check whether --enable-timestamps was given.
5249 if test "${enable_timestamps+set}" = set; then
5250 enableval=$enable_timestamps;
5255 case "$enableval" in
5256 yes) ENABLE_TIMESTAMPS=1
5258 no) ENABLE_TIMESTAMPS=0
5260 default) ENABLE_TIMESTAMPS=1
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 cat >>confdefs.h <<_ACEOF
5268 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5272 # Check whether --enable-backtraces was given.
5273 if test "${enable_backtraces+set}" = set; then
5274 enableval=$enable_backtraces; case "$enableval" in
5275 yes) llvm_cv_enable_backtraces="yes" ;;
5276 no) llvm_cv_enable_backtraces="no" ;;
5277 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5278 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5279 { (exit 1); exit 1; }; } ;;
5282 llvm_cv_enable_backtraces="yes"
5285 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5287 cat >>confdefs.h <<\_ACEOF
5288 #define ENABLE_BACKTRACES 1
5293 # Check whether --enable-crash-overrides was given.
5294 if test "${enable_crash_overrides+set}" = set; then
5295 enableval=$enable_crash_overrides; case "$enableval" in
5296 yes) llvm_cv_enable_crash_overrides="yes" ;;
5297 no) llvm_cv_enable_crash_overrides="no" ;;
5298 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5300 { (exit 1); exit 1; }; } ;;
5303 llvm_cv_enable_crash_overrides="yes"
5306 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5308 cat >>confdefs.h <<\_ACEOF
5309 #define ENABLE_CRASH_OVERRIDES 1
5315 # Check whether --enable-targets was given.
5316 if test "${enable_targets+set}" = set; then
5317 enableval=$enable_targets;
5322 if test "$enableval" = host-only ; then
5325 case "$enableval" in
5326 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5327 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5329 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5332 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5333 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5334 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5335 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5340 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5341 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5342 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5343 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5344 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5345 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5346 host) case "$llvm_cv_target_arch" in
5347 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5348 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5350 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5351 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5352 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5353 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5354 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5355 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5356 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5357 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5358 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5359 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5360 echo "$as_me: error: Can not set target to build" >&2;}
5361 { (exit 1); exit 1; }; } ;;
5363 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5364 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5365 { (exit 1); exit 1; }; } ;;
5371 # Check whether --enable-experimental-targets was given.
5372 if test "${enable_experimental_targets+set}" = set; then
5373 enableval=$enable_experimental_targets;
5379 if test ${enableval} != "disable"
5381 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5384 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5387 for a_target in $TARGETS_TO_BUILD; do
5388 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5394 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5395 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5396 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5397 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5398 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5399 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5401 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5402 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5424 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5426 cat >>confdefs.h <<_ACEOF
5427 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5431 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5433 cat >>confdefs.h <<_ACEOF
5434 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5441 LLVM_ENUM_TARGETS=""
5442 LLVM_ENUM_ASM_PRINTERS=""
5443 LLVM_ENUM_ASM_PARSERS=""
5444 LLVM_ENUM_DISASSEMBLERS=""
5445 for target_to_build in $TARGETS_TO_BUILD; do
5446 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5447 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5448 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5450 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5451 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5453 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5454 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5463 # Check whether --with-optimize-option was given.
5464 if test "${with_optimize_option+set}" = set; then
5465 withval=$with_optimize_option;
5470 { echo "$as_me:$LINENO: checking optimization flags" >&5
5471 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5474 case "$llvm_cv_os_type" in
5475 FreeBSD) optimize_option=-O2 ;;
5476 MingW) optimize_option=-O2 ;;
5477 *) optimize_option=-O3 ;;
5479 *) optimize_option="$withval" ;;
5481 OPTIMIZE_OPTION=$optimize_option
5483 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5484 echo "${ECHO_T}$optimize_option" >&6; }
5487 # Check whether --with-extra-options was given.
5488 if test "${with_extra_options+set}" = set; then
5489 withval=$with_extra_options;
5495 default) EXTRA_OPTIONS= ;;
5496 *) EXTRA_OPTIONS=$withval ;;
5498 EXTRA_OPTIONS=$EXTRA_OPTIONS
5502 # Check whether --with-extra-ld-options was given.
5503 if test "${with_extra_ld_options+set}" = set; then
5504 withval=$with_extra_ld_options;
5510 default) EXTRA_LD_OPTIONS= ;;
5511 *) EXTRA_LD_OPTIONS=$withval ;;
5513 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5516 # Check whether --enable-bindings was given.
5517 if test "${enable_bindings+set}" = set; then
5518 enableval=$enable_bindings;
5523 BINDINGS_TO_BUILD=""
5524 case "$enableval" in
5525 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5526 all ) BINDINGS_TO_BUILD="ocaml" ;;
5527 none | no) BINDINGS_TO_BUILD="" ;;
5528 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5529 case "$a_binding" in
5530 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5531 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5532 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5533 { (exit 1); exit 1; }; } ;;
5540 # Check whether --with-ocaml-libdir was given.
5541 if test "${with_ocaml_libdir+set}" = set; then
5542 withval=$with_ocaml_libdir;
5548 auto) with_ocaml_libdir="$withval" ;;
5549 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5550 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5551 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5552 { (exit 1); exit 1; }; } ;;
5556 # Check whether --with-clang-srcdir was given.
5557 if test "${with_clang_srcdir+set}" = set; then
5558 withval=$with_clang_srcdir;
5564 -) clang_src_root="" ;;
5565 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5566 *) clang_src_root="$ac_pwd/$withval" ;;
5568 CLANG_SRC_ROOT=$clang_src_root
5572 # Check whether --with-clang-resource-dir was given.
5573 if test "${with_clang_resource_dir+set}" = set; then
5574 withval=$with_clang_resource_dir;
5580 cat >>confdefs.h <<_ACEOF
5581 #define CLANG_RESOURCE_DIR "$withval"
5586 # Check whether --with-c-include-dirs was given.
5587 if test "${with_c_include_dirs+set}" = set; then
5588 withval=$with_c_include_dirs;
5594 cat >>confdefs.h <<_ACEOF
5595 #define C_INCLUDE_DIRS "$withval"
5599 # Clang normally uses the system c++ headers and libraries. With this option,
5600 # clang will use the ones provided by a gcc installation instead. This option should
5601 # be passed the same value that was used with --prefix when configuring gcc.
5603 # Check whether --with-gcc-toolchain was given.
5604 if test "${with_gcc_toolchain+set}" = set; then
5605 withval=$with_gcc_toolchain;
5611 cat >>confdefs.h <<_ACEOF
5612 #define GCC_INSTALL_PREFIX "$withval"
5617 # Check whether --with-default-sysroot was given.
5618 if test "${with_default_sysroot+set}" = set; then
5619 withval=$with_default_sysroot;
5625 cat >>confdefs.h <<_ACEOF
5626 #define DEFAULT_SYSROOT "$withval"
5631 # Check whether --with-binutils-include was given.
5632 if test "${with_binutils_include+set}" = set; then
5633 withval=$with_binutils_include;
5639 default) WITH_BINUTILS_INCDIR=default ;;
5640 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5642 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5643 { (exit 1); exit 1; }; } ;;
5645 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5646 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5648 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5649 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5650 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5651 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5652 { (exit 1); exit 1; }; };
5657 # Check whether --with-bug-report-url was given.
5658 if test "${with_bug_report_url+set}" = set; then
5659 withval=$with_bug_report_url;
5661 withval="http://llvm.org/bugs/"
5665 cat >>confdefs.h <<_ACEOF
5666 #define BUG_REPORT_URL "$withval"
5670 # Check whether --enable-terminfo was given.
5671 if test "${enable_terminfo+set}" = set; then
5672 enableval=$enable_terminfo; case "$enableval" in
5673 yes) llvm_cv_enable_terminfo="yes" ;;
5674 no) llvm_cv_enable_terminfo="no" ;;
5675 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5676 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5677 { (exit 1); exit 1; }; } ;;
5680 llvm_cv_enable_terminfo="yes"
5684 # Check whether --enable-libffi was given.
5685 if test "${enable_libffi+set}" = set; then
5686 enableval=$enable_libffi; case "$enableval" in
5687 yes) llvm_cv_enable_libffi="yes" ;;
5688 no) llvm_cv_enable_libffi="no" ;;
5689 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5690 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5691 { (exit 1); exit 1; }; } ;;
5694 llvm_cv_enable_libffi=no
5699 # Check whether --with-internal-prefix was given.
5700 if test "${with_internal_prefix+set}" = set; then
5701 withval=$with_internal_prefix;
5706 INTERNAL_PREFIX=$withval
5710 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5711 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5712 if test "${lt_cv_path_NM+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 if test -n "$NM"; then
5716 # Let the user override the test.
5719 lt_nm_to_check="${ac_tool_prefix}nm"
5720 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5721 lt_nm_to_check="$lt_nm_to_check nm"
5723 for lt_tmp_nm in $lt_nm_to_check; do
5724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5725 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5727 test -z "$ac_dir" && ac_dir=.
5728 tmp_nm="$ac_dir/$lt_tmp_nm"
5729 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5730 # Check to see if the nm accepts a BSD-compat flag.
5731 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5732 # nm: unknown option "B" ignored
5733 # Tru64's nm complains that /dev/null is an invalid object file
5734 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5735 */dev/null* | *'Invalid file or object type'*)
5736 lt_cv_path_NM="$tmp_nm -B"
5740 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5742 lt_cv_path_NM="$tmp_nm -p"
5746 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5747 continue # so that we can try to find one that supports BSD flags
5756 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5759 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5760 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5765 { echo "$as_me:$LINENO: checking for GNU make" >&5
5766 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5767 if test "${llvm_cv_gnu_make_command+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 llvm_cv_gnu_make_command=''
5771 for a in "$MAKE" make gmake gnumake ; do
5772 if test -z "$a" ; then continue ; fi ;
5773 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5775 llvm_cv_gnu_make_command=$a ;
5780 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5781 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5782 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5786 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5787 echo "${ECHO_T}\"Not found\"" >&6; };
5791 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5792 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5794 if test "$LN_S" = "ln -s"; then
5795 { echo "$as_me:$LINENO: result: yes" >&5
5796 echo "${ECHO_T}yes" >&6; }
5798 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5799 echo "${ECHO_T}no, using $LN_S" >&6; }
5802 # Extract the first word of "cmp", so it can be a program name with args.
5803 set dummy cmp; ac_word=$2
5804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5806 if test "${ac_cv_path_CMP+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5834 if test -n "$CMP"; then
5835 { echo "$as_me:$LINENO: result: $CMP" >&5
5836 echo "${ECHO_T}$CMP" >&6; }
5838 { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5843 # Extract the first word of "cp", so it can be a program name with args.
5844 set dummy cp; ac_word=$2
5845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5847 if test "${ac_cv_path_CP+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5875 if test -n "$CP"; then
5876 { echo "$as_me:$LINENO: result: $CP" >&5
5877 echo "${ECHO_T}$CP" >&6; }
5879 { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5884 # Extract the first word of "date", so it can be a program name with args.
5885 set dummy date; ac_word=$2
5886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888 if test "${ac_cv_path_DATE+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5915 DATE=$ac_cv_path_DATE
5916 if test -n "$DATE"; then
5917 { echo "$as_me:$LINENO: result: $DATE" >&5
5918 echo "${ECHO_T}$DATE" >&6; }
5920 { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5925 # Extract the first word of "find", so it can be a program name with args.
5926 set dummy find; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_path_FIND+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5956 FIND=$ac_cv_path_FIND
5957 if test -n "$FIND"; then
5958 { echo "$as_me:$LINENO: result: $FIND" >&5
5959 echo "${ECHO_T}$FIND" >&6; }
5961 { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5966 # Extract the first word of "grep", so it can be a program name with args.
5967 set dummy grep; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_path_GREP+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5997 GREP=$ac_cv_path_GREP
5998 if test -n "$GREP"; then
5999 { echo "$as_me:$LINENO: result: $GREP" >&5
6000 echo "${ECHO_T}$GREP" >&6; }
6002 { echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6; }
6007 # Extract the first word of "mkdir", so it can be a program name with args.
6008 set dummy mkdir; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_path_MKDIR+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6038 MKDIR=$ac_cv_path_MKDIR
6039 if test -n "$MKDIR"; then
6040 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6041 echo "${ECHO_T}$MKDIR" >&6; }
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6048 # Extract the first word of "mv", so it can be a program name with args.
6049 set dummy mv; ac_word=$2
6050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052 if test "${ac_cv_path_MV+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6080 if test -n "$MV"; then
6081 { echo "$as_me:$LINENO: result: $MV" >&5
6082 echo "${ECHO_T}$MV" >&6; }
6084 { echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6; }
6089 if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_prog_RANLIB+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 if test -n "$RANLIB"; then
6098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 RANLIB=$ac_cv_prog_RANLIB
6118 if test -n "$RANLIB"; then
6119 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6120 echo "${ECHO_T}$RANLIB" >&6; }
6122 { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6128 if test -z "$ac_cv_prog_RANLIB"; then
6129 ac_ct_RANLIB=$RANLIB
6130 # Extract the first word of "ranlib", so it can be a program name with args.
6131 set dummy ranlib; ac_word=$2
6132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6134 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 if test -n "$ac_ct_RANLIB"; then
6138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_prog_ac_ct_RANLIB="ranlib"
6148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6158 if test -n "$ac_ct_RANLIB"; then
6159 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6160 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6162 { echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6; }
6166 if test "x$ac_ct_RANLIB" = x; then
6169 case $cross_compiling:$ac_tool_warned in
6171 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6172 whose name does not start with the host triplet. If you think this
6173 configuration is useful to you, please write to autoconf@gnu.org." >&5
6174 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6175 whose name does not start with the host triplet. If you think this
6176 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6177 ac_tool_warned=yes ;;
6179 RANLIB=$ac_ct_RANLIB
6182 RANLIB="$ac_cv_prog_RANLIB"
6185 if test -n "$ac_tool_prefix"; then
6186 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}ar; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_AR+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 if test -n "$AR"; then
6194 ac_cv_prog_AR="$AR" # Let the user override the test.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_prog_AR="${ac_tool_prefix}ar"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 if test -n "$AR"; then
6215 { echo "$as_me:$LINENO: result: $AR" >&5
6216 echo "${ECHO_T}$AR" >&6; }
6218 { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6224 if test -z "$ac_cv_prog_AR"; then
6226 # Extract the first word of "ar", so it can be a program name with args.
6227 set dummy ar; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 if test -n "$ac_ct_AR"; then
6234 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_prog_ac_ct_AR="ar"
6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6254 if test -n "$ac_ct_AR"; then
6255 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6256 echo "${ECHO_T}$ac_ct_AR" >&6; }
6258 { echo "$as_me:$LINENO: result: no" >&5
6259 echo "${ECHO_T}no" >&6; }
6262 if test "x$ac_ct_AR" = x; then
6265 case $cross_compiling:$ac_tool_warned in
6267 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6268 whose name does not start with the host triplet. If you think this
6269 configuration is useful to you, please write to autoconf@gnu.org." >&5
6270 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6271 whose name does not start with the host triplet. If you think this
6272 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6273 ac_tool_warned=yes ;;
6281 # Extract the first word of "rm", so it can be a program name with args.
6282 set dummy rm; ac_word=$2
6283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6285 if test "${ac_cv_path_RM+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6313 if test -n "$RM"; then
6314 { echo "$as_me:$LINENO: result: $RM" >&5
6315 echo "${ECHO_T}$RM" >&6; }
6317 { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6322 # Extract the first word of "sed", so it can be a program name with args.
6323 set dummy sed; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_path_SED+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6354 if test -n "$SED"; then
6355 { echo "$as_me:$LINENO: result: $SED" >&5
6356 echo "${ECHO_T}$SED" >&6; }
6358 { echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6; }
6363 # Extract the first word of "tar", so it can be a program name with args.
6364 set dummy tar; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_TAR+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6395 if test -n "$TAR"; then
6396 { echo "$as_me:$LINENO: result: $TAR" >&5
6397 echo "${ECHO_T}$TAR" >&6; }
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6404 # Extract the first word of "pwd", so it can be a program name with args.
6405 set dummy pwd; ac_word=$2
6406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6408 if test "${ac_cv_path_BINPWD+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6435 BINPWD=$ac_cv_path_BINPWD
6436 if test -n "$BINPWD"; then
6437 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6438 echo "${ECHO_T}$BINPWD" >&6; }
6440 { echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6; }
6446 # Extract the first word of "Graphviz", so it can be a program name with args.
6447 set dummy Graphviz; ac_word=$2
6448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6450 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6477 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6478 if test -n "$GRAPHVIZ"; then
6479 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6480 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6482 { echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6; }
6487 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6489 cat >>confdefs.h <<\_ACEOF
6490 #define HAVE_GRAPHVIZ 1
6493 if test "$llvm_cv_os_type" = "MingW" ; then
6494 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6497 cat >>confdefs.h <<_ACEOF
6498 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6502 # Extract the first word of "dot", so it can be a program name with args.
6503 set dummy dot; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_path_DOT+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6534 if test -n "$DOT"; then
6535 { echo "$as_me:$LINENO: result: $DOT" >&5
6536 echo "${ECHO_T}$DOT" >&6; }
6538 { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6543 if test "$DOT" != "echo dot" ; then
6545 cat >>confdefs.h <<\_ACEOF
6549 if test "$llvm_cv_os_type" = "MingW" ; then
6550 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6553 cat >>confdefs.h <<_ACEOF
6554 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6558 # Extract the first word of "fdp", so it can be a program name with args.
6559 set dummy fdp; ac_word=$2
6560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6562 if test "${ac_cv_path_FDP+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6577 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6590 if test -n "$FDP"; then
6591 { echo "$as_me:$LINENO: result: $FDP" >&5
6592 echo "${ECHO_T}$FDP" >&6; }
6594 { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6599 if test "$FDP" != "echo fdp" ; then
6601 cat >>confdefs.h <<\_ACEOF
6605 if test "$llvm_cv_os_type" = "MingW" ; then
6606 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6609 cat >>confdefs.h <<_ACEOF
6610 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6614 # Extract the first word of "neato", so it can be a program name with args.
6615 set dummy neato; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_NEATO+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6645 NEATO=$ac_cv_path_NEATO
6646 if test -n "$NEATO"; then
6647 { echo "$as_me:$LINENO: result: $NEATO" >&5
6648 echo "${ECHO_T}$NEATO" >&6; }
6650 { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6655 if test "$NEATO" != "echo neato" ; then
6657 cat >>confdefs.h <<\_ACEOF
6658 #define HAVE_NEATO 1
6661 if test "$llvm_cv_os_type" = "MingW" ; then
6662 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6665 cat >>confdefs.h <<_ACEOF
6666 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6670 # Extract the first word of "twopi", so it can be a program name with args.
6671 set dummy twopi; ac_word=$2
6672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674 if test "${ac_cv_path_TWOPI+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6701 TWOPI=$ac_cv_path_TWOPI
6702 if test -n "$TWOPI"; then
6703 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6704 echo "${ECHO_T}$TWOPI" >&6; }
6706 { echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6; }
6711 if test "$TWOPI" != "echo twopi" ; then
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_TWOPI 1
6717 if test "$llvm_cv_os_type" = "MingW" ; then
6718 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6721 cat >>confdefs.h <<_ACEOF
6722 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6726 # Extract the first word of "circo", so it can be a program name with args.
6727 set dummy circo; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_CIRCO+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6757 CIRCO=$ac_cv_path_CIRCO
6758 if test -n "$CIRCO"; then
6759 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6760 echo "${ECHO_T}$CIRCO" >&6; }
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6767 if test "$CIRCO" != "echo circo" ; then
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_CIRCO 1
6773 if test "$llvm_cv_os_type" = "MingW" ; then
6774 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6777 cat >>confdefs.h <<_ACEOF
6778 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6782 for ac_prog in gv gsview32
6784 # Extract the first word of "$ac_prog", so it can be a program name with args.
6785 set dummy $ac_prog; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_path_GV+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 if test -n "$GV"; then
6816 { echo "$as_me:$LINENO: result: $GV" >&5
6817 echo "${ECHO_T}$GV" >&6; }
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6824 test -n "$GV" && break
6826 test -n "$GV" || GV="echo gv"
6828 if test "$GV" != "echo gv" ; then
6830 cat >>confdefs.h <<\_ACEOF
6834 if test "$llvm_cv_os_type" = "MingW" ; then
6835 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6838 cat >>confdefs.h <<_ACEOF
6839 #define LLVM_PATH_GV "$GV${EXEEXT}"
6843 # Extract the first word of "dotty", so it can be a program name with args.
6844 set dummy dotty; ac_word=$2
6845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847 if test "${ac_cv_path_DOTTY+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6874 DOTTY=$ac_cv_path_DOTTY
6875 if test -n "$DOTTY"; then
6876 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6877 echo "${ECHO_T}$DOTTY" >&6; }
6879 { echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6; }
6884 if test "$DOTTY" != "echo dotty" ; then
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_DOTTY 1
6890 if test "$llvm_cv_os_type" = "MingW" ; then
6891 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6894 cat >>confdefs.h <<_ACEOF
6895 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6899 for ac_prog in xdot xdot.py
6901 # Extract the first word of "$ac_prog", so it can be a program name with args.
6902 set dummy $ac_prog; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_path_XDOT+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6920 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 XDOT=$ac_cv_path_XDOT
6932 if test -n "$XDOT"; then
6933 { echo "$as_me:$LINENO: result: $XDOT" >&5
6934 echo "${ECHO_T}$XDOT" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6941 test -n "$XDOT" && break
6943 test -n "$XDOT" || XDOT="echo xdot"
6945 if test "$XDOT" != "echo xdot" ; then
6947 cat >>confdefs.h <<\_ACEOF
6951 if test "$llvm_cv_os_type" = "MingW" ; then
6952 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6955 cat >>confdefs.h <<_ACEOF
6956 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6961 # Find a good install program. We prefer a C program (faster),
6962 # so one script is as good as another. But avoid the broken or
6963 # incompatible versions:
6964 # SysV /etc/install, /usr/sbin/install
6965 # SunOS /usr/etc/install
6966 # IRIX /sbin/install
6968 # AmigaOS /C/install, which installs bootblocks on floppy discs
6969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6972 # OS/2's system install, which has a completely different semantic
6973 # ./install, which can be erroneously created by make from ./install.sh.
6974 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6975 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6976 if test -z "$INSTALL"; then
6977 if test "${ac_cv_path_install+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 test -z "$as_dir" && as_dir=.
6985 # Account for people who put trailing slashes in PATH elements.
6987 ./ | .// | /cC/* | \
6988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6989 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6992 # OSF1 and SCO ODT 3.0 have their own names for install.
6993 # Don't use installbsd from OSF since it installs stuff as root
6995 for ac_prog in ginstall scoinst install; do
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6998 if test $ac_prog = install &&
6999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7000 # AIX install. It has an incompatible calling convention.
7002 elif test $ac_prog = install &&
7003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7004 # program-specific install script used by HP pwplus--don't use.
7007 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7020 if test "${ac_cv_path_install+set}" = set; then
7021 INSTALL=$ac_cv_path_install
7023 # As a last resort, use the slow shell script. Don't cache a
7024 # value for INSTALL within a source directory, because that will
7025 # break other packages using the cache if that directory is
7026 # removed, or if the value is a relative name.
7027 INSTALL=$ac_install_sh
7030 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7031 echo "${ECHO_T}$INSTALL" >&6; }
7033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7034 # It thinks the first close brace ends the variable substitution.
7035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7037 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7042 [\\/$]* | ?:[\\/]* ) ;;
7043 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7046 # Extract the first word of "bzip2", so it can be a program name with args.
7047 set dummy bzip2; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_BZIP2+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 BZIP2=$ac_cv_path_BZIP2
7077 if test -n "$BZIP2"; then
7078 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7079 echo "${ECHO_T}$BZIP2" >&6; }
7081 { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7086 # Extract the first word of "cat", so it can be a program name with args.
7087 set dummy cat; ac_word=$2
7088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090 if test "${ac_cv_path_CAT+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 if test -n "$CAT"; then
7118 { echo "$as_me:$LINENO: result: $CAT" >&5
7119 echo "${ECHO_T}$CAT" >&6; }
7121 { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7126 # Extract the first word of "doxygen", so it can be a program name with args.
7127 set dummy doxygen; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 DOXYGEN=$ac_cv_path_DOXYGEN
7157 if test -n "$DOXYGEN"; then
7158 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7159 echo "${ECHO_T}$DOXYGEN" >&6; }
7161 { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7166 # Extract the first word of "groff", so it can be a program name with args.
7167 set dummy groff; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_path_GROFF+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 GROFF=$ac_cv_path_GROFF
7197 if test -n "$GROFF"; then
7198 { echo "$as_me:$LINENO: result: $GROFF" >&5
7199 echo "${ECHO_T}$GROFF" >&6; }
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7206 # Extract the first word of "gzip", so it can be a program name with args.
7207 set dummy gzip; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 GZIPBIN=$ac_cv_path_GZIPBIN
7237 if test -n "$GZIPBIN"; then
7238 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7239 echo "${ECHO_T}$GZIPBIN" >&6; }
7241 { echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6; }
7246 # Extract the first word of "pdfroff", so it can be a program name with args.
7247 set dummy pdfroff; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_PDFROFF+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 PDFROFF=$ac_cv_path_PDFROFF
7277 if test -n "$PDFROFF"; then
7278 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7279 echo "${ECHO_T}$PDFROFF" >&6; }
7281 { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7286 # Extract the first word of "zip", so it can be a program name with args.
7287 set dummy zip; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_path_ZIP+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 if test -n "$ZIP"; then
7318 { echo "$as_me:$LINENO: result: $ZIP" >&5
7319 echo "${ECHO_T}$ZIP" >&6; }
7321 { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7326 for ac_prog in ocamlc
7328 # Extract the first word of "$ac_prog", so it can be a program name with args.
7329 set dummy $ac_prog; ac_word=$2
7330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332 if test "${ac_cv_path_OCAMLC+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7347 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 OCAMLC=$ac_cv_path_OCAMLC
7359 if test -n "$OCAMLC"; then
7360 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7361 echo "${ECHO_T}$OCAMLC" >&6; }
7363 { echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6; }
7368 test -n "$OCAMLC" && break
7371 for ac_prog in ocamlopt
7373 # Extract the first word of "$ac_prog", so it can be a program name with args.
7374 set dummy $ac_prog; ac_word=$2
7375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 OCAMLOPT=$ac_cv_path_OCAMLOPT
7404 if test -n "$OCAMLOPT"; then
7405 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7406 echo "${ECHO_T}$OCAMLOPT" >&6; }
7408 { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7413 test -n "$OCAMLOPT" && break
7416 for ac_prog in ocamldep
7418 # Extract the first word of "$ac_prog", so it can be a program name with args.
7419 set dummy $ac_prog; ac_word=$2
7420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7422 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 OCAMLDEP=$ac_cv_path_OCAMLDEP
7449 if test -n "$OCAMLDEP"; then
7450 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7451 echo "${ECHO_T}$OCAMLDEP" >&6; }
7453 { echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6; }
7458 test -n "$OCAMLDEP" && break
7461 for ac_prog in ocamldoc
7463 # Extract the first word of "$ac_prog", so it can be a program name with args.
7464 set dummy $ac_prog; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 OCAMLDOC=$ac_cv_path_OCAMLDOC
7494 if test -n "$OCAMLDOC"; then
7495 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7496 echo "${ECHO_T}$OCAMLDOC" >&6; }
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 test -n "$OCAMLDOC" && break
7506 for ac_prog in gas as
7508 # Extract the first word of "$ac_prog", so it can be a program name with args.
7509 set dummy $ac_prog; ac_word=$2
7510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512 if test "${ac_cv_path_GAS+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 if test -n "$GAS"; then
7540 { echo "$as_me:$LINENO: result: $GAS" >&5
7541 echo "${ECHO_T}$GAS" >&6; }
7543 { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7548 test -n "$GAS" && break
7552 { echo "$as_me:$LINENO: checking for linker version" >&5
7553 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7554 if test "${llvm_cv_link_version+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 version_string="$(ld -v 2>&1 | head -1)"
7561 if (echo "$version_string" | grep -q "ld64"); then
7562 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7564 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7568 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7569 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7571 cat >>confdefs.h <<_ACEOF
7572 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7578 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7579 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7580 if test "${llvm_cv_link_use_r+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_cpp='$CPP $CPPFLAGS'
7585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7590 CFLAGS="$CFLAGS -Wl,-R."
7591 cat >conftest.$ac_ext <<_ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7606 rm -f conftest.$ac_objext conftest$ac_exeext
7607 if { (ac_try="$ac_link"
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_link") 2>conftest.er1
7615 grep -v '^ *+' conftest.er1 >conftest.err
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7621 { (case "(($ac_try" in
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_try") 2>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; } &&
7630 { ac_try='test -s conftest$ac_exeext'
7631 { (case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_try") 2>&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 llvm_cv_link_use_r=yes
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 llvm_cv_link_use_r=no
7648 rm -f core conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7652 ac_cpp='$CPP $CPPFLAGS'
7653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7659 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7660 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7661 if test "$llvm_cv_link_use_r" = yes ; then
7663 cat >>confdefs.h <<\_ACEOF
7664 #define HAVE_LINK_R 1
7670 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7671 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7672 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_cpp='$CPP $CPPFLAGS'
7677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7682 CFLAGS="$CFLAGS -rdynamic"
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7698 rm -f conftest.$ac_objext conftest$ac_exeext
7699 if { (ac_try="$ac_link"
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_link") 2>conftest.er1
7707 grep -v '^ *+' conftest.er1 >conftest.err
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7713 { (case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_try") 2>&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try='test -s conftest$ac_exeext'
7723 { (case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_try") 2>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 llvm_cv_link_use_export_dynamic=yes
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7737 llvm_cv_link_use_export_dynamic=no
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7752 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7753 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7755 cat >>confdefs.h <<\_ACEOF
7756 #define HAVE_LINK_EXPORT_DYNAMIC 1
7762 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7763 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7764 if test "${llvm_cv_link_use_version_script+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 ac_cpp='$CPP $CPPFLAGS'
7769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7775 # The following code is from the autoconf manual,
7776 # "11.13: Limitations of Usual Tools".
7777 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7778 # Use mktemp if possible; otherwise fall back on mkdir,
7779 # with $RANDOM to make collisions less likely.
7783 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7785 test -n "$tmp" && test -d "$tmp"
7787 tmp=$TMPDIR/foo$$-$RANDOM
7788 (umask 077 && mkdir "$tmp")
7791 echo "{" > "$tmp/export.map"
7792 echo " global: main;" >> "$tmp/export.map"
7793 echo " local: *;" >> "$tmp/export.map"
7794 echo "};" >> "$tmp/export.map"
7796 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7797 cat >conftest.$ac_ext <<_ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (ac_try="$ac_link"
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 (eval "$ac_link") 2>conftest.er1
7821 grep -v '^ *+' conftest.er1 >conftest.err
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7827 { (case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_try") 2>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try='test -s conftest$ac_exeext'
7837 { (case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_try") 2>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 llvm_cv_link_use_version_script=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 llvm_cv_link_use_version_script=no
7854 rm -f core conftest.err conftest.$ac_objext \
7855 conftest$ac_exeext conftest.$ac_ext
7856 rm "$tmp/export.map"
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7867 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7868 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7869 if test "$llvm_cv_link_use_version_script" = yes ; then
7870 HAVE_LINK_VERSION_SCRIPT=1
7877 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7878 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7879 if test "${ac_cv_c_const+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 cat >conftest.$ac_ext <<_ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7892 /* FIXME: Include the comments suggested by Paul. */
7894 /* Ultrix mips cc rejects this. */
7895 typedef int charset[2];
7897 /* SunOS 4.1.1 cc rejects this. */
7898 char const *const *ccp;
7900 /* NEC SVR4.0.2 mips cc rejects this. */
7901 struct point {int x, y;};
7902 static struct point const zero = {0,0};
7903 /* AIX XL C 1.02.0.0 rejects this.
7904 It does not let you subtract one const X* pointer from another in
7905 an arm of an if-expression whose if-part is not a constant
7907 const char *g = "string";
7908 ccp = &g + (g ? g-g : 0);
7909 /* HPUX 7.0 cc rejects these. */
7912 ccp = (char const *const *) p;
7913 { /* SCO 3.2v4 cc rejects this. */
7915 char const *s = 0 ? (char *) 0 : (char const *) 0;
7920 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7922 const int *foo = &x[0];
7925 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7926 typedef const int *iptr;
7930 { /* AIX XL C 1.02.0.0 rejects this saying
7931 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7932 struct s { int j; const int *ap[3]; };
7933 struct s *b; b->j = 5;
7935 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7939 return !x[0] && !zero.x;
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_compile") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; } &&
7970 { ac_try='test -s conftest.$ac_objext'
7971 { (case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_try") 2>&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7991 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7992 if test $ac_cv_c_const = no; then
7994 cat >>confdefs.h <<\_ACEOF
8001 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8002 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8003 if test "${ac_cv_path_GREP+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 # Extract the first word of "grep ggrep" to use in msg output
8007 if test -z "$GREP"; then
8008 set dummy grep ggrep; ac_prog_name=$2
8009 if test "${ac_cv_path_GREP+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 ac_path_GREP_found=false
8013 # Loop through the user's path and test for each of PROGNAME-LIST
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8018 test -z "$as_dir" && as_dir=.
8019 for ac_prog in grep ggrep; do
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8022 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8023 # Check for GNU ac_path_GREP and select it if it is found.
8024 # Check for GNU $ac_path_GREP
8025 case `"$ac_path_GREP" --version 2>&1` in
8027 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8030 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8033 cat "conftest.in" "conftest.in" >"conftest.tmp"
8034 mv "conftest.tmp" "conftest.in"
8035 cp "conftest.in" "conftest.nl"
8036 echo 'GREP' >> "conftest.nl"
8037 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8039 ac_count=`expr $ac_count + 1`
8040 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8041 # Best one so far, save it but keep looking for a better one
8042 ac_cv_path_GREP="$ac_path_GREP"
8043 ac_path_GREP_max=$ac_count
8045 # 10*(2^10) chars as input seems more than enough
8046 test $ac_count -gt 10 && break
8048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8052 $ac_path_GREP_found && break 3
8062 GREP="$ac_cv_path_GREP"
8063 if test -z "$GREP"; then
8064 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8065 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8066 { (exit 1); exit 1; }; }
8070 ac_cv_path_GREP=$GREP
8075 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8076 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8077 GREP="$ac_cv_path_GREP"
8080 { echo "$as_me:$LINENO: checking for egrep" >&5
8081 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8082 if test "${ac_cv_path_EGREP+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8086 then ac_cv_path_EGREP="$GREP -E"
8088 # Extract the first word of "egrep" to use in msg output
8089 if test -z "$EGREP"; then
8090 set dummy egrep; ac_prog_name=$2
8091 if test "${ac_cv_path_EGREP+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 ac_path_EGREP_found=false
8095 # Loop through the user's path and test for each of PROGNAME-LIST
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8100 test -z "$as_dir" && as_dir=.
8101 for ac_prog in egrep; do
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8104 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8105 # Check for GNU ac_path_EGREP and select it if it is found.
8106 # Check for GNU $ac_path_EGREP
8107 case `"$ac_path_EGREP" --version 2>&1` in
8109 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8112 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8115 cat "conftest.in" "conftest.in" >"conftest.tmp"
8116 mv "conftest.tmp" "conftest.in"
8117 cp "conftest.in" "conftest.nl"
8118 echo 'EGREP' >> "conftest.nl"
8119 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8121 ac_count=`expr $ac_count + 1`
8122 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8123 # Best one so far, save it but keep looking for a better one
8124 ac_cv_path_EGREP="$ac_path_EGREP"
8125 ac_path_EGREP_max=$ac_count
8127 # 10*(2^10) chars as input seems more than enough
8128 test $ac_count -gt 10 && break
8130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8134 $ac_path_EGREP_found && break 3
8144 EGREP="$ac_cv_path_EGREP"
8145 if test -z "$EGREP"; then
8146 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8147 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8148 { (exit 1); exit 1; }; }
8152 ac_cv_path_EGREP=$EGREP
8158 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8159 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8160 EGREP="$ac_cv_path_EGREP"
8163 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8164 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8165 if test "${ac_cv_header_stdc+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8187 rm -f conftest.$ac_objext
8188 if { (ac_try="$ac_compile"
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_compile") 2>conftest.er1
8196 grep -v '^ *+' conftest.er1 >conftest.err
8198 cat conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8202 { (case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_try") 2>&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; } &&
8211 { ac_try='test -s conftest.$ac_objext'
8212 { (case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_try") 2>&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 ac_cv_header_stdc=yes
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_cv_header_stdc=no
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231 if test $ac_cv_header_stdc = yes; then
8232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8233 cat >conftest.$ac_ext <<_ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8243 $EGREP "memchr" >/dev/null 2>&1; then
8246 ac_cv_header_stdc=no
8252 if test $ac_cv_header_stdc = yes; then
8253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8264 $EGREP "free" >/dev/null 2>&1; then
8267 ac_cv_header_stdc=no
8273 if test $ac_cv_header_stdc = yes; then
8274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8275 if test "$cross_compiling" = yes; then
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8286 #if ((' ' & 0x0FF) == 0x020)
8287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8290 # define ISLOWER(c) \
8291 (('a' <= (c) && (c) <= 'i') \
8292 || ('j' <= (c) && (c) <= 'r') \
8293 || ('s' <= (c) && (c) <= 'z'))
8294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8302 for (i = 0; i < 256; i++)
8303 if (XOR (islower (i), ISLOWER (i))
8304 || toupper (i) != TOUPPER (i))
8309 rm -f conftest$ac_exeext
8310 if { (ac_try="$ac_link"
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_link") 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8320 { (case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_try") 2>&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8331 echo "$as_me: program exited with status $ac_status" >&5
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8336 ac_cv_header_stdc=no
8338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8344 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8345 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8346 if test $ac_cv_header_stdc = yes; then
8348 cat >>confdefs.h <<\_ACEOF
8349 #define STDC_HEADERS 1
8360 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8361 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8362 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8363 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 #include <sys/types.h>
8385 rm -f conftest.$ac_objext
8386 if { (ac_try="$ac_compile"
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_compile") 2>conftest.er1
8394 grep -v '^ *+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest.$ac_objext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 eval "$as_ac_Header=yes"
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 eval "$as_ac_Header=no"
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 ac_res=`eval echo '${'$as_ac_Header'}'`
8430 { echo "$as_me:$LINENO: result: $ac_res" >&5
8431 echo "${ECHO_T}$ac_res" >&6; }
8432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8437 ac_header_dirent=$ac_hdr; break
8441 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8442 if test $ac_header_dirent = dirent.h; then
8443 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8444 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8445 if test "${ac_cv_search_opendir+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_func_search_save_LIBS=$LIBS
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8456 /* Override any GCC internal prototype to avoid an error.
8457 Use char because int might match the return type of a GCC
8458 builtin and then its argument prototype would still apply. */
8471 for ac_lib in '' dir; do
8472 if test -z "$ac_lib"; then
8473 ac_res="none required"
8476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_link") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_search_opendir=$ac_res
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8520 rm -f core conftest.err conftest.$ac_objext \
8522 if test "${ac_cv_search_opendir+set}" = set; then
8526 if test "${ac_cv_search_opendir+set}" = set; then
8529 ac_cv_search_opendir=no
8532 LIBS=$ac_func_search_save_LIBS
8534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8536 ac_res=$ac_cv_search_opendir
8537 if test "$ac_res" != no; then
8538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8543 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8544 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8545 if test "${ac_cv_search_opendir+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_func_search_save_LIBS=$LIBS
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8556 /* Override any GCC internal prototype to avoid an error.
8557 Use char because int might match the return type of a GCC
8558 builtin and then its argument prototype would still apply. */
8571 for ac_lib in '' x; do
8572 if test -z "$ac_lib"; then
8573 ac_res="none required"
8576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_link") 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593 { (case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_try") 2>&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest$ac_exeext'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_try") 2>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 ac_cv_search_opendir=$ac_res
8614 echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8620 rm -f core conftest.err conftest.$ac_objext \
8622 if test "${ac_cv_search_opendir+set}" = set; then
8626 if test "${ac_cv_search_opendir+set}" = set; then
8629 ac_cv_search_opendir=no
8632 LIBS=$ac_func_search_save_LIBS
8634 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8635 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8636 ac_res=$ac_cv_search_opendir
8637 if test "$ac_res" != no; then
8638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8655 inttypes.h stdint.h unistd.h
8657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 cat >conftest.$ac_ext <<_ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8671 #include <$ac_header>
8673 rm -f conftest.$ac_objext
8674 if { (ac_try="$ac_compile"
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_compile") 2>conftest.er1
8682 grep -v '^ *+' conftest.er1 >conftest.err
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8688 { (case "(($ac_try" in
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693 (eval "$ac_try") 2>&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; } &&
8697 { ac_try='test -s conftest.$ac_objext'
8698 { (case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_try") 2>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 eval "$as_ac_Header=yes"
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8712 eval "$as_ac_Header=no"
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 ac_res=`eval echo '${'$as_ac_Header'}'`
8718 { echo "$as_me:$LINENO: result: $ac_res" >&5
8719 echo "${ECHO_T}$ac_res" >&6; }
8720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8721 cat >>confdefs.h <<_ACEOF
8722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8731 for ac_header in dlfcn.h
8733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 ac_res=`eval echo '${'$as_ac_Header'}'`
8741 { echo "$as_me:$LINENO: result: $ac_res" >&5
8742 echo "${ECHO_T}$ac_res" >&6; }
8744 # Is the header compilable?
8745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8747 cat >conftest.$ac_ext <<_ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 $ac_includes_default
8754 #include <$ac_header>
8756 rm -f conftest.$ac_objext
8757 if { (ac_try="$ac_compile"
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_compile") 2>conftest.er1
8765 grep -v '^ *+' conftest.er1 >conftest.err
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8771 { (case "(($ac_try" in
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_try") 2>&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; } &&
8780 { ac_try='test -s conftest.$ac_objext'
8781 { (case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_try") 2>&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_header_compiler=yes
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 ac_header_compiler=no
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8800 echo "${ECHO_T}$ac_header_compiler" >&6; }
8802 # Is the header present?
8803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8805 cat >conftest.$ac_ext <<_ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811 #include <$ac_header>
8813 if { (ac_try="$ac_cpp conftest.$ac_ext"
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8821 grep -v '^ *+' conftest.er1 >conftest.err
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } >/dev/null; then
8826 if test -s conftest.err; then
8827 ac_cpp_err=$ac_c_preproc_warn_flag
8828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8835 if test -z "$ac_cpp_err"; then
8836 ac_header_preproc=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 ac_header_preproc=no
8844 rm -f conftest.err conftest.$ac_ext
8845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8846 echo "${ECHO_T}$ac_header_preproc" >&6; }
8848 # So? What about this header?
8849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8855 ac_header_preproc=yes
8858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8871 ## ------------------------------------ ##
8872 ## Report this to http://llvm.org/bugs/ ##
8873 ## ------------------------------------ ##
8875 ) | sed "s/^/$as_me: WARNING: /" >&2
8878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 eval "$as_ac_Header=\$ac_header_preproc"
8885 ac_res=`eval echo '${'$as_ac_Header'}'`
8886 { echo "$as_me:$LINENO: result: $ac_res" >&5
8887 echo "${ECHO_T}$ac_res" >&6; }
8890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8891 cat >>confdefs.h <<_ACEOF
8892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8899 # Check whether --enable-ltdl-install was given.
8900 if test "${enable_ltdl_install+set}" = set; then
8901 enableval=$enable_ltdl_install;
8907 if test x"${enable_ltdl_install-no}" != xno; then
8909 INSTALL_LTDL_FALSE='#'
8911 INSTALL_LTDL_TRUE='#'
8917 if test x"${enable_ltdl_convenience-no}" != xno; then
8918 CONVENIENCE_LTDL_TRUE=
8919 CONVENIENCE_LTDL_FALSE='#'
8921 CONVENIENCE_LTDL_TRUE='#'
8922 CONVENIENCE_LTDL_FALSE=
8926 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8929 libname_spec='lib$name'
8937 shlibpath_overrides_runpath=unknown
8939 dynamic_linker="$host_os ld.so"
8940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8941 if test "$GCC" = yes; then
8942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8943 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8944 # if the path contains ";" then we assume it to be the separator
8945 # otherwise default to the standard path separator (i.e. ":") - it is
8946 # assumed that no part of a normal pathname contains ";" but that should
8947 # okay in the real world where ";" in dirpaths is itself problematic.
8948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8955 need_lib_prefix=unknown
8956 hardcode_into_libs=no
8958 # when you set need_version to no, make sure it does not cause -set_version
8959 # flags to be left without arguments
8960 need_version=unknown
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8966 shlibpath_var=LIBPATH
8968 # AIX 3 has no versioning support, so we append a major version to the name.
8969 soname_spec='${libname}${release}${shared_ext}$major'
8976 hardcode_into_libs=yes
8977 if test "$host_cpu" = ia64; then
8978 # AIX 5 supports IA64
8979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8980 shlibpath_var=LD_LIBRARY_PATH
8982 # With GCC up to 2.95.x, collect2 would create an import file
8983 # for dependence libraries. The import file would start with
8984 # the line `#! .'. This would cause the generated library to
8985 # depend on `.', always an invalid library. This was fixed in
8986 # development snapshots of GCC prior to 3.0.
8988 aix4 | aix4.[01] | aix4.[01].*)
8989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8991 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8999 # soname into executable. Probably we can add versioning support to
9000 # collect2, so additional links can be useful in future.
9001 if test "$aix_use_runtimelinking" = yes; then
9002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9003 # instead of lib<name>.a to let people know that these are not
9004 # typical AIX shared libraries.
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 # We preserve .a as extension for shared libraries through AIX4.2
9008 # and later when we are not doing run time linking.
9009 library_names_spec='${libname}${release}.a $libname.a'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9012 shlibpath_var=LIBPATH
9017 library_names_spec='$libname.ixlibrary $libname.a'
9018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9019 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'
9023 library_names_spec='${libname}${shared_ext}'
9024 dynamic_linker="$host_os ld.so"
9025 shlibpath_var=LIBRARY_PATH
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9037 # the default ld.so.conf also contains /usr/contrib/lib and
9038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9039 # libtool to hard-code these into programs
9042 cygwin* | mingw* | pw32*)
9043 version_type=windows
9048 case $GCC,$host_os in
9049 yes,cygwin* | yes,mingw* | yes,pw32*)
9050 library_names_spec='$libname.dll.a'
9051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9052 postinstall_cmds='base_file=`basename \${file}`~
9053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9054 dldir=$destdir/`dirname \$dlpath`~
9055 test -d \$dldir || mkdir -p \$dldir~
9056 $install_prog $dir/$dlname \$dldir/$dlname~
9057 chmod a+x \$dldir/$dlname'
9058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9059 dlpath=$dir/\$dldll~
9061 shlibpath_overrides_runpath=yes
9065 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9066 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9067 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9070 # MinGW DLLs use traditional 'lib' prefix
9071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9072 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9073 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9074 # It is most probably a Windows format PATH printed by
9075 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9076 # path with ; separators, and with drive letters. We can handle the
9077 # drive letters (cygwin fileutils understands them), so leave them,
9078 # especially as we might pass files found there to a mingw objdump,
9079 # which wouldn't understand a cygwinified path. Ahh.
9080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9086 # pw32 DLLs use 'pw' prefix rather than 'lib'
9087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9093 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9096 dynamic_linker='Win32 ld.exe'
9097 # FIXME: first we should search . and the directory the executable is in
9101 darwin* | rhapsody*)
9102 dynamic_linker="$host_os dyld"
9106 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9107 soname_spec='${libname}${release}${major}$shared_ext'
9108 shlibpath_overrides_runpath=yes
9109 shlibpath_var=DYLD_LIBRARY_PATH
9110 shrext_cmds='.dylib'
9111 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9112 if test "$GCC" = yes; then
9113 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"`
9115 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 shlibpath_var=LD_LIBRARY_PATH
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 shlibpath_overrides_runpath=no
9141 hardcode_into_libs=yes
9142 dynamic_linker='GNU ld.so'
9145 freebsd* | dragonfly*)
9146 # DragonFly does not have aout. When/if they implement a new
9147 # versioning mechanism, adjust this.
9148 if test -x /usr/bin/objformat; then
9149 objformat=`/usr/bin/objformat`
9152 freebsd[123].*) objformat=aout ;;
9156 version_type=freebsd-$objformat
9157 case $version_type in
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9168 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9173 freebsd3.[01]* | freebsdelf3.[01]*)
9174 shlibpath_overrides_runpath=yes
9175 hardcode_into_libs=yes
9177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9179 shlibpath_overrides_runpath=no
9180 hardcode_into_libs=yes
9182 freebsd*) # from 4.6 on
9183 shlibpath_overrides_runpath=yes
9184 hardcode_into_libs=yes
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 hardcode_into_libs=yes
9199 hpux9* | hpux10* | hpux11*)
9200 # Give a soname corresponding to the major version so that dld.sl refuses to
9201 # link against other versions.
9208 hardcode_into_libs=yes
9209 dynamic_linker="$host_os dld.so"
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 if test "X$HPUX_IA64_MODE" = X32; then
9215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9223 hardcode_into_libs=yes
9224 dynamic_linker="$host_os dld.sl"
9225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9234 dynamic_linker="$host_os dld.sl"
9235 shlibpath_var=SHLIB_PATH
9236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9242 postinstall_cmds='chmod 555 $lib'
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 shlibpath_overrides_runpath=no
9254 hardcode_into_libs=yes
9257 irix5* | irix6* | nonstopux*)
9259 nonstopux*) version_type=nonstopux ;;
9261 if test "$lt_cv_prog_gnu_ld" = yes; then
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9272 irix5* | nonstopux*)
9276 case $LD in # libtool.m4 will add one of these switches to LD
9277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9278 libsuff= shlibsuff= libmagic=32-bit;;
9279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9280 libsuff=32 shlibsuff=N32 libmagic=N32;;
9281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9283 *) libsuff= shlibsuff= libmagic=never-match;;
9287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9288 shlibpath_overrides_runpath=no
9289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9291 hardcode_into_libs=yes
9294 # No shared lib support for Linux oldld, aout, or coff.
9295 linux*oldld* | linux*aout* | linux*coff*)
9299 # This must be Linux ELF.
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=no
9309 # This implies no fast_install, which is unacceptable.
9310 # Some rework will be needed to allow for fast_install
9311 # before this can be enabled.
9312 hardcode_into_libs=yes
9314 # Append ld.so.conf contents to the search path
9315 if test -f /etc/ld.so.conf; then
9316 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' ' '`
9317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9320 # We used to test for /lib/ld.so.1 and disable shared libraries on
9321 # powerpc, because MkLinux only supported shared libraries with the
9322 # GNU dynamic linker. Since this was broken with cross compilers,
9323 # most powerpc-linux boxes support dynamic linking these days and
9324 # people can always --disable-shared, the test was removed, and we
9325 # assume the GNU/Linux dynamic linker is in use.
9326 dynamic_linker='GNU/Linux ld.so'
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 shlibpath_overrides_runpath=no
9337 hardcode_into_libs=yes
9338 dynamic_linker='GNU ld.so'
9345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9348 dynamic_linker='NetBSD (a.out) ld.so'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 dynamic_linker='NetBSD ld.elf_so'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 shlibpath_overrides_runpath=yes
9356 hardcode_into_libs=yes
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 shlibpath_overrides_runpath=yes
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371 soname_spec='${libname}${release}${shared_ext}$major'
9372 shlibpath_var=LD_LIBRARY_PATH
9373 shlibpath_overrides_runpath=yes
9378 sys_lib_dlsearch_path_spec="/usr/lib"
9380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9382 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9383 *) need_version=no ;;
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9390 openbsd2.[89] | openbsd2.[89].*)
9391 shlibpath_overrides_runpath=no
9394 shlibpath_overrides_runpath=yes
9398 shlibpath_overrides_runpath=yes
9403 libname_spec='$name'
9406 library_names_spec='$libname${shared_ext} $libname.a'
9407 dynamic_linker='OS/2 ld.exe'
9408 shlibpath_var=LIBPATH
9411 osf3* | osf4* | osf5*)
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 shlibpath_var=LD_LIBRARY_PATH
9418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427 soname_spec='${libname}${release}${shared_ext}$major'
9428 shlibpath_var=LD_LIBRARY_PATH
9429 shlibpath_overrides_runpath=yes
9430 hardcode_into_libs=yes
9431 # ldd complains unless libraries are executable
9432 postinstall_cmds='chmod +x $lib'
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 shlibpath_overrides_runpath=yes
9441 if test "$with_gnu_ld" = yes; then
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 case $host_vendor in
9454 shlibpath_overrides_runpath=no
9456 export_dynamic_flag_spec='${wl}-Blargedynsym'
9457 runpath_var=LD_RUN_PATH
9465 shlibpath_overrides_runpath=no
9466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9472 if test -d /usr/nec ;then
9474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9475 soname_spec='$libname${shared_ext}.$major'
9476 shlibpath_var=LD_LIBRARY_PATH
9480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9481 version_type=freebsd-elf
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 hardcode_into_libs=yes
9488 if test "$with_gnu_ld" = yes; then
9489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9490 shlibpath_overrides_runpath=no
9492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9493 shlibpath_overrides_runpath=yes
9496 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9500 sys_lib_dlsearch_path_spec='/usr/lib'
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506 soname_spec='${libname}${release}${shared_ext}$major'
9507 shlibpath_var=LD_LIBRARY_PATH
9514 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9515 echo "${ECHO_T}$dynamic_linker" >&6; }
9516 test "$dynamic_linker" = no && can_build_shared=no
9518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9519 if test "$GCC" = yes; then
9520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9524 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9525 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9526 if test "${libltdl_cv_shlibext+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 eval libltdl_cv_shlibext=$shrext_cmds
9534 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9535 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9536 if test -n "$libltdl_cv_shlibext"; then
9538 cat >>confdefs.h <<_ACEOF
9539 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9545 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9546 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9547 if test "${libltdl_cv_sys_search_path+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9552 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9553 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9554 if test -n "$libltdl_cv_sys_search_path"; then
9556 for dir in $libltdl_cv_sys_search_path; do
9557 if test -z "$sys_search_path"; then
9558 sys_search_path="$dir"
9560 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9564 cat >>confdefs.h <<_ACEOF
9565 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9570 { echo "$as_me:$LINENO: checking for objdir" >&5
9571 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9572 if test "${libltdl_cv_objdir+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 libltdl_cv_objdir="$objdir"
9576 if test -n "$objdir"; then
9579 rm -f .libs 2>/dev/null
9580 mkdir .libs 2>/dev/null
9581 if test -d .libs; then
9582 libltdl_cv_objdir=.libs
9584 # MS-DOS does not allow filenames that begin with a dot.
9585 libltdl_cv_objdir=_libs
9587 rmdir .libs 2>/dev/null
9591 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9592 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9594 cat >>confdefs.h <<_ACEOF
9595 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9603 # Check for command to grab the raw symbol name followed by C symbol from nm.
9604 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9605 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9606 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 # These are sane defaults that work on at least a few old systems.
9611 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9613 # Character class describing NM global symbol codes.
9614 symcode='[BCDEGRST]'
9616 # Regexp to match symbols that can be accessed directly from C.
9617 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9619 # Transform an extracted symbol line into a proper C declaration
9620 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9622 # Transform an extracted symbol line into symbol name and symbol address
9623 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'"
9625 # Define system-specific variables.
9630 cygwin* | mingw* | pw32*)
9631 symcode='[ABCDGISTW]'
9633 hpux*) # Its linker distinguishes data from code symbols
9634 if test "$host_cpu" = ia64; then
9635 symcode='[ABCDEGRST]'
9637 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9638 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'"
9641 if test "$host_cpu" = ia64; then
9642 symcode='[ABCDGIRSTW]'
9643 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9644 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'"
9648 symcode='[BCDEGRST]'
9651 symcode='[BCDEGQRST]'
9662 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9670 # Handle CRLF in mingw tool chain
9674 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9678 # If we're using GNU nm, then use its standard symbol codes.
9679 case `$NM -V 2>&1` in
9680 *GNU* | *'with BFD'*)
9681 symcode='[ABCDGIRSTW]' ;;
9684 # Try without a prefix undercore, then with it.
9685 for ac_symprfx in "" "_"; do
9687 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9688 symxfrm="\\1 $ac_symprfx\\2 \\2"
9690 # Write the raw and C identifiers.
9691 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9693 # Check to see that the pipe works correctly.
9697 cat > conftest.$ac_ext <<EOF
9702 void nm_test_func(){}
9706 int main(){nm_test_var='a';nm_test_func();return(0);}
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710 (eval $ac_compile) 2>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; then
9714 # Now try to grab the symbols.
9716 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9717 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } && test -s "$nlist"; then
9721 # Try sorting and uniquifying the output.
9722 if sort "$nlist" | uniq > "$nlist"T; then
9723 mv -f "$nlist"T "$nlist"
9728 # Make sure that we snagged all the symbols we need.
9729 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9730 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9731 cat <<EOF > conftest.$ac_ext
9737 # Now generate the symbol file.
9738 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9740 cat <<EOF >> conftest.$ac_ext
9741 #if defined (__STDC__) && __STDC__
9742 # define lt_ptr_t void *
9744 # define lt_ptr_t char *
9748 /* The mapping between symbol names and symbols. */
9753 lt_preloaded_symbols[] =
9756 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9757 cat <<\EOF >> conftest.$ac_ext
9765 # Now try linking the two files.
9766 mv conftest.$ac_objext conftstm.$ac_objext
9767 lt_save_LIBS="$LIBS"
9768 lt_save_CFLAGS="$CFLAGS"
9769 LIBS="conftstm.$ac_objext"
9770 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9778 LIBS="$lt_save_LIBS"
9779 CFLAGS="$lt_save_CFLAGS"
9781 echo "cannot find nm_test_func in $nlist" >&5
9784 echo "cannot find nm_test_var in $nlist" >&5
9787 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9790 echo "$progname: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9793 rm -f conftest* conftst*
9795 # Do not use the global_symbol_pipe unless it works.
9796 if test "$pipe_works" = yes; then
9799 lt_cv_sys_global_symbol_pipe=
9805 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9806 lt_cv_sys_global_symbol_to_cdecl=
9808 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9809 { echo "$as_me:$LINENO: result: failed" >&5
9810 echo "${ECHO_T}failed" >&6; }
9812 { echo "$as_me:$LINENO: result: ok" >&5
9813 echo "${ECHO_T}ok" >&6; }
9817 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9818 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9819 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9823 libltdl_cv_preloaded_symbols=yes
9825 libltdl_cv_preloaded_symbols=no
9829 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9830 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9831 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9833 cat >>confdefs.h <<\_ACEOF
9834 #define HAVE_PRELOADED_SYMBOLS 1
9842 ac_cpp='$CPP $CPPFLAGS'
9843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9848 { echo "$as_me:$LINENO: checking for shl_load" >&5
9849 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9850 if test "${ac_cv_func_shl_load+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9861 #define shl_load innocuous_shl_load
9863 /* System header to define __stub macros and hopefully few prototypes,
9864 which can conflict with char shl_load (); below.
9865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9866 <limits.h> exists even on freestanding compilers. */
9869 # include <limits.h>
9871 # include <assert.h>
9876 /* Override any GCC internal prototype to avoid an error.
9877 Use char because int might match the return type of a GCC
9878 builtin and then its argument prototype would still apply. */
9883 /* The GNU C library defines this for functions which it implements
9884 to always fail with ENOSYS. Some functions are actually named
9885 something starting with __ and the normal name is an alias. */
9886 #if defined __stub_shl_load || defined __stub___shl_load
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (ac_try="$ac_link"
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_link") 2>conftest.er1
9907 grep -v '^ *+' conftest.er1 >conftest.err
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest$ac_exeext'
9923 { (case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_try") 2>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 ac_cv_func_shl_load=yes
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 ac_cv_func_shl_load=no
9940 rm -f core conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9943 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9944 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9945 if test $ac_cv_func_shl_load = yes; then
9947 cat >>confdefs.h <<\_ACEOF
9948 #define HAVE_SHL_LOAD 1
9952 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9953 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9954 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 ac_check_lib_save_LIBS=$LIBS
9959 cat >conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9966 /* Override any GCC internal prototype to avoid an error.
9967 Use char because int might match the return type of a GCC
9968 builtin and then its argument prototype would still apply. */
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (ac_try="$ac_link"
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_link") 2>conftest.er1
9990 grep -v '^ *+' conftest.er1 >conftest.err
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9996 { (case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_try") 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; } &&
10005 { ac_try='test -s conftest$ac_exeext'
10006 { (case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_try") 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_lib_dld_shl_load=yes
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 ac_cv_lib_dld_shl_load=no
10023 rm -f core conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_lib_save_LIBS
10027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10028 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10029 if test $ac_cv_lib_dld_shl_load = yes; then
10031 cat >>confdefs.h <<\_ACEOF
10032 #define HAVE_SHL_LOAD 1
10035 LIBADD_DL="$LIBADD_DL -ldld"
10037 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10038 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10039 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 ac_check_lib_save_LIBS=$LIBS
10044 cat >conftest.$ac_ext <<_ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10051 /* Override any GCC internal prototype to avoid an error.
10052 Use char because int might match the return type of a GCC
10053 builtin and then its argument prototype would still apply. */
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_link") 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10081 { (case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_try") 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; } &&
10090 { ac_try='test -s conftest$ac_exeext'
10091 { (case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_try") 2>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 ac_cv_lib_dl_dlopen=yes
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10105 ac_cv_lib_dl_dlopen=no
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LIBS=$ac_check_lib_save_LIBS
10112 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10113 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10114 if test $ac_cv_lib_dl_dlopen = yes; then
10116 cat >>confdefs.h <<\_ACEOF
10117 #define HAVE_LIBDL 1
10120 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10129 # include <dlfcn.h>
10140 rm -f conftest.$ac_objext conftest$ac_exeext
10141 if { (ac_try="$ac_link"
10142 case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_link") 2>conftest.er1
10149 grep -v '^ *+' conftest.er1 >conftest.err
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10155 { (case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160 (eval "$ac_try") 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; }; then
10175 cat >>confdefs.h <<\_ACEOF
10176 #define HAVE_LIBDL 1
10178 libltdl_cv_func_dlopen="yes"
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10184 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10185 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 ac_check_lib_save_LIBS=$LIBS
10189 LIBS="-lsvld $LIBS"
10190 cat >conftest.$ac_ext <<_ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10197 /* Override any GCC internal prototype to avoid an error.
10198 Use char because int might match the return type of a GCC
10199 builtin and then its argument prototype would still apply. */
10212 rm -f conftest.$ac_objext conftest$ac_exeext
10213 if { (ac_try="$ac_link"
10214 case "(($ac_try" in
10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216 *) ac_try_echo=$ac_try;;
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219 (eval "$ac_link") 2>conftest.er1
10221 grep -v '^ *+' conftest.er1 >conftest.err
10223 cat conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } &&
10226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10227 { (case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_try") 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; } &&
10236 { ac_try='test -s conftest$ac_exeext'
10237 { (case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_try") 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10246 ac_cv_lib_svld_dlopen=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_cv_lib_svld_dlopen=no
10254 rm -f core conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10259 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10260 if test $ac_cv_lib_svld_dlopen = yes; then
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_LIBDL 1
10266 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10268 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10269 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10270 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 ac_check_lib_save_LIBS=$LIBS
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10282 /* Override any GCC internal prototype to avoid an error.
10283 Use char because int might match the return type of a GCC
10284 builtin and then its argument prototype would still apply. */
10292 return dld_link ();
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (ac_try="$ac_link"
10299 case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_link") 2>conftest.er1
10306 grep -v '^ *+' conftest.er1 >conftest.err
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10312 { (case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_try") 2>&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; } &&
10321 { ac_try='test -s conftest$ac_exeext'
10322 { (case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_try") 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 ac_cv_lib_dld_dld_link=yes
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ac_cv_lib_dld_dld_link=no
10339 rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341 LIBS=$ac_check_lib_save_LIBS
10343 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10344 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10345 if test $ac_cv_lib_dld_dld_link = yes; then
10347 cat >>confdefs.h <<\_ACEOF
10351 LIBADD_DL="$LIBADD_DL -ldld"
10353 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10354 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10355 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 cat >conftest.$ac_ext <<_ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10366 #define _dyld_func_lookup innocuous__dyld_func_lookup
10368 /* System header to define __stub macros and hopefully few prototypes,
10369 which can conflict with char _dyld_func_lookup (); below.
10370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10371 <limits.h> exists even on freestanding compilers. */
10374 # include <limits.h>
10376 # include <assert.h>
10379 #undef _dyld_func_lookup
10381 /* Override any GCC internal prototype to avoid an error.
10382 Use char because int might match the return type of a GCC
10383 builtin and then its argument prototype would still apply. */
10387 char _dyld_func_lookup ();
10388 /* The GNU C library defines this for functions which it implements
10389 to always fail with ENOSYS. Some functions are actually named
10390 something starting with __ and the normal name is an alias. */
10391 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10398 return _dyld_func_lookup ();
10403 rm -f conftest.$ac_objext conftest$ac_exeext
10404 if { (ac_try="$ac_link"
10405 case "(($ac_try" in
10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_link") 2>conftest.er1
10412 grep -v '^ *+' conftest.er1 >conftest.err
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10418 { (case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_try") 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; } &&
10427 { ac_try='test -s conftest$ac_exeext'
10428 { (case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_try") 2>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; }; then
10437 ac_cv_func__dyld_func_lookup=yes
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 ac_cv_func__dyld_func_lookup=no
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10448 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10449 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10450 if test $ac_cv_func__dyld_func_lookup = yes; then
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_DYLD 1
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10479 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10481 lt_save_LIBS="$LIBS"
10482 LIBS="$LIBS $LIBADD_DL"
10484 for ac_func in dlerror
10486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 cat >conftest.$ac_ext <<_ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10500 #define $ac_func innocuous_$ac_func
10502 /* System header to define __stub macros and hopefully few prototypes,
10503 which can conflict with char $ac_func (); below.
10504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10505 <limits.h> exists even on freestanding compilers. */
10508 # include <limits.h>
10510 # include <assert.h>
10515 /* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10522 /* The GNU C library defines this for functions which it implements
10523 to always fail with ENOSYS. Some functions are actually named
10524 something starting with __ and the normal name is an alias. */
10525 #if defined __stub_$ac_func || defined __stub___$ac_func
10532 return $ac_func ();
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (ac_try="$ac_link"
10539 case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_link") 2>conftest.er1
10546 grep -v '^ *+' conftest.er1 >conftest.err
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10552 { (case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_try") 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; } &&
10561 { ac_try='test -s conftest$ac_exeext'
10562 { (case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_try") 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; }; then
10571 eval "$as_ac_var=yes"
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 eval "$as_ac_var=no"
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10582 ac_res=`eval echo '${'$as_ac_var'}'`
10583 { echo "$as_me:$LINENO: result: $ac_res" >&5
10584 echo "${ECHO_T}$ac_res" >&6; }
10585 if test `eval echo '${'$as_ac_var'}'` = yes; then
10586 cat >>confdefs.h <<_ACEOF
10587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10593 LIBS="$lt_save_LIBS"
10596 ac_cpp='$CPP $CPPFLAGS'
10597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10603 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10604 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10605 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 ac_cv_sys_symbol_underscore=no
10609 cat > conftest.$ac_ext <<EOF
10610 void nm_test_func(){}
10611 int main(){nm_test_func;return 0;}
10613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10614 (eval $ac_compile) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; then
10618 # Now try to grab the symbols.
10619 ac_nlist=conftest.nm
10620 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10621 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } && test -s "$ac_nlist"; then
10625 # See whether the symbols have a leading underscore.
10626 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10627 ac_cv_sys_symbol_underscore=yes
10629 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10632 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10636 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10639 echo "configure: failed program was:" >&5
10645 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10646 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10649 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10650 if test x"$libltdl_cv_func_dlopen" = xyes ||
10651 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10652 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10653 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10654 if test "${libltdl_cv_need_uscore+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 libltdl_cv_need_uscore=unknown
10659 LIBS="$LIBS $LIBADD_DL"
10660 if test "$cross_compiling" = yes; then :
10661 libltdl_cv_need_uscore=cross
10663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10664 lt_status=$lt_dlunknown
10665 cat > conftest.$ac_ext <<EOF
10666 #line 10666 "configure"
10667 #include "confdefs.h"
10676 # define LT_DLGLOBAL RTLD_GLOBAL
10679 # define LT_DLGLOBAL DL_GLOBAL
10681 # define LT_DLGLOBAL 0
10685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10686 find out it does not work in some platform. */
10687 #ifndef LT_DLLAZY_OR_NOW
10689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10692 # define LT_DLLAZY_OR_NOW DL_LAZY
10695 # define LT_DLLAZY_OR_NOW RTLD_NOW
10698 # define LT_DLLAZY_OR_NOW DL_NOW
10700 # define LT_DLLAZY_OR_NOW 0
10708 extern "C" void exit (int);
10711 void fnord() { int i=42;}
10714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10715 int status = $lt_dlunknown;
10719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10721 /* dlclose (self); */
10729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10730 (eval $ac_link) 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10734 (./conftest; exit; ) >&5 2>/dev/null
10736 case x$lt_status in
10737 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10738 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10739 x$lt_dlunknown|x*) ;;
10742 # compilation failed
10751 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10752 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10756 if test x"$libltdl_cv_need_uscore" = xyes; then
10758 cat >>confdefs.h <<\_ACEOF
10759 #define NEED_USCORE 1
10765 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10766 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10767 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 # PORTME does your system automatically load deplibs for dlopen?
10771 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10772 # For now, we just catch OSes we know something about -- in the
10773 # future, we'll try test this programmatically.
10774 libltdl_cv_sys_dlopen_deplibs=unknown
10776 aix3*|aix4.1.*|aix4.2.*)
10777 # Unknown whether this is true for these versions of AIX, but
10778 # we want this `case' here to explicitly catch those versions.
10779 libltdl_cv_sys_dlopen_deplibs=unknown
10782 libltdl_cv_sys_dlopen_deplibs=yes
10785 # Assuming the user has installed a libdl from somewhere, this is true
10786 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10787 libltdl_cv_sys_dlopen_deplibs=yes
10789 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10790 # GNU and its variants, using gnu ld.so (Glibc)
10791 libltdl_cv_sys_dlopen_deplibs=yes
10794 libltdl_cv_sys_dlopen_deplibs=yes
10797 libltdl_cv_sys_dlopen_deplibs=yes
10799 irix[12345]*|irix6.[01]*)
10800 # Catch all versions of IRIX before 6.2, and indicate that we don't
10801 # know how it worked for any of those versions.
10802 libltdl_cv_sys_dlopen_deplibs=unknown
10805 # The case above catches anything before 6.2, and it's known that
10806 # at 6.2 and later dlopen does load deplibs.
10807 libltdl_cv_sys_dlopen_deplibs=yes
10810 libltdl_cv_sys_dlopen_deplibs=yes
10813 libltdl_cv_sys_dlopen_deplibs=yes
10816 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10817 # it did *not* use an RPATH in a shared library to find objects the
10818 # library depends on, so we explicitly say `no'.
10819 libltdl_cv_sys_dlopen_deplibs=no
10821 osf5.0|osf5.0a|osf5.1)
10822 # dlopen *does* load deplibs and with the right loader patch applied
10823 # it even uses RPATH in a shared library to search for shared objects
10824 # that the library depends on, but there's no easy way to know if that
10825 # patch is installed. Since this is the case, all we can really
10826 # say is unknown -- it depends on the patch being installed. If
10827 # it is, this changes to `yes'. Without it, it would be `no'.
10828 libltdl_cv_sys_dlopen_deplibs=unknown
10831 # the two cases above should catch all versions of osf <= 5.1. Read
10832 # the comments above for what we know about them.
10833 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10834 # is used to find them so we can finally say `yes'.
10835 libltdl_cv_sys_dlopen_deplibs=yes
10838 libltdl_cv_sys_dlopen_deplibs=yes
10840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10841 libltdl_cv_sys_dlopen_deplibs=yes
10846 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10847 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10848 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10850 cat >>confdefs.h <<\_ACEOF
10851 #define LTDL_DLOPEN_DEPLIBS 1
10857 for ac_header in argz.h
10859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 ac_res=`eval echo '${'$as_ac_Header'}'`
10867 { echo "$as_me:$LINENO: result: $ac_res" >&5
10868 echo "${ECHO_T}$ac_res" >&6; }
10870 # Is the header compilable?
10871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10873 cat >conftest.$ac_ext <<_ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 $ac_includes_default
10880 #include <$ac_header>
10882 rm -f conftest.$ac_objext
10883 if { (ac_try="$ac_compile"
10884 case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_compile") 2>conftest.er1
10891 grep -v '^ *+' conftest.er1 >conftest.err
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
10896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; } &&
10906 { ac_try='test -s conftest.$ac_objext'
10907 { (case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_try") 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_header_compiler=yes
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 ac_header_compiler=no
10924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10926 echo "${ECHO_T}$ac_header_compiler" >&6; }
10928 # Is the header present?
10929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10931 cat >conftest.$ac_ext <<_ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 #include <$ac_header>
10939 if { (ac_try="$ac_cpp conftest.$ac_ext"
10940 case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10947 grep -v '^ *+' conftest.er1 >conftest.err
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } >/dev/null; then
10952 if test -s conftest.err; then
10953 ac_cpp_err=$ac_c_preproc_warn_flag
10954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10961 if test -z "$ac_cpp_err"; then
10962 ac_header_preproc=yes
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ac_header_preproc=no
10970 rm -f conftest.err conftest.$ac_ext
10971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10972 echo "${ECHO_T}$ac_header_preproc" >&6; }
10974 # So? What about this header?
10975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10981 ac_header_preproc=yes
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10997 ## ------------------------------------ ##
10998 ## Report this to http://llvm.org/bugs/ ##
10999 ## ------------------------------------ ##
11001 ) | sed "s/^/$as_me: WARNING: /" >&2
11004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 eval "$as_ac_Header=\$ac_header_preproc"
11011 ac_res=`eval echo '${'$as_ac_Header'}'`
11012 { echo "$as_me:$LINENO: result: $ac_res" >&5
11013 echo "${ECHO_T}$ac_res" >&6; }
11016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11017 cat >>confdefs.h <<_ACEOF
11018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11026 { echo "$as_me:$LINENO: checking for error_t" >&5
11027 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11028 if test "${ac_cv_type_error_t+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 cat >conftest.$ac_ext <<_ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11041 typedef error_t ac__type_new_;
11045 if ((ac__type_new_ *) 0)
11047 if (sizeof (ac__type_new_))
11053 rm -f conftest.$ac_objext
11054 if { (ac_try="$ac_compile"
11055 case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_compile") 2>conftest.er1
11062 grep -v '^ *+' conftest.er1 >conftest.err
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
11067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11068 { (case "(($ac_try" in
11069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070 *) ac_try_echo=$ac_try;;
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_try") 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try='test -s conftest.$ac_objext'
11078 { (case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_try") 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 ac_cv_type_error_t=yes
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 ac_cv_type_error_t=no
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11098 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11099 if test $ac_cv_type_error_t = yes; then
11101 cat >>confdefs.h <<_ACEOF
11102 #define HAVE_ERROR_T 1
11108 cat >>confdefs.h <<\_ACEOF
11109 #define error_t int
11120 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 cat >conftest.$ac_ext <<_ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11136 #define $ac_func innocuous_$ac_func
11138 /* System header to define __stub macros and hopefully few prototypes,
11139 which can conflict with char $ac_func (); below.
11140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11141 <limits.h> exists even on freestanding compilers. */
11144 # include <limits.h>
11146 # include <assert.h>
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11158 /* The GNU C library defines this for functions which it implements
11159 to always fail with ENOSYS. Some functions are actually named
11160 something starting with __ and the normal name is an alias. */
11161 #if defined __stub_$ac_func || defined __stub___$ac_func
11168 return $ac_func ();
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (ac_try="$ac_link"
11175 case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_link") 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest$ac_exeext'
11198 { (case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_try") 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 eval "$as_ac_var=yes"
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 eval "$as_ac_var=no"
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11218 ac_res=`eval echo '${'$as_ac_var'}'`
11219 { echo "$as_me:$LINENO: result: $ac_res" >&5
11220 echo "${ECHO_T}$ac_res" >&6; }
11221 if test `eval echo '${'$as_ac_var'}'` = yes; then
11222 cat >>confdefs.h <<_ACEOF
11223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11251 for ac_header in errno.h malloc.h memory.h unistd.h
11253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 ac_res=`eval echo '${'$as_ac_Header'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11264 # Is the header compilable?
11265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 $ac_includes_default
11274 #include <$ac_header>
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_compile") 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_header_compiler=yes
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 ac_header_compiler=no
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320 echo "${ECHO_T}$ac_header_compiler" >&6; }
11322 # Is the header present?
11323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 #include <$ac_header>
11333 if { (ac_try="$ac_cpp conftest.$ac_ext"
11334 case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11341 grep -v '^ *+' conftest.er1 >conftest.err
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } >/dev/null; then
11346 if test -s conftest.err; then
11347 ac_cpp_err=$ac_c_preproc_warn_flag
11348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11355 if test -z "$ac_cpp_err"; then
11356 ac_header_preproc=yes
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 ac_header_preproc=no
11364 rm -f conftest.err conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366 echo "${ECHO_T}$ac_header_preproc" >&6; }
11368 # So? What about this header?
11369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375 ac_header_preproc=yes
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11391 ## ------------------------------------ ##
11392 ## Report this to http://llvm.org/bugs/ ##
11393 ## ------------------------------------ ##
11395 ) | sed "s/^/$as_me: WARNING: /" >&2
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 eval "$as_ac_Header=\$ac_header_preproc"
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11420 for ac_header in mach-o/dyld.h
11422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 ac_res=`eval echo '${'$as_ac_Header'}'`
11430 { echo "$as_me:$LINENO: result: $ac_res" >&5
11431 echo "${ECHO_T}$ac_res" >&6; }
11433 # Is the header compilable?
11434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 $ac_includes_default
11443 #include <$ac_header>
11445 rm -f conftest.$ac_objext
11446 if { (ac_try="$ac_compile"
11447 case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_compile") 2>conftest.er1
11454 grep -v '^ *+' conftest.er1 >conftest.err
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11460 { (case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_try") 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; } &&
11469 { ac_try='test -s conftest.$ac_objext'
11470 { (case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_try") 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 ac_header_compiler=yes
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 ac_header_compiler=no
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11489 echo "${ECHO_T}$ac_header_compiler" >&6; }
11491 # Is the header present?
11492 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11494 cat >conftest.$ac_ext <<_ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500 #include <$ac_header>
11502 if { (ac_try="$ac_cpp conftest.$ac_ext"
11503 case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11510 grep -v '^ *+' conftest.er1 >conftest.err
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } >/dev/null; then
11515 if test -s conftest.err; then
11516 ac_cpp_err=$ac_c_preproc_warn_flag
11517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11524 if test -z "$ac_cpp_err"; then
11525 ac_header_preproc=yes
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11530 ac_header_preproc=no
11533 rm -f conftest.err conftest.$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11535 echo "${ECHO_T}$ac_header_preproc" >&6; }
11537 # So? What about this header?
11538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11544 ac_header_preproc=yes
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11560 ## ------------------------------------ ##
11561 ## Report this to http://llvm.org/bugs/ ##
11562 ## ------------------------------------ ##
11564 ) | sed "s/^/$as_me: WARNING: /" >&2
11567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 eval "$as_ac_Header=\$ac_header_preproc"
11574 ac_res=`eval echo '${'$as_ac_Header'}'`
11575 { echo "$as_me:$LINENO: result: $ac_res" >&5
11576 echo "${ECHO_T}$ac_res" >&6; }
11579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11580 cat >>confdefs.h <<_ACEOF
11581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592 for ac_func in closedir opendir readdir
11594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 cat >conftest.$ac_ext <<_ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11608 #define $ac_func innocuous_$ac_func
11610 /* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11616 # include <limits.h>
11618 # include <assert.h>
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11630 /* The GNU C library defines this for functions which it implements
11631 to always fail with ENOSYS. Some functions are actually named
11632 something starting with __ and the normal name is an alias. */
11633 #if defined __stub_$ac_func || defined __stub___$ac_func
11640 return $ac_func ();
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (ac_try="$ac_link"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660 { (case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_try") 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest$ac_exeext'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 eval "$as_ac_var=yes"
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 eval "$as_ac_var=no"
11687 rm -f core conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11690 ac_res=`eval echo '${'$as_ac_var'}'`
11691 { echo "$as_me:$LINENO: result: $ac_res" >&5
11692 echo "${ECHO_T}$ac_res" >&6; }
11693 if test `eval echo '${'$as_ac_var'}'` = yes; then
11694 cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11703 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11704 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11717 if test "$GCC" != "yes" && test "$ICC" != "yes"
11719 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11720 echo "$as_me: error: gcc|icc required but not found" >&2;}
11721 { (exit 1); exit 1; }; }
11724 if test "$GXX" != "yes" && test "$IXX" != "yes"
11726 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11727 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11728 { (exit 1); exit 1; }; }
11731 if test "$GCC" = "yes"
11733 cat >conftest.$ac_ext <<_ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11741 #if !defined(__GNUC__) || __GNUC__ < 3
11742 #error Unsupported GCC version
11747 rm -f conftest.$ac_objext
11748 if { (ac_try="$ac_compile"
11749 case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_compile") 2>conftest.er1
11756 grep -v '^ *+' conftest.er1 >conftest.err
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; } &&
11771 { ac_try='test -s conftest.$ac_objext'
11772 { (case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_try") 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11787 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11788 { (exit 1); exit 1; }; }
11791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 if test -z "$llvm_cv_gnu_make_command"
11796 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11797 echo "$as_me: error: GNU Make required but not found" >&2;}
11798 { (exit 1); exit 1; }; }
11801 { echo "$as_me:$LINENO: result: ok" >&5
11802 echo "${ECHO_T}ok" >&6; }
11804 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11805 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11806 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11808 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11810 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11814 NO_MAYBE_UNINITIALIZED=
11815 if test "$GXX" = "yes"
11817 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11819 if test -z "$NO_MAYBE_UNINITIALIZED"
11821 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11825 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11826 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11829 # Check whether --with-python was given.
11830 if test "${with_python+set}" = set; then
11831 withval=$with_python; PYTHON="$withval"
11835 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11836 { echo "$as_me:$LINENO: checking for python" >&5
11837 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11838 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11839 echo "${ECHO_T}user defined: $with_python" >&6; }
11841 if test -n "$PYTHON" ; then
11842 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11843 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11846 # Extract the first word of "python python2 python26", so it can be a program name with args.
11847 set dummy python python2 python26; ac_word=$2
11848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11850 if test "${ac_cv_path_PYTHON+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11874 echo "${ECHO_T}not found" >&6; }
11875 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11876 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11877 { (exit 1); exit 1; }; }"
11881 PYTHON=$ac_cv_path_PYTHON
11882 if test -n "$PYTHON"; then
11883 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11884 echo "${ECHO_T}$PYTHON" >&6; }
11886 { echo "$as_me:$LINENO: result: no" >&5
11887 echo "${ECHO_T}no" >&6; }
11893 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11894 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11895 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11896 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11897 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11898 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11899 if test "$ac_python_version_major" -gt "2" || \
11900 (test "$ac_python_version_major" -eq "2" && \
11901 test "$ac_python_version_minor" -ge "5") ; then
11902 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11903 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11905 { echo "$as_me:$LINENO: result: not found" >&5
11906 echo "${ECHO_T}not found" >&6; }
11907 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11908 See \`config.log' for more details." >&5
11909 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11910 See \`config.log' for more details." >&2;}
11911 { (exit 1); exit 1; }; }
11916 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11917 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11918 if test "${ac_cv_lib_m_sin+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 ac_check_lib_save_LIBS=$LIBS
11923 cat >conftest.$ac_ext <<_ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11930 /* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_link") 2>conftest.er1
11954 grep -v '^ *+' conftest.er1 >conftest.err
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11960 { (case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_try") 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_try") 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 ac_cv_lib_m_sin=yes
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11987 rm -f core conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11991 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11992 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11993 if test $ac_cv_lib_m_sin = yes; then
11994 cat >>confdefs.h <<_ACEOF
11995 #define HAVE_LIBM 1
12002 if test "$llvm_cv_os_type" = "MingW" ; then
12004 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12005 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12006 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 ac_check_lib_save_LIBS=$LIBS
12010 LIBS="-limagehlp $LIBS"
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_link") 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12042 { (case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_try") 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest$ac_exeext'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_lib_imagehlp_main=yes
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ac_cv_lib_imagehlp_main=no
12069 rm -f core conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext conftest.$ac_ext
12071 LIBS=$ac_check_lib_save_LIBS
12073 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12074 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12075 if test $ac_cv_lib_imagehlp_main = yes; then
12076 cat >>confdefs.h <<_ACEOF
12077 #define HAVE_LIBIMAGEHLP 1
12080 LIBS="-limagehlp $LIBS"
12085 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12086 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12087 if test "${ac_cv_lib_psapi_main+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-lpsapi $LIBS"
12092 cat >conftest.$ac_ext <<_ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (ac_try="$ac_link"
12110 case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_link") 2>conftest.er1
12117 grep -v '^ *+' conftest.er1 >conftest.err
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest$ac_exeext'
12133 { (case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_try") 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 ac_cv_lib_psapi_main=yes
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12147 ac_cv_lib_psapi_main=no
12150 rm -f core conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12154 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12155 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12156 if test $ac_cv_lib_psapi_main = yes; then
12157 cat >>confdefs.h <<_ACEOF
12158 #define HAVE_LIBPSAPI 1
12161 LIBS="-lpsapi $LIBS"
12166 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12167 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12168 if test "${ac_cv_lib_shell32_main+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 ac_check_lib_save_LIBS=$LIBS
12172 LIBS="-lshell32 $LIBS"
12173 cat >conftest.$ac_ext <<_ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (ac_try="$ac_link"
12191 case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196 (eval "$ac_link") 2>conftest.er1
12198 grep -v '^ *+' conftest.er1 >conftest.err
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest$ac_exeext'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 ac_cv_lib_shell32_main=yes
12225 echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228 ac_cv_lib_shell32_main=no
12231 rm -f core conftest.err conftest.$ac_objext \
12232 conftest$ac_exeext conftest.$ac_ext
12233 LIBS=$ac_check_lib_save_LIBS
12235 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12236 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12237 if test $ac_cv_lib_shell32_main = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_LIBSHELL32 1
12242 LIBS="-lshell32 $LIBS"
12248 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12249 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12250 if test "${ac_cv_search_dlopen+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 ac_func_search_save_LIBS=$LIBS
12254 cat >conftest.$ac_ext <<_ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12276 for ac_lib in '' dl; do
12277 if test -z "$ac_lib"; then
12278 ac_res="none required"
12281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (ac_try="$ac_link"
12285 case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_link") 2>conftest.er1
12292 grep -v '^ *+' conftest.er1 >conftest.err
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12298 { (case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_try") 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest$ac_exeext'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_search_dlopen=$ac_res
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12325 rm -f core conftest.err conftest.$ac_objext \
12327 if test "${ac_cv_search_dlopen+set}" = set; then
12331 if test "${ac_cv_search_dlopen+set}" = set; then
12334 ac_cv_search_dlopen=no
12336 rm conftest.$ac_ext
12337 LIBS=$ac_func_search_save_LIBS
12339 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12340 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12341 ac_res=$ac_cv_search_dlopen
12342 if test "$ac_res" != no; then
12343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12345 cat >>confdefs.h <<\_ACEOF
12346 #define HAVE_DLOPEN 1
12350 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12351 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12355 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12356 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12357 if test "${ac_cv_search_clock_gettime+set}" = set; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 ac_func_search_save_LIBS=$LIBS
12361 cat >conftest.$ac_ext <<_ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h. */
12368 /* Override any GCC internal prototype to avoid an error.
12369 Use char because int might match the return type of a GCC
12370 builtin and then its argument prototype would still apply. */
12374 char clock_gettime ();
12378 return clock_gettime ();
12383 for ac_lib in '' rt; do
12384 if test -z "$ac_lib"; then
12385 ac_res="none required"
12388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_link") 2>conftest.er1
12399 grep -v '^ *+' conftest.er1 >conftest.err
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12405 { (case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_try") 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest$ac_exeext'
12415 { (case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_try") 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_search_clock_gettime=$ac_res
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12432 rm -f core conftest.err conftest.$ac_objext \
12434 if test "${ac_cv_search_clock_gettime+set}" = set; then
12438 if test "${ac_cv_search_clock_gettime+set}" = set; then
12441 ac_cv_search_clock_gettime=no
12443 rm conftest.$ac_ext
12444 LIBS=$ac_func_search_save_LIBS
12446 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12447 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12448 ac_res=$ac_cv_search_clock_gettime
12449 if test "$ac_res" != no; then
12450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12455 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12456 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12457 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12458 if test "${ac_cv_search_setupterm+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 ac_func_search_save_LIBS=$LIBS
12462 cat >conftest.$ac_ext <<_ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12479 return setupterm ();
12484 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12485 if test -z "$ac_lib"; then
12486 ac_res="none required"
12489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12491 rm -f conftest.$ac_objext conftest$ac_exeext
12492 if { (ac_try="$ac_link"
12493 case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_link") 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12506 { (case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_try") 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest$ac_exeext'
12516 { (case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_try") 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_cv_search_setupterm=$ac_res
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12533 rm -f core conftest.err conftest.$ac_objext \
12535 if test "${ac_cv_search_setupterm+set}" = set; then
12539 if test "${ac_cv_search_setupterm+set}" = set; then
12542 ac_cv_search_setupterm=no
12544 rm conftest.$ac_ext
12545 LIBS=$ac_func_search_save_LIBS
12547 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12548 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12549 ac_res=$ac_cv_search_setupterm
12550 if test "$ac_res" != no; then
12551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12553 cat >>confdefs.h <<\_ACEOF
12554 #define HAVE_TERMINFO 1
12561 if test "$llvm_cv_enable_libffi" = "yes" ; then
12562 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12563 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12564 if test "${ac_cv_search_ffi_call+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 ac_func_search_save_LIBS=$LIBS
12568 cat >conftest.$ac_ext <<_ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12575 /* Override any GCC internal prototype to avoid an error.
12576 Use char because int might match the return type of a GCC
12577 builtin and then its argument prototype would still apply. */
12585 return ffi_call ();
12590 for ac_lib in '' ffi; do
12591 if test -z "$ac_lib"; then
12592 ac_res="none required"
12595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12597 rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (ac_try="$ac_link"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_link") 2>conftest.er1
12606 grep -v '^ *+' conftest.er1 >conftest.err
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
12611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12612 { (case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_try") 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; } &&
12621 { ac_try='test -s conftest$ac_exeext'
12622 { (case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_try") 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_cv_search_ffi_call=$ac_res
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12639 rm -f core conftest.err conftest.$ac_objext \
12641 if test "${ac_cv_search_ffi_call+set}" = set; then
12645 if test "${ac_cv_search_ffi_call+set}" = set; then
12648 ac_cv_search_ffi_call=no
12650 rm conftest.$ac_ext
12651 LIBS=$ac_func_search_save_LIBS
12653 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12654 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12655 ac_res=$ac_cv_search_ffi_call
12656 if test "$ac_res" != no; then
12657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12659 cat >>confdefs.h <<\_ACEOF
12660 #define HAVE_FFI_CALL 1
12664 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12665 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12666 { (exit 1); exit 1; }; }
12671 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12672 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12673 if test "${ac_cv_search_mallinfo+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 ac_func_search_save_LIBS=$LIBS
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12694 return mallinfo ();
12699 for ac_lib in '' malloc; do
12700 if test -z "$ac_lib"; then
12701 ac_res="none required"
12704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12706 rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (ac_try="$ac_link"
12708 case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_link") 2>conftest.er1
12715 grep -v '^ *+' conftest.er1 >conftest.err
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12721 { (case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_try") 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; } &&
12730 { ac_try='test -s conftest$ac_exeext'
12731 { (case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_try") 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_cv_search_mallinfo=$ac_res
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12748 rm -f core conftest.err conftest.$ac_objext \
12750 if test "${ac_cv_search_mallinfo+set}" = set; then
12754 if test "${ac_cv_search_mallinfo+set}" = set; then
12757 ac_cv_search_mallinfo=no
12759 rm conftest.$ac_ext
12760 LIBS=$ac_func_search_save_LIBS
12762 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12763 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12764 ac_res=$ac_cv_search_mallinfo
12765 if test "$ac_res" != no; then
12766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12768 cat >>confdefs.h <<\_ACEOF
12769 #define HAVE_MALLINFO 1
12775 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12777 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12778 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12779 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lpthread $LIBS"
12784 cat >conftest.$ac_ext <<_ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12797 char pthread_mutex_init ();
12801 return pthread_mutex_init ();
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (ac_try="$ac_link"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_link") 2>conftest.er1
12815 grep -v '^ *+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
12820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12821 { (case "(($ac_try" in
12822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823 *) ac_try_echo=$ac_try;;
12825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12826 (eval "$ac_try") 2>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } &&
12830 { ac_try='test -s conftest$ac_exeext'
12831 { (case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836 (eval "$ac_try") 2>&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_cv_lib_pthread_pthread_mutex_init=yes
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 ac_cv_lib_pthread_pthread_mutex_init=no
12848 rm -f core conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12850 LIBS=$ac_check_lib_save_LIBS
12852 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12853 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12854 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12855 cat >>confdefs.h <<_ACEOF
12856 #define HAVE_LIBPTHREAD 1
12859 LIBS="-lpthread $LIBS"
12863 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12864 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12865 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 ac_func_search_save_LIBS=$LIBS
12869 cat >conftest.$ac_ext <<_ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12876 /* Override any GCC internal prototype to avoid an error.
12877 Use char because int might match the return type of a GCC
12878 builtin and then its argument prototype would still apply. */
12882 char pthread_mutex_lock ();
12886 return pthread_mutex_lock ();
12891 for ac_lib in '' pthread; do
12892 if test -z "$ac_lib"; then
12893 ac_res="none required"
12896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12898 rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (ac_try="$ac_link"
12900 case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_link") 2>conftest.er1
12907 grep -v '^ *+' conftest.er1 >conftest.err
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12913 { (case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_try") 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; } &&
12922 { ac_try='test -s conftest$ac_exeext'
12923 { (case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_try") 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_search_pthread_mutex_lock=$ac_res
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12940 rm -f core conftest.err conftest.$ac_objext \
12942 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12946 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12949 ac_cv_search_pthread_mutex_lock=no
12951 rm conftest.$ac_ext
12952 LIBS=$ac_func_search_save_LIBS
12954 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12955 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12956 ac_res=$ac_cv_search_pthread_mutex_lock
12957 if test "$ac_res" != no; then
12958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12960 cat >>confdefs.h <<\_ACEOF
12961 #define HAVE_PTHREAD_MUTEX_LOCK 1
12966 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12967 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12968 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 ac_func_search_save_LIBS=$LIBS
12972 cat >conftest.$ac_ext <<_ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12979 /* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12985 char pthread_rwlock_init ();
12989 return pthread_rwlock_init ();
12994 for ac_lib in '' pthread; do
12995 if test -z "$ac_lib"; then
12996 ac_res="none required"
12999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13001 rm -f conftest.$ac_objext conftest$ac_exeext
13002 if { (ac_try="$ac_link"
13003 case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_link") 2>conftest.er1
13010 grep -v '^ *+' conftest.er1 >conftest.err
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } &&
13015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13016 { (case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_try") 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try='test -s conftest$ac_exeext'
13026 { (case "(($ac_try" in
13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031 (eval "$ac_try") 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 ac_cv_search_pthread_rwlock_init=$ac_res
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13043 rm -f core conftest.err conftest.$ac_objext \
13045 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13049 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13052 ac_cv_search_pthread_rwlock_init=no
13054 rm conftest.$ac_ext
13055 LIBS=$ac_func_search_save_LIBS
13057 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13058 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13059 ac_res=$ac_cv_search_pthread_rwlock_init
13060 if test "$ac_res" != no; then
13061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13063 cat >>confdefs.h <<\_ACEOF
13064 #define HAVE_PTHREAD_RWLOCK_INIT 1
13069 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13070 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13071 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 ac_func_search_save_LIBS=$LIBS
13075 cat >conftest.$ac_ext <<_ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13082 /* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply. */
13088 char pthread_getspecific ();
13092 return pthread_getspecific ();
13097 for ac_lib in '' pthread; do
13098 if test -z "$ac_lib"; then
13099 ac_res="none required"
13102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13104 rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest$ac_exeext'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_cv_search_pthread_getspecific=$ac_res
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13146 rm -f core conftest.err conftest.$ac_objext \
13148 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13152 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13155 ac_cv_search_pthread_getspecific=no
13157 rm conftest.$ac_ext
13158 LIBS=$ac_func_search_save_LIBS
13160 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13161 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13162 ac_res=$ac_cv_search_pthread_getspecific
13163 if test "$ac_res" != no; then
13164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13166 cat >>confdefs.h <<\_ACEOF
13167 #define HAVE_PTHREAD_GETSPECIFIC 1
13174 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13176 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13177 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13178 if test "${ac_cv_lib_z_compress2+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 ac_check_lib_save_LIBS=$LIBS
13183 cat >conftest.$ac_ext <<_ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13190 /* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13200 return compress2 ();
13205 rm -f conftest.$ac_objext conftest$ac_exeext
13206 if { (ac_try="$ac_link"
13207 case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_link") 2>conftest.er1
13214 grep -v '^ *+' conftest.er1 >conftest.err
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; } &&
13229 { ac_try='test -s conftest$ac_exeext'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_cv_lib_z_compress2=yes
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13244 ac_cv_lib_z_compress2=no
13247 rm -f core conftest.err conftest.$ac_objext \
13248 conftest$ac_exeext conftest.$ac_ext
13249 LIBS=$ac_check_lib_save_LIBS
13251 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13252 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13253 if test $ac_cv_lib_z_compress2 = yes; then
13254 cat >>confdefs.h <<_ACEOF
13255 #define HAVE_LIBZ 1
13265 # Check whether --with-udis86 was given.
13266 if test "${with_udis86+set}" = set; then
13267 withval=$with_udis86;
13272 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13275 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13276 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13277 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 ac_check_lib_save_LIBS=$LIBS
13281 LIBS="-ludis86 $LIBS"
13282 cat >conftest.$ac_ext <<_ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h. */
13289 /* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (ac_try="$ac_link"
13306 case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_link") 2>conftest.er1
13313 grep -v '^ *+' conftest.er1 >conftest.err
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13319 { (case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_try") 2>&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; } &&
13328 { ac_try='test -s conftest$ac_exeext'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_cv_lib_udis86_ud_init=yes
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13343 ac_cv_lib_udis86_ud_init=no
13346 rm -f core conftest.err conftest.$ac_objext \
13347 conftest$ac_exeext conftest.$ac_ext
13348 LIBS=$ac_check_lib_save_LIBS
13350 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13351 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13352 if test $ac_cv_lib_udis86_ud_init = yes; then
13353 cat >>confdefs.h <<_ACEOF
13354 #define HAVE_LIBUDIS86 1
13357 LIBS="-ludis86 $LIBS"
13361 echo "Error! You need to have libudis86 around."
13373 cat >>confdefs.h <<_ACEOF
13374 #define USE_UDIS86 $USE_UDIS86
13379 # Check whether --with-oprofile was given.
13380 if test "${with_oprofile+set}" = set; then
13381 withval=$with_oprofile;
13385 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13386 no) llvm_cv_oppath=
13389 *) llvm_cv_oppath="${withval}/lib/oprofile"
13390 CPPFLAGS="-I${withval}/include";;
13392 case $llvm_cv_os_type in
13394 if test -n "$llvm_cv_oppath" ; then
13395 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13396 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13397 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13398 if test "${ac_cv_search_bfd_init+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 ac_func_search_save_LIBS=$LIBS
13402 cat >conftest.$ac_ext <<_ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13409 /* Override any GCC internal prototype to avoid an error.
13410 Use char because int might match the return type of a GCC
13411 builtin and then its argument prototype would still apply. */
13419 return bfd_init ();
13424 for ac_lib in '' bfd; do
13425 if test -z "$ac_lib"; then
13426 ac_res="none required"
13429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13431 rm -f conftest.$ac_objext conftest$ac_exeext
13432 if { (ac_try="$ac_link"
13433 case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_link") 2>conftest.er1
13440 grep -v '^ *+' conftest.er1 >conftest.err
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } &&
13445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13446 { (case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_try") 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; } &&
13455 { ac_try='test -s conftest$ac_exeext'
13456 { (case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_try") 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465 ac_cv_search_bfd_init=$ac_res
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13473 rm -f core conftest.err conftest.$ac_objext \
13475 if test "${ac_cv_search_bfd_init+set}" = set; then
13479 if test "${ac_cv_search_bfd_init+set}" = set; then
13482 ac_cv_search_bfd_init=no
13484 rm conftest.$ac_ext
13485 LIBS=$ac_func_search_save_LIBS
13487 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13488 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13489 ac_res=$ac_cv_search_bfd_init
13490 if test "$ac_res" != no; then
13491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13495 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13496 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13497 if test "${ac_cv_search_op_open_agent+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 ac_func_search_save_LIBS=$LIBS
13501 cat >conftest.$ac_ext <<_ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13508 /* Override any GCC internal prototype to avoid an error.
13509 Use char because int might match the return type of a GCC
13510 builtin and then its argument prototype would still apply. */
13514 char op_open_agent ();
13518 return op_open_agent ();
13523 for ac_lib in '' opagent; do
13524 if test -z "$ac_lib"; then
13525 ac_res="none required"
13528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13530 rm -f conftest.$ac_objext conftest$ac_exeext
13531 if { (ac_try="$ac_link"
13532 case "(($ac_try" in
13533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534 *) ac_try_echo=$ac_try;;
13536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537 (eval "$ac_link") 2>conftest.er1
13539 grep -v '^ *+' conftest.er1 >conftest.err
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13545 { (case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_try") 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest$ac_exeext'
13555 { (case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_try") 2>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
13564 ac_cv_search_op_open_agent=$ac_res
13566 echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13572 rm -f core conftest.err conftest.$ac_objext \
13574 if test "${ac_cv_search_op_open_agent+set}" = set; then
13578 if test "${ac_cv_search_op_open_agent+set}" = set; then
13581 ac_cv_search_op_open_agent=no
13583 rm conftest.$ac_ext
13584 LIBS=$ac_func_search_save_LIBS
13586 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13587 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13588 ac_res=$ac_cv_search_op_open_agent
13589 if test "$ac_res" != no; then
13590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13594 echo "Error! You need to have libopagent around."
13599 if test "${ac_cv_header_opagent_h+set}" = set; then
13600 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13601 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13602 if test "${ac_cv_header_opagent_h+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13606 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13608 # Is the header compilable?
13609 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13610 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13611 cat >conftest.$ac_ext <<_ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13617 $ac_includes_default
13618 #include <opagent.h>
13620 rm -f conftest.$ac_objext
13621 if { (ac_try="$ac_compile"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_compile") 2>conftest.er1
13629 grep -v '^ *+' conftest.er1 >conftest.err
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635 { (case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_try") 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest.$ac_objext'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_header_compiler=yes
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_header_compiler=no
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13664 echo "${ECHO_T}$ac_header_compiler" >&6; }
13666 # Is the header present?
13667 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13668 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 #include <opagent.h>
13677 if { (ac_try="$ac_cpp conftest.$ac_ext"
13678 case "(($ac_try" in
13679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } >/dev/null; then
13690 if test -s conftest.err; then
13691 ac_cpp_err=$ac_c_preproc_warn_flag
13692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13699 if test -z "$ac_cpp_err"; then
13700 ac_header_preproc=yes
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ac_header_preproc=no
13708 rm -f conftest.err conftest.$ac_ext
13709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13710 echo "${ECHO_T}$ac_header_preproc" >&6; }
13712 # So? What about this header?
13713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13715 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13716 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13718 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13719 ac_header_preproc=yes
13722 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13723 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13725 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13727 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13729 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13731 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13732 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13733 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13735 ## ------------------------------------ ##
13736 ## Report this to http://llvm.org/bugs/ ##
13737 ## ------------------------------------ ##
13739 ) | sed "s/^/$as_me: WARNING: /" >&2
13742 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13743 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13744 if test "${ac_cv_header_opagent_h+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 ac_cv_header_opagent_h=$ac_header_preproc
13749 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13750 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13753 if test $ac_cv_header_opagent_h = yes; then
13757 echo "Error! You need to have opagent.h around."
13765 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13766 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13767 { (exit 1); exit 1; }; } ;;
13778 cat >>confdefs.h <<_ACEOF
13779 #define LLVM_USE_OPROFILE $USE_OPROFILE
13784 # Check whether --with-intel-jitevents was given.
13785 if test "${with_intel_jitevents+set}" = set; then
13786 withval=$with_intel_jitevents;
13788 yes) USE_INTEL_JITEVENTS=1
13790 no) USE_INTEL_JITEVENTS=0
13792 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13793 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13794 { (exit 1); exit 1; }; };;
13797 case $llvm_cv_os_type in
13798 Linux|Win32|Cygwin|MingW) ;;
13799 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13800 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13801 { (exit 1); exit 1; }; };;
13804 case "$llvm_cv_target_arch" in
13806 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13807 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13808 { (exit 1); exit 1; }; };;
13813 USE_INTEL_JITEVENTS=0
13819 cat >>confdefs.h <<_ACEOF
13820 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13824 for ac_prog in xml2-config
13826 # Extract the first word of "$ac_prog", so it can be a program name with args.
13827 set dummy $ac_prog; ac_word=$2
13828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13830 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13833 if test -n "$XML2CONFIG"; then
13834 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
13842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13843 ac_cv_prog_XML2CONFIG="$ac_prog"
13844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13853 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13854 if test -n "$XML2CONFIG"; then
13855 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13856 echo "${ECHO_T}$XML2CONFIG" >&6; }
13858 { echo "$as_me:$LINENO: result: no" >&5
13859 echo "${ECHO_T}no" >&6; }
13863 test -n "$XML2CONFIG" && break
13867 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13868 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13869 if test "x$XML2CONFIG" = "x"; then
13870 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13871 echo "${ECHO_T}xml2-config not found" >&6; }
13873 LIBXML2_INC=`$XML2CONFIG --cflags`
13874 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13875 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13876 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13877 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13878 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 ac_check_lib_save_LIBS=$LIBS
13882 LIBS="-lxml2 $LIBS"
13883 cat >conftest.$ac_ext <<_ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13896 char xmlReadFile ();
13900 return xmlReadFile ();
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (ac_try="$ac_link"
13907 case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_link") 2>conftest.er1
13914 grep -v '^ *+' conftest.er1 >conftest.err
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13920 { (case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_try") 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } &&
13929 { ac_try='test -s conftest$ac_exeext'
13930 { (case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_try") 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_lib_xml2_xmlReadFile=yes
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944 ac_cv_lib_xml2_xmlReadFile=no
13947 rm -f core conftest.err conftest.$ac_objext \
13948 conftest$ac_exeext conftest.$ac_ext
13949 LIBS=$ac_check_lib_save_LIBS
13951 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13952 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13953 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13955 cat >>confdefs.h <<\_ACEOF
13956 #define CLANG_HAVE_LIBXML 1
13959 LIBXML2_LIBS="-lxml2"
13972 ac_header_dirent=no
13973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13974 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13975 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13976 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 cat >conftest.$ac_ext <<_ACEOF
13983 cat confdefs.h >>conftest.$ac_ext
13984 cat >>conftest.$ac_ext <<_ACEOF
13985 /* end confdefs.h. */
13986 #include <sys/types.h>
13998 rm -f conftest.$ac_objext
13999 if { (ac_try="$ac_compile"
14000 case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_compile") 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14013 { (case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_try") 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest.$ac_objext'
14023 { (case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_try") 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 eval "$as_ac_Header=yes"
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037 eval "$as_ac_Header=no"
14040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 ac_res=`eval echo '${'$as_ac_Header'}'`
14043 { echo "$as_me:$LINENO: result: $ac_res" >&5
14044 echo "${ECHO_T}$ac_res" >&6; }
14045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14046 cat >>confdefs.h <<_ACEOF
14047 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14050 ac_header_dirent=$ac_hdr; break
14054 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14055 if test $ac_header_dirent = dirent.h; then
14056 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14057 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14058 if test "${ac_cv_search_opendir+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 ac_func_search_save_LIBS=$LIBS
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14069 /* Override any GCC internal prototype to avoid an error.
14070 Use char because int might match the return type of a GCC
14071 builtin and then its argument prototype would still apply. */
14084 for ac_lib in '' dir; do
14085 if test -z "$ac_lib"; then
14086 ac_res="none required"
14089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (ac_try="$ac_link"
14093 case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_link") 2>conftest.er1
14100 grep -v '^ *+' conftest.er1 >conftest.err
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } &&
14105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14106 { (case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_try") 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest$ac_exeext'
14116 { (case "(($ac_try" in
14117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118 *) ac_try_echo=$ac_try;;
14120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121 (eval "$ac_try") 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 ac_cv_search_opendir=$ac_res
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14133 rm -f core conftest.err conftest.$ac_objext \
14135 if test "${ac_cv_search_opendir+set}" = set; then
14139 if test "${ac_cv_search_opendir+set}" = set; then
14142 ac_cv_search_opendir=no
14144 rm conftest.$ac_ext
14145 LIBS=$ac_func_search_save_LIBS
14147 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14148 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14149 ac_res=$ac_cv_search_opendir
14150 if test "$ac_res" != no; then
14151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14156 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14157 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14158 if test "${ac_cv_search_opendir+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 ac_func_search_save_LIBS=$LIBS
14162 cat >conftest.$ac_ext <<_ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14169 /* Override any GCC internal prototype to avoid an error.
14170 Use char because int might match the return type of a GCC
14171 builtin and then its argument prototype would still apply. */
14184 for ac_lib in '' x; do
14185 if test -z "$ac_lib"; then
14186 ac_res="none required"
14189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14191 rm -f conftest.$ac_objext conftest$ac_exeext
14192 if { (ac_try="$ac_link"
14193 case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_link") 2>conftest.er1
14200 grep -v '^ *+' conftest.er1 >conftest.err
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_try") 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; } &&
14215 { ac_try='test -s conftest$ac_exeext'
14216 { (case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_try") 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 ac_cv_search_opendir=$ac_res
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14233 rm -f core conftest.err conftest.$ac_objext \
14235 if test "${ac_cv_search_opendir+set}" = set; then
14239 if test "${ac_cv_search_opendir+set}" = set; then
14242 ac_cv_search_opendir=no
14244 rm conftest.$ac_ext
14245 LIBS=$ac_func_search_save_LIBS
14247 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14248 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14249 ac_res=$ac_cv_search_opendir
14250 if test "$ac_res" != no; then
14251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14257 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14258 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14259 if test "${ac_cv_header_mmap_anon+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 ac_cpp='$CPP $CPPFLAGS'
14264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14268 cat >conftest.$ac_ext <<_ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14274 #include <sys/mman.h>
14275 #include <unistd.h>
14280 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14285 rm -f conftest.$ac_objext
14286 if { (ac_try="$ac_compile"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_compile") 2>conftest.er1
14294 grep -v '^ *+' conftest.er1 >conftest.err
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
14299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try='test -s conftest.$ac_objext'
14310 { (case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_try") 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_cv_header_mmap_anon=yes
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 ac_cv_header_mmap_anon=no
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14329 ac_cpp='$CPP $CPPFLAGS'
14330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14336 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14337 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14338 if test "$ac_cv_header_mmap_anon" = yes; then
14340 cat >>confdefs.h <<\_ACEOF
14341 #define HAVE_MMAP_ANONYMOUS 1
14346 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14347 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14348 if test "${ac_cv_header_stat_broken+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 #include <sys/types.h>
14358 #include <sys/stat.h>
14360 #if defined S_ISBLK && defined S_IFDIR
14361 # if S_ISBLK (S_IFDIR)
14366 #if defined S_ISBLK && defined S_IFCHR
14367 # if S_ISBLK (S_IFCHR)
14372 #if defined S_ISLNK && defined S_IFREG
14373 # if S_ISLNK (S_IFREG)
14378 #if defined S_ISSOCK && defined S_IFREG
14379 # if S_ISSOCK (S_IFREG)
14385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14386 $EGREP "You lose" >/dev/null 2>&1; then
14387 ac_cv_header_stat_broken=yes
14389 ac_cv_header_stat_broken=no
14394 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14395 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14396 if test $ac_cv_header_stat_broken = yes; then
14398 cat >>confdefs.h <<\_ACEOF
14399 #define STAT_MACROS_BROKEN 1
14404 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14405 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14406 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 cat >conftest.$ac_ext <<_ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14415 #include <sys/types.h>
14416 #include <sys/wait.h>
14417 #ifndef WEXITSTATUS
14418 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14421 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14429 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_compile") 2>conftest.er1
14443 grep -v '^ *+' conftest.er1 >conftest.err
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14449 { (case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_try") 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest.$ac_objext'
14459 { (case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_try") 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 ac_cv_header_sys_wait_h=yes
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_cv_header_sys_wait_h=no
14476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14479 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14480 if test $ac_cv_header_sys_wait_h = yes; then
14482 cat >>confdefs.h <<\_ACEOF
14483 #define HAVE_SYS_WAIT_H 1
14488 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14489 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14490 if test "${ac_cv_header_time+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 cat >conftest.$ac_ext <<_ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 #include <sys/types.h>
14500 #include <sys/time.h>
14506 if ((struct tm *) 0)
14512 rm -f conftest.$ac_objext
14513 if { (ac_try="$ac_compile"
14514 case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_compile") 2>conftest.er1
14521 grep -v '^ *+' conftest.er1 >conftest.err
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
14526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14527 { (case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_try") 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; } &&
14536 { ac_try='test -s conftest.$ac_objext'
14537 { (case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_try") 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_header_time=yes
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551 ac_cv_header_time=no
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14557 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14558 if test $ac_cv_header_time = yes; then
14560 cat >>confdefs.h <<\_ACEOF
14561 #define TIME_WITH_SYS_TIME 1
14568 ac_cpp='$CXXCPP $CPPFLAGS'
14569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14574 ac_cpp='$CXXCPP $CPPFLAGS'
14575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14578 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14579 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14580 if test -z "$CXXCPP"; then
14581 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 # Double quotes because CXXCPP needs to be expanded
14585 for CXXCPP in "$CXX -E" "/lib/cpp"
14587 ac_preproc_ok=false
14588 for ac_cxx_preproc_warn_flag in '' yes
14590 # Use a header file that comes with gcc, so configuring glibc
14591 # with a fresh cross-compiler works.
14592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14593 # <limits.h> exists even on freestanding compilers.
14594 # On the NeXT, cc -E runs the code through the compiler's parser,
14595 # not just through cpp. "Syntax error" is here to catch this case.
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14603 # include <limits.h>
14605 # include <assert.h>
14609 if { (ac_try="$ac_cpp conftest.$ac_ext"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14617 grep -v '^ *+' conftest.er1 >conftest.err
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } >/dev/null; then
14622 if test -s conftest.err; then
14623 ac_cpp_err=$ac_cxx_preproc_warn_flag
14624 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14631 if test -z "$ac_cpp_err"; then
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14637 # Broken: fails on valid input.
14641 rm -f conftest.err conftest.$ac_ext
14643 # OK, works on sane cases. Now check whether nonexistent headers
14644 # can be detected and how.
14645 cat >conftest.$ac_ext <<_ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 #include <ac_nonexistent.h>
14653 if { (ac_try="$ac_cpp conftest.$ac_ext"
14654 case "(($ac_try" in
14655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656 *) ac_try_echo=$ac_try;;
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14661 grep -v '^ *+' conftest.er1 >conftest.err
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } >/dev/null; then
14666 if test -s conftest.err; then
14667 ac_cpp_err=$ac_cxx_preproc_warn_flag
14668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14675 if test -z "$ac_cpp_err"; then
14676 # Broken: success on invalid input.
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 # Passes both tests.
14687 rm -f conftest.err conftest.$ac_ext
14690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14691 rm -f conftest.err conftest.$ac_ext
14692 if $ac_preproc_ok; then
14697 ac_cv_prog_CXXCPP=$CXXCPP
14700 CXXCPP=$ac_cv_prog_CXXCPP
14702 ac_cv_prog_CXXCPP=$CXXCPP
14704 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14705 echo "${ECHO_T}$CXXCPP" >&6; }
14706 ac_preproc_ok=false
14707 for ac_cxx_preproc_warn_flag in '' yes
14709 # Use a header file that comes with gcc, so configuring glibc
14710 # with a fresh cross-compiler works.
14711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14712 # <limits.h> exists even on freestanding compilers.
14713 # On the NeXT, cc -E runs the code through the compiler's parser,
14714 # not just through cpp. "Syntax error" is here to catch this case.
14715 cat >conftest.$ac_ext <<_ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h. */
14722 # include <limits.h>
14724 # include <assert.h>
14728 if { (ac_try="$ac_cpp conftest.$ac_ext"
14729 case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14736 grep -v '^ *+' conftest.er1 >conftest.err
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } >/dev/null; then
14741 if test -s conftest.err; then
14742 ac_cpp_err=$ac_cxx_preproc_warn_flag
14743 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14750 if test -z "$ac_cpp_err"; then
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 # Broken: fails on valid input.
14760 rm -f conftest.err conftest.$ac_ext
14762 # OK, works on sane cases. Now check whether nonexistent headers
14763 # can be detected and how.
14764 cat >conftest.$ac_ext <<_ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 #include <ac_nonexistent.h>
14772 if { (ac_try="$ac_cpp conftest.$ac_ext"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } >/dev/null; then
14785 if test -s conftest.err; then
14786 ac_cpp_err=$ac_cxx_preproc_warn_flag
14787 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14794 if test -z "$ac_cpp_err"; then
14795 # Broken: success on invalid input.
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 # Passes both tests.
14806 rm -f conftest.err conftest.$ac_ext
14809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14810 rm -f conftest.err conftest.$ac_ext
14811 if $ac_preproc_ok; then
14814 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14815 See \`config.log' for more details." >&5
14816 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14817 See \`config.log' for more details." >&2;}
14818 { (exit 1); exit 1; }; }
14822 ac_cpp='$CXXCPP $CPPFLAGS'
14823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14829 for ac_header in cxxabi.h
14831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 ac_res=`eval echo '${'$as_ac_Header'}'`
14839 { echo "$as_me:$LINENO: result: $ac_res" >&5
14840 echo "${ECHO_T}$ac_res" >&6; }
14842 # Is the header compilable?
14843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 $ac_includes_default
14852 #include <$ac_header>
14854 rm -f conftest.$ac_objext
14855 if { (ac_try="$ac_compile"
14856 case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_compile") 2>conftest.er1
14863 grep -v '^ *+' conftest.er1 >conftest.err
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_try") 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_header_compiler=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_header_compiler=no
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14898 echo "${ECHO_T}$ac_header_compiler" >&6; }
14900 # Is the header present?
14901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14903 cat >conftest.$ac_ext <<_ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 #include <$ac_header>
14911 if { (ac_try="$ac_cpp conftest.$ac_ext"
14912 case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14919 grep -v '^ *+' conftest.er1 >conftest.err
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } >/dev/null; then
14924 if test -s conftest.err; then
14925 ac_cpp_err=$ac_cxx_preproc_warn_flag
14926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14933 if test -z "$ac_cpp_err"; then
14934 ac_header_preproc=yes
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ac_header_preproc=no
14942 rm -f conftest.err conftest.$ac_ext
14943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14944 echo "${ECHO_T}$ac_header_preproc" >&6; }
14946 # So? What about this header?
14947 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14953 ac_header_preproc=yes
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14969 ## ------------------------------------ ##
14970 ## Report this to http://llvm.org/bugs/ ##
14971 ## ------------------------------------ ##
14973 ) | sed "s/^/$as_me: WARNING: /" >&2
14976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 eval "$as_ac_Header=\$ac_header_preproc"
14983 ac_res=`eval echo '${'$as_ac_Header'}'`
14984 { echo "$as_me:$LINENO: result: $ac_res" >&5
14985 echo "${ECHO_T}$ac_res" >&6; }
14988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14989 cat >>confdefs.h <<_ACEOF
14990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14998 ac_cpp='$CPP $CPPFLAGS'
14999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15008 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 ac_res=`eval echo '${'$as_ac_Header'}'`
15018 { echo "$as_me:$LINENO: result: $ac_res" >&5
15019 echo "${ECHO_T}$ac_res" >&6; }
15021 # Is the header compilable?
15022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15024 cat >conftest.$ac_ext <<_ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15030 $ac_includes_default
15031 #include <$ac_header>
15033 rm -f conftest.$ac_objext
15034 if { (ac_try="$ac_compile"
15035 case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_compile") 2>conftest.er1
15042 grep -v '^ *+' conftest.er1 >conftest.err
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest.$ac_objext'
15058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_header_compiler=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_header_compiler=no
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6; }
15079 # Is the header present?
15080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15082 cat >conftest.$ac_ext <<_ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <$ac_header>
15090 if { (ac_try="$ac_cpp conftest.$ac_ext"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15098 grep -v '^ *+' conftest.er1 >conftest.err
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } >/dev/null; then
15103 if test -s conftest.err; then
15104 ac_cpp_err=$ac_c_preproc_warn_flag
15105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15112 if test -z "$ac_cpp_err"; then
15113 ac_header_preproc=yes
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 ac_header_preproc=no
15121 rm -f conftest.err conftest.$ac_ext
15122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15123 echo "${ECHO_T}$ac_header_preproc" >&6; }
15125 # So? What about this header?
15126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15132 ac_header_preproc=yes
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15148 ## ------------------------------------ ##
15149 ## Report this to http://llvm.org/bugs/ ##
15150 ## ------------------------------------ ##
15152 ) | sed "s/^/$as_me: WARNING: /" >&2
15155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15160 eval "$as_ac_Header=\$ac_header_preproc"
15162 ac_res=`eval echo '${'$as_ac_Header'}'`
15163 { echo "$as_me:$LINENO: result: $ac_res" >&5
15164 echo "${ECHO_T}$ac_res" >&6; }
15167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15168 cat >>confdefs.h <<_ACEOF
15169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15182 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 ac_res=`eval echo '${'$as_ac_Header'}'`
15192 { echo "$as_me:$LINENO: result: $ac_res" >&5
15193 echo "${ECHO_T}$ac_res" >&6; }
15195 # Is the header compilable?
15196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15198 cat >conftest.$ac_ext <<_ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15204 $ac_includes_default
15205 #include <$ac_header>
15207 rm -f conftest.$ac_objext
15208 if { (ac_try="$ac_compile"
15209 case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214 (eval "$ac_compile") 2>conftest.er1
15216 grep -v '^ *+' conftest.er1 >conftest.err
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15222 { (case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_try") 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_try") 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_header_compiler=yes
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 ac_header_compiler=no
15249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15251 echo "${ECHO_T}$ac_header_compiler" >&6; }
15253 # Is the header present?
15254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15256 cat >conftest.$ac_ext <<_ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15262 #include <$ac_header>
15264 if { (ac_try="$ac_cpp conftest.$ac_ext"
15265 case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15272 grep -v '^ *+' conftest.er1 >conftest.err
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } >/dev/null; then
15277 if test -s conftest.err; then
15278 ac_cpp_err=$ac_c_preproc_warn_flag
15279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15286 if test -z "$ac_cpp_err"; then
15287 ac_header_preproc=yes
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 ac_header_preproc=no
15295 rm -f conftest.err conftest.$ac_ext
15296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15297 echo "${ECHO_T}$ac_header_preproc" >&6; }
15299 # So? What about this header?
15300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15306 ac_header_preproc=yes
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15322 ## ------------------------------------ ##
15323 ## Report this to http://llvm.org/bugs/ ##
15324 ## ------------------------------------ ##
15326 ) | sed "s/^/$as_me: WARNING: /" >&2
15329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 eval "$as_ac_Header=\$ac_header_preproc"
15336 ac_res=`eval echo '${'$as_ac_Header'}'`
15337 { echo "$as_me:$LINENO: result: $ac_res" >&5
15338 echo "${ECHO_T}$ac_res" >&6; }
15341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15342 cat >>confdefs.h <<_ACEOF
15343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15351 for ac_header in utime.h
15353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 ac_res=`eval echo '${'$as_ac_Header'}'`
15361 { echo "$as_me:$LINENO: result: $ac_res" >&5
15362 echo "${ECHO_T}$ac_res" >&6; }
15364 # Is the header compilable?
15365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15367 cat >conftest.$ac_ext <<_ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15373 $ac_includes_default
15374 #include <$ac_header>
15376 rm -f conftest.$ac_objext
15377 if { (ac_try="$ac_compile"
15378 case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_compile") 2>conftest.er1
15385 grep -v '^ *+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15391 { (case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_try") 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_try") 2>&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 ac_header_compiler=yes
15412 echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15415 ac_header_compiler=no
15418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15420 echo "${ECHO_T}$ac_header_compiler" >&6; }
15422 # Is the header present?
15423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15425 cat >conftest.$ac_ext <<_ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15431 #include <$ac_header>
15433 if { (ac_try="$ac_cpp conftest.$ac_ext"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15441 grep -v '^ *+' conftest.er1 >conftest.err
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } >/dev/null; then
15446 if test -s conftest.err; then
15447 ac_cpp_err=$ac_c_preproc_warn_flag
15448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15455 if test -z "$ac_cpp_err"; then
15456 ac_header_preproc=yes
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_header_preproc=no
15464 rm -f conftest.err conftest.$ac_ext
15465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15466 echo "${ECHO_T}$ac_header_preproc" >&6; }
15468 # So? What about this header?
15469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15475 ac_header_preproc=yes
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15491 ## ------------------------------------ ##
15492 ## Report this to http://llvm.org/bugs/ ##
15493 ## ------------------------------------ ##
15495 ) | sed "s/^/$as_me: WARNING: /" >&2
15498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 eval "$as_ac_Header=\$ac_header_preproc"
15505 ac_res=`eval echo '${'$as_ac_Header'}'`
15506 { echo "$as_me:$LINENO: result: $ac_res" >&5
15507 echo "${ECHO_T}$ac_res" >&6; }
15510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15511 cat >>confdefs.h <<_ACEOF
15512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15524 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 ac_res=`eval echo '${'$as_ac_Header'}'`
15534 { echo "$as_me:$LINENO: result: $ac_res" >&5
15535 echo "${ECHO_T}$ac_res" >&6; }
15537 # Is the header compilable?
15538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15540 cat >conftest.$ac_ext <<_ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15546 $ac_includes_default
15547 #include <$ac_header>
15549 rm -f conftest.$ac_objext
15550 if { (ac_try="$ac_compile"
15551 case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_compile") 2>conftest.er1
15558 grep -v '^ *+' conftest.er1 >conftest.err
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } &&
15563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15564 { (case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_try") 2>&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; } &&
15573 { ac_try='test -s conftest.$ac_objext'
15574 { (case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_try") 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
15583 ac_header_compiler=yes
15585 echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.$ac_ext >&5
15588 ac_header_compiler=no
15591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15593 echo "${ECHO_T}$ac_header_compiler" >&6; }
15595 # Is the header present?
15596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 #include <$ac_header>
15606 if { (ac_try="$ac_cpp conftest.$ac_ext"
15607 case "(($ac_try" in
15608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15609 *) ac_try_echo=$ac_try;;
15611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15614 grep -v '^ *+' conftest.er1 >conftest.err
15616 cat conftest.err >&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } >/dev/null; then
15619 if test -s conftest.err; then
15620 ac_cpp_err=$ac_c_preproc_warn_flag
15621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15628 if test -z "$ac_cpp_err"; then
15629 ac_header_preproc=yes
15631 echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 ac_header_preproc=no
15637 rm -f conftest.err conftest.$ac_ext
15638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15639 echo "${ECHO_T}$ac_header_preproc" >&6; }
15641 # So? What about this header?
15642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15648 ac_header_preproc=yes
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15664 ## ------------------------------------ ##
15665 ## Report this to http://llvm.org/bugs/ ##
15666 ## ------------------------------------ ##
15668 ) | sed "s/^/$as_me: WARNING: /" >&2
15671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 eval "$as_ac_Header=\$ac_header_preproc"
15678 ac_res=`eval echo '${'$as_ac_Header'}'`
15679 { echo "$as_me:$LINENO: result: $ac_res" >&5
15680 echo "${ECHO_T}$ac_res" >&6; }
15683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15684 cat >>confdefs.h <<_ACEOF
15685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15695 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 ac_res=`eval echo '${'$as_ac_Header'}'`
15705 { echo "$as_me:$LINENO: result: $ac_res" >&5
15706 echo "${ECHO_T}$ac_res" >&6; }
15708 # Is the header compilable?
15709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 $ac_includes_default
15718 #include <$ac_header>
15720 rm -f conftest.$ac_objext
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_compile") 2>conftest.er1
15729 grep -v '^ *+' conftest.er1 >conftest.err
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15735 { (case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_try") 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_try") 2>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_header_compiler=yes
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 ac_header_compiler=no
15762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764 echo "${ECHO_T}$ac_header_compiler" >&6; }
15766 # Is the header present?
15767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15769 cat >conftest.$ac_ext <<_ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 #include <$ac_header>
15777 if { (ac_try="$ac_cpp conftest.$ac_ext"
15778 case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15785 grep -v '^ *+' conftest.er1 >conftest.err
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } >/dev/null; then
15790 if test -s conftest.err; then
15791 ac_cpp_err=$ac_c_preproc_warn_flag
15792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15799 if test -z "$ac_cpp_err"; then
15800 ac_header_preproc=yes
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_preproc=no
15808 rm -f conftest.err conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15810 echo "${ECHO_T}$ac_header_preproc" >&6; }
15812 # So? What about this header?
15813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15819 ac_header_preproc=yes
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15835 ## ------------------------------------ ##
15836 ## Report this to http://llvm.org/bugs/ ##
15837 ## ------------------------------------ ##
15839 ) | sed "s/^/$as_me: WARNING: /" >&2
15842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 eval "$as_ac_Header=\$ac_header_preproc"
15849 ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15855 cat >>confdefs.h <<_ACEOF
15856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15864 for ac_header in valgrind/valgrind.h
15866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15873 ac_res=`eval echo '${'$as_ac_Header'}'`
15874 { echo "$as_me:$LINENO: result: $ac_res" >&5
15875 echo "${ECHO_T}$ac_res" >&6; }
15877 # Is the header compilable?
15878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15880 cat >conftest.$ac_ext <<_ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 $ac_includes_default
15887 #include <$ac_header>
15889 rm -f conftest.$ac_objext
15890 if { (ac_try="$ac_compile"
15891 case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_compile") 2>conftest.er1
15898 grep -v '^ *+' conftest.er1 >conftest.err
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } &&
15903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15904 { (case "(($ac_try" in
15905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15909 (eval "$ac_try") 2>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; } &&
15913 { ac_try='test -s conftest.$ac_objext'
15914 { (case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_try") 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 ac_header_compiler=yes
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 ac_header_compiler=no
15931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15933 echo "${ECHO_T}$ac_header_compiler" >&6; }
15935 # Is the header present?
15936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15938 cat >conftest.$ac_ext <<_ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 #include <$ac_header>
15946 if { (ac_try="$ac_cpp conftest.$ac_ext"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15954 grep -v '^ *+' conftest.er1 >conftest.err
15956 cat conftest.err >&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } >/dev/null; then
15959 if test -s conftest.err; then
15960 ac_cpp_err=$ac_c_preproc_warn_flag
15961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15968 if test -z "$ac_cpp_err"; then
15969 ac_header_preproc=yes
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974 ac_header_preproc=no
15977 rm -f conftest.err conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15979 echo "${ECHO_T}$ac_header_preproc" >&6; }
15981 # So? What about this header?
15982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15988 ac_header_preproc=yes
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16004 ## ------------------------------------ ##
16005 ## Report this to http://llvm.org/bugs/ ##
16006 ## ------------------------------------ ##
16008 ) | sed "s/^/$as_me: WARNING: /" >&2
16011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 eval "$as_ac_Header=\$ac_header_preproc"
16018 ac_res=`eval echo '${'$as_ac_Header'}'`
16019 { echo "$as_me:$LINENO: result: $ac_res" >&5
16020 echo "${ECHO_T}$ac_res" >&6; }
16023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16024 cat >>confdefs.h <<_ACEOF
16025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16033 for ac_header in fenv.h
16035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 ac_res=`eval echo '${'$as_ac_Header'}'`
16043 { echo "$as_me:$LINENO: result: $ac_res" >&5
16044 echo "${ECHO_T}$ac_res" >&6; }
16046 # Is the header compilable?
16047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16049 cat >conftest.$ac_ext <<_ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16055 $ac_includes_default
16056 #include <$ac_header>
16058 rm -f conftest.$ac_objext
16059 if { (ac_try="$ac_compile"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_compile") 2>conftest.er1
16067 grep -v '^ *+' conftest.er1 >conftest.err
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16073 { (case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_try") 2>&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest.$ac_objext'
16083 { (case "(($ac_try" in
16084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_try") 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_header_compiler=yes
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_header_compiler=no
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16102 echo "${ECHO_T}$ac_header_compiler" >&6; }
16104 # Is the header present?
16105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16107 cat >conftest.$ac_ext <<_ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 #include <$ac_header>
16115 if { (ac_try="$ac_cpp conftest.$ac_ext"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16123 grep -v '^ *+' conftest.er1 >conftest.err
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } >/dev/null; then
16128 if test -s conftest.err; then
16129 ac_cpp_err=$ac_c_preproc_warn_flag
16130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16137 if test -z "$ac_cpp_err"; then
16138 ac_header_preproc=yes
16140 echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16143 ac_header_preproc=no
16146 rm -f conftest.err conftest.$ac_ext
16147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16148 echo "${ECHO_T}$ac_header_preproc" >&6; }
16150 # So? What about this header?
16151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16157 ac_header_preproc=yes
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16173 ## ------------------------------------ ##
16174 ## Report this to http://llvm.org/bugs/ ##
16175 ## ------------------------------------ ##
16177 ) | sed "s/^/$as_me: WARNING: /" >&2
16180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 eval "$as_ac_Header=\$ac_header_preproc"
16187 ac_res=`eval echo '${'$as_ac_Header'}'`
16188 { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16193 cat >>confdefs.h <<_ACEOF
16194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16201 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16202 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16203 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 cat >conftest.$ac_ext <<_ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16217 #ifndef FE_ALL_EXCEPT
16218 char *p = (char *) FE_ALL_EXCEPT;
16226 rm -f conftest.$ac_objext
16227 if { (ac_try="$ac_compile"
16228 case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_compile") 2>conftest.er1
16235 grep -v '^ *+' conftest.er1 >conftest.err
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
16240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16241 { (case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_try") 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest.$ac_objext'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 ac_cv_have_decl_FE_ALL_EXCEPT=no
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16271 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16272 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16274 cat >>confdefs.h <<_ACEOF
16275 #define HAVE_DECL_FE_ALL_EXCEPT 1
16280 cat >>confdefs.h <<_ACEOF
16281 #define HAVE_DECL_FE_ALL_EXCEPT 0
16286 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16287 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16288 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 cat >conftest.$ac_ext <<_ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16303 char *p = (char *) FE_INEXACT;
16311 rm -f conftest.$ac_objext
16312 if { (ac_try="$ac_compile"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_compile") 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } &&
16325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16326 { (case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_try") 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; } &&
16335 { ac_try='test -s conftest.$ac_objext'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ac_cv_have_decl_FE_INEXACT=yes
16347 echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16350 ac_cv_have_decl_FE_INEXACT=no
16353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16355 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16356 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16357 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360 #define HAVE_DECL_FE_INEXACT 1
16365 cat >>confdefs.h <<_ACEOF
16366 #define HAVE_DECL_FE_INEXACT 0
16373 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16375 for ac_header in pthread.h
16377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16382 echo $ECHO_N "(cached) $ECHO_C" >&6
16384 ac_res=`eval echo '${'$as_ac_Header'}'`
16385 { echo "$as_me:$LINENO: result: $ac_res" >&5
16386 echo "${ECHO_T}$ac_res" >&6; }
16388 # Is the header compilable?
16389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16391 cat >conftest.$ac_ext <<_ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 $ac_includes_default
16398 #include <$ac_header>
16400 rm -f conftest.$ac_objext
16401 if { (ac_try="$ac_compile"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_compile") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16415 { (case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_try") 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest.$ac_objext'
16425 { (case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_try") 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ac_header_compiler=yes
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_header_compiler=no
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16444 echo "${ECHO_T}$ac_header_compiler" >&6; }
16446 # Is the header present?
16447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16449 cat >conftest.$ac_ext <<_ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 #include <$ac_header>
16457 if { (ac_try="$ac_cpp conftest.$ac_ext"
16458 case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } >/dev/null; then
16470 if test -s conftest.err; then
16471 ac_cpp_err=$ac_c_preproc_warn_flag
16472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16479 if test -z "$ac_cpp_err"; then
16480 ac_header_preproc=yes
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485 ac_header_preproc=no
16488 rm -f conftest.err conftest.$ac_ext
16489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16490 echo "${ECHO_T}$ac_header_preproc" >&6; }
16492 # So? What about this header?
16493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16499 ac_header_preproc=yes
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16515 ## ------------------------------------ ##
16516 ## Report this to http://llvm.org/bugs/ ##
16517 ## ------------------------------------ ##
16519 ) | sed "s/^/$as_me: WARNING: /" >&2
16522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 eval "$as_ac_Header=\$ac_header_preproc"
16529 ac_res=`eval echo '${'$as_ac_Header'}'`
16530 { echo "$as_me:$LINENO: result: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16535 cat >>confdefs.h <<_ACEOF
16536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16551 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16553 for ac_header in zlib.h
16555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 ac_res=`eval echo '${'$as_ac_Header'}'`
16563 { echo "$as_me:$LINENO: result: $ac_res" >&5
16564 echo "${ECHO_T}$ac_res" >&6; }
16566 # Is the header compilable?
16567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16569 cat >conftest.$ac_ext <<_ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 $ac_includes_default
16576 #include <$ac_header>
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_compile") 2>conftest.er1
16587 grep -v '^ *+' conftest.er1 >conftest.err
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
16603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_header_compiler=yes
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ac_header_compiler=no
16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16622 echo "${ECHO_T}$ac_header_compiler" >&6; }
16624 # Is the header present?
16625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16627 cat >conftest.$ac_ext <<_ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633 #include <$ac_header>
16635 if { (ac_try="$ac_cpp conftest.$ac_ext"
16636 case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16643 grep -v '^ *+' conftest.er1 >conftest.err
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } >/dev/null; then
16648 if test -s conftest.err; then
16649 ac_cpp_err=$ac_c_preproc_warn_flag
16650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16657 if test -z "$ac_cpp_err"; then
16658 ac_header_preproc=yes
16660 echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16663 ac_header_preproc=no
16666 rm -f conftest.err conftest.$ac_ext
16667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16668 echo "${ECHO_T}$ac_header_preproc" >&6; }
16670 # So? What about this header?
16671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16677 ac_header_preproc=yes
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16693 ## ------------------------------------ ##
16694 ## Report this to http://llvm.org/bugs/ ##
16695 ## ------------------------------------ ##
16697 ) | sed "s/^/$as_me: WARNING: /" >&2
16700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 eval "$as_ac_Header=\$ac_header_preproc"
16707 ac_res=`eval echo '${'$as_ac_Header'}'`
16708 { echo "$as_me:$LINENO: result: $ac_res" >&5
16709 echo "${ECHO_T}$ac_res" >&6; }
16712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16713 cat >>confdefs.h <<_ACEOF
16714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16730 if test "$llvm_cv_enable_libffi" = "yes" ; then
16733 for ac_header in ffi.h ffi/ffi.h
16735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16740 echo $ECHO_N "(cached) $ECHO_C" >&6
16742 ac_res=`eval echo '${'$as_ac_Header'}'`
16743 { echo "$as_me:$LINENO: result: $ac_res" >&5
16744 echo "${ECHO_T}$ac_res" >&6; }
16746 # Is the header compilable?
16747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16749 cat >conftest.$ac_ext <<_ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 $ac_includes_default
16756 #include <$ac_header>
16758 rm -f conftest.$ac_objext
16759 if { (ac_try="$ac_compile"
16760 case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_compile") 2>conftest.er1
16767 grep -v '^ *+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773 { (case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_try") 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; } &&
16782 { ac_try='test -s conftest.$ac_objext'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_header_compiler=yes
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 ac_header_compiler=no
16800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16802 echo "${ECHO_T}$ac_header_compiler" >&6; }
16804 # Is the header present?
16805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16807 cat >conftest.$ac_ext <<_ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813 #include <$ac_header>
16815 if { (ac_try="$ac_cpp conftest.$ac_ext"
16816 case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } >/dev/null; then
16828 if test -s conftest.err; then
16829 ac_cpp_err=$ac_c_preproc_warn_flag
16830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16837 if test -z "$ac_cpp_err"; then
16838 ac_header_preproc=yes
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ac_header_preproc=no
16846 rm -f conftest.err conftest.$ac_ext
16847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16848 echo "${ECHO_T}$ac_header_preproc" >&6; }
16850 # So? What about this header?
16851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16857 ac_header_preproc=yes
16860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16873 ## ------------------------------------ ##
16874 ## Report this to http://llvm.org/bugs/ ##
16875 ## ------------------------------------ ##
16877 ) | sed "s/^/$as_me: WARNING: /" >&2
16880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 eval "$as_ac_Header=\$ac_header_preproc"
16887 ac_res=`eval echo '${'$as_ac_Header'}'`
16888 { echo "$as_me:$LINENO: result: $ac_res" >&5
16889 echo "${ECHO_T}$ac_res" >&6; }
16892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16893 cat >>confdefs.h <<_ACEOF
16894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16904 for ac_header in CrashReporterClient.h
16906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 ac_res=`eval echo '${'$as_ac_Header'}'`
16914 { echo "$as_me:$LINENO: result: $ac_res" >&5
16915 echo "${ECHO_T}$ac_res" >&6; }
16917 # Is the header compilable?
16918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16920 cat >conftest.$ac_ext <<_ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h. */
16926 $ac_includes_default
16927 #include <$ac_header>
16929 rm -f conftest.$ac_objext
16930 if { (ac_try="$ac_compile"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_compile") 2>conftest.er1
16938 grep -v '^ *+' conftest.er1 >conftest.err
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
16954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_header_compiler=yes
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 ac_header_compiler=no
16971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16973 echo "${ECHO_T}$ac_header_compiler" >&6; }
16975 # Is the header present?
16976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16978 cat >conftest.$ac_ext <<_ACEOF
16981 cat confdefs.h >>conftest.$ac_ext
16982 cat >>conftest.$ac_ext <<_ACEOF
16983 /* end confdefs.h. */
16984 #include <$ac_header>
16986 if { (ac_try="$ac_cpp conftest.$ac_ext"
16987 case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16994 grep -v '^ *+' conftest.er1 >conftest.err
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } >/dev/null; then
16999 if test -s conftest.err; then
17000 ac_cpp_err=$ac_c_preproc_warn_flag
17001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17008 if test -z "$ac_cpp_err"; then
17009 ac_header_preproc=yes
17011 echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17014 ac_header_preproc=no
17017 rm -f conftest.err conftest.$ac_ext
17018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17019 echo "${ECHO_T}$ac_header_preproc" >&6; }
17021 # So? What about this header?
17022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17028 ac_header_preproc=yes
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17044 ## ------------------------------------ ##
17045 ## Report this to http://llvm.org/bugs/ ##
17046 ## ------------------------------------ ##
17048 ) | sed "s/^/$as_me: WARNING: /" >&2
17051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 eval "$as_ac_Header=\$ac_header_preproc"
17058 ac_res=`eval echo '${'$as_ac_Header'}'`
17059 { echo "$as_me:$LINENO: result: $ac_res" >&5
17060 echo "${ECHO_T}$ac_res" >&6; }
17063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17064 cat >>confdefs.h <<_ACEOF
17065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17073 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17074 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17075 cat >conftest.$ac_ext <<_ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17083 extern const char *__crashreporter_info__;
17085 __crashreporter_info__ = "test";
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_link") 2>conftest.er1
17100 grep -v '^ *+' conftest.er1 >conftest.err
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
17105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; } &&
17115 { ac_try='test -s conftest$ac_exeext'
17116 { (case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_try") 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17126 { echo "$as_me:$LINENO: result: yes" >&5
17127 echo "${ECHO_T}yes" >&6; }
17129 cat >>confdefs.h <<\_ACEOF
17130 #define HAVE_CRASHREPORTER_INFO 1
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17139 { echo "$as_me:$LINENO: result: no" >&5
17140 echo "${ECHO_T}no" >&6; }
17142 cat >>confdefs.h <<\_ACEOF
17143 #define HAVE_CRASHREPORTER_INFO 0
17149 rm -f core conftest.err conftest.$ac_objext \
17150 conftest$ac_exeext conftest.$ac_ext
17154 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17155 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17156 if test "${ac_cv_huge_val_sanity+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 ac_cpp='$CXXCPP $CPPFLAGS'
17162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17166 ac_save_CXXFLAGS=$CXXFLAGS
17167 CXXFLAGS="$CXXFLAGS -pedantic"
17168 if test "$cross_compiling" = yes; then
17169 ac_cv_huge_val_sanity=yes
17171 cat >conftest.$ac_ext <<_ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17181 double x = HUGE_VAL; return x != x;
17186 rm -f conftest$ac_exeext
17187 if { (ac_try="$ac_link"
17188 case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_link") 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17197 { (case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_try") 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17206 ac_cv_huge_val_sanity=yes
17208 echo "$as_me: program exited with status $ac_status" >&5
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17212 ( exit $ac_status )
17213 ac_cv_huge_val_sanity=no
17215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17219 CXXFLAGS=$ac_save_CXXFLAGS
17221 ac_cpp='$CPP $CPPFLAGS'
17222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17228 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17229 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17230 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17233 { echo "$as_me:$LINENO: checking for pid_t" >&5
17234 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17235 if test "${ac_cv_type_pid_t+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 cat >conftest.$ac_ext <<_ACEOF
17241 cat confdefs.h >>conftest.$ac_ext
17242 cat >>conftest.$ac_ext <<_ACEOF
17243 /* end confdefs.h. */
17244 $ac_includes_default
17245 typedef pid_t ac__type_new_;
17249 if ((ac__type_new_ *) 0)
17251 if (sizeof (ac__type_new_))
17257 rm -f conftest.$ac_objext
17258 if { (ac_try="$ac_compile"
17259 case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_compile") 2>conftest.er1
17266 grep -v '^ *+' conftest.er1 >conftest.err
17268 cat conftest.err >&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } &&
17271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17272 { (case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_try") 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } &&
17281 { ac_try='test -s conftest.$ac_objext'
17282 { (case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_try") 2>&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; }; then
17291 ac_cv_type_pid_t=yes
17293 echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17296 ac_cv_type_pid_t=no
17299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17302 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17303 if test $ac_cv_type_pid_t = yes; then
17307 cat >>confdefs.h <<_ACEOF
17313 { echo "$as_me:$LINENO: checking for size_t" >&5
17314 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17315 if test "${ac_cv_type_size_t+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17318 cat >conftest.$ac_ext <<_ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 $ac_includes_default
17325 typedef size_t ac__type_new_;
17329 if ((ac__type_new_ *) 0)
17331 if (sizeof (ac__type_new_))
17337 rm -f conftest.$ac_objext
17338 if { (ac_try="$ac_compile"
17339 case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_compile") 2>conftest.er1
17346 grep -v '^ *+' conftest.er1 >conftest.err
17348 cat conftest.err >&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } &&
17351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17352 { (case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357 (eval "$ac_try") 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest.$ac_objext'
17362 { (case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_try") 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ac_cv_type_size_t=yes
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ac_cv_type_size_t=no
17379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17381 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17382 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17383 if test $ac_cv_type_size_t = yes; then
17387 cat >>confdefs.h <<_ACEOF
17388 #define size_t unsigned int
17394 cat >>confdefs.h <<_ACEOF
17395 #define RETSIGTYPE void
17398 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17400 if test "${ac_cv_struct_tm+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 cat >conftest.$ac_ext <<_ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17409 #include <sys/types.h>
17415 struct tm *tp; tp->tm_sec;
17420 rm -f conftest.$ac_objext
17421 if { (ac_try="$ac_compile"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_compile") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest.$ac_objext'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_struct_tm=time.h
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 ac_cv_struct_tm=sys/time.h
17462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17465 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17466 if test $ac_cv_struct_tm = sys/time.h; then
17468 cat >>confdefs.h <<\_ACEOF
17469 #define TM_IN_SYS_TIME 1
17474 { echo "$as_me:$LINENO: checking for int64_t" >&5
17475 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17476 if test "${ac_cv_type_int64_t+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 cat >conftest.$ac_ext <<_ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 $ac_includes_default
17486 typedef int64_t ac__type_new_;
17490 if ((ac__type_new_ *) 0)
17492 if (sizeof (ac__type_new_))
17498 rm -f conftest.$ac_objext
17499 if { (ac_try="$ac_compile"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_compile") 2>conftest.er1
17507 grep -v '^ *+' conftest.er1 >conftest.err
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17513 { (case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_try") 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest.$ac_objext'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_cv_type_int64_t=yes
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_cv_type_int64_t=no
17540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17542 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17543 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17544 if test $ac_cv_type_int64_t = yes; then
17546 cat >>confdefs.h <<_ACEOF
17547 #define HAVE_INT64_T 1
17552 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17553 echo "$as_me: error: Type int64_t required but not found" >&2;}
17554 { (exit 1); exit 1; }; }
17557 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17558 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17559 if test "${ac_cv_type_uint64_t+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 cat >conftest.$ac_ext <<_ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17568 $ac_includes_default
17569 typedef uint64_t ac__type_new_;
17573 if ((ac__type_new_ *) 0)
17575 if (sizeof (ac__type_new_))
17581 rm -f conftest.$ac_objext
17582 if { (ac_try="$ac_compile"
17583 case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_compile") 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17596 { (case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_try") 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; } &&
17605 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_cv_type_uint64_t=yes
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 ac_cv_type_uint64_t=no
17623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17626 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17627 if test $ac_cv_type_uint64_t = yes; then
17629 cat >>confdefs.h <<_ACEOF
17630 #define HAVE_UINT64_T 1
17635 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17636 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17637 if test "${ac_cv_type_u_int64_t+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 $ac_includes_default
17647 typedef u_int64_t ac__type_new_;
17651 if ((ac__type_new_ *) 0)
17653 if (sizeof (ac__type_new_))
17659 rm -f conftest.$ac_objext
17660 if { (ac_try="$ac_compile"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_compile") 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17674 { (case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_try") 2>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest.$ac_objext'
17684 { (case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_try") 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ac_cv_type_u_int64_t=yes
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 ac_cv_type_u_int64_t=no
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17704 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17705 if test $ac_cv_type_u_int64_t = yes; then
17707 cat >>confdefs.h <<_ACEOF
17708 #define HAVE_U_INT64_T 1
17713 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17714 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17715 { (exit 1); exit 1; }; }
17729 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 cat >conftest.$ac_ext <<_ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17745 #define $ac_func innocuous_$ac_func
17747 /* System header to define __stub macros and hopefully few prototypes,
17748 which can conflict with char $ac_func (); below.
17749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17750 <limits.h> exists even on freestanding compilers. */
17753 # include <limits.h>
17755 # include <assert.h>
17760 /* Override any GCC internal prototype to avoid an error.
17761 Use char because int might match the return type of a GCC
17762 builtin and then its argument prototype would still apply. */
17767 /* The GNU C library defines this for functions which it implements
17768 to always fail with ENOSYS. Some functions are actually named
17769 something starting with __ and the normal name is an alias. */
17770 #if defined __stub_$ac_func || defined __stub___$ac_func
17777 return $ac_func ();
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (ac_try="$ac_link"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_link") 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
17796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17797 { (case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802 (eval "$ac_try") 2>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; } &&
17806 { ac_try='test -s conftest$ac_exeext'
17807 { (case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812 (eval "$ac_try") 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 eval "$as_ac_var=yes"
17818 echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17821 eval "$as_ac_var=no"
17824 rm -f core conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17827 ac_res=`eval echo '${'$as_ac_var'}'`
17828 { echo "$as_me:$LINENO: result: $ac_res" >&5
17829 echo "${ECHO_T}$ac_res" >&6; }
17830 if test `eval echo '${'$as_ac_var'}'` = yes; then
17831 cat >>confdefs.h <<_ACEOF
17832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17842 for ac_func in powf fmodf strtof round
17844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17850 cat >conftest.$ac_ext <<_ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17858 #define $ac_func innocuous_$ac_func
17860 /* System header to define __stub macros and hopefully few prototypes,
17861 which can conflict with char $ac_func (); below.
17862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17863 <limits.h> exists even on freestanding compilers. */
17866 # include <limits.h>
17868 # include <assert.h>
17873 /* Override any GCC internal prototype to avoid an error.
17874 Use char because int might match the return type of a GCC
17875 builtin and then its argument prototype would still apply. */
17880 /* The GNU C library defines this for functions which it implements
17881 to always fail with ENOSYS. Some functions are actually named
17882 something starting with __ and the normal name is an alias. */
17883 #if defined __stub_$ac_func || defined __stub___$ac_func
17890 return $ac_func ();
17895 rm -f conftest.$ac_objext conftest$ac_exeext
17896 if { (ac_try="$ac_link"
17897 case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_link") 2>conftest.er1
17904 grep -v '^ *+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest$ac_exeext'
17920 { (case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_try") 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 eval "$as_ac_var=yes"
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 eval "$as_ac_var=no"
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17940 ac_res=`eval echo '${'$as_ac_var'}'`
17941 { echo "$as_me:$LINENO: result: $ac_res" >&5
17942 echo "${ECHO_T}$ac_res" >&6; }
17943 if test `eval echo '${'$as_ac_var'}'` = yes; then
17944 cat >>confdefs.h <<_ACEOF
17945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17956 for ac_func in log log2 log10 exp exp2
17958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 cat >conftest.$ac_ext <<_ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17972 #define $ac_func innocuous_$ac_func
17974 /* System header to define __stub macros and hopefully few prototypes,
17975 which can conflict with char $ac_func (); below.
17976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17977 <limits.h> exists even on freestanding compilers. */
17980 # include <limits.h>
17982 # include <assert.h>
17987 /* Override any GCC internal prototype to avoid an error.
17988 Use char because int might match the return type of a GCC
17989 builtin and then its argument prototype would still apply. */
17994 /* The GNU C library defines this for functions which it implements
17995 to always fail with ENOSYS. Some functions are actually named
17996 something starting with __ and the normal name is an alias. */
17997 #if defined __stub_$ac_func || defined __stub___$ac_func
18004 return $ac_func ();
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (ac_try="$ac_link"
18011 case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_link") 2>conftest.er1
18018 grep -v '^ *+' conftest.er1 >conftest.err
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024 { (case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_try") 2>&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest$ac_exeext'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043 eval "$as_ac_var=yes"
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048 eval "$as_ac_var=no"
18051 rm -f core conftest.err conftest.$ac_objext \
18052 conftest$ac_exeext conftest.$ac_ext
18054 ac_res=`eval echo '${'$as_ac_var'}'`
18055 { echo "$as_me:$LINENO: result: $ac_res" >&5
18056 echo "${ECHO_T}$ac_res" >&6; }
18057 if test `eval echo '${'$as_ac_var'}'` = yes; then
18058 cat >>confdefs.h <<_ACEOF
18059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18070 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 cat >conftest.$ac_ext <<_ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18086 #define $ac_func innocuous_$ac_func
18088 /* System header to define __stub macros and hopefully few prototypes,
18089 which can conflict with char $ac_func (); below.
18090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18091 <limits.h> exists even on freestanding compilers. */
18094 # include <limits.h>
18096 # include <assert.h>
18101 /* Override any GCC internal prototype to avoid an error.
18102 Use char because int might match the return type of a GCC
18103 builtin and then its argument prototype would still apply. */
18108 /* The GNU C library defines this for functions which it implements
18109 to always fail with ENOSYS. Some functions are actually named
18110 something starting with __ and the normal name is an alias. */
18111 #if defined __stub_$ac_func || defined __stub___$ac_func
18118 return $ac_func ();
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } &&
18137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18138 { (case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_try") 2>&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; } &&
18147 { ac_try='test -s conftest$ac_exeext'
18148 { (case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_try") 2>&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157 eval "$as_ac_var=yes"
18159 echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18162 eval "$as_ac_var=no"
18165 rm -f core conftest.err conftest.$ac_objext \
18166 conftest$ac_exeext conftest.$ac_ext
18168 ac_res=`eval echo '${'$as_ac_var'}'`
18169 { echo "$as_me:$LINENO: result: $ac_res" >&5
18170 echo "${ECHO_T}$ac_res" >&6; }
18171 if test `eval echo '${'$as_ac_var'}'` = yes; then
18172 cat >>confdefs.h <<_ACEOF
18173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18182 for ac_func in isatty mkdtemp mkstemp
18184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18198 #define $ac_func innocuous_$ac_func
18200 /* System header to define __stub macros and hopefully few prototypes,
18201 which can conflict with char $ac_func (); below.
18202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18203 <limits.h> exists even on freestanding compilers. */
18206 # include <limits.h>
18208 # include <assert.h>
18213 /* Override any GCC internal prototype to avoid an error.
18214 Use char because int might match the return type of a GCC
18215 builtin and then its argument prototype would still apply. */
18220 /* The GNU C library defines this for functions which it implements
18221 to always fail with ENOSYS. Some functions are actually named
18222 something starting with __ and the normal name is an alias. */
18223 #if defined __stub_$ac_func || defined __stub___$ac_func
18230 return $ac_func ();
18235 rm -f conftest.$ac_objext conftest$ac_exeext
18236 if { (ac_try="$ac_link"
18237 case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242 (eval "$ac_link") 2>conftest.er1
18244 grep -v '^ *+' conftest.er1 >conftest.err
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } &&
18249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18250 { (case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255 (eval "$ac_try") 2>&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; } &&
18259 { ac_try='test -s conftest$ac_exeext'
18260 { (case "(($ac_try" in
18261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262 *) ac_try_echo=$ac_try;;
18264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265 (eval "$ac_try") 2>&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 eval "$as_ac_var=yes"
18271 echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18274 eval "$as_ac_var=no"
18277 rm -f core conftest.err conftest.$ac_objext \
18278 conftest$ac_exeext conftest.$ac_ext
18280 ac_res=`eval echo '${'$as_ac_var'}'`
18281 { echo "$as_me:$LINENO: result: $ac_res" >&5
18282 echo "${ECHO_T}$ac_res" >&6; }
18283 if test `eval echo '${'$as_ac_var'}'` = yes; then
18284 cat >>confdefs.h <<_ACEOF
18285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18297 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18305 cat >conftest.$ac_ext <<_ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18313 #define $ac_func innocuous_$ac_func
18315 /* System header to define __stub macros and hopefully few prototypes,
18316 which can conflict with char $ac_func (); below.
18317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18318 <limits.h> exists even on freestanding compilers. */
18321 # include <limits.h>
18323 # include <assert.h>
18328 /* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18335 /* The GNU C library defines this for functions which it implements
18336 to always fail with ENOSYS. Some functions are actually named
18337 something starting with __ and the normal name is an alias. */
18338 #if defined __stub_$ac_func || defined __stub___$ac_func
18345 return $ac_func ();
18350 rm -f conftest.$ac_objext conftest$ac_exeext
18351 if { (ac_try="$ac_link"
18352 case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_link") 2>conftest.er1
18359 grep -v '^ *+' conftest.er1 >conftest.err
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18365 { (case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_try") 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest$ac_exeext'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 eval "$as_ac_var=yes"
18386 echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18389 eval "$as_ac_var=no"
18392 rm -f core conftest.err conftest.$ac_objext \
18393 conftest$ac_exeext conftest.$ac_ext
18395 ac_res=`eval echo '${'$as_ac_var'}'`
18396 { echo "$as_me:$LINENO: result: $ac_res" >&5
18397 echo "${ECHO_T}$ac_res" >&6; }
18398 if test `eval echo '${'$as_ac_var'}'` = yes; then
18399 cat >>confdefs.h <<_ACEOF
18400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18410 for ac_func in strerror strerror_r setenv arc4random
18412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 cat >conftest.$ac_ext <<_ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18426 #define $ac_func innocuous_$ac_func
18428 /* System header to define __stub macros and hopefully few prototypes,
18429 which can conflict with char $ac_func (); below.
18430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18431 <limits.h> exists even on freestanding compilers. */
18434 # include <limits.h>
18436 # include <assert.h>
18441 /* Override any GCC internal prototype to avoid an error.
18442 Use char because int might match the return type of a GCC
18443 builtin and then its argument prototype would still apply. */
18448 /* The GNU C library defines this for functions which it implements
18449 to always fail with ENOSYS. Some functions are actually named
18450 something starting with __ and the normal name is an alias. */
18451 #if defined __stub_$ac_func || defined __stub___$ac_func
18458 return $ac_func ();
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (ac_try="$ac_link"
18465 case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_link") 2>conftest.er1
18472 grep -v '^ *+' conftest.er1 >conftest.err
18474 cat conftest.err >&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
18477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18478 { (case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_try") 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; } &&
18487 { ac_try='test -s conftest$ac_exeext'
18488 { (case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_try") 2>&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; }; then
18497 eval "$as_ac_var=yes"
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502 eval "$as_ac_var=no"
18505 rm -f core conftest.err conftest.$ac_objext \
18506 conftest$ac_exeext conftest.$ac_ext
18508 ac_res=`eval echo '${'$as_ac_var'}'`
18509 { echo "$as_me:$LINENO: result: $ac_res" >&5
18510 echo "${ECHO_T}$ac_res" >&6; }
18511 if test `eval echo '${'$as_ac_var'}'` = yes; then
18512 cat >>confdefs.h <<_ACEOF
18513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18523 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18531 cat >conftest.$ac_ext <<_ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18539 #define $ac_func innocuous_$ac_func
18541 /* System header to define __stub macros and hopefully few prototypes,
18542 which can conflict with char $ac_func (); below.
18543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18544 <limits.h> exists even on freestanding compilers. */
18547 # include <limits.h>
18549 # include <assert.h>
18554 /* Override any GCC internal prototype to avoid an error.
18555 Use char because int might match the return type of a GCC
18556 builtin and then its argument prototype would still apply. */
18561 /* The GNU C library defines this for functions which it implements
18562 to always fail with ENOSYS. Some functions are actually named
18563 something starting with __ and the normal name is an alias. */
18564 #if defined __stub_$ac_func || defined __stub___$ac_func
18571 return $ac_func ();
18576 rm -f conftest.$ac_objext conftest$ac_exeext
18577 if { (ac_try="$ac_link"
18578 case "(($ac_try" in
18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580 *) ac_try_echo=$ac_try;;
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583 (eval "$ac_link") 2>conftest.er1
18585 grep -v '^ *+' conftest.er1 >conftest.err
18587 cat conftest.err >&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } &&
18590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18591 { (case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596 (eval "$ac_try") 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; } &&
18600 { ac_try='test -s conftest$ac_exeext'
18601 { (case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_try") 2>&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; }; then
18610 eval "$as_ac_var=yes"
18612 echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18615 eval "$as_ac_var=no"
18618 rm -f core conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18621 ac_res=`eval echo '${'$as_ac_var'}'`
18622 { echo "$as_me:$LINENO: result: $ac_res" >&5
18623 echo "${ECHO_T}$ac_res" >&6; }
18624 if test `eval echo '${'$as_ac_var'}'` = yes; then
18625 cat >>confdefs.h <<_ACEOF
18626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18637 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18653 #define $ac_func innocuous_$ac_func
18655 /* System header to define __stub macros and hopefully few prototypes,
18656 which can conflict with char $ac_func (); below.
18657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18658 <limits.h> exists even on freestanding compilers. */
18661 # include <limits.h>
18663 # include <assert.h>
18668 /* Override any GCC internal prototype to avoid an error.
18669 Use char because int might match the return type of a GCC
18670 builtin and then its argument prototype would still apply. */
18675 /* The GNU C library defines this for functions which it implements
18676 to always fail with ENOSYS. Some functions are actually named
18677 something starting with __ and the normal name is an alias. */
18678 #if defined __stub_$ac_func || defined __stub___$ac_func
18685 return $ac_func ();
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_link") 2>conftest.er1
18699 grep -v '^ *+' conftest.er1 >conftest.err
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18705 { (case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_try") 2>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest$ac_exeext'
18715 { (case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_try") 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 eval "$as_ac_var=yes"
18726 echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18729 eval "$as_ac_var=no"
18732 rm -f core conftest.err conftest.$ac_objext \
18733 conftest$ac_exeext conftest.$ac_ext
18735 ac_res=`eval echo '${'$as_ac_var'}'`
18736 { echo "$as_me:$LINENO: result: $ac_res" >&5
18737 echo "${ECHO_T}$ac_res" >&6; }
18738 if test `eval echo '${'$as_ac_var'}'` = yes; then
18739 cat >>confdefs.h <<_ACEOF
18740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18748 for ac_func in futimes futimens
18750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 cat >conftest.$ac_ext <<_ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18764 #define $ac_func innocuous_$ac_func
18766 /* System header to define __stub macros and hopefully few prototypes,
18767 which can conflict with char $ac_func (); below.
18768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18769 <limits.h> exists even on freestanding compilers. */
18772 # include <limits.h>
18774 # include <assert.h>
18779 /* Override any GCC internal prototype to avoid an error.
18780 Use char because int might match the return type of a GCC
18781 builtin and then its argument prototype would still apply. */
18786 /* The GNU C library defines this for functions which it implements
18787 to always fail with ENOSYS. Some functions are actually named
18788 something starting with __ and the normal name is an alias. */
18789 #if defined __stub_$ac_func || defined __stub___$ac_func
18796 return $ac_func ();
18801 rm -f conftest.$ac_objext conftest$ac_exeext
18802 if { (ac_try="$ac_link"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_link") 2>conftest.er1
18810 grep -v '^ *+' conftest.er1 >conftest.err
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18816 { (case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_try") 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest$ac_exeext'
18826 { (case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_try") 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835 eval "$as_ac_var=yes"
18837 echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18840 eval "$as_ac_var=no"
18843 rm -f core conftest.err conftest.$ac_objext \
18844 conftest$ac_exeext conftest.$ac_ext
18846 ac_res=`eval echo '${'$as_ac_var'}'`
18847 { echo "$as_me:$LINENO: result: $ac_res" >&5
18848 echo "${ECHO_T}$ac_res" >&6; }
18849 if test `eval echo '${'$as_ac_var'}'` = yes; then
18850 cat >>confdefs.h <<_ACEOF
18851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18857 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18858 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18859 if test "${llvm_cv_c_printf_a+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 ac_cpp='$CPP $CPPFLAGS'
18864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18868 if test "$cross_compiling" = yes; then
18869 llvmac_cv_c_printf_a=no
18871 cat >conftest.$ac_ext <<_ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18880 #include <stdlib.h>
18886 volatile double A, B;
18890 sprintf(Buffer, "%a", A);
18894 if (A != 0x1.999999999999ap-4)
18901 rm -f conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_link") 2>&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18912 { (case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_try") 2>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; }; then
18921 llvm_cv_c_printf_a=yes
18923 echo "$as_me: program exited with status $ac_status" >&5
18924 echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18927 ( exit $ac_status )
18928 llvmac_cv_c_printf_a=no
18930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18935 ac_cpp='$CPP $CPPFLAGS'
18936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18941 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18942 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18943 if test "$llvm_cv_c_printf_a" = "yes"; then
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE_PRINTF_A 1
18953 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18954 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18955 if test "${ac_cv_func_rand48+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 ac_cpp='$CXXCPP $CPPFLAGS'
18961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18965 cat >conftest.$ac_ext <<_ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971 #include <stdlib.h>
18975 srand48(0);lrand48();drand48();
18980 rm -f conftest.$ac_objext
18981 if { (ac_try="$ac_compile"
18982 case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_compile") 2>conftest.er1
18989 grep -v '^ *+' conftest.er1 >conftest.err
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18995 { (case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_try") 2>&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; } &&
19004 { ac_try='test -s conftest.$ac_objext'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19014 ac_cv_func_rand48=yes
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 ac_cv_func_rand48=no
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 ac_cpp='$CPP $CPPFLAGS'
19025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19031 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19032 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19034 if test "$ac_cv_func_rand48" = "yes" ; then
19036 cat >>confdefs.h <<\_ACEOF
19037 #define HAVE_RAND48 1
19043 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19044 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19045 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 cat >conftest.$ac_ext <<_ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19054 $ac_includes_default
19059 char *p = (char *) strerror_s;
19067 rm -f conftest.$ac_objext
19068 if { (ac_try="$ac_compile"
19069 case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_compile") 2>conftest.er1
19076 grep -v '^ *+' conftest.er1 >conftest.err
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
19081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19082 { (case "(($ac_try" in
19083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084 *) ac_try_echo=$ac_try;;
19086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19087 (eval "$ac_try") 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest.$ac_objext'
19092 { (case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097 (eval "$ac_try") 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_cv_have_decl_strerror_s=yes
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 ac_cv_have_decl_strerror_s=no
19109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19112 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19113 if test $ac_cv_have_decl_strerror_s = yes; then
19115 cat >>confdefs.h <<_ACEOF
19116 #define HAVE_DECL_STRERROR_S 1
19121 cat >>confdefs.h <<_ACEOF
19122 #define HAVE_DECL_STRERROR_S 0
19130 if test "$llvm_cv_os_type" = "MingW" ; then
19131 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19132 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19133 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19134 echo $ECHO_N "(cached) $ECHO_C" >&6
19136 ac_check_lib_save_LIBS=$LIBS
19138 cat >conftest.$ac_ext <<_ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19145 /* Override any GCC internal prototype to avoid an error.
19146 Use char because int might match the return type of a GCC
19147 builtin and then its argument prototype would still apply. */
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (ac_try="$ac_link"
19162 case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167 (eval "$ac_link") 2>conftest.er1
19169 grep -v '^ *+' conftest.er1 >conftest.err
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
19174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19175 { (case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_try") 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try='test -s conftest$ac_exeext'
19185 { (case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_try") 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 ac_cv_lib_gcc__alloca=yes
19196 echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19199 ac_cv_lib_gcc__alloca=no
19202 rm -f core conftest.err conftest.$ac_objext \
19203 conftest$ac_exeext conftest.$ac_ext
19204 LIBS=$ac_check_lib_save_LIBS
19206 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19207 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19208 if test $ac_cv_lib_gcc__alloca = yes; then
19210 cat >>confdefs.h <<\_ACEOF
19211 #define HAVE__ALLOCA 1
19216 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19217 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19218 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19221 ac_check_lib_save_LIBS=$LIBS
19223 cat >conftest.$ac_ext <<_ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19230 /* Override any GCC internal prototype to avoid an error.
19231 Use char because int might match the return type of a GCC
19232 builtin and then its argument prototype would still apply. */
19240 return __alloca ();
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (ac_try="$ac_link"
19247 case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_link") 2>conftest.er1
19254 grep -v '^ *+' conftest.er1 >conftest.err
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } &&
19259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19260 { (case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; } &&
19269 { ac_try='test -s conftest$ac_exeext'
19270 { (case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_try") 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_cv_lib_gcc___alloca=yes
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_cv_lib_gcc___alloca=no
19287 rm -f core conftest.err conftest.$ac_objext \
19288 conftest$ac_exeext conftest.$ac_ext
19289 LIBS=$ac_check_lib_save_LIBS
19291 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19292 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19293 if test $ac_cv_lib_gcc___alloca = yes; then
19295 cat >>confdefs.h <<\_ACEOF
19296 #define HAVE___ALLOCA 1
19301 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19302 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19303 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 ac_check_lib_save_LIBS=$LIBS
19308 cat >conftest.$ac_ext <<_ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19315 /* Override any GCC internal prototype to avoid an error.
19316 Use char because int might match the return type of a GCC
19317 builtin and then its argument prototype would still apply. */
19325 return __chkstk ();
19330 rm -f conftest.$ac_objext conftest$ac_exeext
19331 if { (ac_try="$ac_link"
19332 case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_link") 2>conftest.er1
19339 grep -v '^ *+' conftest.er1 >conftest.err
19341 cat conftest.err >&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } &&
19344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19345 { (case "(($ac_try" in
19346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347 *) ac_try_echo=$ac_try;;
19349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350 (eval "$ac_try") 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; } &&
19354 { ac_try='test -s conftest$ac_exeext'
19355 { (case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_try") 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; }; then
19364 ac_cv_lib_gcc___chkstk=yes
19366 echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19369 ac_cv_lib_gcc___chkstk=no
19372 rm -f core conftest.err conftest.$ac_objext \
19373 conftest$ac_exeext conftest.$ac_ext
19374 LIBS=$ac_check_lib_save_LIBS
19376 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19377 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19378 if test $ac_cv_lib_gcc___chkstk = yes; then
19380 cat >>confdefs.h <<\_ACEOF
19381 #define HAVE___CHKSTK 1
19386 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19387 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19388 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 ac_check_lib_save_LIBS=$LIBS
19393 cat >conftest.$ac_ext <<_ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19400 /* Override any GCC internal prototype to avoid an error.
19401 Use char because int might match the return type of a GCC
19402 builtin and then its argument prototype would still apply. */
19410 return ___chkstk ();
19415 rm -f conftest.$ac_objext conftest$ac_exeext
19416 if { (ac_try="$ac_link"
19417 case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_link") 2>conftest.er1
19424 grep -v '^ *+' conftest.er1 >conftest.err
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
19429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19430 { (case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_try") 2>&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try='test -s conftest$ac_exeext'
19440 { (case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_try") 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
19449 ac_cv_lib_gcc____chkstk=yes
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_cv_lib_gcc____chkstk=no
19457 rm -f core conftest.err conftest.$ac_objext \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19461 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19462 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19463 if test $ac_cv_lib_gcc____chkstk = yes; then
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE____CHKSTK 1
19472 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19473 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19474 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19475 echo $ECHO_N "(cached) $ECHO_C" >&6
19477 ac_check_lib_save_LIBS=$LIBS
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19486 /* Override any GCC internal prototype to avoid an error.
19487 Use char because int might match the return type of a GCC
19488 builtin and then its argument prototype would still apply. */
19496 return __ashldi3 ();
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (ac_try="$ac_link"
19503 case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_link") 2>conftest.er1
19510 grep -v '^ *+' conftest.er1 >conftest.err
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19516 { (case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_try") 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; } &&
19525 { ac_try='test -s conftest$ac_exeext'
19526 { (case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_try") 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_lib_gcc___ashldi3=yes
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19540 ac_cv_lib_gcc___ashldi3=no
19543 rm -f core conftest.err conftest.$ac_objext \
19544 conftest$ac_exeext conftest.$ac_ext
19545 LIBS=$ac_check_lib_save_LIBS
19547 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19548 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19549 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19551 cat >>confdefs.h <<\_ACEOF
19552 #define HAVE___ASHLDI3 1
19557 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19558 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19559 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 ac_check_lib_save_LIBS=$LIBS
19564 cat >conftest.$ac_ext <<_ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19571 /* Override any GCC internal prototype to avoid an error.
19572 Use char because int might match the return type of a GCC
19573 builtin and then its argument prototype would still apply. */
19581 return __ashrdi3 ();
19586 rm -f conftest.$ac_objext conftest$ac_exeext
19587 if { (ac_try="$ac_link"
19588 case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_link") 2>conftest.er1
19595 grep -v '^ *+' conftest.er1 >conftest.err
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } &&
19600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19601 { (case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_try") 2>&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } &&
19610 { ac_try='test -s conftest$ac_exeext'
19611 { (case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_try") 2>&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
19620 ac_cv_lib_gcc___ashrdi3=yes
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19625 ac_cv_lib_gcc___ashrdi3=no
19628 rm -f core conftest.err conftest.$ac_objext \
19629 conftest$ac_exeext conftest.$ac_ext
19630 LIBS=$ac_check_lib_save_LIBS
19632 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19633 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19634 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19636 cat >>confdefs.h <<\_ACEOF
19637 #define HAVE___ASHRDI3 1
19642 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19643 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19644 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 ac_check_lib_save_LIBS=$LIBS
19649 cat >conftest.$ac_ext <<_ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19656 /* Override any GCC internal prototype to avoid an error.
19657 Use char because int might match the return type of a GCC
19658 builtin and then its argument prototype would still apply. */
19666 return __divdi3 ();
19671 rm -f conftest.$ac_objext conftest$ac_exeext
19672 if { (ac_try="$ac_link"
19673 case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_link") 2>conftest.er1
19680 grep -v '^ *+' conftest.er1 >conftest.err
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19686 { (case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_try") 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try='test -s conftest$ac_exeext'
19696 { (case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_try") 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_lib_gcc___divdi3=yes
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 ac_cv_lib_gcc___divdi3=no
19713 rm -f core conftest.err conftest.$ac_objext \
19714 conftest$ac_exeext conftest.$ac_ext
19715 LIBS=$ac_check_lib_save_LIBS
19717 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19718 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19719 if test $ac_cv_lib_gcc___divdi3 = yes; then
19721 cat >>confdefs.h <<\_ACEOF
19722 #define HAVE___DIVDI3 1
19727 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19728 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19729 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19732 ac_check_lib_save_LIBS=$LIBS
19734 cat >conftest.$ac_ext <<_ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19741 /* Override any GCC internal prototype to avoid an error.
19742 Use char because int might match the return type of a GCC
19743 builtin and then its argument prototype would still apply. */
19751 return __fixdfdi ();
19756 rm -f conftest.$ac_objext conftest$ac_exeext
19757 if { (ac_try="$ac_link"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_link") 2>conftest.er1
19765 grep -v '^ *+' conftest.er1 >conftest.err
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19771 { (case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_try") 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest$ac_exeext'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_lib_gcc___fixdfdi=yes
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_cv_lib_gcc___fixdfdi=no
19798 rm -f core conftest.err conftest.$ac_objext \
19799 conftest$ac_exeext conftest.$ac_ext
19800 LIBS=$ac_check_lib_save_LIBS
19802 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19803 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19804 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19806 cat >>confdefs.h <<\_ACEOF
19807 #define HAVE___FIXDFDI 1
19812 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19813 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19814 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 ac_check_lib_save_LIBS=$LIBS
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19826 /* Override any GCC internal prototype to avoid an error.
19827 Use char because int might match the return type of a GCC
19828 builtin and then its argument prototype would still apply. */
19836 return __fixsfdi ();
19841 rm -f conftest.$ac_objext conftest$ac_exeext
19842 if { (ac_try="$ac_link"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_link") 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } &&
19855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19856 { (case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_try") 2>&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest$ac_exeext'
19866 { (case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_try") 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
19875 ac_cv_lib_gcc___fixsfdi=yes
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 ac_cv_lib_gcc___fixsfdi=no
19883 rm -f core conftest.err conftest.$ac_objext \
19884 conftest$ac_exeext conftest.$ac_ext
19885 LIBS=$ac_check_lib_save_LIBS
19887 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19888 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19889 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19891 cat >>confdefs.h <<\_ACEOF
19892 #define HAVE___FIXSFDI 1
19897 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19898 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19899 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19902 ac_check_lib_save_LIBS=$LIBS
19904 cat >conftest.$ac_ext <<_ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19911 /* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19917 char __floatdidf ();
19921 return __floatdidf ();
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (ac_try="$ac_link"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_link") 2>conftest.er1
19935 grep -v '^ *+' conftest.er1 >conftest.err
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
19940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19941 { (case "(($ac_try" in
19942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943 *) ac_try_echo=$ac_try;;
19945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19946 (eval "$ac_try") 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; } &&
19950 { ac_try='test -s conftest$ac_exeext'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; }; then
19960 ac_cv_lib_gcc___floatdidf=yes
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 ac_cv_lib_gcc___floatdidf=no
19968 rm -f core conftest.err conftest.$ac_objext \
19969 conftest$ac_exeext conftest.$ac_ext
19970 LIBS=$ac_check_lib_save_LIBS
19972 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19973 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19974 if test $ac_cv_lib_gcc___floatdidf = yes; then
19976 cat >>confdefs.h <<\_ACEOF
19977 #define HAVE___FLOATDIDF 1
19982 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19983 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19984 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 ac_check_lib_save_LIBS=$LIBS
19989 cat >conftest.$ac_ext <<_ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19996 /* Override any GCC internal prototype to avoid an error.
19997 Use char because int might match the return type of a GCC
19998 builtin and then its argument prototype would still apply. */
20006 return __lshrdi3 ();
20011 rm -f conftest.$ac_objext conftest$ac_exeext
20012 if { (ac_try="$ac_link"
20013 case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_link") 2>conftest.er1
20020 grep -v '^ *+' conftest.er1 >conftest.err
20022 cat conftest.err >&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
20025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20026 { (case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_try") 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } &&
20035 { ac_try='test -s conftest$ac_exeext'
20036 { (case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_try") 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_cv_lib_gcc___lshrdi3=yes
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_cv_lib_gcc___lshrdi3=no
20053 rm -f core conftest.err conftest.$ac_objext \
20054 conftest$ac_exeext conftest.$ac_ext
20055 LIBS=$ac_check_lib_save_LIBS
20057 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20058 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20059 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20061 cat >>confdefs.h <<\_ACEOF
20062 #define HAVE___LSHRDI3 1
20067 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20068 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20069 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 ac_check_lib_save_LIBS=$LIBS
20074 cat >conftest.$ac_ext <<_ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20081 /* Override any GCC internal prototype to avoid an error.
20082 Use char because int might match the return type of a GCC
20083 builtin and then its argument prototype would still apply. */
20091 return __moddi3 ();
20096 rm -f conftest.$ac_objext conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_link") 2>conftest.er1
20105 grep -v '^ *+' conftest.er1 >conftest.err
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } &&
20110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20111 { (case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_try") 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; } &&
20120 { ac_try='test -s conftest$ac_exeext'
20121 { (case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_try") 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_cv_lib_gcc___moddi3=yes
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20135 ac_cv_lib_gcc___moddi3=no
20138 rm -f core conftest.err conftest.$ac_objext \
20139 conftest$ac_exeext conftest.$ac_ext
20140 LIBS=$ac_check_lib_save_LIBS
20142 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20143 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20144 if test $ac_cv_lib_gcc___moddi3 = yes; then
20146 cat >>confdefs.h <<\_ACEOF
20147 #define HAVE___MODDI3 1
20152 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20153 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20154 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20157 ac_check_lib_save_LIBS=$LIBS
20159 cat >conftest.$ac_ext <<_ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20166 /* Override any GCC internal prototype to avoid an error.
20167 Use char because int might match the return type of a GCC
20168 builtin and then its argument prototype would still apply. */
20176 return __udivdi3 ();
20181 rm -f conftest.$ac_objext conftest$ac_exeext
20182 if { (ac_try="$ac_link"
20183 case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_link") 2>conftest.er1
20190 grep -v '^ *+' conftest.er1 >conftest.err
20192 cat conftest.err >&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
20195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20196 { (case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201 (eval "$ac_try") 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; } &&
20205 { ac_try='test -s conftest$ac_exeext'
20206 { (case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_try") 2>&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; }; then
20215 ac_cv_lib_gcc___udivdi3=yes
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 ac_cv_lib_gcc___udivdi3=no
20223 rm -f core conftest.err conftest.$ac_objext \
20224 conftest$ac_exeext conftest.$ac_ext
20225 LIBS=$ac_check_lib_save_LIBS
20227 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20228 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20229 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20231 cat >>confdefs.h <<\_ACEOF
20232 #define HAVE___UDIVDI3 1
20237 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20238 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20239 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 ac_check_lib_save_LIBS=$LIBS
20244 cat >conftest.$ac_ext <<_ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20251 /* Override any GCC internal prototype to avoid an error.
20252 Use char because int might match the return type of a GCC
20253 builtin and then its argument prototype would still apply. */
20261 return __umoddi3 ();
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_link") 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20281 { (case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_try") 2>&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); }; } &&
20290 { ac_try='test -s conftest$ac_exeext'
20291 { (case "(($ac_try" in
20292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293 *) ac_try_echo=$ac_try;;
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296 (eval "$ac_try") 2>&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; }; then
20300 ac_cv_lib_gcc___umoddi3=yes
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ac_cv_lib_gcc___umoddi3=no
20308 rm -f core conftest.err conftest.$ac_objext \
20309 conftest$ac_exeext conftest.$ac_ext
20310 LIBS=$ac_check_lib_save_LIBS
20312 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20313 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20314 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE___UMODDI3 1
20323 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20324 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20325 if test "${ac_cv_lib_gcc___main+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 ac_check_lib_save_LIBS=$LIBS
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20337 /* Override any GCC internal prototype to avoid an error.
20338 Use char because int might match the return type of a GCC
20339 builtin and then its argument prototype would still apply. */
20352 rm -f conftest.$ac_objext conftest$ac_exeext
20353 if { (ac_try="$ac_link"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_link") 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20367 { (case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_try") 2>&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest$ac_exeext'
20377 { (case "(($ac_try" in
20378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379 *) ac_try_echo=$ac_try;;
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382 (eval "$ac_try") 2>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20386 ac_cv_lib_gcc___main=yes
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ac_cv_lib_gcc___main=no
20394 rm -f core conftest.err conftest.$ac_objext \
20395 conftest$ac_exeext conftest.$ac_ext
20396 LIBS=$ac_check_lib_save_LIBS
20398 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20399 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20400 if test $ac_cv_lib_gcc___main = yes; then
20402 cat >>confdefs.h <<\_ACEOF
20403 #define HAVE___MAIN 1
20408 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20409 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20410 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 ac_check_lib_save_LIBS=$LIBS
20415 cat >conftest.$ac_ext <<_ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20422 /* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
20432 return __cmpdi2 ();
20437 rm -f conftest.$ac_objext conftest$ac_exeext
20438 if { (ac_try="$ac_link"
20439 case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_link") 2>conftest.er1
20446 grep -v '^ *+' conftest.er1 >conftest.err
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } &&
20451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20452 { (case "(($ac_try" in
20453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454 *) ac_try_echo=$ac_try;;
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457 (eval "$ac_try") 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; } &&
20461 { ac_try='test -s conftest$ac_exeext'
20462 { (case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_try") 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ac_cv_lib_gcc___cmpdi2=yes
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_cv_lib_gcc___cmpdi2=no
20479 rm -f core conftest.err conftest.$ac_objext \
20480 conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20483 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20484 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20485 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20487 cat >>confdefs.h <<\_ACEOF
20488 #define HAVE___CMPDI2 1
20495 if test "$llvm_cv_os_type" = "MingW" ; then
20496 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20497 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20498 cat >conftest.$ac_ext <<_ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20506 #include <windows.h>
20507 #include <imagehlp.h>
20508 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20509 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20513 rm -f conftest.$ac_objext
20514 if { (ac_try="$ac_compile"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_compile") 2>conftest.er1
20522 grep -v '^ *+' conftest.er1 >conftest.err
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } &&
20527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20528 { (case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_try") 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try='test -s conftest.$ac_objext'
20538 { (case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_try") 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }; then
20548 { echo "$as_me:$LINENO: result: yes" >&5
20549 echo "${ECHO_T}yes" >&6; }
20550 llvm_cv_win32_elmcb_pcstr="PCSTR"
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20557 { echo "$as_me:$LINENO: result: no" >&5
20558 echo "${ECHO_T}no" >&6; }
20559 llvm_cv_win32_elmcb_pcstr="PSTR"
20563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565 cat >>confdefs.h <<_ACEOF
20566 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20573 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20574 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20575 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 ac_cpp='$CXXCPP $CPPFLAGS'
20581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20585 cat >conftest.$ac_ext <<_ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h. */
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_compile") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
20614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20615 { (case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_try") 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; } &&
20624 { ac_try='test -s conftest.$ac_objext'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_try") 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; }; then
20634 ac_cv_func_isnan_in_math_h=yes
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 ac_cv_func_isnan_in_math_h=no
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644 ac_cpp='$CPP $CPPFLAGS'
20645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20651 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20652 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20655 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20657 cat >>confdefs.h <<\_ACEOF
20658 #define HAVE_ISNAN_IN_MATH_H 1
20664 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20665 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20666 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 ac_cpp='$CXXCPP $CPPFLAGS'
20672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20676 cat >conftest.$ac_ext <<_ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_compile") 2>conftest.er1
20700 grep -v '^ *+' conftest.er1 >conftest.err
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } &&
20705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20706 { (case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_try") 2>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest.$ac_objext'
20716 { (case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 ac_cv_func_isnan_in_cmath=yes
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 ac_cv_func_isnan_in_cmath=no
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735 ac_cpp='$CPP $CPPFLAGS'
20736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20742 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20743 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20745 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20747 cat >>confdefs.h <<\_ACEOF
20748 #define HAVE_ISNAN_IN_CMATH 1
20754 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20755 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20756 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20757 echo $ECHO_N "(cached) $ECHO_C" >&6
20761 ac_cpp='$CXXCPP $CPPFLAGS'
20762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20766 cat >conftest.$ac_ext <<_ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20776 float f; std::isnan(f);
20781 rm -f conftest.$ac_objext
20782 if { (ac_try="$ac_compile"
20783 case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788 (eval "$ac_compile") 2>conftest.er1
20790 grep -v '^ *+' conftest.er1 >conftest.err
20792 cat conftest.err >&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } &&
20795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20796 { (case "(($ac_try" in
20797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798 *) ac_try_echo=$ac_try;;
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801 (eval "$ac_try") 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; } &&
20805 { ac_try='test -s conftest.$ac_objext'
20806 { (case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_try") 2>&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; }; then
20815 ac_cv_func_std_isnan_in_cmath=yes
20817 echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20820 ac_cv_func_std_isnan_in_cmath=no
20823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20825 ac_cpp='$CPP $CPPFLAGS'
20826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20832 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20833 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20835 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20837 cat >>confdefs.h <<\_ACEOF
20838 #define HAVE_STD_ISNAN_IN_CMATH 1
20846 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20847 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20848 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20849 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 ac_cpp='$CXXCPP $CPPFLAGS'
20854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20858 cat >conftest.$ac_ext <<_ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_compile") 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
20887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20888 { (case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_try") 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; } &&
20897 { ac_try='test -s conftest.$ac_objext'
20898 { (case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_try") 2>&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 ac_cv_func_isinf_in_math_h=yes
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 ac_cv_func_isinf_in_math_h=no
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 ac_cpp='$CPP $CPPFLAGS'
20918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20925 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20927 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20929 cat >>confdefs.h <<\_ACEOF
20930 #define HAVE_ISINF_IN_MATH_H 1
20936 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20937 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20938 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_compile") 2>conftest.er1
20972 grep -v '^ *+' conftest.er1 >conftest.err
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20978 { (case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_try") 2>&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest.$ac_objext'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ac_cv_func_isinf_in_cmath=yes
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 ac_cv_func_isinf_in_cmath=no
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 ac_cpp='$CPP $CPPFLAGS'
21008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21015 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21017 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21019 cat >>confdefs.h <<\_ACEOF
21020 #define HAVE_ISINF_IN_CMATH 1
21026 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21027 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21028 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 ac_cpp='$CXXCPP $CPPFLAGS'
21034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21038 cat >conftest.$ac_ext <<_ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21048 float f; std::isinf(f);
21053 rm -f conftest.$ac_objext
21054 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21068 { (case "(($ac_try" in
21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070 *) ac_try_echo=$ac_try;;
21072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073 (eval "$ac_try") 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest.$ac_objext'
21078 { (case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_try") 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_func_std_isinf_in_cmath=yes
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21092 ac_cv_func_std_isinf_in_cmath=no
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 ac_cpp='$CPP $CPPFLAGS'
21098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21104 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21105 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21107 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21109 cat >>confdefs.h <<\_ACEOF
21110 #define HAVE_STD_ISINF_IN_CMATH 1
21116 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21117 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21118 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21119 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 ac_cpp='$CXXCPP $CPPFLAGS'
21124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21128 cat >conftest.$ac_ext <<_ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 #include <ieeefp.h>
21138 float f; finite(f);
21143 rm -f conftest.$ac_objext
21144 if { (ac_try="$ac_compile"
21145 case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_compile") 2>conftest.er1
21152 grep -v '^ *+' conftest.er1 >conftest.err
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } &&
21157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21158 { (case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163 (eval "$ac_try") 2>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; } &&
21167 { ac_try='test -s conftest.$ac_objext'
21168 { (case "(($ac_try" in
21169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170 *) ac_try_echo=$ac_try;;
21172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173 (eval "$ac_try") 2>&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_func_finite_in_ieeefp_h=yes
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21182 ac_cv_func_finite_in_ieeefp_h=no
21185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21187 ac_cpp='$CPP $CPPFLAGS'
21188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21194 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21195 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21197 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21199 cat >>confdefs.h <<\_ACEOF
21200 #define HAVE_FINITE_IN_IEEEFP_H 1
21207 if test "$llvm_cv_platform_type" = "Unix" ; then
21210 for ac_header in stdlib.h unistd.h
21212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 ac_res=`eval echo '${'$as_ac_Header'}'`
21220 { echo "$as_me:$LINENO: result: $ac_res" >&5
21221 echo "${ECHO_T}$ac_res" >&6; }
21223 # Is the header compilable?
21224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21233 #include <$ac_header>
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21244 grep -v '^ *+' conftest.er1 >conftest.err
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21250 { (case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_try") 2>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
21260 { (case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_try") 2>&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
21269 ac_header_compiler=yes
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274 ac_header_compiler=no
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21279 echo "${ECHO_T}$ac_header_compiler" >&6; }
21281 # Is the header present?
21282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21284 cat >conftest.$ac_ext <<_ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 #include <$ac_header>
21292 if { (ac_try="$ac_cpp conftest.$ac_ext"
21293 case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21300 grep -v '^ *+' conftest.er1 >conftest.err
21302 cat conftest.err >&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } >/dev/null; then
21305 if test -s conftest.err; then
21306 ac_cpp_err=$ac_c_preproc_warn_flag
21307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21314 if test -z "$ac_cpp_err"; then
21315 ac_header_preproc=yes
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_header_preproc=no
21323 rm -f conftest.err conftest.$ac_ext
21324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21325 echo "${ECHO_T}$ac_header_preproc" >&6; }
21327 # So? What about this header?
21328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21334 ac_header_preproc=yes
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21350 ## ------------------------------------ ##
21351 ## Report this to http://llvm.org/bugs/ ##
21352 ## ------------------------------------ ##
21354 ) | sed "s/^/$as_me: WARNING: /" >&2
21357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 eval "$as_ac_Header=\$ac_header_preproc"
21364 ac_res=`eval echo '${'$as_ac_Header'}'`
21365 { echo "$as_me:$LINENO: result: $ac_res" >&5
21366 echo "${ECHO_T}$ac_res" >&6; }
21369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21370 cat >>confdefs.h <<_ACEOF
21371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21379 for ac_func in getpagesize
21381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21395 #define $ac_func innocuous_$ac_func
21397 /* System header to define __stub macros and hopefully few prototypes,
21398 which can conflict with char $ac_func (); below.
21399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21400 <limits.h> exists even on freestanding compilers. */
21403 # include <limits.h>
21405 # include <assert.h>
21410 /* Override any GCC internal prototype to avoid an error.
21411 Use char because int might match the return type of a GCC
21412 builtin and then its argument prototype would still apply. */
21417 /* The GNU C library defines this for functions which it implements
21418 to always fail with ENOSYS. Some functions are actually named
21419 something starting with __ and the normal name is an alias. */
21420 #if defined __stub_$ac_func || defined __stub___$ac_func
21427 return $ac_func ();
21432 rm -f conftest.$ac_objext conftest$ac_exeext
21433 if { (ac_try="$ac_link"
21434 case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_link") 2>conftest.er1
21441 grep -v '^ *+' conftest.er1 >conftest.err
21443 cat conftest.err >&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } &&
21446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21447 { (case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_try") 2>&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; } &&
21456 { ac_try='test -s conftest$ac_exeext'
21457 { (case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_try") 2>&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; }; then
21466 eval "$as_ac_var=yes"
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 eval "$as_ac_var=no"
21474 rm -f core conftest.err conftest.$ac_objext \
21475 conftest$ac_exeext conftest.$ac_ext
21477 ac_res=`eval echo '${'$as_ac_var'}'`
21478 { echo "$as_me:$LINENO: result: $ac_res" >&5
21479 echo "${ECHO_T}$ac_res" >&6; }
21480 if test `eval echo '${'$as_ac_var'}'` = yes; then
21481 cat >>confdefs.h <<_ACEOF
21482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21488 { echo "$as_me:$LINENO: checking for working mmap" >&5
21489 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21490 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 if test "$cross_compiling" = yes; then
21494 ac_cv_func_mmap_fixed_mapped=no
21496 cat >conftest.$ac_ext <<_ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21502 $ac_includes_default
21503 /* malloc might have been renamed as rpl_malloc. */
21506 /* Thanks to Mike Haertel and Jim Avera for this test.
21507 Here is a matrix of mmap possibilities:
21508 mmap private not fixed
21509 mmap private fixed at somewhere currently unmapped
21510 mmap private fixed at somewhere already mapped
21511 mmap shared not fixed
21512 mmap shared fixed at somewhere currently unmapped
21513 mmap shared fixed at somewhere already mapped
21514 For private mappings, we should verify that changes cannot be read()
21515 back from the file, nor mmap's back from the file at a different
21516 address. (There have been systems where private was not correctly
21517 implemented like the infamous i386 svr4.0, and systems where the
21518 VM page cache was not coherent with the file system buffer cache
21519 like early versions of FreeBSD and possibly contemporary NetBSD.)
21520 For shared mappings, we should conversely verify that changes get
21521 propagated back to all the places they're supposed to be.
21523 Grep wants private fixed already mapped.
21524 The main things grep needs to know about mmap are:
21525 * does it exist and is it safe to write into the mmap'd area
21526 * how to use it (BSD variants) */
21529 #include <sys/mman.h>
21531 #if !STDC_HEADERS && !HAVE_STDLIB_H
21535 /* This mess was copied from the GNU getpagesize.h. */
21536 #if !HAVE_GETPAGESIZE
21537 /* Assume that all systems that can run configure have sys/param.h. */
21538 # if !HAVE_SYS_PARAM_H
21539 # define HAVE_SYS_PARAM_H 1
21542 # ifdef _SC_PAGESIZE
21543 # define getpagesize() sysconf(_SC_PAGESIZE)
21544 # else /* no _SC_PAGESIZE */
21545 # if HAVE_SYS_PARAM_H
21546 # include <sys/param.h>
21547 # ifdef EXEC_PAGESIZE
21548 # define getpagesize() EXEC_PAGESIZE
21549 # else /* no EXEC_PAGESIZE */
21551 # define getpagesize() NBPG * CLSIZE
21554 # endif /* no CLSIZE */
21555 # else /* no NBPG */
21557 # define getpagesize() NBPC
21558 # else /* no NBPC */
21560 # define getpagesize() PAGESIZE
21561 # endif /* PAGESIZE */
21562 # endif /* no NBPC */
21563 # endif /* no NBPG */
21564 # endif /* no EXEC_PAGESIZE */
21565 # else /* no HAVE_SYS_PARAM_H */
21566 # define getpagesize() 8192 /* punt totally */
21567 # endif /* no HAVE_SYS_PARAM_H */
21568 # endif /* no _SC_PAGESIZE */
21570 #endif /* no HAVE_GETPAGESIZE */
21575 char *data, *data2, *data3;
21579 pagesize = getpagesize ();
21581 /* First, make a file with some known garbage in it. */
21582 data = (char *) malloc (pagesize);
21585 for (i = 0; i < pagesize; ++i)
21586 *(data + i) = rand ();
21588 fd = creat ("conftest.mmap", 0600);
21591 if (write (fd, data, pagesize) != pagesize)
21595 /* Next, try to mmap the file at a fixed address which already has
21596 something else allocated at it. If we can, also make sure that
21597 we see the same garbage. */
21598 fd = open ("conftest.mmap", O_RDWR);
21601 data2 = (char *) malloc (2 * pagesize);
21604 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21605 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21606 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21608 for (i = 0; i < pagesize; ++i)
21609 if (*(data + i) != *(data2 + i))
21612 /* Finally, make sure that changes to the mapped area do not
21613 percolate back to the file as seen by read(). (This is a bug on
21614 some variants of i386 svr4.0.) */
21615 for (i = 0; i < pagesize; ++i)
21616 *(data2 + i) = *(data2 + i) + 1;
21617 data3 = (char *) malloc (pagesize);
21620 if (read (fd, data3, pagesize) != pagesize)
21622 for (i = 0; i < pagesize; ++i)
21623 if (*(data + i) != *(data3 + i))
21629 rm -f conftest$ac_exeext
21630 if { (ac_try="$ac_link"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_link") 2>&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21640 { (case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_try") 2>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 ac_cv_func_mmap_fixed_mapped=yes
21651 echo "$as_me: program exited with status $ac_status" >&5
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ( exit $ac_status )
21656 ac_cv_func_mmap_fixed_mapped=no
21658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21663 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21664 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21665 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21667 cat >>confdefs.h <<\_ACEOF
21668 #define HAVE_MMAP 1
21672 rm -f conftest.mmap
21674 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21675 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21676 if test "${ac_cv_func_mmap_file+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 ac_cpp='$CPP $CPPFLAGS'
21681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21685 if test "$cross_compiling" = yes; then
21686 ac_cv_func_mmap_file=no
21688 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21696 #include <sys/types.h>
21697 #include <sys/mman.h>
21705 fd = creat ("foo",0777);
21706 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21708 return (fd != (int) MAP_FAILED);
21713 rm -f conftest$ac_exeext
21714 if { (ac_try="$ac_link"
21715 case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_link") 2>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21724 { (case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_try") 2>&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; }; then
21733 ac_cv_func_mmap_file=yes
21735 echo "$as_me: program exited with status $ac_status" >&5
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ( exit $ac_status )
21740 ac_cv_func_mmap_file=no
21742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21747 ac_cpp='$CPP $CPPFLAGS'
21748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21754 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21755 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21756 if test "$ac_cv_func_mmap_file" = yes; then
21758 cat >>confdefs.h <<\_ACEOF
21759 #define HAVE_MMAP_FILE
21766 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21767 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21768 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 if test "$llvm_cv_os_type" = "Interix" ; then
21772 ac_cv_need_dev_zero_for_mmap=yes
21774 ac_cv_need_dev_zero_for_mmap=no
21778 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21779 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21780 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21782 cat >>confdefs.h <<\_ACEOF
21783 #define NEED_DEV_ZERO_FOR_MMAP 1
21788 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21790 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21791 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21793 if test "$ac_cv_func_mmap_file" = "no"
21795 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21796 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21800 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21801 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21803 ac_cpp='$CXXCPP $CPPFLAGS'
21804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21808 cat >conftest.$ac_ext <<_ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h. */
21817 volatile unsigned long val = 1;
21818 __sync_synchronize();
21819 __sync_val_compare_and_swap(&val, 1, 0);
21820 __sync_add_and_fetch(&val, 1);
21821 __sync_sub_and_fetch(&val, 1);
21827 rm -f conftest.$ac_objext conftest$ac_exeext
21828 if { (ac_try="$ac_link"
21829 case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_link") 2>conftest.er1
21836 grep -v '^ *+' conftest.er1 >conftest.err
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } &&
21841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21842 { (case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_try") 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; } &&
21851 { ac_try='test -s conftest$ac_exeext'
21852 { (case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_try") 2>&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; }; then
21862 { echo "$as_me:$LINENO: result: yes" >&5
21863 echo "${ECHO_T}yes" >&6; }
21865 cat >>confdefs.h <<\_ACEOF
21866 #define LLVM_HAS_ATOMICS 1
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21875 { echo "$as_me:$LINENO: result: no" >&5
21876 echo "${ECHO_T}no" >&6; }
21878 cat >>confdefs.h <<\_ACEOF
21879 #define LLVM_HAS_ATOMICS 0
21882 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21883 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21887 rm -f core conftest.err conftest.$ac_objext \
21888 conftest$ac_exeext conftest.$ac_ext
21890 ac_cpp='$CPP $CPPFLAGS'
21891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21897 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21898 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21899 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21900 if test "${llvm_cv_linux_mixed+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 ac_cpp='$CPP $CPPFLAGS'
21905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21909 cat >conftest.$ac_ext <<_ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h. */
21916 error: Not x86-64 even if uname says so!
21927 rm -f conftest.$ac_objext
21928 if { (ac_try="$ac_compile"
21929 case "(($ac_try" in
21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931 *) ac_try_echo=$ac_try;;
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934 (eval "$ac_compile") 2>conftest.er1
21936 grep -v '^ *+' conftest.er1 >conftest.err
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } &&
21941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21942 { (case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_try") 2>&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; } &&
21951 { ac_try='test -s conftest.$ac_objext'
21952 { (case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_try") 2>&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; }; then
21961 llvm_cv_linux_mixed=no
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 llvm_cv_linux_mixed=yes
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21971 ac_cpp='$CPP $CPPFLAGS'
21972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21978 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21979 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21981 if test "$llvm_cv_linux_mixed" = "yes"; then
21982 llvm_cv_target_arch="x86"
21988 for ac_func in __dso_handle
21990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21994 echo $ECHO_N "(cached) $ECHO_C" >&6
21996 cat >conftest.$ac_ext <<_ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22004 #define $ac_func innocuous_$ac_func
22006 /* System header to define __stub macros and hopefully few prototypes,
22007 which can conflict with char $ac_func (); below.
22008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22009 <limits.h> exists even on freestanding compilers. */
22012 # include <limits.h>
22014 # include <assert.h>
22019 /* Override any GCC internal prototype to avoid an error.
22020 Use char because int might match the return type of a GCC
22021 builtin and then its argument prototype would still apply. */
22026 /* The GNU C library defines this for functions which it implements
22027 to always fail with ENOSYS. Some functions are actually named
22028 something starting with __ and the normal name is an alias. */
22029 #if defined __stub_$ac_func || defined __stub___$ac_func
22036 return $ac_func ();
22041 rm -f conftest.$ac_objext conftest$ac_exeext
22042 if { (ac_try="$ac_link"
22043 case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_link") 2>conftest.er1
22050 grep -v '^ *+' conftest.er1 >conftest.err
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
22055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22056 { (case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_try") 2>&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; } &&
22065 { ac_try='test -s conftest$ac_exeext'
22066 { (case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_try") 2>&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; }; then
22075 eval "$as_ac_var=yes"
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 eval "$as_ac_var=no"
22083 rm -f core conftest.err conftest.$ac_objext \
22084 conftest$ac_exeext conftest.$ac_ext
22086 ac_res=`eval echo '${'$as_ac_var'}'`
22087 { echo "$as_me:$LINENO: result: $ac_res" >&5
22088 echo "${ECHO_T}$ac_res" >&6; }
22089 if test `eval echo '${'$as_ac_var'}'` = yes; then
22090 cat >>confdefs.h <<_ACEOF
22091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22098 SHLIBEXT=$libltdl_cv_shlibext
22101 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22104 if test "${prefix}" = "NONE" ; then
22105 prefix="/usr/local"
22107 eval LLVM_PREFIX="${prefix}";
22108 eval LLVM_BINDIR="${prefix}/bin";
22109 eval LLVM_DATADIR="${prefix}/share/llvm";
22110 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22111 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22112 eval LLVM_INCLUDEDIR="${prefix}/include";
22113 eval LLVM_INFODIR="${prefix}/info";
22114 eval LLVM_MANDIR="${prefix}/man";
22115 LLVM_CONFIGTIME=`date`
22126 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22127 LLVM_CONFIGTIME="(timestamp not enabled)"
22131 cat >>confdefs.h <<_ACEOF
22132 #define LLVM_PREFIX "$LLVM_PREFIX"
22136 cat >>confdefs.h <<_ACEOF
22137 #define LLVM_BINDIR "$LLVM_BINDIR"
22141 cat >>confdefs.h <<_ACEOF
22142 #define LLVM_DATADIR "$LLVM_DATADIR"
22146 cat >>confdefs.h <<_ACEOF
22147 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22151 cat >>confdefs.h <<_ACEOF
22152 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22156 cat >>confdefs.h <<_ACEOF
22157 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22161 cat >>confdefs.h <<_ACEOF
22162 #define LLVM_INFODIR "$LLVM_INFODIR"
22166 cat >>confdefs.h <<_ACEOF
22167 #define LLVM_MANDIR "$LLVM_MANDIR"
22171 cat >>confdefs.h <<_ACEOF
22172 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22176 cat >>confdefs.h <<_ACEOF
22177 #define LLVM_HOST_TRIPLE "$host"
22181 cat >>confdefs.h <<_ACEOF
22182 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22186 if test "$BINDINGS_TO_BUILD" = auto ; then
22187 BINDINGS_TO_BUILD=""
22188 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22189 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22192 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22198 binding_prereqs_failed=0
22199 for a_binding in $BINDINGS_TO_BUILD ; do
22200 case "$a_binding" in
22202 if test "x$OCAMLC" = x ; then
22203 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22204 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22205 binding_prereqs_failed=1
22207 if test "x$OCAMLDEP" = x ; then
22208 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22209 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22210 binding_prereqs_failed=1
22212 if test "x$OCAMLOPT" = x ; then
22213 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22214 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22216 if test "x$with_ocaml_libdir" != xauto ; then
22217 OCAML_LIBDIR=$with_ocaml_libdir
22220 ocaml_stdlib="`"$OCAMLC" -where`"
22221 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22223 # ocaml stdlib is beneath our prefix; use stdlib
22224 OCAML_LIBDIR=$ocaml_stdlib
22227 # ocaml stdlib is outside our prefix; use libdir/ocaml
22228 OCAML_LIBDIR=${prefix}/lib/ocaml
22235 if test "$binding_prereqs_failed" = 1 ; then
22236 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22237 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22238 { (exit 1); exit 1; }; }
22241 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22242 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22243 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22244 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 ac_cpp='$CXXCPP $CPPFLAGS'
22248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22252 oldcxxflags="$CXXFLAGS"
22253 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22254 cat >conftest.$ac_ext <<_ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22260 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276 (eval "$ac_compile") 2>conftest.er1
22278 grep -v '^ *+' conftest.er1 >conftest.err
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } &&
22283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22284 { (case "(($ac_try" in
22285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286 *) ac_try_echo=$ac_try;;
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289 (eval "$ac_try") 2>&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; } &&
22293 { ac_try='test -s conftest.$ac_objext'
22294 { (case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299 (eval "$ac_try") 2>&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; }; then
22303 llvm_cv_cxx_visibility_inlines_hidden=yes
22305 echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22308 llvm_cv_cxx_visibility_inlines_hidden=no
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312 CXXFLAGS="$oldcxxflags"
22314 ac_cpp='$CPP $CPPFLAGS'
22315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22321 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22322 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22323 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22324 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22327 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22332 if test "$llvm_cv_link_use_r" = "yes" ; then
22339 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22340 RDYNAMIC="-rdynamic"
22347 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22354 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22356 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22358 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22360 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22362 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22365 ac_config_files="$ac_config_files Makefile.config"
22368 ac_config_files="$ac_config_files llvm.spec"
22371 ac_config_files="$ac_config_files docs/doxygen.cfg"
22374 if test "${clang_src_root}" = ""; then
22375 clang_src_root="$srcdir/tools/clang"
22377 if test -f ${clang_src_root}/README.txt; then
22378 configh="include/clang/Config/config.h"
22379 doxy="docs/doxygen.cfg"
22380 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22382 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22386 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22389 test "x$program_prefix" = "xNONE" && program_prefix=""
22393 ac_config_commands="$ac_config_commands setup"
22395 ac_config_commands="$ac_config_commands Makefile"
22398 ac_config_commands="$ac_config_commands Makefile.common"
22401 ac_config_commands="$ac_config_commands examples/Makefile"
22404 ac_config_commands="$ac_config_commands lib/Makefile"
22407 ac_config_commands="$ac_config_commands test/Makefile"
22410 ac_config_commands="$ac_config_commands test/Makefile.tests"
22413 ac_config_commands="$ac_config_commands unittests/Makefile"
22416 ac_config_commands="$ac_config_commands tools/Makefile"
22419 ac_config_commands="$ac_config_commands utils/Makefile"
22422 ac_config_commands="$ac_config_commands projects/Makefile"
22425 ac_config_commands="$ac_config_commands bindings/Makefile"
22428 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22432 cat >confcache <<\_ACEOF
22433 # This file is a shell script that caches the results of configure
22434 # tests run on this system so they can be shared between configure
22435 # scripts and configure runs, see configure's option --config-cache.
22436 # It is not useful on other systems. If it contains results you don't
22437 # want to keep, you may remove or edit it.
22439 # config.status only pays attention to the cache file if you give it
22440 # the --recheck option to rerun configure.
22442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22444 # following values.
22448 # The following way of writing the cache mishandles newlines in values,
22449 # but we know of no workaround that is simple, portable, and efficient.
22450 # So, we kill variables containing newlines.
22451 # Ultrix sh set writes to stderr and can't be redirected directly,
22452 # and sets the high bit in the cache file unless we assign to the vars.
22454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22455 eval ac_val=\$$ac_var
22459 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22460 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22463 _ | IFS | as_nl) ;; #(
22464 *) $as_unset $ac_var ;;
22470 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22471 *${as_nl}ac_space=\ *)
22472 # `set' does not quote correctly, so add quotes (double-quote
22473 # substitution turns \\\\ into \\, and sed turns \\ into \).
22476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22479 # `set' quotes correctly as required by POSIX, so do not add quotes.
22480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22493 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22494 if test -w "$cache_file"; then
22495 test "x$cache_file" != "x/dev/null" &&
22496 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22497 echo "$as_me: updating cache $cache_file" >&6;}
22498 cat confcache >$cache_file
22500 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22501 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22507 # Let make expand exec_prefix.
22508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22510 DEFS=-DHAVE_CONFIG_H
22514 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22515 # 1. Remove the extension, and $U if already installed.
22516 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22517 ac_i=`echo "$ac_i" | sed "$ac_script"`
22518 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22519 # will be set to the directory where LIBOBJS objects are built.
22520 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22521 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22523 LIBOBJS=$ac_libobjs
22525 LTLIBOBJS=$ac_ltlibobjs
22528 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22529 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22530 Usually this means the macro was only invoked conditionally." >&5
22531 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22532 Usually this means the macro was only invoked conditionally." >&2;}
22533 { (exit 1); exit 1; }; }
22535 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22536 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22537 Usually this means the macro was only invoked conditionally." >&5
22538 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22539 Usually this means the macro was only invoked conditionally." >&2;}
22540 { (exit 1); exit 1; }; }
22543 : ${CONFIG_STATUS=./config.status}
22544 ac_clean_files_save=$ac_clean_files
22545 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22546 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22547 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22548 cat >$CONFIG_STATUS <<_ACEOF
22550 # Generated by $as_me.
22551 # Run this file to recreate the current configuration.
22552 # Compiler output produced by configure, useful for debugging
22553 # configure, is in config.log if it exists.
22556 ac_cs_recheck=false
22558 SHELL=\${CONFIG_SHELL-$SHELL}
22561 cat >>$CONFIG_STATUS <<\_ACEOF
22562 ## --------------------- ##
22563 ## M4sh Initialization. ##
22564 ## --------------------- ##
22566 # Be Bourne compatible
22567 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22570 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22571 # is contrary to our usage. Disable this feature.
22572 alias -g '${1+"$@"}'='"$@"'
22573 setopt NO_GLOB_SUBST
22575 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22577 BIN_SH=xpg4; export BIN_SH # for Tru64
22578 DUALCASE=1; export DUALCASE # for MKS sh
22582 # Avoid depending upon Character Ranges.
22583 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22584 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22585 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22586 as_cr_digits='0123456789'
22587 as_cr_alnum=$as_cr_Letters$as_cr_digits
22589 # The user is always right.
22590 if test "${PATH_SEPARATOR+set}" != set; then
22591 echo "#! /bin/sh" >conf$$.sh
22592 echo "exit 0" >>conf$$.sh
22594 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22602 # Support unset when possible.
22603 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22611 # We need space, tab and new line, in precisely that order. Quoting is
22612 # there to prevent editors from complaining about space-tab.
22613 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22614 # splitting by setting IFS to empty value.)
22619 # Find who we are. Look in the path if we contain no directory separator.
22621 *[\\/]* ) as_myself=$0 ;;
22622 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22623 for as_dir in $PATH
22626 test -z "$as_dir" && as_dir=.
22627 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22633 # We did not find ourselves, most probably we were run as `sh COMMAND'
22634 # in which case we are not to be found in the path.
22635 if test "x$as_myself" = x; then
22638 if test ! -f "$as_myself"; then
22639 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22640 { (exit 1); exit 1; }
22643 # Work around bugs in pre-3.0 UWIN ksh.
22644 for as_var in ENV MAIL MAILPATH
22645 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22653 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22654 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22655 LC_TELEPHONE LC_TIME
22657 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22658 eval $as_var=C; export $as_var
22660 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22664 # Required to use basename.
22665 if expr a : '\(a\)' >/dev/null 2>&1 &&
22666 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22672 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22673 as_basename=basename
22679 # Name of the executable.
22680 as_me=`$as_basename -- "$0" ||
22681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22682 X"$0" : 'X\(//\)$' \| \
22683 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22685 sed '/^.*\/\([^/][^/]*\)\/*$/{
22704 as_lineno_1=$LINENO
22705 as_lineno_2=$LINENO
22706 test "x$as_lineno_1" != "x$as_lineno_2" &&
22707 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22709 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22710 # uniformly replaced by the line number. The first 'sed' inserts a
22711 # line-number line after each line using $LINENO; the second 'sed'
22712 # does the real work. The second script uses 'N' to pair each
22713 # line-number line with the line containing $LINENO, and appends
22714 # trailing '-' during substitution so that $LINENO is not a special
22715 # case at line end.
22716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22717 # scripts with optimization help from Paolo Bonzini. Blame Lee
22718 # E. McMahon (1931-1989) for sed's syntax. :-)
22730 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22733 ' >$as_me.lineno &&
22734 chmod +x "$as_me.lineno" ||
22735 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22736 { (exit 1); exit 1; }; }
22738 # Don't try to exec as it changes $[0], causing all sort of problems
22739 # (the dirname of $[0] is not the place where we might find the
22740 # original and so on. Autoconf is especially sensitive to this).
22741 . "./$as_me.lineno"
22742 # Exit status is that of the last command.
22747 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22753 ECHO_C= ECHO_N= ECHO_T=
22754 case `echo -n x` in
22756 case `echo 'x\c'` in
22757 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22764 if expr a : '\(a\)' >/dev/null 2>&1 &&
22765 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22771 rm -f conf$$ conf$$.exe conf$$.file
22772 if test -d conf$$.dir; then
22773 rm -f conf$$.dir/conf$$.file
22779 if ln -s conf$$.file conf$$ 2>/dev/null; then
22781 # ... but there are two gotchas:
22782 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22783 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22784 # In both cases, we have to default to `cp -p'.
22785 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22787 elif ln conf$$.file conf$$ 2>/dev/null; then
22792 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22793 rmdir conf$$.dir 2>/dev/null
22795 if mkdir -p . 2>/dev/null; then
22798 test -d ./-p && rmdir ./-p
22802 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22803 # systems may use methods other than mode bits to determine executability.
22804 cat >conf$$.file <<_ASEOF
22808 chmod +x conf$$.file
22809 if test -x conf$$.file >/dev/null 2>&1; then
22810 as_executable_p="test -x"
22816 # Sed expression to map a string onto a valid CPP name.
22817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22819 # Sed expression to map a string onto a valid variable name.
22820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22825 # Save the log message, to keep $[0] and so on meaningful, and to
22826 # report actual input values of CONFIG_FILES etc. instead of their
22827 # values after options handling.
22829 This file was extended by LLVM $as_me 3.5svn, which was
22830 generated by GNU Autoconf 2.60. Invocation command line was
22832 CONFIG_FILES = $CONFIG_FILES
22833 CONFIG_HEADERS = $CONFIG_HEADERS
22834 CONFIG_LINKS = $CONFIG_LINKS
22835 CONFIG_COMMANDS = $CONFIG_COMMANDS
22838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22843 cat >>$CONFIG_STATUS <<_ACEOF
22844 # Files that config.status was made for.
22845 config_files="$ac_config_files"
22846 config_headers="$ac_config_headers"
22847 config_commands="$ac_config_commands"
22851 cat >>$CONFIG_STATUS <<\_ACEOF
22853 \`$as_me' instantiates files from templates according to the
22854 current configuration.
22856 Usage: $0 [OPTIONS] [FILE]...
22858 -h, --help print this help, then exit
22859 -V, --version print version number, then exit
22860 -q, --quiet do not print progress messages
22861 -d, --debug don't remove temporary files
22862 --recheck update $as_me by reconfiguring in the same conditions
22863 --file=FILE[:TEMPLATE]
22864 instantiate the configuration file FILE
22865 --header=FILE[:TEMPLATE]
22866 instantiate the configuration header FILE
22868 Configuration files:
22871 Configuration headers:
22874 Configuration commands:
22877 Report bugs to <bug-autoconf@gnu.org>."
22880 cat >>$CONFIG_STATUS <<_ACEOF
22882 LLVM config.status 3.5svn
22883 configured by $0, generated by GNU Autoconf 2.60,
22884 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22886 Copyright (C) 2006 Free Software Foundation, Inc.
22887 This config.status script is free software; the Free Software Foundation
22888 gives unlimited permission to copy, distribute and modify it."
22895 cat >>$CONFIG_STATUS <<\_ACEOF
22896 # If no file are specified by the user, then we need to provide default
22897 # value. By we need to know if files were specified by the user.
22903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22904 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22915 # Handling of the options.
22916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22919 echo "$ac_cs_version"; exit ;;
22920 --debug | --debu | --deb | --de | --d | -d )
22922 --file | --fil | --fi | --f )
22924 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22925 ac_need_defaults=false;;
22926 --header | --heade | --head | --hea )
22928 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22929 ac_need_defaults=false;;
22931 # Conflict between --help and --header
22932 { echo "$as_me: error: ambiguous option: $1
22933 Try \`$0 --help' for more information." >&2
22934 { (exit 1); exit 1; }; };;
22935 --help | --hel | -h )
22936 echo "$ac_cs_usage"; exit ;;
22937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22938 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22941 # This is an error.
22942 -*) { echo "$as_me: error: unrecognized option: $1
22943 Try \`$0 --help' for more information." >&2
22944 { (exit 1); exit 1; }; } ;;
22946 *) ac_config_targets="$ac_config_targets $1"
22947 ac_need_defaults=false ;;
22953 ac_configure_extra_args=
22955 if $ac_cs_silent; then
22957 ac_configure_extra_args="$ac_configure_extra_args --silent"
22961 cat >>$CONFIG_STATUS <<_ACEOF
22962 if \$ac_cs_recheck; then
22963 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22964 CONFIG_SHELL=$SHELL
22965 export CONFIG_SHELL
22966 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22970 cat >>$CONFIG_STATUS <<\_ACEOF
22974 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22975 ## Running $as_me. ##
22981 cat >>$CONFIG_STATUS <<_ACEOF
22985 llvm_src="${srcdir}"
22989 cat >>$CONFIG_STATUS <<\_ACEOF
22991 # Handling of arguments.
22992 for ac_config_target in $ac_config_targets
22994 case $ac_config_target in
22995 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22996 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22997 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22998 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22999 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23000 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23001 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23002 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23003 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23004 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23005 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23006 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23007 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23008 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23009 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23010 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23011 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23012 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23013 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23014 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23015 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23016 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23017 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23018 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23019 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23020 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23022 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23023 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23024 { (exit 1); exit 1; }; };;
23029 # If the user did not use the arguments to specify the items to instantiate,
23030 # then the envvar interface is used. Set only those that are not.
23031 # We use the long form for the default assignment because of an extremely
23032 # bizarre bug on SunOS 4.1.3.
23033 if $ac_need_defaults; then
23034 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23035 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23036 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23039 # Have a temporary directory for convenience. Make it in the build tree
23040 # simply because there is no reason against having it here, and in addition,
23041 # creating and moving files from /tmp can sometimes cause problems.
23042 # Hook for its removal unless debugging.
23043 # Note that there is a small window in which the directory will not be cleaned:
23044 # after its creation but before its name has been assigned to `$tmp'.
23048 trap 'exit_status=$?
23049 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23051 trap '{ (exit 1); exit 1; }' 1 2 13 15
23053 # Create a (secure) tmp directory for tmp files.
23056 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23057 test -n "$tmp" && test -d "$tmp"
23060 tmp=./conf$$-$RANDOM
23061 (umask 077 && mkdir "$tmp")
23064 echo "$me: cannot create a temporary directory in ." >&2
23065 { (exit 1); exit 1; }
23069 # Set up the sed scripts for CONFIG_FILES section.
23072 # No need to generate the scripts if there are no CONFIG_FILES.
23073 # This happens for instance when ./config.status config.h
23074 if test -n "$CONFIG_FILES"; then
23081 for ac_last_try in false false false false false :; do
23082 cat >conf$$subs.sed <<_ACEOF
23083 SHELL!$SHELL$ac_delim
23084 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23085 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23086 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23087 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23088 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23089 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23090 exec_prefix!$exec_prefix$ac_delim
23091 prefix!$prefix$ac_delim
23092 program_transform_name!$program_transform_name$ac_delim
23093 bindir!$bindir$ac_delim
23094 sbindir!$sbindir$ac_delim
23095 libexecdir!$libexecdir$ac_delim
23096 datarootdir!$datarootdir$ac_delim
23097 datadir!$datadir$ac_delim
23098 sysconfdir!$sysconfdir$ac_delim
23099 sharedstatedir!$sharedstatedir$ac_delim
23100 localstatedir!$localstatedir$ac_delim
23101 includedir!$includedir$ac_delim
23102 oldincludedir!$oldincludedir$ac_delim
23103 docdir!$docdir$ac_delim
23104 infodir!$infodir$ac_delim
23105 htmldir!$htmldir$ac_delim
23106 dvidir!$dvidir$ac_delim
23107 pdfdir!$pdfdir$ac_delim
23108 psdir!$psdir$ac_delim
23109 libdir!$libdir$ac_delim
23110 localedir!$localedir$ac_delim
23111 mandir!$mandir$ac_delim
23112 DEFS!$DEFS$ac_delim
23113 ECHO_C!$ECHO_C$ac_delim
23114 ECHO_N!$ECHO_N$ac_delim
23115 ECHO_T!$ECHO_T$ac_delim
23116 LIBS!$LIBS$ac_delim
23117 build_alias!$build_alias$ac_delim
23118 host_alias!$host_alias$ac_delim
23119 target_alias!$target_alias$ac_delim
23120 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23122 CFLAGS!$CFLAGS$ac_delim
23123 LDFLAGS!$LDFLAGS$ac_delim
23124 CPPFLAGS!$CPPFLAGS$ac_delim
23125 ac_ct_CC!$ac_ct_CC$ac_delim
23126 EXEEXT!$EXEEXT$ac_delim
23127 OBJEXT!$OBJEXT$ac_delim
23129 CXXFLAGS!$CXXFLAGS$ac_delim
23130 ac_ct_CXX!$ac_ct_CXX$ac_delim
23132 subdirs!$subdirs$ac_delim
23133 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23134 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23135 build!$build$ac_delim
23136 build_cpu!$build_cpu$ac_delim
23137 build_vendor!$build_vendor$ac_delim
23138 build_os!$build_os$ac_delim
23139 host!$host$ac_delim
23140 host_cpu!$host_cpu$ac_delim
23141 host_vendor!$host_vendor$ac_delim
23142 host_os!$host_os$ac_delim
23143 target!$target$ac_delim
23144 target_cpu!$target_cpu$ac_delim
23145 target_vendor!$target_vendor$ac_delim
23146 target_os!$target_os$ac_delim
23148 HOST_OS!$HOST_OS$ac_delim
23149 TARGET_OS!$TARGET_OS$ac_delim
23150 LINKALL!$LINKALL$ac_delim
23151 NOLINKALL!$NOLINKALL$ac_delim
23152 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23153 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23154 ARCH!$ARCH$ac_delim
23155 HOST_ARCH!$HOST_ARCH$ac_delim
23156 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23157 BUILD_CC!$BUILD_CC$ac_delim
23158 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23159 BUILD_CXX!$BUILD_CXX$ac_delim
23160 CVSBUILD!$CVSBUILD$ac_delim
23161 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23162 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23163 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23164 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23165 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23166 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23167 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23168 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23169 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23170 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23171 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23172 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23173 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23174 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23175 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23177 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23178 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23179 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23182 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23184 elif $ac_last_try; then
23185 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23186 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23187 { (exit 1); exit 1; }; }
23189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23193 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23194 if test -n "$ac_eof"; then
23195 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23196 ac_eof=`expr $ac_eof + 1`
23199 cat >>$CONFIG_STATUS <<_ACEOF
23200 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23204 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23205 s/^/s,@/; s/!/@,|#_!!_#|/
23208 s/'"$ac_delim"'$/,g/; t
23210 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23211 ' >>$CONFIG_STATUS <conf$$subs.sed
23212 rm -f conf$$subs.sed
23213 cat >>$CONFIG_STATUS <<_ACEOF
23219 for ac_last_try in false false false false false :; do
23220 cat >conf$$subs.sed <<_ACEOF
23221 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23222 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23223 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23224 ENABLE_PIC!$ENABLE_PIC$ac_delim
23225 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23226 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23227 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23228 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23229 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23230 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23231 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23232 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23233 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23234 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23235 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23236 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23237 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23238 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23240 ifGNUmake!$ifGNUmake$ac_delim
23241 LN_S!$LN_S$ac_delim
23244 DATE!$DATE$ac_delim
23245 FIND!$FIND$ac_delim
23246 GREP!$GREP$ac_delim
23247 MKDIR!$MKDIR$ac_delim
23249 RANLIB!$RANLIB$ac_delim
23254 BINPWD!$BINPWD$ac_delim
23255 GRAPHVIZ!$GRAPHVIZ$ac_delim
23258 NEATO!$NEATO$ac_delim
23259 TWOPI!$TWOPI$ac_delim
23260 CIRCO!$CIRCO$ac_delim
23262 DOTTY!$DOTTY$ac_delim
23263 XDOT!$XDOT$ac_delim
23264 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23265 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23266 INSTALL_DATA!$INSTALL_DATA$ac_delim
23267 BZIP2!$BZIP2$ac_delim
23269 DOXYGEN!$DOXYGEN$ac_delim
23270 GROFF!$GROFF$ac_delim
23271 GZIPBIN!$GZIPBIN$ac_delim
23272 PDFROFF!$PDFROFF$ac_delim
23274 OCAMLC!$OCAMLC$ac_delim
23275 OCAMLOPT!$OCAMLOPT$ac_delim
23276 OCAMLDEP!$OCAMLDEP$ac_delim
23277 OCAMLDOC!$OCAMLDOC$ac_delim
23279 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23280 EGREP!$EGREP$ac_delim
23281 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23282 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23283 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23284 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23285 LIBADD_DL!$LIBADD_DL$ac_delim
23286 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23287 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23288 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23289 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23290 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23291 PYTHON!$PYTHON$ac_delim
23292 USE_UDIS86!$USE_UDIS86$ac_delim
23293 USE_OPROFILE!$USE_OPROFILE$ac_delim
23294 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23295 XML2CONFIG!$XML2CONFIG$ac_delim
23296 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23297 LIBXML2_INC!$LIBXML2_INC$ac_delim
23298 CXXCPP!$CXXCPP$ac_delim
23299 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23300 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23301 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23302 MMAP_FILE!$MMAP_FILE$ac_delim
23303 SHLIBEXT!$SHLIBEXT$ac_delim
23304 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23305 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23306 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23307 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23308 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23309 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23310 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23311 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23312 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23313 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23314 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23315 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23316 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23317 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23320 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23322 elif $ac_last_try; then
23323 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23324 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23325 { (exit 1); exit 1; }; }
23327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23331 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23332 if test -n "$ac_eof"; then
23333 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23334 ac_eof=`expr $ac_eof + 1`
23337 cat >>$CONFIG_STATUS <<_ACEOF
23338 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23339 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23342 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23343 s/^/s,@/; s/!/@,|#_!!_#|/
23346 s/'"$ac_delim"'$/,g/; t
23348 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23349 ' >>$CONFIG_STATUS <conf$$subs.sed
23350 rm -f conf$$subs.sed
23351 cat >>$CONFIG_STATUS <<_ACEOF
23357 for ac_last_try in false false false false false :; do
23358 cat >conf$$subs.sed <<_ACEOF
23359 RPATH!$RPATH$ac_delim
23360 RDYNAMIC!$RDYNAMIC$ac_delim
23361 program_prefix!$program_prefix$ac_delim
23362 LIBOBJS!$LIBOBJS$ac_delim
23363 LTLIBOBJS!$LTLIBOBJS$ac_delim
23366 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23368 elif $ac_last_try; then
23369 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23370 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23371 { (exit 1); exit 1; }; }
23373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23377 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23378 if test -n "$ac_eof"; then
23379 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23380 ac_eof=`expr $ac_eof + 1`
23383 cat >>$CONFIG_STATUS <<_ACEOF
23384 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23385 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23388 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23389 s/^/s,@/; s/!/@,|#_!!_#|/
23392 s/'"$ac_delim"'$/,g/; t
23394 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23395 ' >>$CONFIG_STATUS <conf$$subs.sed
23396 rm -f conf$$subs.sed
23397 cat >>$CONFIG_STATUS <<_ACEOF
23404 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23405 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23406 # trailing colons and then remove the whole line if VPATH becomes empty
23407 # (actually we leave an empty line to preserve line numbers).
23408 if test "x$srcdir" = x.; then
23409 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23410 s/:*\$(srcdir):*/:/
23411 s/:*\${srcdir}:*/:/
23413 s/^\([^=]*=[ ]*\):*/\1/
23419 cat >>$CONFIG_STATUS <<\_ACEOF
23420 fi # test -n "$CONFIG_FILES"
23423 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23426 :[FHLC]) ac_mode=$ac_tag; continue;;
23428 case $ac_mode$ac_tag in
23430 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23431 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23432 { (exit 1); exit 1; }; };;
23433 :[FH]-) ac_tag=-:-;;
23434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23451 -) ac_f="$tmp/stdin";;
23452 *) # Look for the file first in the build tree, then in the source tree
23453 # (if the path is not absolute). The absolute path cannot be DOS-style,
23454 # because $ac_f cannot contain `:'.
23458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23460 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23461 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23462 { (exit 1); exit 1; }; };;
23464 ac_file_inputs="$ac_file_inputs $ac_f"
23467 # Let's still pretend it is `configure' which instantiates (i.e., don't
23468 # use $as_me), people would be surprised to read:
23469 # /* config.h. Generated by config.status. */
23470 configure_input="Generated from "`IFS=:
23471 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23472 if test x"$ac_file" != x-; then
23473 configure_input="$ac_file. $configure_input"
23474 { echo "$as_me:$LINENO: creating $ac_file" >&5
23475 echo "$as_me: creating $ac_file" >&6;}
23479 *:-:* | *:-) cat >"$tmp/stdin";;
23484 ac_dir=`$as_dirname -- "$ac_file" ||
23485 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23486 X"$ac_file" : 'X\(//\)[^/]' \| \
23487 X"$ac_file" : 'X\(//\)$' \| \
23488 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23494 /^X\(\/\/\)[^/].*/{
23509 -*) as_dir=./$as_dir;;
23511 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23515 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23516 *) as_qdir=$as_dir;;
23518 as_dirs="'$as_qdir' $as_dirs"
23519 as_dir=`$as_dirname -- "$as_dir" ||
23520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23521 X"$as_dir" : 'X\(//\)[^/]' \| \
23522 X"$as_dir" : 'X\(//\)$' \| \
23523 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23529 /^X\(\/\/\)[^/].*/{
23542 test -d "$as_dir" && break
23544 test -z "$as_dirs" || eval "mkdir $as_dirs"
23545 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23546 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23547 { (exit 1); exit 1; }; }; }
23551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23553 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23554 # A ".." for each directory in $ac_dir_suffix.
23555 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23556 case $ac_top_builddir_sub in
23557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23561 ac_abs_top_builddir=$ac_pwd
23562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23563 # for backward compatibility:
23564 ac_top_builddir=$ac_top_build_prefix
23567 .) # We are building in place.
23569 ac_top_srcdir=$ac_top_builddir_sub
23570 ac_abs_top_srcdir=$ac_pwd ;;
23571 [\\/]* | ?:[\\/]* ) # Absolute name.
23572 ac_srcdir=$srcdir$ac_dir_suffix;
23573 ac_top_srcdir=$srcdir
23574 ac_abs_top_srcdir=$srcdir ;;
23575 *) # Relative name.
23576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23577 ac_top_srcdir=$ac_top_build_prefix$srcdir
23578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23591 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23595 cat >>$CONFIG_STATUS <<\_ACEOF
23596 # If the template does not know about datarootdir, expand it.
23597 # FIXME: This hack should be removed a few years after 2.60.
23598 ac_datarootdir_hack=; ac_datarootdir_seen=
23600 case `sed -n '/datarootdir/ {
23609 ' $ac_file_inputs` in
23610 *datarootdir*) ac_datarootdir_seen=yes;;
23611 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23612 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23613 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23615 cat >>$CONFIG_STATUS <<_ACEOF
23616 ac_datarootdir_hack='
23617 s&@datadir@&$datadir&g
23618 s&@docdir@&$docdir&g
23619 s&@infodir@&$infodir&g
23620 s&@localedir@&$localedir&g
23621 s&@mandir@&$mandir&g
23622 s&\\\${datarootdir}&$datarootdir&g' ;;
23626 # Neutralize VPATH when `$srcdir' = `.'.
23627 # Shell code in configure.ac might set extrasub.
23628 # FIXME: do we really want to maintain this feature?
23629 cat >>$CONFIG_STATUS <<_ACEOF
23633 cat >>$CONFIG_STATUS <<\_ACEOF
23635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23636 s&@configure_input@&$configure_input&;t t
23637 s&@top_builddir@&$ac_top_builddir_sub&;t t
23638 s&@srcdir@&$ac_srcdir&;t t
23639 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23640 s&@top_srcdir@&$ac_top_srcdir&;t t
23641 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23642 s&@builddir@&$ac_builddir&;t t
23643 s&@abs_builddir@&$ac_abs_builddir&;t t
23644 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23645 s&@INSTALL@&$ac_INSTALL&;t t
23646 $ac_datarootdir_hack
23647 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23649 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23650 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23651 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23652 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23653 which seems to be undefined. Please make sure it is defined." >&5
23654 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23655 which seems to be undefined. Please make sure it is defined." >&2;}
23659 -) cat "$tmp/out"; rm -f "$tmp/out";;
23660 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23669 # Transform confdefs.h into a sed script `conftest.defines', that
23670 # substitutes the proper values into config.h.in to produce config.h.
23671 rm -f conftest.defines conftest.tail
23672 # First, append a space to every undef/define line, to ease matching.
23673 echo 's/$/ /' >conftest.defines
23674 # Then, protect against being on the right side of a sed subst, or in
23675 # an unquoted here document, in config.status. If some macros were
23676 # called several times there might be several #defines for the same
23677 # symbol, which is useless. But do not sort them, since the last
23678 # AC_DEFINE must be honored.
23679 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23680 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23681 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23682 # PARAMS is the parameter list in the macro definition--in most cases, it's
23683 # just an empty string.
23684 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23685 ac_dB='\\)[ (].*,\\1define\\2'
23693 s/^[ ]*#[ ]*define[ ][ ]*//
23698 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23699 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23700 ' >>conftest.defines
23702 # Remove the space that was appended to ease matching.
23703 # Then replace #undef with comments. This is necessary, for
23704 # example, in the case of _POSIX_SOURCE, which is predefined and required
23705 # on some systems where configure will not decide to define it.
23706 # (The regexp can be short, since the line contains either #define or #undef.)
23708 s,^[ #]*u.*,/* & */,' >>conftest.defines
23710 # Break up conftest.defines:
23711 ac_max_sed_lines=50
23713 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23714 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23715 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23717 ac_in='$ac_file_inputs'
23718 ac_out='"$tmp/out1"'
23719 ac_nxt='"$tmp/out2"'
23723 # Write a here document:
23724 cat >>$CONFIG_STATUS <<_ACEOF
23725 # First, check the format of the line:
23726 cat >"\$tmp/defines.sed" <<\\CEOF
23727 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23728 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23732 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23734 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23735 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23736 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23737 grep . conftest.tail >/dev/null || break
23738 rm -f conftest.defines
23739 mv conftest.tail conftest.defines
23741 rm -f conftest.defines conftest.tail
23743 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23744 cat >>$CONFIG_STATUS <<\_ACEOF
23745 if test x"$ac_file" != x-; then
23746 echo "/* $configure_input */" >"$tmp/config.h"
23747 cat "$ac_result" >>"$tmp/config.h"
23748 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23749 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23750 echo "$as_me: $ac_file is unchanged" >&6;}
23753 mv "$tmp/config.h" $ac_file
23756 echo "/* $configure_input */"
23762 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23763 echo "$as_me: executing $ac_file commands" >&6;}
23768 case $ac_file$ac_mode in
23769 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23770 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23771 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23772 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23773 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23774 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23775 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23776 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23777 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23778 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23779 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23780 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23781 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23782 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23783 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23784 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23785 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23786 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23787 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23788 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23789 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23790 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23791 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23792 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23798 { (exit 0); exit 0; }
23800 chmod +x $CONFIG_STATUS
23801 ac_clean_files=$ac_clean_files_save
23804 # configure is writing to config.log, and then calls config.status.
23805 # config.status does its own redirection, appending to config.log.
23806 # Unfortunately, on DOS this fails, as config.log is still kept open
23807 # by configure, so config.status won't be able to write to it; its
23808 # output is simply discarded. So we exec the FD to /dev/null,
23809 # effectively closing config.log, so it can be properly (re)opened and
23810 # appended to by config.status. When coming back to configure, we
23811 # need to make the FD available again.
23812 if test "$no_create" != yes; then
23814 ac_config_status_args=
23815 test "$silent" = yes &&
23816 ac_config_status_args="$ac_config_status_args --quiet"
23818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23821 # would make configure fail if this is the last instruction.
23822 $ac_cs_success || { (exit 1); exit 1; }
23826 # CONFIG_SUBDIRS section.
23828 if test "$no_recursion" != yes; then
23830 # Remove --cache-file and --srcdir arguments so they do not pile up.
23831 ac_sub_configure_args=
23833 eval "set x $ac_configure_args"
23837 if test -n "$ac_prev"; then
23842 -cache-file | --cache-file | --cache-fil | --cache-fi \
23843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23844 ac_prev=cache_file ;;
23845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23849 --config-cache | -C)
23851 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23853 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23855 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23857 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23861 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23863 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23867 # Always prepend --prefix to ensure using the same prefix
23868 # in subdir configurations.
23869 ac_arg="--prefix=$prefix"
23871 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23873 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23876 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23878 # Do not complain, so a configure script can configure whichever
23879 # parts of a large source tree are present.
23880 test -d "$srcdir/$ac_dir" || continue
23882 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23883 echo "$as_me:$LINENO: $ac_msg" >&5
23887 -*) as_dir=./$as_dir;;
23889 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23893 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23894 *) as_qdir=$as_dir;;
23896 as_dirs="'$as_qdir' $as_dirs"
23897 as_dir=`$as_dirname -- "$as_dir" ||
23898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23899 X"$as_dir" : 'X\(//\)[^/]' \| \
23900 X"$as_dir" : 'X\(//\)$' \| \
23901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23907 /^X\(\/\/\)[^/].*/{
23920 test -d "$as_dir" && break
23922 test -z "$as_dirs" || eval "mkdir $as_dirs"
23923 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23924 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23925 { (exit 1); exit 1; }; }; }
23929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23932 # A ".." for each directory in $ac_dir_suffix.
23933 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23934 case $ac_top_builddir_sub in
23935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23939 ac_abs_top_builddir=$ac_pwd
23940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23941 # for backward compatibility:
23942 ac_top_builddir=$ac_top_build_prefix
23945 .) # We are building in place.
23947 ac_top_srcdir=$ac_top_builddir_sub
23948 ac_abs_top_srcdir=$ac_pwd ;;
23949 [\\/]* | ?:[\\/]* ) # Absolute name.
23950 ac_srcdir=$srcdir$ac_dir_suffix;
23951 ac_top_srcdir=$srcdir
23952 ac_abs_top_srcdir=$srcdir ;;
23953 *) # Relative name.
23954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23955 ac_top_srcdir=$ac_top_build_prefix$srcdir
23956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23963 # Check for guested configure; otherwise get Cygnus style configure.
23964 if test -f "$ac_srcdir/configure.gnu"; then
23965 ac_sub_configure=$ac_srcdir/configure.gnu
23966 elif test -f "$ac_srcdir/configure"; then
23967 ac_sub_configure=$ac_srcdir/configure
23968 elif test -f "$ac_srcdir/configure.in"; then
23969 # This should be Cygnus configure.
23970 ac_sub_configure=$ac_aux_dir/configure
23972 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23977 # The recursion is here.
23978 if test -n "$ac_sub_configure"; then
23979 # Make the cache file name correct relative to the subdirectory.
23980 case $cache_file in
23981 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23982 *) # Relative name.
23983 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23986 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23987 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23988 # The eval makes quoting arguments work.
23989 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23990 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23991 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23992 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23993 { (exit 1); exit 1; }; }