2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
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-2013 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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
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
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
695 ENABLE_EXPENSIVE_CHECKS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
762 HAVE_LINK_VERSION_SCRIPT
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
800 ENABLE_VISIBILITY_INLINES_HIDDEN
807 ac_precious_vars='build_alias
819 ac_subdirs_all='projects/llvm-gcc
823 projects/llvm-poolalloc
826 projects/llvm-stacker
834 # Initialize some variables set by options.
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
846 program_transform_name=s,x,x,
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 -enable-* | --enable-*)
954 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958 { (exit 1); exit 1; }; }
959 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960 eval enable_$ac_feature=\$ac_optarg ;;
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
975 -help | --help | --hel | --he | -h)
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 htmldir=$ac_optarg ;;
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1005 -libdir | --libdir | --libdi | --libd)
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1096 -psdir | --psdir | --psdi | --psd | --ps)
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 sbindir=$ac_optarg ;;
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 sharedstatedir=$ac_optarg ;;
1122 -site | --site | --sit)
1124 -site=* | --site=* | --sit=*)
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1151 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163 { echo "$as_me: error: invalid package name: $ac_package" >&2
1164 { (exit 1); exit 1; }; }
1165 ac_package=`echo $ac_package | sed 's/-/_/g'`
1166 eval with_$ac_package=no ;;
1169 # Obsolete; use --with-x.
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188 { (exit 1); exit 1; }; }
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196 { (exit 1); exit 1; }; }
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 { echo "$as_me: error: missing argument to $ac_option" >&2
1214 { (exit 1); exit 1; }; }
1217 # Be sure to have absolute directory names.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229 { (exit 1); exit 1; }; }
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 { echo "$as_me: error: Working directory cannot be determined" >&2
1260 { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 { echo "$as_me: error: pwd does not report name of working directory" >&2
1263 { (exit 1); exit 1; }; }
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$0" : 'X\(//\)[^/]' \| \
1273 X"$0" : 'X\(//\)$' \| \
1274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303 { (exit 1); exit 1; }; }
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308 { (exit 1); exit 1; }; }
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-polly Use polly if available (default is YES)
1408 --enable-libcpp Use libc++ if available (default is NO)
1409 --enable-cxx11 Use c++11 if available (default is NO)
1410 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1411 --enable-clang-static-analyzer
1412 Enable building of clang Static Analyzer (default is
1414 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1415 --enable-optimized Compile with optimizations enabled (default is NO)
1416 --enable-profiling Compile with profiling enabled (default is NO)
1417 --enable-assertions Compile with assertion checks enabled (default is
1419 --enable-werror Compile with -Werror enabled (default is NO)
1420 --enable-expensive-checks
1421 Compile with expensive debug checks enabled (default
1423 --enable-debug-runtime Build runtime libs with debug symbols (default is
1425 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1426 optimization is on and YES if it's off)
1427 --enable-keep-symbols Do not strip installed executables)
1428 --enable-jit Enable Just In Time Compiling (default is YES)
1429 --enable-docs Build documents (default is YES)
1430 --enable-doxygen Build doxygen documentation (default is NO)
1431 --enable-threads Use threads if available (default is YES)
1432 --enable-pthreads Use pthreads if available (default is YES)
1433 --enable-zlib Use zlib for compression/decompression if available
1435 --enable-pic Build LLVM with Position Independent Code (default
1437 --enable-shared Build a shared library and link tools against it
1439 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1440 Win32 DLL (default is NO)
1441 --enable-timestamps Enable embedding timestamp information in build
1443 --enable-backtraces Enable embedding backtraces on crash (default is
1445 --enable-targets Build specific host targets: all or
1446 target1,target2,... Valid targets are: host, x86,
1447 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1448 xcore, msp430, nvptx, and cpp (default=all)
1449 --enable-experimental-targets
1450 Build experimental host targets: disable or
1451 target1,target2,... (default=disable)
1452 --enable-bindings Build specific language bindings:
1453 all,auto,none,{binding-name} (default=auto)
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.3svn
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-2013 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.3svn, 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 3
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2013 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 llvm-gcc 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 llvm-gcc 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++ llvm-g++ 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++ llvm-g++ 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
3582 if test -d ${srcdir}/projects/llvm-gcc ; then
3583 subdirs="$subdirs projects/llvm-gcc"
3587 if test -d ${srcdir}/projects/test-suite ; then
3588 subdirs="$subdirs projects/test-suite"
3592 if test -d ${srcdir}/projects/llvm-test ; then
3593 subdirs="$subdirs projects/llvm-test"
3597 if test -d ${srcdir}/projects/poolalloc ; then
3598 subdirs="$subdirs projects/poolalloc"
3602 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3603 subdirs="$subdirs projects/llvm-poolalloc"
3607 for i in `ls ${srcdir}/projects`
3609 if test -d ${srcdir}/projects/${i} ; then
3611 sample) subdirs="$subdirs projects/sample"
3613 privbracket) subdirs="$subdirs projects/privbracket"
3615 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3617 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3619 llvm-java) subdirs="$subdirs projects/llvm-java"
3621 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3623 safecode) subdirs="$subdirs projects/safecode"
3625 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3634 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3635 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3641 # Check whether --enable-polly was given.
3642 if test "${enable_polly+set}" = set; then
3643 enableval=$enable_polly;
3648 case "$enableval" in
3653 default) ENABLE_POLLY=1
3655 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3656 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3657 { (exit 1); exit 1; }; } ;;
3661 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3664 subdirs="$subdirs tools/polly"
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673 { (exit 1); exit 1; }; }
3675 { echo "$as_me:$LINENO: checking build system type" >&5
3676 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677 if test "${ac_cv_build+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 ac_build_alias=$build_alias
3681 test "x$ac_build_alias" = x &&
3682 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683 test "x$ac_build_alias" = x &&
3684 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686 { (exit 1); exit 1; }; }
3687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690 { (exit 1); exit 1; }; }
3693 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694 echo "${ECHO_T}$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698 echo "$as_me: error: invalid value of canonical build" >&2;}
3699 { (exit 1); exit 1; }; };;
3702 ac_save_IFS=$IFS; IFS='-'
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3715 { echo "$as_me:$LINENO: checking host system type" >&5
3716 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717 if test "${ac_cv_host+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 if test "x$host_alias" = x; then
3721 ac_cv_host=$ac_cv_build
3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726 { (exit 1); exit 1; }; }
3730 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731 echo "${ECHO_T}$ac_cv_host" >&6; }
3734 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735 echo "$as_me: error: invalid value of canonical host" >&2;}
3736 { (exit 1); exit 1; }; };;
3739 ac_save_IFS=$IFS; IFS='-'
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3752 { echo "$as_me:$LINENO: checking target system type" >&5
3753 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3754 if test "${ac_cv_target+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test "x$target_alias" = x; then
3758 ac_cv_target=$ac_cv_host
3760 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3761 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3762 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3763 { (exit 1); exit 1; }; }
3767 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3768 echo "${ECHO_T}$ac_cv_target" >&6; }
3769 case $ac_cv_target in
3771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3772 echo "$as_me: error: invalid value of canonical target" >&2;}
3773 { (exit 1); exit 1; }; };;
3775 target=$ac_cv_target
3776 ac_save_IFS=$IFS; IFS='-'
3782 # Remember, the first character of IFS is used to create $*,
3783 # except with old shells:
3786 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3789 # The aliases save the names the user supplied, while $host etc.
3790 # will get canonicalized.
3791 test -n "$target_alias" &&
3792 test "$program_prefix$program_suffix$program_transform_name" = \
3794 program_prefix=${target_alias}-
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3797 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3798 if test "${llvm_cv_os_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 llvm_cv_link_all_option="-Wl,--whole-archive"
3804 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805 llvm_cv_os_type="AIX"
3806 llvm_cv_platform_type="Unix" ;;
3808 llvm_cv_link_all_option="-Wl,--whole-archive"
3809 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810 llvm_cv_os_type="IRIX"
3811 llvm_cv_platform_type="Unix" ;;
3813 llvm_cv_link_all_option="-Wl,--whole-archive"
3814 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815 llvm_cv_os_type="Cygwin"
3816 llvm_cv_platform_type="Unix" ;;
3818 llvm_cv_link_all_option="-Wl,-all_load"
3819 llvm_cv_no_link_all_option="-Wl,-noall_load"
3820 llvm_cv_os_type="Darwin"
3821 llvm_cv_platform_type="Unix" ;;
3823 llvm_cv_link_all_option="-Wl,-all_load"
3824 llvm_cv_no_link_all_option="-Wl,-noall_load"
3825 llvm_cv_os_type="Minix"
3826 llvm_cv_platform_type="Unix" ;;
3827 *-*-freebsd* | *-*-kfreebsd-gnu)
3828 llvm_cv_link_all_option="-Wl,--whole-archive"
3829 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830 llvm_cv_os_type="FreeBSD"
3831 llvm_cv_platform_type="Unix" ;;
3833 llvm_cv_link_all_option="-Wl,--whole-archive"
3834 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835 llvm_cv_os_type="OpenBSD"
3836 llvm_cv_platform_type="Unix" ;;
3838 llvm_cv_link_all_option="-Wl,--whole-archive"
3839 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840 llvm_cv_os_type="NetBSD"
3841 llvm_cv_platform_type="Unix" ;;
3843 llvm_cv_link_all_option="-Wl,--whole-archive"
3844 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845 llvm_cv_os_type="DragonFly"
3846 llvm_cv_platform_type="Unix" ;;
3848 llvm_cv_link_all_option="-Wl,--whole-archive"
3849 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850 llvm_cv_os_type="HP-UX"
3851 llvm_cv_platform_type="Unix" ;;
3853 llvm_cv_link_all_option="-Wl,--whole-archive"
3854 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855 llvm_cv_os_type="Interix"
3856 llvm_cv_platform_type="Unix" ;;
3858 llvm_cv_link_all_option="-Wl,--whole-archive"
3859 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860 llvm_cv_os_type="Linux"
3861 llvm_cv_platform_type="Unix" ;;
3863 llvm_cv_link_all_option="-Wl,--whole-archive"
3864 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865 llvm_cv_os_type="GNU"
3866 llvm_cv_platform_type="Unix" ;;
3868 llvm_cv_link_all_option="-Wl,-z,allextract"
3869 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3870 llvm_cv_os_type="SunOS"
3871 llvm_cv_platform_type="Unix" ;;
3873 llvm_cv_link_all_option="-Wl,-z,allextract"
3874 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3875 llvm_cv_os_type="AuroraUX"
3876 llvm_cv_platform_type="Unix" ;;
3878 llvm_cv_link_all_option="-Wl,--whole-archive"
3879 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880 llvm_cv_os_type="Win32"
3881 llvm_cv_platform_type="Win32" ;;
3883 llvm_cv_link_all_option="-Wl,--whole-archive"
3884 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885 llvm_cv_os_type="MingW"
3886 llvm_cv_platform_type="Win32" ;;
3888 llvm_cv_link_all_option="-Wl,--whole-archive"
3889 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890 llvm_cv_os_type="Haiku"
3891 llvm_cv_platform_type="Unix" ;;
3893 llvm_cv_link_all_option="-Wl,--whole-archive"
3894 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895 llvm_cv_os_type="Freestanding"
3896 llvm_cv_platform_type="Unix" ;;
3898 llvm_cv_link_all_option="-Wl,--whole-archive"
3899 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900 llvm_cv_os_type="Freestanding"
3901 llvm_cv_platform_type="Unix" ;;
3903 llvm_cv_link_all_option=""
3904 llvm_cv_no_link_all_option=""
3905 llvm_cv_os_type="Unknown"
3906 llvm_cv_platform_type="Unknown" ;;
3909 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3910 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3912 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3913 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3914 if test "${llvm_cv_target_os_type+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 llvm_cv_target_os_type="AIX" ;;
3921 llvm_cv_target_os_type="IRIX" ;;
3923 llvm_cv_target_os_type="Cygwin" ;;
3925 llvm_cv_target_os_type="Darwin" ;;
3927 llvm_cv_target_os_type="Minix" ;;
3928 *-*-freebsd* | *-*-kfreebsd-gnu)
3929 llvm_cv_target_os_type="FreeBSD" ;;
3931 llvm_cv_target_os_type="OpenBSD" ;;
3933 llvm_cv_target_os_type="NetBSD" ;;
3935 llvm_cv_target_os_type="DragonFly" ;;
3937 llvm_cv_target_os_type="HP-UX" ;;
3939 llvm_cv_target_os_type="Interix" ;;
3941 llvm_cv_target_os_type="Linux" ;;
3943 llvm_cv_target_os_type="GNU" ;;
3945 llvm_cv_target_os_type="SunOS" ;;
3947 llvm_cv_target_os_type="AuroraUX" ;;
3949 llvm_cv_target_os_type="Win32" ;;
3951 llvm_cv_target_os_type="MingW" ;;
3953 llvm_cv_target_os_type="Haiku" ;;
3955 llvm_cv_target_os_type="RTEMS" ;;
3957 llvm_cv_target_os_type="NativeClient" ;;
3959 llvm_cv_target_os_type="Freestanding" ;;
3961 llvm_cv_target_os_type="Unknown" ;;
3964 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3965 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3967 if test "$llvm_cv_os_type" = "Unknown" ; then
3968 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3969 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3970 { (exit 1); exit 1; }; }
3975 HOST_OS=$llvm_cv_os_type
3977 TARGET_OS=$llvm_cv_target_os_type
3980 LINKALL=$llvm_cv_link_all_option
3982 NOLINKALL=$llvm_cv_no_link_all_option
3985 case $llvm_cv_platform_type in
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_UNIX 1
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_WIN32 1
4010 { echo "$as_me:$LINENO: checking target architecture" >&5
4011 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4012 if test "${llvm_cv_target_arch+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 i?86-*) llvm_cv_target_arch="x86" ;;
4017 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4018 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4019 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4020 arm*-*) llvm_cv_target_arch="ARM" ;;
4021 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4022 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4023 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4024 xcore-*) llvm_cv_target_arch="XCore" ;;
4025 msp430-*) llvm_cv_target_arch="MSP430" ;;
4026 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4027 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4028 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4029 *) llvm_cv_target_arch="Unknown" ;;
4032 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4033 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4035 if test "$llvm_cv_target_arch" = "Unknown" ; then
4036 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4037 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4040 case "$llvm_cv_target_arch" in
4041 x86) LLVM_NATIVE_ARCH="X86" ;;
4042 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4043 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4046 ARCH=$llvm_cv_target_arch
4050 i?86-*) host_arch="x86" ;;
4051 amd64-* | x86_64-*) host_arch="x86_64" ;;
4052 sparc*-*) host_arch="Sparc" ;;
4053 powerpc*-*) host_arch="PowerPC" ;;
4054 arm*-*) host_arch="ARM" ;;
4055 aarch64*-*) host_arch="AArch64" ;;
4056 mips-* | mips64-*) host_arch="Mips" ;;
4057 mipsel-* | mips64el-*) host_arch="Mips" ;;
4058 xcore-*) host_arch="XCore" ;;
4059 msp430-*) host_arch="MSP430" ;;
4060 hexagon-*) host_arch="Hexagon" ;;
4061 mblaze-*) host_arch="MBlaze" ;;
4062 *) host_arch="Unknown" ;;
4065 if test "$host_arch" = "Unknown" ; then
4066 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4067 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4070 HOST_ARCH=$host_arch
4075 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4076 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4077 if test "${ac_cv_path_GREP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 # Extract the first word of "grep ggrep" to use in msg output
4081 if test -z "$GREP"; then
4082 set dummy grep ggrep; ac_prog_name=$2
4083 if test "${ac_cv_path_GREP+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 ac_path_GREP_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in grep ggrep; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4096 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4097 # Check for GNU ac_path_GREP and select it if it is found.
4098 # Check for GNU $ac_path_GREP
4099 case `"$ac_path_GREP" --version 2>&1` in
4101 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4104 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 echo 'GREP' >> "conftest.nl"
4111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 ac_count=`expr $ac_count + 1`
4114 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_GREP="$ac_path_GREP"
4117 ac_path_GREP_max=$ac_count
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4126 $ac_path_GREP_found && break 3
4136 GREP="$ac_cv_path_GREP"
4137 if test -z "$GREP"; then
4138 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4139 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4140 { (exit 1); exit 1; }; }
4144 ac_cv_path_GREP=$GREP
4149 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4150 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4151 GREP="$ac_cv_path_GREP"
4154 { echo "$as_me:$LINENO: checking for egrep" >&5
4155 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4156 if test "${ac_cv_path_EGREP+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4160 then ac_cv_path_EGREP="$GREP -E"
4162 # Extract the first word of "egrep" to use in msg output
4163 if test -z "$EGREP"; then
4164 set dummy egrep; ac_prog_name=$2
4165 if test "${ac_cv_path_EGREP+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 ac_path_EGREP_found=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4174 test -z "$as_dir" && as_dir=.
4175 for ac_prog in egrep; do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4178 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4179 # Check for GNU ac_path_EGREP and select it if it is found.
4180 # Check for GNU $ac_path_EGREP
4181 case `"$ac_path_EGREP" --version 2>&1` in
4183 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4186 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 echo 'EGREP' >> "conftest.nl"
4193 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 ac_count=`expr $ac_count + 1`
4196 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_EGREP="$ac_path_EGREP"
4199 ac_path_EGREP_max=$ac_count
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4208 $ac_path_EGREP_found && break 3
4218 EGREP="$ac_cv_path_EGREP"
4219 if test -z "$EGREP"; then
4220 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4221 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4222 { (exit 1); exit 1; }; }
4226 ac_cv_path_EGREP=$EGREP
4232 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4233 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4234 EGREP="$ac_cv_path_EGREP"
4237 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4238 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4239 if test "${ac_cv_header_stdc+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_compile") 2>conftest.er1
4270 grep -v '^ *+' conftest.er1 >conftest.err
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; } &&
4285 { ac_try='test -s conftest.$ac_objext'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_cv_header_stdc=yes
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 ac_cv_header_stdc=no
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 if test $ac_cv_header_stdc = yes; then
4306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317 $EGREP "memchr" >/dev/null 2>&1; then
4320 ac_cv_header_stdc=no
4326 if test $ac_cv_header_stdc = yes; then
4327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "free" >/dev/null 2>&1; then
4341 ac_cv_header_stdc=no
4347 if test $ac_cv_header_stdc = yes; then
4348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4349 if test "$cross_compiling" = yes; then
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4360 #if ((' ' & 0x0FF) == 0x020)
4361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4364 # define ISLOWER(c) \
4365 (('a' <= (c) && (c) <= 'i') \
4366 || ('j' <= (c) && (c) <= 'r') \
4367 || ('s' <= (c) && (c) <= 'z'))
4368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4376 for (i = 0; i < 256; i++)
4377 if (XOR (islower (i), ISLOWER (i))
4378 || toupper (i) != TOUPPER (i))
4383 rm -f conftest$ac_exeext
4384 if { (ac_try="$ac_link"
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_link") 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4394 { (case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_try") 2>&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4405 echo "$as_me: program exited with status $ac_status" >&5
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4410 ac_cv_header_stdc=no
4412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4418 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4419 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4420 if test $ac_cv_header_stdc = yes; then
4422 cat >>confdefs.h <<\_ACEOF
4423 #define STDC_HEADERS 1
4428 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4438 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4439 inttypes.h stdint.h unistd.h
4441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 $ac_includes_default
4455 #include <$ac_header>
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_compile") 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try='test -s conftest.$ac_objext'
4482 { (case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_try") 2>&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 eval "$as_ac_Header=yes"
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 eval "$as_ac_Header=no"
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_res=`eval echo '${'$as_ac_Header'}'`
4502 { echo "$as_me:$LINENO: result: $ac_res" >&5
4503 echo "${ECHO_T}$ac_res" >&6; }
4504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4505 cat >>confdefs.h <<_ACEOF
4506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4514 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4515 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4516 if test "${ac_cv_c_bigendian+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 # See if sys/param.h defines the BYTE_ORDER macro.
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 #include <sys/types.h>
4527 #include <sys/param.h>
4532 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_compile") 2>conftest.er1
4549 grep -v '^ *+' conftest.er1 >conftest.err
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4555 { (case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_try") 2>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_try") 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 # It does; now see whether it defined to BIG_ENDIAN or not.
4575 cat >conftest.$ac_ext <<_ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #include <sys/types.h>
4582 #include <sys/param.h>
4587 #if BYTE_ORDER != BIG_ENDIAN
4595 rm -f conftest.$ac_objext
4596 if { (ac_try="$ac_compile"
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_compile") 2>conftest.er1
4604 grep -v '^ *+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4610 { (case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_try") 2>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625 (eval "$ac_try") 2>&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
4629 ac_cv_c_bigendian=yes
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 ac_cv_c_bigendian=no
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 # It does not; compile a test program.
4643 if test "$cross_compiling" = yes; then
4644 # try to guess the endianness by grepping values into an object file
4645 ac_cv_c_bigendian=unknown
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4653 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4654 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4655 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4656 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4657 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4661 _ascii (); _ebcdic ();
4666 rm -f conftest.$ac_objext
4667 if { (ac_try="$ac_compile"
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673 (eval "$ac_compile") 2>conftest.er1
4675 grep -v '^ *+' conftest.er1 >conftest.err
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4681 { (case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_try") 2>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (case "(($ac_try" in
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696 (eval "$ac_try") 2>&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4701 ac_cv_c_bigendian=yes
4703 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4704 if test "$ac_cv_c_bigendian" = unknown; then
4705 ac_cv_c_bigendian=no
4707 # finding both strings is unlikely to happen, but who knows?
4708 ac_cv_c_bigendian=unknown
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 $ac_includes_default
4731 /* Are we little or big endian? From Harbison&Steele. */
4735 char c[sizeof (long int)];
4738 return u.c[sizeof (long int) - 1] == 1;
4744 rm -f conftest$ac_exeext
4745 if { (ac_try="$ac_link"
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_link") 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4755 { (case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_try") 2>&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 ac_cv_c_bigendian=no
4766 echo "$as_me: program exited with status $ac_status" >&5
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4771 ac_cv_c_bigendian=yes
4773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4782 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4783 case $ac_cv_c_bigendian in
4791 { { echo "$as_me:$LINENO: error: unknown endianness
4792 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4793 echo "$as_me: error: unknown endianness
4794 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4795 { (exit 1); exit 1; }; } ;;
4799 if test "$cross_compiling" = yes; then
4800 LLVM_CROSS_COMPILING=1
4803 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4804 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4805 if test "${ac_cv_build_exeext+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4809 ac_cv_build_exeext=.exe
4811 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}gcc; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 if test -n "$BUILD_CC"; then
4821 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 BUILD_CC=$ac_cv_prog_BUILD_CC
4841 if test -n "$BUILD_CC"; then
4842 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4843 echo "${ECHO_T}$BUILD_CC" >&6; }
4845 { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4850 if test -z "$BUILD_CC"; then
4851 # Extract the first word of "gcc", so it can be a program name with args.
4852 set dummy gcc; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 if test -n "$BUILD_CC"; then
4859 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_BUILD_CC="gcc"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 BUILD_CC=$ac_cv_prog_BUILD_CC
4879 if test -n "$BUILD_CC"; then
4880 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4881 echo "${ECHO_T}$BUILD_CC" >&6; }
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4888 if test -z "$BUILD_CC"; then
4889 # Extract the first word of "cc", so it can be a program name with args.
4890 set dummy cc; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 if test -n "$BUILD_CC"; then
4897 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4908 ac_prog_rejected=yes
4911 ac_cv_prog_BUILD_CC="cc"
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CC
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CC to just the basename; use the full file name.
4928 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4933 BUILD_CC=$ac_cv_prog_BUILD_CC
4934 if test -n "$BUILD_CC"; then
4935 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4936 echo "${ECHO_T}$BUILD_CC" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4945 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4946 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4947 { (exit 1); exit 1; }; }
4948 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4950 echo 'int main () { return 0; }' > conftest.$ac_ext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4953 (eval $ac_build_link) 2>&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; then
4957 for file in conftest.*; do
4959 *.c | *.o | *.obj | *.dSYM) ;;
4960 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4964 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4965 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4966 { (exit 1); exit 1; }; }
4969 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4974 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4975 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4976 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4977 ac_build_exeext=$BUILD_EXEEXT
4979 ac_build_prefix=${build_alias}-
4980 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4981 set dummy ${ac_build_prefix}g++; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 if test -n "$BUILD_CXX"; then
4988 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5008 if test -n "$BUILD_CXX"; then
5009 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5010 echo "${ECHO_T}$BUILD_CXX" >&6; }
5012 { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5017 if test -z "$BUILD_CXX"; then
5018 # Extract the first word of "g++", so it can be a program name with args.
5019 set dummy g++; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 if test -n "$BUILD_CXX"; then
5026 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_prog_BUILD_CXX="g++"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5046 if test -n "$BUILD_CXX"; then
5047 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5048 echo "${ECHO_T}$BUILD_CXX" >&6; }
5050 { echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6; }
5055 if test -z "$BUILD_CXX"; then
5056 # Extract the first word of "c++", so it can be a program name with args.
5057 set dummy c++; ac_word=$2
5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 if test -n "$BUILD_CXX"; then
5064 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5075 ac_prog_rejected=yes
5078 ac_cv_prog_BUILD_CXX="c++"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 if test $ac_prog_rejected = yes; then
5087 # We found a bogon in the path, so make sure we never use it.
5088 set dummy $ac_cv_prog_BUILD_CXX
5090 if test $# != 0; then
5091 # We chose a different compiler from the bogus one.
5092 # However, it has the same basename, so the bogon will be chosen
5093 # first if we set BUILD_CXX to just the basename; use the full file name.
5095 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5100 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5101 if test -n "$BUILD_CXX"; then
5102 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5103 echo "${ECHO_T}$BUILD_CXX" >&6; }
5105 { echo "$as_me:$LINENO: result: no" >&5
5106 echo "${ECHO_T}no" >&6; }
5113 LLVM_CROSS_COMPILING=0
5117 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5128 # Check whether --enable-libcpp was given.
5129 if test "${enable_libcpp+set}" = set; then
5130 enableval=$enable_libcpp;
5135 case "$enableval" in
5136 yes) ENABLE_LIBCPP=1
5140 default) ENABLE_LIBCPP=0
5142 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5143 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5144 { (exit 1); exit 1; }; } ;;
5147 # Check whether --enable-cxx11 was given.
5148 if test "${enable_cxx11+set}" = set; then
5149 enableval=$enable_cxx11;
5154 case "$enableval" in
5159 default) ENABLE_CXX11=0
5161 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5162 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5163 { (exit 1); exit 1; }; } ;;
5167 # Check whether --enable-clang-arcmt was given.
5168 if test "${enable_clang_arcmt+set}" = set; then
5169 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5174 case "$enableval" in
5175 yes) ENABLE_CLANG_ARCMT=1
5177 no) ENABLE_CLANG_ARCMT=0
5179 default) ENABLE_CLANG_ARCMT=1
5181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
5186 clang_static_analyzer="yes"
5187 # Check whether --enable-clang-static-analyzer was given.
5188 if test "${enable_clang_static_analyzer+set}" = set; then
5189 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5194 case "$enableval" in
5195 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5197 no) ENABLE_CLANG_STATIC_ANALYZER=0
5199 default) ENABLE_CLANG_STATIC_ANALYZER=1
5201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5202 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5203 { (exit 1); exit 1; }; } ;;
5206 # Check whether --enable-clang-rewriter was given.
5207 if test "${enable_clang_rewriter+set}" = set; then
5208 enableval=$enable_clang_rewriter;
5213 case "$enableval" in
5214 yes) ENABLE_CLANG_REWRITER=1
5217 if test ${clang_arcmt} != "no" ; then
5218 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5219 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5220 { (exit 1); exit 1; }; }
5222 if test ${clang_static_analyzer} != "no" ; then
5223 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5224 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5225 { (exit 1); exit 1; }; }
5227 ENABLE_CLANG_REWRITER=0
5230 default) ENABLE_CLANG_REWRITER=1
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5237 # Check whether --enable-optimized was given.
5238 if test "${enable_optimized+set}" = set; then
5239 enableval=$enable_optimized;
5244 if test ${enableval} = "no" ; then
5248 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5252 # Check whether --enable-profiling was given.
5253 if test "${enable_profiling+set}" = set; then
5254 enableval=$enable_profiling;
5259 if test ${enableval} = "no" ; then
5263 ENABLE_PROFILING=ENABLE_PROFILING=1
5267 # Check whether --enable-assertions was given.
5268 if test "${enable_assertions+set}" = set; then
5269 enableval=$enable_assertions;
5274 if test ${enableval} = "yes" ; then
5278 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5282 # Check whether --enable-werror was given.
5283 if test "${enable_werror+set}" = set; then
5284 enableval=$enable_werror;
5289 case "$enableval" in
5290 yes) ENABLE_WERROR=1
5294 default) ENABLE_WERROR=0
5296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5301 # Check whether --enable-expensive-checks was given.
5302 if test "${enable_expensive_checks+set}" = set; then
5303 enableval=$enable_expensive_checks;
5308 if test ${enableval} = "yes" ; then
5309 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5311 EXPENSIVE_CHECKS=yes
5314 ENABLE_EXPENSIVE_CHECKS=
5320 # Check whether --enable-debug-runtime was given.
5321 if test "${enable_debug_runtime+set}" = set; then
5322 enableval=$enable_debug_runtime;
5327 if test ${enableval} = "no" ; then
5331 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5335 # Check whether --enable-debug-symbols was given.
5336 if test "${enable_debug_symbols+set}" = set; then
5337 enableval=$enable_debug_symbols;
5342 if test ${enableval} = "no" ; then
5346 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5350 # Check whether --enable-keep-symbols was given.
5351 if test "${enable_keep_symbols+set}" = set; then
5352 enableval=$enable_keep_symbols;
5357 if test ${enableval} = "no" ; then
5361 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5365 # Check whether --enable-jit was given.
5366 if test "${enable_jit+set}" = set; then
5367 enableval=$enable_jit;
5372 if test ${enableval} = "no"
5377 case "$llvm_cv_target_arch" in
5378 x86) TARGET_HAS_JIT=1
5380 Sparc) TARGET_HAS_JIT=0
5382 PowerPC) TARGET_HAS_JIT=1
5384 x86_64) TARGET_HAS_JIT=1
5386 ARM) TARGET_HAS_JIT=1
5388 AArch64) TARGET_HAS_JIT=0
5390 Mips) TARGET_HAS_JIT=1
5392 XCore) TARGET_HAS_JIT=0
5394 MSP430) TARGET_HAS_JIT=0
5396 Hexagon) TARGET_HAS_JIT=0
5398 MBlaze) TARGET_HAS_JIT=0
5400 NVPTX) TARGET_HAS_JIT=0
5407 # Check whether --enable-docs was given.
5408 if test "${enable_docs+set}" = set; then
5409 enableval=$enable_docs;
5414 case "$enableval" in
5419 default) ENABLE_DOCS=1
5421 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5422 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5423 { (exit 1); exit 1; }; } ;;
5426 # Check whether --enable-doxygen was given.
5427 if test "${enable_doxygen+set}" = set; then
5428 enableval=$enable_doxygen;
5433 case "$enableval" in
5434 yes) ENABLE_DOXYGEN=1
5436 no) ENABLE_DOXYGEN=0
5438 default) ENABLE_DOXYGEN=0
5440 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5441 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5442 { (exit 1); exit 1; }; } ;;
5445 # Check whether --enable-threads was given.
5446 if test "${enable_threads+set}" = set; then
5447 enableval=$enable_threads;
5452 case "$enableval" in
5453 yes) LLVM_ENABLE_THREADS=1
5455 no) LLVM_ENABLE_THREADS=0
5457 default) LLVM_ENABLE_THREADS=1
5459 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5460 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5461 { (exit 1); exit 1; }; } ;;
5464 cat >>confdefs.h <<_ACEOF
5465 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5469 # Check whether --enable-pthreads was given.
5470 if test "${enable_pthreads+set}" = set; then
5471 enableval=$enable_pthreads;
5476 case "$enableval" in
5477 yes) ENABLE_PTHREADS=1
5479 no) ENABLE_PTHREADS=0
5481 default) ENABLE_PTHREADS=1
5483 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5484 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5485 { (exit 1); exit 1; }; } ;;
5488 # Check whether --enable-zlib was given.
5489 if test "${enable_zlib+set}" = set; then
5490 enableval=$enable_zlib;
5495 case "$enableval" in
5496 yes) LLVM_ENABLE_ZLIB=1
5498 no) LLVM_ENABLE_ZLIB=0
5500 default) LLVM_ENABLE_ZLIB=1
5502 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5503 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5504 { (exit 1); exit 1; }; } ;;
5507 cat >>confdefs.h <<_ACEOF
5508 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5512 # Check whether --enable-pic was given.
5513 if test "${enable_pic+set}" = set; then
5514 enableval=$enable_pic;
5519 case "$enableval" in
5524 default) ENABLE_PIC=1
5526 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5527 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5528 { (exit 1); exit 1; }; } ;;
5531 cat >>confdefs.h <<_ACEOF
5532 #define ENABLE_PIC $ENABLE_PIC
5536 # Check whether --enable-shared was given.
5537 if test "${enable_shared+set}" = set; then
5538 enableval=$enable_shared;
5543 case "$enableval" in
5544 yes) ENABLE_SHARED=1
5548 default) ENABLE_SHARED=0
5550 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5551 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5552 { (exit 1); exit 1; }; } ;;
5555 # Check whether --enable-embed-stdcxx was given.
5556 if test "${enable_embed_stdcxx+set}" = set; then
5557 enableval=$enable_embed_stdcxx;
5562 case "$enableval" in
5563 yes) ENABLE_EMBED_STDCXX=1
5565 no) ENABLE_EMBED_STDCXX=0
5567 default) ENABLE_EMBED_STDCXX=0
5569 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5570 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5571 { (exit 1); exit 1; }; } ;;
5574 # Check whether --enable-timestamps was given.
5575 if test "${enable_timestamps+set}" = set; then
5576 enableval=$enable_timestamps;
5581 case "$enableval" in
5582 yes) ENABLE_TIMESTAMPS=1
5584 no) ENABLE_TIMESTAMPS=0
5586 default) ENABLE_TIMESTAMPS=1
5588 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5589 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5590 { (exit 1); exit 1; }; } ;;
5593 cat >>confdefs.h <<_ACEOF
5594 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5599 # Check whether --enable-backtraces was given.
5600 if test "${enable_backtraces+set}" = set; then
5601 enableval=$enable_backtraces;
5606 case "$enableval" in
5607 yes) ENABLE_BACKTRACES=1
5609 no) ENABLE_BACKTRACES=0
5611 default) ENABLE_BACKTRACES=1
5613 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5614 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5615 { (exit 1); exit 1; }; } ;;
5618 cat >>confdefs.h <<_ACEOF
5619 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5624 # Check whether --enable-targets was given.
5625 if test "${enable_targets+set}" = set; then
5626 enableval=$enable_targets;
5631 if test "$enableval" = host-only ; then
5634 case "$enableval" in
5635 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5636 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5638 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5639 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5640 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5641 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5642 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5643 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5644 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5645 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5646 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5647 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5648 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5649 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5650 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5651 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5652 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5653 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5654 host) case "$llvm_cv_target_arch" in
5655 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5656 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5657 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5658 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5659 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5660 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5661 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5662 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5663 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5664 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5665 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5666 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5667 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5668 echo "$as_me: error: Can not set target to build" >&2;}
5669 { (exit 1); exit 1; }; } ;;
5671 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5672 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5673 { (exit 1); exit 1; }; } ;;
5679 # Check whether --enable-experimental-targets was given.
5680 if test "${enable_experimental_targets+set}" = set; then
5681 enableval=$enable_experimental_targets;
5687 if test ${enableval} != "disable"
5689 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5692 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5695 for a_target in $TARGETS_TO_BUILD; do
5696 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5698 cat >>confdefs.h <<_ACEOF
5699 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5702 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5703 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5704 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5705 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5706 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5707 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5709 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5710 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5713 cat >>confdefs.h <<_ACEOF
5714 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5718 cat >>confdefs.h <<_ACEOF
5719 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5723 cat >>confdefs.h <<_ACEOF
5724 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5728 cat >>confdefs.h <<_ACEOF
5729 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5732 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5734 cat >>confdefs.h <<_ACEOF
5735 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5739 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5749 LLVM_ENUM_TARGETS=""
5750 LLVM_ENUM_ASM_PRINTERS=""
5751 LLVM_ENUM_ASM_PARSERS=""
5752 LLVM_ENUM_DISASSEMBLERS=""
5753 for target_to_build in $TARGETS_TO_BUILD; do
5754 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5755 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5756 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5758 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5759 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5761 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5762 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5771 # Check whether --with-optimize-option was given.
5772 if test "${with_optimize_option+set}" = set; then
5773 withval=$with_optimize_option;
5778 { echo "$as_me:$LINENO: checking optimization flags" >&5
5779 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5782 case "$llvm_cv_os_type" in
5783 FreeBSD) optimize_option=-O2 ;;
5784 MingW) optimize_option=-O2 ;;
5785 *) optimize_option=-O3 ;;
5787 *) optimize_option="$withval" ;;
5789 OPTIMIZE_OPTION=$optimize_option
5791 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5792 echo "${ECHO_T}$optimize_option" >&6; }
5795 # Check whether --with-extra-options was given.
5796 if test "${with_extra_options+set}" = set; then
5797 withval=$with_extra_options;
5803 default) EXTRA_OPTIONS= ;;
5804 *) EXTRA_OPTIONS=$withval ;;
5806 EXTRA_OPTIONS=$EXTRA_OPTIONS
5810 # Check whether --with-extra-ld-options was given.
5811 if test "${with_extra_ld_options+set}" = set; then
5812 withval=$with_extra_ld_options;
5818 default) EXTRA_LD_OPTIONS= ;;
5819 *) EXTRA_LD_OPTIONS=$withval ;;
5821 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5824 # Check whether --enable-bindings was given.
5825 if test "${enable_bindings+set}" = set; then
5826 enableval=$enable_bindings;
5831 BINDINGS_TO_BUILD=""
5832 case "$enableval" in
5833 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5834 all ) BINDINGS_TO_BUILD="ocaml" ;;
5835 none | no) BINDINGS_TO_BUILD="" ;;
5836 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5837 case "$a_binding" in
5838 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5839 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5840 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5841 { (exit 1); exit 1; }; } ;;
5848 # Check whether --with-ocaml-libdir was given.
5849 if test "${with_ocaml_libdir+set}" = set; then
5850 withval=$with_ocaml_libdir;
5856 auto) with_ocaml_libdir="$withval" ;;
5857 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5858 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5859 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5860 { (exit 1); exit 1; }; } ;;
5864 # Check whether --with-clang-srcdir was given.
5865 if test "${with_clang_srcdir+set}" = set; then
5866 withval=$with_clang_srcdir;
5872 -) clang_src_root="" ;;
5873 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5874 *) clang_src_root="$ac_pwd/$withval" ;;
5876 CLANG_SRC_ROOT=$clang_src_root
5880 # Check whether --with-clang-resource-dir was given.
5881 if test "${with_clang_resource_dir+set}" = set; then
5882 withval=$with_clang_resource_dir;
5888 cat >>confdefs.h <<_ACEOF
5889 #define CLANG_RESOURCE_DIR "$withval"
5894 # Check whether --with-c-include-dirs was given.
5895 if test "${with_c_include_dirs+set}" = set; then
5896 withval=$with_c_include_dirs;
5902 cat >>confdefs.h <<_ACEOF
5903 #define C_INCLUDE_DIRS "$withval"
5907 # Clang normally uses the system c++ headers and libraries. With this option,
5908 # clang will use the ones provided by a gcc installation instead. This option should
5909 # be passed the same value that was used with --prefix when configuring gcc.
5911 # Check whether --with-gcc-toolchain was given.
5912 if test "${with_gcc_toolchain+set}" = set; then
5913 withval=$with_gcc_toolchain;
5919 cat >>confdefs.h <<_ACEOF
5920 #define GCC_INSTALL_PREFIX "$withval"
5925 # Check whether --with-default-sysroot was given.
5926 if test "${with_default_sysroot+set}" = set; then
5927 withval=$with_default_sysroot;
5933 cat >>confdefs.h <<_ACEOF
5934 #define DEFAULT_SYSROOT "$withval"
5939 # Check whether --with-binutils-include was given.
5940 if test "${with_binutils_include+set}" = set; then
5941 withval=$with_binutils_include;
5947 default) WITH_BINUTILS_INCDIR=default ;;
5948 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5949 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5950 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5951 { (exit 1); exit 1; }; } ;;
5953 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5954 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5956 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5957 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5958 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5959 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5960 { (exit 1); exit 1; }; };
5965 # Check whether --with-bug-report-url was given.
5966 if test "${with_bug_report_url+set}" = set; then
5967 withval=$with_bug_report_url;
5969 withval="http://llvm.org/bugs/"
5973 cat >>confdefs.h <<_ACEOF
5974 #define BUG_REPORT_URL "$withval"
5978 # Check whether --enable-libffi was given.
5979 if test "${enable_libffi+set}" = set; then
5980 enableval=$enable_libffi; case "$enableval" in
5981 yes) llvm_cv_enable_libffi="yes" ;;
5982 no) llvm_cv_enable_libffi="no" ;;
5983 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5984 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5985 { (exit 1); exit 1; }; } ;;
5988 llvm_cv_enable_libffi=no
5993 # Check whether --with-internal-prefix was given.
5994 if test "${with_internal_prefix+set}" = set; then
5995 withval=$with_internal_prefix;
6000 INTERNAL_PREFIX=$withval
6004 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6005 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6006 if test "${lt_cv_path_NM+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 if test -n "$NM"; then
6010 # Let the user override the test.
6013 lt_nm_to_check="${ac_tool_prefix}nm"
6014 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6015 lt_nm_to_check="$lt_nm_to_check nm"
6017 for lt_tmp_nm in $lt_nm_to_check; do
6018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6019 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6021 test -z "$ac_dir" && ac_dir=.
6022 tmp_nm="$ac_dir/$lt_tmp_nm"
6023 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6024 # Check to see if the nm accepts a BSD-compat flag.
6025 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6026 # nm: unknown option "B" ignored
6027 # Tru64's nm complains that /dev/null is an invalid object file
6028 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6029 */dev/null* | *'Invalid file or object type'*)
6030 lt_cv_path_NM="$tmp_nm -B"
6034 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6036 lt_cv_path_NM="$tmp_nm -p"
6040 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6041 continue # so that we can try to find one that supports BSD flags
6050 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6053 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6054 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6059 { echo "$as_me:$LINENO: checking for GNU make" >&5
6060 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6061 if test "${llvm_cv_gnu_make_command+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 llvm_cv_gnu_make_command=''
6065 for a in "$MAKE" make gmake gnumake ; do
6066 if test -z "$a" ; then continue ; fi ;
6067 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6069 llvm_cv_gnu_make_command=$a ;
6074 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6075 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6076 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6080 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6081 echo "${ECHO_T}\"Not found\"" >&6; };
6085 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6086 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6088 if test "$LN_S" = "ln -s"; then
6089 { echo "$as_me:$LINENO: result: yes" >&5
6090 echo "${ECHO_T}yes" >&6; }
6092 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6093 echo "${ECHO_T}no, using $LN_S" >&6; }
6096 # Extract the first word of "cmp", so it can be a program name with args.
6097 set dummy cmp; ac_word=$2
6098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100 if test "${ac_cv_path_CMP+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6128 if test -n "$CMP"; then
6129 { echo "$as_me:$LINENO: result: $CMP" >&5
6130 echo "${ECHO_T}$CMP" >&6; }
6132 { echo "$as_me:$LINENO: result: no" >&5
6133 echo "${ECHO_T}no" >&6; }
6137 # Extract the first word of "cp", so it can be a program name with args.
6138 set dummy cp; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_path_CP+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6169 if test -n "$CP"; then
6170 { echo "$as_me:$LINENO: result: $CP" >&5
6171 echo "${ECHO_T}$CP" >&6; }
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6178 # Extract the first word of "date", so it can be a program name with args.
6179 set dummy date; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_path_DATE+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6209 DATE=$ac_cv_path_DATE
6210 if test -n "$DATE"; then
6211 { echo "$as_me:$LINENO: result: $DATE" >&5
6212 echo "${ECHO_T}$DATE" >&6; }
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6219 # Extract the first word of "find", so it can be a program name with args.
6220 set dummy find; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_path_FIND+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6250 FIND=$ac_cv_path_FIND
6251 if test -n "$FIND"; then
6252 { echo "$as_me:$LINENO: result: $FIND" >&5
6253 echo "${ECHO_T}$FIND" >&6; }
6255 { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6260 # Extract the first word of "grep", so it can be a program name with args.
6261 set dummy grep; ac_word=$2
6262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264 if test "${ac_cv_path_GREP+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6291 GREP=$ac_cv_path_GREP
6292 if test -n "$GREP"; then
6293 { echo "$as_me:$LINENO: result: $GREP" >&5
6294 echo "${ECHO_T}$GREP" >&6; }
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6301 # Extract the first word of "mkdir", so it can be a program name with args.
6302 set dummy mkdir; ac_word=$2
6303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305 if test "${ac_cv_path_MKDIR+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6332 MKDIR=$ac_cv_path_MKDIR
6333 if test -n "$MKDIR"; then
6334 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6335 echo "${ECHO_T}$MKDIR" >&6; }
6337 { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6342 # Extract the first word of "mv", so it can be a program name with args.
6343 set dummy mv; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_path_MV+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6374 if test -n "$MV"; then
6375 { echo "$as_me:$LINENO: result: $MV" >&5
6376 echo "${ECHO_T}$MV" >&6; }
6378 { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6383 if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_RANLIB+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 if test -n "$RANLIB"; then
6392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 RANLIB=$ac_cv_prog_RANLIB
6412 if test -n "$RANLIB"; then
6413 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6414 echo "${ECHO_T}$RANLIB" >&6; }
6416 { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6422 if test -z "$ac_cv_prog_RANLIB"; then
6423 ac_ct_RANLIB=$RANLIB
6424 # Extract the first word of "ranlib", so it can be a program name with args.
6425 set dummy ranlib; ac_word=$2
6426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 if test -n "$ac_ct_RANLIB"; then
6432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_ac_ct_RANLIB="ranlib"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6452 if test -n "$ac_ct_RANLIB"; then
6453 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6454 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6456 { echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6; }
6460 if test "x$ac_ct_RANLIB" = x; then
6463 case $cross_compiling:$ac_tool_warned in
6465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6466 whose name does not start with the host triplet. If you think this
6467 configuration is useful to you, please write to autoconf@gnu.org." >&5
6468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6469 whose name does not start with the host triplet. If you think this
6470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6471 ac_tool_warned=yes ;;
6473 RANLIB=$ac_ct_RANLIB
6476 RANLIB="$ac_cv_prog_RANLIB"
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}ar; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_AR+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 if test -n "$AR"; then
6488 ac_cv_prog_AR="$AR" # Let the user override the test.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_AR="${ac_tool_prefix}ar"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 if test -n "$AR"; then
6509 { echo "$as_me:$LINENO: result: $AR" >&5
6510 echo "${ECHO_T}$AR" >&6; }
6512 { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6518 if test -z "$ac_cv_prog_AR"; then
6520 # Extract the first word of "ar", so it can be a program name with args.
6521 set dummy ar; ac_word=$2
6522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6524 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 if test -n "$ac_ct_AR"; then
6528 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6537 ac_cv_prog_ac_ct_AR="ar"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6548 if test -n "$ac_ct_AR"; then
6549 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6550 echo "${ECHO_T}$ac_ct_AR" >&6; }
6552 { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6556 if test "x$ac_ct_AR" = x; then
6559 case $cross_compiling:$ac_tool_warned in
6561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6562 whose name does not start with the host triplet. If you think this
6563 configuration is useful to you, please write to autoconf@gnu.org." >&5
6564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6565 whose name does not start with the host triplet. If you think this
6566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6567 ac_tool_warned=yes ;;
6575 # Extract the first word of "rm", so it can be a program name with args.
6576 set dummy rm; ac_word=$2
6577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579 if test "${ac_cv_path_RM+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6607 if test -n "$RM"; then
6608 { echo "$as_me:$LINENO: result: $RM" >&5
6609 echo "${ECHO_T}$RM" >&6; }
6611 { echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6; }
6616 # Extract the first word of "sed", so it can be a program name with args.
6617 set dummy sed; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_path_SED+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6648 if test -n "$SED"; then
6649 { echo "$as_me:$LINENO: result: $SED" >&5
6650 echo "${ECHO_T}$SED" >&6; }
6652 { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6657 # Extract the first word of "tar", so it can be a program name with args.
6658 set dummy tar; ac_word=$2
6659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661 if test "${ac_cv_path_TAR+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6689 if test -n "$TAR"; then
6690 { echo "$as_me:$LINENO: result: $TAR" >&5
6691 echo "${ECHO_T}$TAR" >&6; }
6693 { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6698 # Extract the first word of "pwd", so it can be a program name with args.
6699 set dummy pwd; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_path_BINPWD+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6729 BINPWD=$ac_cv_path_BINPWD
6730 if test -n "$BINPWD"; then
6731 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6732 echo "${ECHO_T}$BINPWD" >&6; }
6734 { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6740 # Extract the first word of "Graphviz", so it can be a program name with args.
6741 set dummy Graphviz; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6771 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6772 if test -n "$GRAPHVIZ"; then
6773 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6774 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6776 { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6781 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_GRAPHVIZ 1
6787 if test "$llvm_cv_os_type" = "MingW" ; then
6788 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6791 cat >>confdefs.h <<_ACEOF
6792 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6796 # Extract the first word of "dot", so it can be a program name with args.
6797 set dummy dot; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_DOT+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6828 if test -n "$DOT"; then
6829 { echo "$as_me:$LINENO: result: $DOT" >&5
6830 echo "${ECHO_T}$DOT" >&6; }
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 if test "$DOT" != "echo dot" ; then
6839 cat >>confdefs.h <<\_ACEOF
6843 if test "$llvm_cv_os_type" = "MingW" ; then
6844 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6847 cat >>confdefs.h <<_ACEOF
6848 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6852 # Extract the first word of "fdp", so it can be a program name with args.
6853 set dummy fdp; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_path_FDP+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6884 if test -n "$FDP"; then
6885 { echo "$as_me:$LINENO: result: $FDP" >&5
6886 echo "${ECHO_T}$FDP" >&6; }
6888 { echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6; }
6893 if test "$FDP" != "echo fdp" ; then
6895 cat >>confdefs.h <<\_ACEOF
6899 if test "$llvm_cv_os_type" = "MingW" ; then
6900 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6903 cat >>confdefs.h <<_ACEOF
6904 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6908 # Extract the first word of "neato", so it can be a program name with args.
6909 set dummy neato; ac_word=$2
6910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912 if test "${ac_cv_path_NEATO+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6939 NEATO=$ac_cv_path_NEATO
6940 if test -n "$NEATO"; then
6941 { echo "$as_me:$LINENO: result: $NEATO" >&5
6942 echo "${ECHO_T}$NEATO" >&6; }
6944 { echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6; }
6949 if test "$NEATO" != "echo neato" ; then
6951 cat >>confdefs.h <<\_ACEOF
6952 #define HAVE_NEATO 1
6955 if test "$llvm_cv_os_type" = "MingW" ; then
6956 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6959 cat >>confdefs.h <<_ACEOF
6960 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6964 # Extract the first word of "twopi", so it can be a program name with args.
6965 set dummy twopi; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_TWOPI+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6995 TWOPI=$ac_cv_path_TWOPI
6996 if test -n "$TWOPI"; then
6997 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6998 echo "${ECHO_T}$TWOPI" >&6; }
7000 { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7005 if test "$TWOPI" != "echo twopi" ; then
7007 cat >>confdefs.h <<\_ACEOF
7008 #define HAVE_TWOPI 1
7011 if test "$llvm_cv_os_type" = "MingW" ; then
7012 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7015 cat >>confdefs.h <<_ACEOF
7016 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7020 # Extract the first word of "circo", so it can be a program name with args.
7021 set dummy circo; ac_word=$2
7022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024 if test "${ac_cv_path_CIRCO+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7051 CIRCO=$ac_cv_path_CIRCO
7052 if test -n "$CIRCO"; then
7053 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7054 echo "${ECHO_T}$CIRCO" >&6; }
7056 { echo "$as_me:$LINENO: result: no" >&5
7057 echo "${ECHO_T}no" >&6; }
7061 if test "$CIRCO" != "echo circo" ; then
7063 cat >>confdefs.h <<\_ACEOF
7064 #define HAVE_CIRCO 1
7067 if test "$llvm_cv_os_type" = "MingW" ; then
7068 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7071 cat >>confdefs.h <<_ACEOF
7072 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7076 for ac_prog in gv gsview32
7078 # Extract the first word of "$ac_prog", so it can be a program name with args.
7079 set dummy $ac_prog; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_GV+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 if test -n "$GV"; then
7110 { echo "$as_me:$LINENO: result: $GV" >&5
7111 echo "${ECHO_T}$GV" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7118 test -n "$GV" && break
7120 test -n "$GV" || GV="echo gv"
7122 if test "$GV" != "echo gv" ; then
7124 cat >>confdefs.h <<\_ACEOF
7128 if test "$llvm_cv_os_type" = "MingW" ; then
7129 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7132 cat >>confdefs.h <<_ACEOF
7133 #define LLVM_PATH_GV "$GV${EXEEXT}"
7137 # Extract the first word of "dotty", so it can be a program name with args.
7138 set dummy dotty; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_DOTTY+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7168 DOTTY=$ac_cv_path_DOTTY
7169 if test -n "$DOTTY"; then
7170 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7171 echo "${ECHO_T}$DOTTY" >&6; }
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7178 if test "$DOTTY" != "echo dotty" ; then
7180 cat >>confdefs.h <<\_ACEOF
7181 #define HAVE_DOTTY 1
7184 if test "$llvm_cv_os_type" = "MingW" ; then
7185 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7188 cat >>confdefs.h <<_ACEOF
7189 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7193 # Extract the first word of "xdot.py", so it can be a program name with args.
7194 set dummy xdot.py; ac_word=$2
7195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7197 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7224 XDOT_PY=$ac_cv_path_XDOT_PY
7225 if test -n "$XDOT_PY"; then
7226 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7227 echo "${ECHO_T}$XDOT_PY" >&6; }
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7234 if test "$XDOT_PY" != "echo xdot.py" ; then
7236 cat >>confdefs.h <<\_ACEOF
7237 #define HAVE_XDOT_PY 1
7240 if test "$llvm_cv_os_type" = "MingW" ; then
7241 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7244 cat >>confdefs.h <<_ACEOF
7245 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7250 # Find a good install program. We prefer a C program (faster),
7251 # so one script is as good as another. But avoid the broken or
7252 # incompatible versions:
7253 # SysV /etc/install, /usr/sbin/install
7254 # SunOS /usr/etc/install
7255 # IRIX /sbin/install
7257 # AmigaOS /C/install, which installs bootblocks on floppy discs
7258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7261 # OS/2's system install, which has a completely different semantic
7262 # ./install, which can be erroneously created by make from ./install.sh.
7263 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7265 if test -z "$INSTALL"; then
7266 if test "${ac_cv_path_install+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 # Account for people who put trailing slashes in PATH elements.
7276 ./ | .// | /cC/* | \
7277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7281 # OSF1 and SCO ODT 3.0 have their own names for install.
7282 # Don't use installbsd from OSF since it installs stuff as root
7284 for ac_prog in ginstall scoinst install; do
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7287 if test $ac_prog = install &&
7288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7289 # AIX install. It has an incompatible calling convention.
7291 elif test $ac_prog = install &&
7292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7293 # program-specific install script used by HP pwplus--don't use.
7296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7309 if test "${ac_cv_path_install+set}" = set; then
7310 INSTALL=$ac_cv_path_install
7312 # As a last resort, use the slow shell script. Don't cache a
7313 # value for INSTALL within a source directory, because that will
7314 # break other packages using the cache if that directory is
7315 # removed, or if the value is a relative name.
7316 INSTALL=$ac_install_sh
7319 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7320 echo "${ECHO_T}$INSTALL" >&6; }
7322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7323 # It thinks the first close brace ends the variable substitution.
7324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7331 [\\/$]* | ?:[\\/]* ) ;;
7332 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7335 # Extract the first word of "bzip2", so it can be a program name with args.
7336 set dummy bzip2; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_path_BZIP2+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 BZIP2=$ac_cv_path_BZIP2
7366 if test -n "$BZIP2"; then
7367 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7368 echo "${ECHO_T}$BZIP2" >&6; }
7370 { echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6; }
7375 # Extract the first word of "cat", so it can be a program name with args.
7376 set dummy cat; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_CAT+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 if test -n "$CAT"; then
7407 { echo "$as_me:$LINENO: result: $CAT" >&5
7408 echo "${ECHO_T}$CAT" >&6; }
7410 { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7415 # Extract the first word of "doxygen", so it can be a program name with args.
7416 set dummy doxygen; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 DOXYGEN=$ac_cv_path_DOXYGEN
7446 if test -n "$DOXYGEN"; then
7447 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7448 echo "${ECHO_T}$DOXYGEN" >&6; }
7450 { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7455 # Extract the first word of "groff", so it can be a program name with args.
7456 set dummy groff; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_GROFF+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 GROFF=$ac_cv_path_GROFF
7486 if test -n "$GROFF"; then
7487 { echo "$as_me:$LINENO: result: $GROFF" >&5
7488 echo "${ECHO_T}$GROFF" >&6; }
7490 { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7495 # Extract the first word of "gzip", so it can be a program name with args.
7496 set dummy gzip; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 GZIPBIN=$ac_cv_path_GZIPBIN
7526 if test -n "$GZIPBIN"; then
7527 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7528 echo "${ECHO_T}$GZIPBIN" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7535 # Extract the first word of "pdfroff", so it can be a program name with args.
7536 set dummy pdfroff; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_PDFROFF+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 PDFROFF=$ac_cv_path_PDFROFF
7566 if test -n "$PDFROFF"; then
7567 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7568 echo "${ECHO_T}$PDFROFF" >&6; }
7570 { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7575 # Extract the first word of "zip", so it can be a program name with args.
7576 set dummy zip; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_ZIP+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 if test -n "$ZIP"; then
7607 { echo "$as_me:$LINENO: result: $ZIP" >&5
7608 echo "${ECHO_T}$ZIP" >&6; }
7610 { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7615 for ac_prog in ocamlc
7617 # Extract the first word of "$ac_prog", so it can be a program name with args.
7618 set dummy $ac_prog; ac_word=$2
7619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621 if test "${ac_cv_path_OCAMLC+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7636 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 OCAMLC=$ac_cv_path_OCAMLC
7648 if test -n "$OCAMLC"; then
7649 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7650 echo "${ECHO_T}$OCAMLC" >&6; }
7652 { echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6; }
7657 test -n "$OCAMLC" && break
7660 for ac_prog in ocamlopt
7662 # Extract the first word of "$ac_prog", so it can be a program name with args.
7663 set dummy $ac_prog; ac_word=$2
7664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7681 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 OCAMLOPT=$ac_cv_path_OCAMLOPT
7693 if test -n "$OCAMLOPT"; then
7694 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7695 echo "${ECHO_T}$OCAMLOPT" >&6; }
7697 { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7702 test -n "$OCAMLOPT" && break
7705 for ac_prog in ocamldep
7707 # Extract the first word of "$ac_prog", so it can be a program name with args.
7708 set dummy $ac_prog; ac_word=$2
7709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7711 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 OCAMLDEP=$ac_cv_path_OCAMLDEP
7738 if test -n "$OCAMLDEP"; then
7739 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7740 echo "${ECHO_T}$OCAMLDEP" >&6; }
7742 { echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6; }
7747 test -n "$OCAMLDEP" && break
7750 for ac_prog in ocamldoc
7752 # Extract the first word of "$ac_prog", so it can be a program name with args.
7753 set dummy $ac_prog; ac_word=$2
7754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7756 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7771 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 OCAMLDOC=$ac_cv_path_OCAMLDOC
7783 if test -n "$OCAMLDOC"; then
7784 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7785 echo "${ECHO_T}$OCAMLDOC" >&6; }
7787 { echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6; }
7792 test -n "$OCAMLDOC" && break
7795 for ac_prog in gas as
7797 # Extract the first word of "$ac_prog", so it can be a program name with args.
7798 set dummy $ac_prog; ac_word=$2
7799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801 if test "${ac_cv_path_GAS+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7816 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 if test -n "$GAS"; then
7829 { echo "$as_me:$LINENO: result: $GAS" >&5
7830 echo "${ECHO_T}$GAS" >&6; }
7832 { echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6; }
7837 test -n "$GAS" && break
7841 { echo "$as_me:$LINENO: checking for linker version" >&5
7842 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7843 if test "${llvm_cv_link_version+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 version_string="$(ld -v 2>&1 | head -1)"
7850 if (echo "$version_string" | grep -q "ld64"); then
7851 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7853 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7857 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7858 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7860 cat >>confdefs.h <<_ACEOF
7861 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7866 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7867 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7868 if test "${llvm_cv_link_use_r+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878 CFLAGS="$CFLAGS -Wl,-R."
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7894 rm -f conftest.$ac_objext conftest$ac_exeext
7895 if { (ac_try="$ac_link"
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_link") 2>conftest.er1
7903 grep -v '^ *+' conftest.er1 >conftest.err
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7909 { (case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_try") 2>&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; } &&
7918 { ac_try='test -s conftest$ac_exeext'
7919 { (case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_try") 2>&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 llvm_cv_link_use_r=yes
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 llvm_cv_link_use_r=no
7936 rm -f core conftest.err conftest.$ac_objext \
7937 conftest$ac_exeext conftest.$ac_ext
7940 ac_cpp='$CPP $CPPFLAGS'
7941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7947 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7948 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7949 if test "$llvm_cv_link_use_r" = yes ; then
7951 cat >>confdefs.h <<\_ACEOF
7952 #define HAVE_LINK_R 1
7958 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7959 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7960 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7971 cat >conftest.$ac_ext <<_ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7986 rm -f conftest.$ac_objext conftest$ac_exeext
7987 if { (ac_try="$ac_link"
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_link") 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8001 { (case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_try") 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_try") 2>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 llvm_cv_link_use_export_dynamic=yes
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 llvm_cv_link_use_export_dynamic=no
8028 rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8032 ac_cpp='$CPP $CPPFLAGS'
8033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8039 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8040 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8041 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8043 cat >>confdefs.h <<\_ACEOF
8044 #define HAVE_LINK_EXPORT_DYNAMIC 1
8050 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8051 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8052 if test "${llvm_cv_link_use_version_script+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 ac_cpp='$CPP $CPPFLAGS'
8057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8063 # The following code is from the autoconf manual,
8064 # "11.13: Limitations of Usual Tools".
8065 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8066 # Use mktemp if possible; otherwise fall back on mkdir,
8067 # with $RANDOM to make collisions less likely.
8071 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8073 test -n "$tmp" && test -d "$tmp"
8075 tmp=$TMPDIR/foo$$-$RANDOM
8076 (umask 077 && mkdir "$tmp")
8079 echo "{" > "$tmp/export.map"
8080 echo " global: main;" >> "$tmp/export.map"
8081 echo " local: *;" >> "$tmp/export.map"
8082 echo "};" >> "$tmp/export.map"
8084 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (ac_try="$ac_link"
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_link") 2>conftest.er1
8109 grep -v '^ *+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8115 { (case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_try") 2>&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest$ac_exeext'
8125 { (case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_try") 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 llvm_cv_link_use_version_script=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 llvm_cv_link_use_version_script=no
8142 rm -f core conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8144 rm "$tmp/export.map"
8148 ac_cpp='$CPP $CPPFLAGS'
8149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8155 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8156 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8157 if test "$llvm_cv_link_use_version_script" = yes ; then
8158 HAVE_LINK_VERSION_SCRIPT=1
8165 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8166 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8167 if test "${ac_cv_c_const+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 cat >conftest.$ac_ext <<_ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8180 /* FIXME: Include the comments suggested by Paul. */
8182 /* Ultrix mips cc rejects this. */
8183 typedef int charset[2];
8185 /* SunOS 4.1.1 cc rejects this. */
8186 char const *const *ccp;
8188 /* NEC SVR4.0.2 mips cc rejects this. */
8189 struct point {int x, y;};
8190 static struct point const zero = {0,0};
8191 /* AIX XL C 1.02.0.0 rejects this.
8192 It does not let you subtract one const X* pointer from another in
8193 an arm of an if-expression whose if-part is not a constant
8195 const char *g = "string";
8196 ccp = &g + (g ? g-g : 0);
8197 /* HPUX 7.0 cc rejects these. */
8200 ccp = (char const *const *) p;
8201 { /* SCO 3.2v4 cc rejects this. */
8203 char const *s = 0 ? (char *) 0 : (char const *) 0;
8208 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8210 const int *foo = &x[0];
8213 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8214 typedef const int *iptr;
8218 { /* AIX XL C 1.02.0.0 rejects this saying
8219 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8220 struct s { int j; const int *ap[3]; };
8221 struct s *b; b->j = 5;
8223 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8227 return !x[0] && !zero.x;
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_compile") 2>conftest.er1
8243 grep -v '^ *+' conftest.er1 >conftest.err
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249 { (case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_try") 2>&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_try") 2>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8279 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8280 if test $ac_cv_c_const = no; then
8282 cat >>confdefs.h <<\_ACEOF
8294 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8295 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8296 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8297 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 #include <sys/types.h>
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8328 grep -v '^ *+' conftest.er1 >conftest.err
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try='test -s conftest.$ac_objext'
8344 { (case "(($ac_try" in
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_try") 2>&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 eval "$as_ac_Header=yes"
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8358 eval "$as_ac_Header=no"
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 ac_res=`eval echo '${'$as_ac_Header'}'`
8364 { echo "$as_me:$LINENO: result: $ac_res" >&5
8365 echo "${ECHO_T}$ac_res" >&6; }
8366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8367 cat >>confdefs.h <<_ACEOF
8368 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8371 ac_header_dirent=$ac_hdr; break
8375 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8376 if test $ac_header_dirent = dirent.h; then
8377 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8378 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8379 if test "${ac_cv_search_opendir+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 ac_func_search_save_LIBS=$LIBS
8383 cat >conftest.$ac_ext <<_ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8390 /* Override any GCC internal prototype to avoid an error.
8391 Use char because int might match the return type of a GCC
8392 builtin and then its argument prototype would still apply. */
8405 for ac_lib in '' dir; do
8406 if test -z "$ac_lib"; then
8407 ac_res="none required"
8410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (ac_try="$ac_link"
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_link") 2>conftest.er1
8421 grep -v '^ *+' conftest.er1 >conftest.err
8423 cat conftest.err >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8427 { (case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_try") 2>&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; } &&
8436 { ac_try='test -s conftest$ac_exeext'
8437 { (case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_try") 2>&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 ac_cv_search_opendir=$ac_res
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8454 rm -f core conftest.err conftest.$ac_objext \
8456 if test "${ac_cv_search_opendir+set}" = set; then
8460 if test "${ac_cv_search_opendir+set}" = set; then
8463 ac_cv_search_opendir=no
8466 LIBS=$ac_func_search_save_LIBS
8468 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8469 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8470 ac_res=$ac_cv_search_opendir
8471 if test "$ac_res" != no; then
8472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8477 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8478 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8479 if test "${ac_cv_search_opendir+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 ac_func_search_save_LIBS=$LIBS
8483 cat >conftest.$ac_ext <<_ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8490 /* Override any GCC internal prototype to avoid an error.
8491 Use char because int might match the return type of a GCC
8492 builtin and then its argument prototype would still apply. */
8505 for ac_lib in '' x; do
8506 if test -z "$ac_lib"; then
8507 ac_res="none required"
8510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (ac_try="$ac_link"
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_link") 2>conftest.er1
8521 grep -v '^ *+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8527 { (case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_try") 2>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 ac_cv_search_opendir=$ac_res
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8554 rm -f core conftest.err conftest.$ac_objext \
8556 if test "${ac_cv_search_opendir+set}" = set; then
8560 if test "${ac_cv_search_opendir+set}" = set; then
8563 ac_cv_search_opendir=no
8566 LIBS=$ac_func_search_save_LIBS
8568 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8569 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8570 ac_res=$ac_cv_search_opendir
8571 if test "$ac_res" != no; then
8572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8579 for ac_header in dlfcn.h
8581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 ac_res=`eval echo '${'$as_ac_Header'}'`
8589 { echo "$as_me:$LINENO: result: $ac_res" >&5
8590 echo "${ECHO_T}$ac_res" >&6; }
8592 # Is the header compilable?
8593 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 $ac_includes_default
8602 #include <$ac_header>
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8613 grep -v '^ *+' conftest.er1 >conftest.err
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619 { (case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_try") 2>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_header_compiler=yes
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_header_compiler=no
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8648 echo "${ECHO_T}$ac_header_compiler" >&6; }
8650 # Is the header present?
8651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8653 cat >conftest.$ac_ext <<_ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 #include <$ac_header>
8661 if { (ac_try="$ac_cpp conftest.$ac_ext"
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8669 grep -v '^ *+' conftest.er1 >conftest.err
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } >/dev/null; then
8674 if test -s conftest.err; then
8675 ac_cpp_err=$ac_c_preproc_warn_flag
8676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8683 if test -z "$ac_cpp_err"; then
8684 ac_header_preproc=yes
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ac_header_preproc=no
8692 rm -f conftest.err conftest.$ac_ext
8693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8694 echo "${ECHO_T}$ac_header_preproc" >&6; }
8696 # So? What about this header?
8697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8703 ac_header_preproc=yes
8706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8719 ## ------------------------------------ ##
8720 ## Report this to http://llvm.org/bugs/ ##
8721 ## ------------------------------------ ##
8723 ) | sed "s/^/$as_me: WARNING: /" >&2
8726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 eval "$as_ac_Header=\$ac_header_preproc"
8733 ac_res=`eval echo '${'$as_ac_Header'}'`
8734 { echo "$as_me:$LINENO: result: $ac_res" >&5
8735 echo "${ECHO_T}$ac_res" >&6; }
8738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8739 cat >>confdefs.h <<_ACEOF
8740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8747 # Check whether --enable-ltdl-install was given.
8748 if test "${enable_ltdl_install+set}" = set; then
8749 enableval=$enable_ltdl_install;
8755 if test x"${enable_ltdl_install-no}" != xno; then
8757 INSTALL_LTDL_FALSE='#'
8759 INSTALL_LTDL_TRUE='#'
8765 if test x"${enable_ltdl_convenience-no}" != xno; then
8766 CONVENIENCE_LTDL_TRUE=
8767 CONVENIENCE_LTDL_FALSE='#'
8769 CONVENIENCE_LTDL_TRUE='#'
8770 CONVENIENCE_LTDL_FALSE=
8774 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8775 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8777 libname_spec='lib$name'
8785 shlibpath_overrides_runpath=unknown
8787 dynamic_linker="$host_os ld.so"
8788 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8789 if test "$GCC" = yes; then
8790 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8791 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8792 # if the path contains ";" then we assume it to be the separator
8793 # otherwise default to the standard path separator (i.e. ":") - it is
8794 # assumed that no part of a normal pathname contains ";" but that should
8795 # okay in the real world where ";" in dirpaths is itself problematic.
8796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8801 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8803 need_lib_prefix=unknown
8804 hardcode_into_libs=no
8806 # when you set need_version to no, make sure it does not cause -set_version
8807 # flags to be left without arguments
8808 need_version=unknown
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8814 shlibpath_var=LIBPATH
8816 # AIX 3 has no versioning support, so we append a major version to the name.
8817 soname_spec='${libname}${release}${shared_ext}$major'
8824 hardcode_into_libs=yes
8825 if test "$host_cpu" = ia64; then
8826 # AIX 5 supports IA64
8827 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8828 shlibpath_var=LD_LIBRARY_PATH
8830 # With GCC up to 2.95.x, collect2 would create an import file
8831 # for dependence libraries. The import file would start with
8832 # the line `#! .'. This would cause the generated library to
8833 # depend on `.', always an invalid library. This was fixed in
8834 # development snapshots of GCC prior to 3.0.
8836 aix4 | aix4.[01] | aix4.[01].*)
8837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8839 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8846 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8847 # soname into executable. Probably we can add versioning support to
8848 # collect2, so additional links can be useful in future.
8849 if test "$aix_use_runtimelinking" = yes; then
8850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8851 # instead of lib<name>.a to let people know that these are not
8852 # typical AIX shared libraries.
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855 # We preserve .a as extension for shared libraries through AIX4.2
8856 # and later when we are not doing run time linking.
8857 library_names_spec='${libname}${release}.a $libname.a'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8860 shlibpath_var=LIBPATH
8865 library_names_spec='$libname.ixlibrary $libname.a'
8866 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8867 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'
8871 library_names_spec='${libname}${shared_ext}'
8872 dynamic_linker="$host_os ld.so"
8873 shlibpath_var=LIBRARY_PATH
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8884 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8885 # the default ld.so.conf also contains /usr/contrib/lib and
8886 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8887 # libtool to hard-code these into programs
8890 cygwin* | mingw* | pw32*)
8891 version_type=windows
8896 case $GCC,$host_os in
8897 yes,cygwin* | yes,mingw* | yes,pw32*)
8898 library_names_spec='$libname.dll.a'
8899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8900 postinstall_cmds='base_file=`basename \${file}`~
8901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8902 dldir=$destdir/`dirname \$dlpath`~
8903 test -d \$dldir || mkdir -p \$dldir~
8904 $install_prog $dir/$dlname \$dldir/$dlname~
8905 chmod a+x \$dldir/$dlname'
8906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8907 dlpath=$dir/\$dldll~
8909 shlibpath_overrides_runpath=yes
8913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8915 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8918 # MinGW DLLs use traditional 'lib' prefix
8919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8921 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8922 # It is most probably a Windows format PATH printed by
8923 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8924 # path with ; separators, and with drive letters. We can handle the
8925 # drive letters (cygwin fileutils understands them), so leave them,
8926 # especially as we might pass files found there to a mingw objdump,
8927 # which wouldn't understand a cygwinified path. Ahh.
8928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8934 # pw32 DLLs use 'pw' prefix rather than 'lib'
8935 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8944 dynamic_linker='Win32 ld.exe'
8945 # FIXME: first we should search . and the directory the executable is in
8949 darwin* | rhapsody*)
8950 dynamic_linker="$host_os dyld"
8954 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8955 soname_spec='${libname}${release}${major}$shared_ext'
8956 shlibpath_overrides_runpath=yes
8957 shlibpath_var=DYLD_LIBRARY_PATH
8958 shrext_cmds='.dylib'
8959 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8960 if test "$GCC" = yes; then
8961 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"`
8963 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8965 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8973 soname_spec='${libname}${release}${shared_ext}$major'
8974 shlibpath_var=LD_LIBRARY_PATH
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=no
8989 hardcode_into_libs=yes
8990 dynamic_linker='GNU ld.so'
8993 freebsd* | dragonfly*)
8994 # DragonFly does not have aout. When/if they implement a new
8995 # versioning mechanism, adjust this.
8996 if test -x /usr/bin/objformat; then
8997 objformat=`/usr/bin/objformat`
9000 freebsd[123].*) objformat=aout ;;
9004 version_type=freebsd-$objformat
9005 case $version_type in
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9016 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes
9021 freebsd3.[01]* | freebsdelf3.[01]*)
9022 shlibpath_overrides_runpath=yes
9023 hardcode_into_libs=yes
9025 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9026 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9027 shlibpath_overrides_runpath=no
9028 hardcode_into_libs=yes
9030 freebsd*) # from 4.6 on
9031 shlibpath_overrides_runpath=yes
9032 hardcode_into_libs=yes
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 hardcode_into_libs=yes
9047 hpux9* | hpux10* | hpux11*)
9048 # Give a soname corresponding to the major version so that dld.sl refuses to
9049 # link against other versions.
9056 hardcode_into_libs=yes
9057 dynamic_linker="$host_os dld.so"
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 if test "X$HPUX_IA64_MODE" = X32; then
9063 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9065 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9071 hardcode_into_libs=yes
9072 dynamic_linker="$host_os dld.sl"
9073 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9082 dynamic_linker="$host_os dld.sl"
9083 shlibpath_var=SHLIB_PATH
9084 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9089 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9090 postinstall_cmds='chmod 555 $lib'
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=no
9102 hardcode_into_libs=yes
9105 irix5* | irix6* | nonstopux*)
9107 nonstopux*) version_type=nonstopux ;;
9109 if test "$lt_cv_prog_gnu_ld" = yes; then
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9120 irix5* | nonstopux*)
9124 case $LD in # libtool.m4 will add one of these switches to LD
9125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9126 libsuff= shlibsuff= libmagic=32-bit;;
9127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9128 libsuff=32 shlibsuff=N32 libmagic=N32;;
9129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9131 *) libsuff= shlibsuff= libmagic=never-match;;
9135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9136 shlibpath_overrides_runpath=no
9137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9139 hardcode_into_libs=yes
9142 # No shared lib support for Linux oldld, aout, or coff.
9143 linux*oldld* | linux*aout* | linux*coff*)
9147 # This must be Linux ELF.
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=no
9157 # This implies no fast_install, which is unacceptable.
9158 # Some rework will be needed to allow for fast_install
9159 # before this can be enabled.
9160 hardcode_into_libs=yes
9162 # Append ld.so.conf contents to the search path
9163 if test -f /etc/ld.so.conf; then
9164 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' ' '`
9165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9168 # We used to test for /lib/ld.so.1 and disable shared libraries on
9169 # powerpc, because MkLinux only supported shared libraries with the
9170 # GNU dynamic linker. Since this was broken with cross compilers,
9171 # most powerpc-linux boxes support dynamic linking these days and
9172 # people can always --disable-shared, the test was removed, and we
9173 # assume the GNU/Linux dynamic linker is in use.
9174 dynamic_linker='GNU/Linux ld.so'
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 shlibpath_overrides_runpath=no
9185 hardcode_into_libs=yes
9186 dynamic_linker='GNU ld.so'
9193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9196 dynamic_linker='NetBSD (a.out) ld.so'
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 dynamic_linker='NetBSD ld.elf_so'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=yes
9204 hardcode_into_libs=yes
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=yes
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=yes
9226 sys_lib_dlsearch_path_spec="/usr/lib"
9228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9230 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9231 *) need_version=no ;;
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9238 openbsd2.[89] | openbsd2.[89].*)
9239 shlibpath_overrides_runpath=no
9242 shlibpath_overrides_runpath=yes
9246 shlibpath_overrides_runpath=yes
9251 libname_spec='$name'
9254 library_names_spec='$libname${shared_ext} $libname.a'
9255 dynamic_linker='OS/2 ld.exe'
9256 shlibpath_var=LIBPATH
9259 osf3* | osf4* | osf5*)
9263 soname_spec='${libname}${release}${shared_ext}$major'
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes
9278 hardcode_into_libs=yes
9279 # ldd complains unless libraries are executable
9280 postinstall_cmds='chmod +x $lib'
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=yes
9289 if test "$with_gnu_ld" = yes; then
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 case $host_vendor in
9302 shlibpath_overrides_runpath=no
9304 export_dynamic_flag_spec='${wl}-Blargedynsym'
9305 runpath_var=LD_RUN_PATH
9313 shlibpath_overrides_runpath=no
9314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9320 if test -d /usr/nec ;then
9322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9323 soname_spec='$libname${shared_ext}.$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9329 version_type=freebsd-elf
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9333 soname_spec='${libname}${release}${shared_ext}$major'
9334 shlibpath_var=LD_LIBRARY_PATH
9335 hardcode_into_libs=yes
9336 if test "$with_gnu_ld" = yes; then
9337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9338 shlibpath_overrides_runpath=no
9340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9341 shlibpath_overrides_runpath=yes
9344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9348 sys_lib_dlsearch_path_spec='/usr/lib'
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9363 echo "${ECHO_T}$dynamic_linker" >&6; }
9364 test "$dynamic_linker" = no && can_build_shared=no
9366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9367 if test "$GCC" = yes; then
9368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9372 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9373 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9374 if test "${libltdl_cv_shlibext+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 eval libltdl_cv_shlibext=$shrext_cmds
9382 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9383 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9384 if test -n "$libltdl_cv_shlibext"; then
9386 cat >>confdefs.h <<_ACEOF
9387 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9393 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9394 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9395 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 libltdl_cv_shlibpath_var="$shlibpath_var"
9400 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9401 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9402 if test -n "$libltdl_cv_shlibpath_var"; then
9404 cat >>confdefs.h <<_ACEOF
9405 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9411 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9412 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9413 if test "${libltdl_cv_sys_search_path+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9418 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9419 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9420 if test -n "$libltdl_cv_sys_search_path"; then
9422 for dir in $libltdl_cv_sys_search_path; do
9423 if test -z "$sys_search_path"; then
9424 sys_search_path="$dir"
9426 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9430 cat >>confdefs.h <<_ACEOF
9431 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9436 { echo "$as_me:$LINENO: checking for objdir" >&5
9437 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9438 if test "${libltdl_cv_objdir+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 libltdl_cv_objdir="$objdir"
9442 if test -n "$objdir"; then
9445 rm -f .libs 2>/dev/null
9446 mkdir .libs 2>/dev/null
9447 if test -d .libs; then
9448 libltdl_cv_objdir=.libs
9450 # MS-DOS does not allow filenames that begin with a dot.
9451 libltdl_cv_objdir=_libs
9453 rmdir .libs 2>/dev/null
9457 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9458 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9460 cat >>confdefs.h <<_ACEOF
9461 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9469 # Check for command to grab the raw symbol name followed by C symbol from nm.
9470 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9471 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9472 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 # These are sane defaults that work on at least a few old systems.
9477 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9479 # Character class describing NM global symbol codes.
9480 symcode='[BCDEGRST]'
9482 # Regexp to match symbols that can be accessed directly from C.
9483 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9485 # Transform an extracted symbol line into a proper C declaration
9486 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9488 # Transform an extracted symbol line into symbol name and symbol address
9489 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'"
9491 # Define system-specific variables.
9496 cygwin* | mingw* | pw32*)
9497 symcode='[ABCDGISTW]'
9499 hpux*) # Its linker distinguishes data from code symbols
9500 if test "$host_cpu" = ia64; then
9501 symcode='[ABCDEGRST]'
9503 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9504 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'"
9507 if test "$host_cpu" = ia64; then
9508 symcode='[ABCDGIRSTW]'
9509 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9510 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'"
9514 symcode='[BCDEGRST]'
9517 symcode='[BCDEGQRST]'
9528 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9536 # Handle CRLF in mingw tool chain
9540 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9544 # If we're using GNU nm, then use its standard symbol codes.
9545 case `$NM -V 2>&1` in
9546 *GNU* | *'with BFD'*)
9547 symcode='[ABCDGIRSTW]' ;;
9550 # Try without a prefix undercore, then with it.
9551 for ac_symprfx in "" "_"; do
9553 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9554 symxfrm="\\1 $ac_symprfx\\2 \\2"
9556 # Write the raw and C identifiers.
9557 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9559 # Check to see that the pipe works correctly.
9563 cat > conftest.$ac_ext <<EOF
9568 void nm_test_func(){}
9572 int main(){nm_test_var='a';nm_test_func();return(0);}
9575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9576 (eval $ac_compile) 2>&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; then
9580 # Now try to grab the symbols.
9582 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9583 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } && test -s "$nlist"; then
9587 # Try sorting and uniquifying the output.
9588 if sort "$nlist" | uniq > "$nlist"T; then
9589 mv -f "$nlist"T "$nlist"
9594 # Make sure that we snagged all the symbols we need.
9595 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9596 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9597 cat <<EOF > conftest.$ac_ext
9603 # Now generate the symbol file.
9604 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9606 cat <<EOF >> conftest.$ac_ext
9607 #if defined (__STDC__) && __STDC__
9608 # define lt_ptr_t void *
9610 # define lt_ptr_t char *
9614 /* The mapping between symbol names and symbols. */
9619 lt_preloaded_symbols[] =
9622 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9623 cat <<\EOF >> conftest.$ac_ext
9631 # Now try linking the two files.
9632 mv conftest.$ac_objext conftstm.$ac_objext
9633 lt_save_LIBS="$LIBS"
9634 lt_save_CFLAGS="$CFLAGS"
9635 LIBS="conftstm.$ac_objext"
9636 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638 (eval $ac_link) 2>&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9644 LIBS="$lt_save_LIBS"
9645 CFLAGS="$lt_save_CFLAGS"
9647 echo "cannot find nm_test_func in $nlist" >&5
9650 echo "cannot find nm_test_var in $nlist" >&5
9653 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9656 echo "$progname: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9659 rm -f conftest* conftst*
9661 # Do not use the global_symbol_pipe unless it works.
9662 if test "$pipe_works" = yes; then
9665 lt_cv_sys_global_symbol_pipe=
9671 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9672 lt_cv_sys_global_symbol_to_cdecl=
9674 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9675 { echo "$as_me:$LINENO: result: failed" >&5
9676 echo "${ECHO_T}failed" >&6; }
9678 { echo "$as_me:$LINENO: result: ok" >&5
9679 echo "${ECHO_T}ok" >&6; }
9683 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9684 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9685 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9689 libltdl_cv_preloaded_symbols=yes
9691 libltdl_cv_preloaded_symbols=no
9695 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9696 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9697 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9699 cat >>confdefs.h <<\_ACEOF
9700 #define HAVE_PRELOADED_SYMBOLS 1
9708 ac_cpp='$CPP $CPPFLAGS'
9709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9714 { echo "$as_me:$LINENO: checking for shl_load" >&5
9715 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9716 if test "${ac_cv_func_shl_load+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 cat >conftest.$ac_ext <<_ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9727 #define shl_load innocuous_shl_load
9729 /* System header to define __stub macros and hopefully few prototypes,
9730 which can conflict with char shl_load (); below.
9731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9732 <limits.h> exists even on freestanding compilers. */
9735 # include <limits.h>
9737 # include <assert.h>
9742 /* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9749 /* The GNU C library defines this for functions which it implements
9750 to always fail with ENOSYS. Some functions are actually named
9751 something starting with __ and the normal name is an alias. */
9752 #if defined __stub_shl_load || defined __stub___shl_load
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1 >conftest.err
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779 { (case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_try") 2>&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_func_shl_load=yes
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9803 ac_cv_func_shl_load=no
9806 rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9809 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9810 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9811 if test $ac_cv_func_shl_load = yes; then
9813 cat >>confdefs.h <<\_ACEOF
9814 #define HAVE_SHL_LOAD 1
9818 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9819 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9820 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 ac_check_lib_save_LIBS=$LIBS
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9832 /* Override any GCC internal prototype to avoid an error.
9833 Use char because int might match the return type of a GCC
9834 builtin and then its argument prototype would still apply. */
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854 (eval "$ac_link") 2>conftest.er1
9856 grep -v '^ *+' conftest.er1 >conftest.err
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862 { (case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_try") 2>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest$ac_exeext'
9872 { (case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_try") 2>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_lib_dld_shl_load=yes
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 ac_cv_lib_dld_shl_load=no
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9894 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9895 if test $ac_cv_lib_dld_shl_load = yes; then
9897 cat >>confdefs.h <<\_ACEOF
9898 #define HAVE_SHL_LOAD 1
9901 LIBADD_DL="$LIBADD_DL -ldld"
9903 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9904 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9905 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 ac_check_lib_save_LIBS=$LIBS
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 /* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947 { (case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_try") 2>&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_lib_dl_dlopen=yes
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 ac_cv_lib_dl_dlopen=no
9974 rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9979 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9980 if test $ac_cv_lib_dl_dlopen = yes; then
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_LIBDL 1
9986 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9988 cat >conftest.$ac_ext <<_ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (ac_try="$ac_link"
10008 case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_link") 2>conftest.er1
10015 grep -v '^ *+' conftest.er1 >conftest.err
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10021 { (case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_try") 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_try") 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10041 cat >>confdefs.h <<\_ACEOF
10042 #define HAVE_LIBDL 1
10044 libltdl_cv_func_dlopen="yes"
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10050 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10051 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 ac_check_lib_save_LIBS=$LIBS
10055 LIBS="-lsvld $LIBS"
10056 cat >conftest.$ac_ext <<_ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10063 /* Override any GCC internal prototype to avoid an error.
10064 Use char because int might match the return type of a GCC
10065 builtin and then its argument prototype would still apply. */
10078 rm -f conftest.$ac_objext conftest$ac_exeext
10079 if { (ac_try="$ac_link"
10080 case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_link") 2>conftest.er1
10087 grep -v '^ *+' conftest.er1 >conftest.err
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093 { (case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_try") 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_try") 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_lib_svld_dlopen=yes
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 ac_cv_lib_svld_dlopen=no
10120 rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10124 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10125 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10126 if test $ac_cv_lib_svld_dlopen = yes; then
10128 cat >>confdefs.h <<\_ACEOF
10129 #define HAVE_LIBDL 1
10132 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10134 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10135 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10136 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 ac_check_lib_save_LIBS=$LIBS
10141 cat >conftest.$ac_ext <<_ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10148 /* Override any GCC internal prototype to avoid an error.
10149 Use char because int might match the return type of a GCC
10150 builtin and then its argument prototype would still apply. */
10158 return dld_link ();
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10178 { (case "(($ac_try" in
10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180 *) ac_try_echo=$ac_try;;
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 (eval "$ac_try") 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; } &&
10187 { ac_try='test -s conftest$ac_exeext'
10188 { (case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_try") 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_lib_dld_dld_link=yes
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 ac_cv_lib_dld_dld_link=no
10205 rm -f core conftest.err conftest.$ac_objext \
10206 conftest$ac_exeext conftest.$ac_ext
10207 LIBS=$ac_check_lib_save_LIBS
10209 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10210 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10211 if test $ac_cv_lib_dld_dld_link = yes; then
10213 cat >>confdefs.h <<\_ACEOF
10217 LIBADD_DL="$LIBADD_DL -ldld"
10219 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10220 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10221 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 cat >conftest.$ac_ext <<_ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10230 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10232 #define _dyld_func_lookup innocuous__dyld_func_lookup
10234 /* System header to define __stub macros and hopefully few prototypes,
10235 which can conflict with char _dyld_func_lookup (); below.
10236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237 <limits.h> exists even on freestanding compilers. */
10240 # include <limits.h>
10242 # include <assert.h>
10245 #undef _dyld_func_lookup
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10253 char _dyld_func_lookup ();
10254 /* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10264 return _dyld_func_lookup ();
10269 rm -f conftest.$ac_objext conftest$ac_exeext
10270 if { (ac_try="$ac_link"
10271 case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_link") 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_func__dyld_func_lookup=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_cv_func__dyld_func_lookup=no
10311 rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10314 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10315 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10316 if test $ac_cv_func__dyld_func_lookup = yes; then
10318 cat >>confdefs.h <<\_ACEOF
10319 #define HAVE_DYLD 1
10333 rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10345 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10347 lt_save_LIBS="$LIBS"
10348 LIBS="$LIBS $LIBADD_DL"
10350 for ac_func in dlerror
10352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10355 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10366 #define $ac_func innocuous_$ac_func
10368 /* System header to define __stub macros and hopefully few prototypes,
10369 which can conflict with char $ac_func (); 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>
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. */
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_$ac_func || defined __stub___$ac_func
10398 return $ac_func ();
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 eval "$as_ac_var=yes"
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 eval "$as_ac_var=no"
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10448 ac_res=`eval echo '${'$as_ac_var'}'`
10449 { echo "$as_me:$LINENO: result: $ac_res" >&5
10450 echo "${ECHO_T}$ac_res" >&6; }
10451 if test `eval echo '${'$as_ac_var'}'` = yes; then
10452 cat >>confdefs.h <<_ACEOF
10453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10459 LIBS="$lt_save_LIBS"
10462 ac_cpp='$CPP $CPPFLAGS'
10463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10469 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10470 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10471 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 ac_cv_sys_symbol_underscore=no
10475 cat > conftest.$ac_ext <<EOF
10476 void nm_test_func(){}
10477 int main(){nm_test_func;return 0;}
10479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10480 (eval $ac_compile) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; then
10484 # Now try to grab the symbols.
10485 ac_nlist=conftest.nm
10486 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10487 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && test -s "$ac_nlist"; then
10491 # See whether the symbols have a leading underscore.
10492 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10493 ac_cv_sys_symbol_underscore=yes
10495 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10498 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10502 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10505 echo "configure: failed program was:" >&5
10511 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10512 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10515 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10516 if test x"$libltdl_cv_func_dlopen" = xyes ||
10517 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10518 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10519 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10520 if test "${libltdl_cv_need_uscore+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 libltdl_cv_need_uscore=unknown
10525 LIBS="$LIBS $LIBADD_DL"
10526 if test "$cross_compiling" = yes; then :
10527 libltdl_cv_need_uscore=cross
10529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10530 lt_status=$lt_dlunknown
10531 cat > conftest.$ac_ext <<EOF
10532 #line 10532 "configure"
10533 #include "confdefs.h"
10542 # define LT_DLGLOBAL RTLD_GLOBAL
10545 # define LT_DLGLOBAL DL_GLOBAL
10547 # define LT_DLGLOBAL 0
10551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10552 find out it does not work in some platform. */
10553 #ifndef LT_DLLAZY_OR_NOW
10555 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10558 # define LT_DLLAZY_OR_NOW DL_LAZY
10561 # define LT_DLLAZY_OR_NOW RTLD_NOW
10564 # define LT_DLLAZY_OR_NOW DL_NOW
10566 # define LT_DLLAZY_OR_NOW 0
10574 extern "C" void exit (int);
10577 void fnord() { int i=42;}
10580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10581 int status = $lt_dlunknown;
10585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10586 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10587 /* dlclose (self); */
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596 (eval $ac_link) 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10600 (./conftest; exit; ) >&5 2>/dev/null
10602 case x$lt_status in
10603 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10604 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10605 x$lt_dlunknown|x*) ;;
10608 # compilation failed
10617 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10618 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10622 if test x"$libltdl_cv_need_uscore" = xyes; then
10624 cat >>confdefs.h <<\_ACEOF
10625 #define NEED_USCORE 1
10631 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10632 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10633 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 # PORTME does your system automatically load deplibs for dlopen?
10637 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10638 # For now, we just catch OSes we know something about -- in the
10639 # future, we'll try test this programmatically.
10640 libltdl_cv_sys_dlopen_deplibs=unknown
10642 aix3*|aix4.1.*|aix4.2.*)
10643 # Unknown whether this is true for these versions of AIX, but
10644 # we want this `case' here to explicitly catch those versions.
10645 libltdl_cv_sys_dlopen_deplibs=unknown
10648 libltdl_cv_sys_dlopen_deplibs=yes
10651 # Assuming the user has installed a libdl from somewhere, this is true
10652 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10653 libltdl_cv_sys_dlopen_deplibs=yes
10655 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10656 # GNU and its variants, using gnu ld.so (Glibc)
10657 libltdl_cv_sys_dlopen_deplibs=yes
10660 libltdl_cv_sys_dlopen_deplibs=yes
10663 libltdl_cv_sys_dlopen_deplibs=yes
10665 irix[12345]*|irix6.[01]*)
10666 # Catch all versions of IRIX before 6.2, and indicate that we don't
10667 # know how it worked for any of those versions.
10668 libltdl_cv_sys_dlopen_deplibs=unknown
10671 # The case above catches anything before 6.2, and it's known that
10672 # at 6.2 and later dlopen does load deplibs.
10673 libltdl_cv_sys_dlopen_deplibs=yes
10676 libltdl_cv_sys_dlopen_deplibs=yes
10679 libltdl_cv_sys_dlopen_deplibs=yes
10682 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10683 # it did *not* use an RPATH in a shared library to find objects the
10684 # library depends on, so we explicitly say `no'.
10685 libltdl_cv_sys_dlopen_deplibs=no
10687 osf5.0|osf5.0a|osf5.1)
10688 # dlopen *does* load deplibs and with the right loader patch applied
10689 # it even uses RPATH in a shared library to search for shared objects
10690 # that the library depends on, but there's no easy way to know if that
10691 # patch is installed. Since this is the case, all we can really
10692 # say is unknown -- it depends on the patch being installed. If
10693 # it is, this changes to `yes'. Without it, it would be `no'.
10694 libltdl_cv_sys_dlopen_deplibs=unknown
10697 # the two cases above should catch all versions of osf <= 5.1. Read
10698 # the comments above for what we know about them.
10699 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10700 # is used to find them so we can finally say `yes'.
10701 libltdl_cv_sys_dlopen_deplibs=yes
10704 libltdl_cv_sys_dlopen_deplibs=yes
10706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10707 libltdl_cv_sys_dlopen_deplibs=yes
10712 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10713 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10714 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10716 cat >>confdefs.h <<\_ACEOF
10717 #define LTDL_DLOPEN_DEPLIBS 1
10723 for ac_header in argz.h
10725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 ac_res=`eval echo '${'$as_ac_Header'}'`
10733 { echo "$as_me:$LINENO: result: $ac_res" >&5
10734 echo "${ECHO_T}$ac_res" >&6; }
10736 # Is the header compilable?
10737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10739 cat >conftest.$ac_ext <<_ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10745 $ac_includes_default
10746 #include <$ac_header>
10748 rm -f conftest.$ac_objext
10749 if { (ac_try="$ac_compile"
10750 case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_compile") 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10763 { (case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_try") 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest.$ac_objext'
10773 { (case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_try") 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_header_compiler=yes
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ac_header_compiler=no
10790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10792 echo "${ECHO_T}$ac_header_compiler" >&6; }
10794 # Is the header present?
10795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 #include <$ac_header>
10805 if { (ac_try="$ac_cpp conftest.$ac_ext"
10806 case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10813 grep -v '^ *+' conftest.er1 >conftest.err
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } >/dev/null; then
10818 if test -s conftest.err; then
10819 ac_cpp_err=$ac_c_preproc_warn_flag
10820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10827 if test -z "$ac_cpp_err"; then
10828 ac_header_preproc=yes
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10833 ac_header_preproc=no
10836 rm -f conftest.err conftest.$ac_ext
10837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10838 echo "${ECHO_T}$ac_header_preproc" >&6; }
10840 # So? What about this header?
10841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10847 ac_header_preproc=yes
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10863 ## ------------------------------------ ##
10864 ## Report this to http://llvm.org/bugs/ ##
10865 ## ------------------------------------ ##
10867 ) | sed "s/^/$as_me: WARNING: /" >&2
10870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 eval "$as_ac_Header=\$ac_header_preproc"
10877 ac_res=`eval echo '${'$as_ac_Header'}'`
10878 { echo "$as_me:$LINENO: result: $ac_res" >&5
10879 echo "${ECHO_T}$ac_res" >&6; }
10882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10883 cat >>confdefs.h <<_ACEOF
10884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10892 { echo "$as_me:$LINENO: checking for error_t" >&5
10893 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10894 if test "${ac_cv_type_error_t+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 cat >conftest.$ac_ext <<_ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10907 typedef error_t ac__type_new_;
10911 if ((ac__type_new_ *) 0)
10913 if (sizeof (ac__type_new_))
10919 rm -f conftest.$ac_objext
10920 if { (ac_try="$ac_compile"
10921 case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_compile") 2>conftest.er1
10928 grep -v '^ *+' conftest.er1 >conftest.err
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try='test -s conftest.$ac_objext'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 ac_cv_type_error_t=yes
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 ac_cv_type_error_t=no
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10963 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10964 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10965 if test $ac_cv_type_error_t = yes; then
10967 cat >>confdefs.h <<_ACEOF
10968 #define HAVE_ERROR_T 1
10974 cat >>confdefs.h <<\_ACEOF
10975 #define error_t int
10986 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11002 #define $ac_func innocuous_$ac_func
11004 /* System header to define __stub macros and hopefully few prototypes,
11005 which can conflict with char $ac_func (); below.
11006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11007 <limits.h> exists even on freestanding compilers. */
11010 # include <limits.h>
11012 # include <assert.h>
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11024 /* The GNU C library defines this for functions which it implements
11025 to always fail with ENOSYS. Some functions are actually named
11026 something starting with __ and the normal name is an alias. */
11027 #if defined __stub_$ac_func || defined __stub___$ac_func
11034 return $ac_func ();
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (ac_try="$ac_link"
11041 case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_link") 2>conftest.er1
11048 grep -v '^ *+' conftest.er1 >conftest.err
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } &&
11053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; } &&
11063 { ac_try='test -s conftest$ac_exeext'
11064 { (case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069 (eval "$ac_try") 2>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 eval "$as_ac_var=yes"
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 eval "$as_ac_var=no"
11081 rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11084 ac_res=`eval echo '${'$as_ac_var'}'`
11085 { echo "$as_me:$LINENO: result: $ac_res" >&5
11086 echo "${ECHO_T}$ac_res" >&6; }
11087 if test `eval echo '${'$as_ac_var'}'` = yes; then
11088 cat >>confdefs.h <<_ACEOF
11089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11122 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 ac_res=`eval echo '${'$as_ac_Header'}'`
11133 { echo "$as_me:$LINENO: result: $ac_res" >&5
11134 echo "${ECHO_T}$ac_res" >&6; }
11136 # Is the header compilable?
11137 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11139 cat >conftest.$ac_ext <<_ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 $ac_includes_default
11146 #include <$ac_header>
11148 rm -f conftest.$ac_objext
11149 if { (ac_try="$ac_compile"
11150 case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_compile") 2>conftest.er1
11157 grep -v '^ *+' conftest.er1 >conftest.err
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163 { (case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_try") 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_header_compiler=yes
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_header_compiler=no
11190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11192 echo "${ECHO_T}$ac_header_compiler" >&6; }
11194 # Is the header present?
11195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11197 cat >conftest.$ac_ext <<_ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 #include <$ac_header>
11205 if { (ac_try="$ac_cpp conftest.$ac_ext"
11206 case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11213 grep -v '^ *+' conftest.er1 >conftest.err
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } >/dev/null; then
11218 if test -s conftest.err; then
11219 ac_cpp_err=$ac_c_preproc_warn_flag
11220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11227 if test -z "$ac_cpp_err"; then
11228 ac_header_preproc=yes
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 ac_header_preproc=no
11236 rm -f conftest.err conftest.$ac_ext
11237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11238 echo "${ECHO_T}$ac_header_preproc" >&6; }
11240 # So? What about this header?
11241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11247 ac_header_preproc=yes
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11263 ## ------------------------------------ ##
11264 ## Report this to http://llvm.org/bugs/ ##
11265 ## ------------------------------------ ##
11267 ) | sed "s/^/$as_me: WARNING: /" >&2
11270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 eval "$as_ac_Header=\$ac_header_preproc"
11277 ac_res=`eval echo '${'$as_ac_Header'}'`
11278 { echo "$as_me:$LINENO: result: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11283 cat >>confdefs.h <<_ACEOF
11284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11295 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 ac_res=`eval echo '${'$as_ac_Header'}'`
11305 { echo "$as_me:$LINENO: result: $ac_res" >&5
11306 echo "${ECHO_T}$ac_res" >&6; }
11308 # Is the header compilable?
11309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11318 #include <$ac_header>
11320 rm -f conftest.$ac_objext
11321 if { (ac_try="$ac_compile"
11322 case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327 (eval "$ac_compile") 2>conftest.er1
11329 grep -v '^ *+' conftest.er1 >conftest.err
11331 cat conftest.err >&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
11334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11335 { (case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_try") 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try='test -s conftest.$ac_objext'
11345 { (case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_try") 2>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 ac_header_compiler=yes
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11359 ac_header_compiler=no
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11364 echo "${ECHO_T}$ac_header_compiler" >&6; }
11366 # Is the header present?
11367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11369 cat >conftest.$ac_ext <<_ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 #include <$ac_header>
11377 if { (ac_try="$ac_cpp conftest.$ac_ext"
11378 case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11385 grep -v '^ *+' conftest.er1 >conftest.err
11387 cat conftest.err >&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } >/dev/null; then
11390 if test -s conftest.err; then
11391 ac_cpp_err=$ac_c_preproc_warn_flag
11392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11399 if test -z "$ac_cpp_err"; then
11400 ac_header_preproc=yes
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 ac_header_preproc=no
11408 rm -f conftest.err conftest.$ac_ext
11409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11410 echo "${ECHO_T}$ac_header_preproc" >&6; }
11412 # So? What about this header?
11413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11419 ac_header_preproc=yes
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11435 ## ------------------------------------ ##
11436 ## Report this to http://llvm.org/bugs/ ##
11437 ## ------------------------------------ ##
11439 ) | sed "s/^/$as_me: WARNING: /" >&2
11442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 eval "$as_ac_Header=\$ac_header_preproc"
11449 ac_res=`eval echo '${'$as_ac_Header'}'`
11450 { echo "$as_me:$LINENO: result: $ac_res" >&5
11451 echo "${ECHO_T}$ac_res" >&6; }
11454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11455 cat >>confdefs.h <<_ACEOF
11456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11465 for ac_header in string.h strings.h
11467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 ac_res=`eval echo '${'$as_ac_Header'}'`
11475 { echo "$as_me:$LINENO: result: $ac_res" >&5
11476 echo "${ECHO_T}$ac_res" >&6; }
11478 # Is the header compilable?
11479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11481 cat >conftest.$ac_ext <<_ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 $ac_includes_default
11488 #include <$ac_header>
11490 rm -f conftest.$ac_objext
11491 if { (ac_try="$ac_compile"
11492 case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_compile") 2>conftest.er1
11499 grep -v '^ *+' conftest.er1 >conftest.err
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11505 { (case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_try") 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; } &&
11514 { ac_try='test -s conftest.$ac_objext'
11515 { (case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_try") 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11524 ac_header_compiler=yes
11526 echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11529 ac_header_compiler=no
11532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11534 echo "${ECHO_T}$ac_header_compiler" >&6; }
11536 # Is the header present?
11537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11539 cat >conftest.$ac_ext <<_ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 #include <$ac_header>
11547 if { (ac_try="$ac_cpp conftest.$ac_ext"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11555 grep -v '^ *+' conftest.er1 >conftest.err
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } >/dev/null; then
11560 if test -s conftest.err; then
11561 ac_cpp_err=$ac_c_preproc_warn_flag
11562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11569 if test -z "$ac_cpp_err"; then
11570 ac_header_preproc=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 ac_header_preproc=no
11578 rm -f conftest.err conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11580 echo "${ECHO_T}$ac_header_preproc" >&6; }
11582 # So? What about this header?
11583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11589 ac_header_preproc=yes
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11605 ## ------------------------------------ ##
11606 ## Report this to http://llvm.org/bugs/ ##
11607 ## ------------------------------------ ##
11609 ) | sed "s/^/$as_me: WARNING: /" >&2
11612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 eval "$as_ac_Header=\$ac_header_preproc"
11619 ac_res=`eval echo '${'$as_ac_Header'}'`
11620 { echo "$as_me:$LINENO: result: $ac_res" >&5
11621 echo "${ECHO_T}$ac_res" >&6; }
11624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11625 cat >>confdefs.h <<_ACEOF
11626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11636 for ac_func in strchr index
11638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 cat >conftest.$ac_ext <<_ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11652 #define $ac_func innocuous_$ac_func
11654 /* System header to define __stub macros and hopefully few prototypes,
11655 which can conflict with char $ac_func (); below.
11656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11657 <limits.h> exists even on freestanding compilers. */
11660 # include <limits.h>
11662 # include <assert.h>
11667 /* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11674 /* The GNU C library defines this for functions which it implements
11675 to always fail with ENOSYS. Some functions are actually named
11676 something starting with __ and the normal name is an alias. */
11677 #if defined __stub_$ac_func || defined __stub___$ac_func
11684 return $ac_func ();
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (ac_try="$ac_link"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_link") 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11704 { (case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_try") 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try='test -s conftest$ac_exeext'
11714 { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_try") 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 eval "$as_ac_var=yes"
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 eval "$as_ac_var=no"
11731 rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11734 ac_res=`eval echo '${'$as_ac_var'}'`
11735 { echo "$as_me:$LINENO: result: $ac_res" >&5
11736 echo "${ECHO_T}$ac_res" >&6; }
11737 if test `eval echo '${'$as_ac_var'}'` = yes; then
11738 cat >>confdefs.h <<_ACEOF
11739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11747 for ac_func in strrchr rindex
11749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 cat >conftest.$ac_ext <<_ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11763 #define $ac_func innocuous_$ac_func
11765 /* System header to define __stub macros and hopefully few prototypes,
11766 which can conflict with char $ac_func (); below.
11767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11768 <limits.h> exists even on freestanding compilers. */
11771 # include <limits.h>
11773 # include <assert.h>
11778 /* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11785 /* The GNU C library defines this for functions which it implements
11786 to always fail with ENOSYS. Some functions are actually named
11787 something starting with __ and the normal name is an alias. */
11788 #if defined __stub_$ac_func || defined __stub___$ac_func
11795 return $ac_func ();
11800 rm -f conftest.$ac_objext conftest$ac_exeext
11801 if { (ac_try="$ac_link"
11802 case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_link") 2>conftest.er1
11809 grep -v '^ *+' conftest.er1 >conftest.err
11811 cat conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; } &&
11824 { ac_try='test -s conftest$ac_exeext'
11825 { (case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_try") 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 eval "$as_ac_var=yes"
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 eval "$as_ac_var=no"
11842 rm -f core conftest.err conftest.$ac_objext \
11843 conftest$ac_exeext conftest.$ac_ext
11845 ac_res=`eval echo '${'$as_ac_var'}'`
11846 { echo "$as_me:$LINENO: result: $ac_res" >&5
11847 echo "${ECHO_T}$ac_res" >&6; }
11848 if test `eval echo '${'$as_ac_var'}'` = yes; then
11849 cat >>confdefs.h <<_ACEOF
11850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11858 for ac_func in memcpy bcopy
11860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11874 #define $ac_func innocuous_$ac_func
11876 /* System header to define __stub macros and hopefully few prototypes,
11877 which can conflict with char $ac_func (); below.
11878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11879 <limits.h> exists even on freestanding compilers. */
11882 # include <limits.h>
11884 # include <assert.h>
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11896 /* The GNU C library defines this for functions which it implements
11897 to always fail with ENOSYS. Some functions are actually named
11898 something starting with __ and the normal name is an alias. */
11899 #if defined __stub_$ac_func || defined __stub___$ac_func
11906 return $ac_func ();
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (ac_try="$ac_link"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_link") 2>conftest.er1
11920 grep -v '^ *+' conftest.er1 >conftest.err
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; } &&
11935 { ac_try='test -s conftest$ac_exeext'
11936 { (case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_try") 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 eval "$as_ac_var=yes"
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 eval "$as_ac_var=no"
11953 rm -f core conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
11956 ac_res=`eval echo '${'$as_ac_var'}'`
11957 { echo "$as_me:$LINENO: result: $ac_res" >&5
11958 echo "${ECHO_T}$ac_res" >&6; }
11959 if test `eval echo '${'$as_ac_var'}'` = yes; then
11960 cat >>confdefs.h <<_ACEOF
11961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969 for ac_func in memmove strcmp
11971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 cat >conftest.$ac_ext <<_ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11985 #define $ac_func innocuous_$ac_func
11987 /* System header to define __stub macros and hopefully few prototypes,
11988 which can conflict with char $ac_func (); below.
11989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11990 <limits.h> exists even on freestanding compilers. */
11993 # include <limits.h>
11995 # include <assert.h>
12000 /* Override any GCC internal prototype to avoid an error.
12001 Use char because int might match the return type of a GCC
12002 builtin and then its argument prototype would still apply. */
12007 /* The GNU C library defines this for functions which it implements
12008 to always fail with ENOSYS. Some functions are actually named
12009 something starting with __ and the normal name is an alias. */
12010 #if defined __stub_$ac_func || defined __stub___$ac_func
12017 return $ac_func ();
12022 rm -f conftest.$ac_objext conftest$ac_exeext
12023 if { (ac_try="$ac_link"
12024 case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_link") 2>conftest.er1
12031 grep -v '^ *+' conftest.er1 >conftest.err
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest$ac_exeext'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 eval "$as_ac_var=yes"
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 eval "$as_ac_var=no"
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12067 ac_res=`eval echo '${'$as_ac_var'}'`
12068 { echo "$as_me:$LINENO: result: $ac_res" >&5
12069 echo "${ECHO_T}$ac_res" >&6; }
12070 if test `eval echo '${'$as_ac_var'}'` = yes; then
12071 cat >>confdefs.h <<_ACEOF
12072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12081 for ac_func in closedir opendir readdir
12083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 cat >conftest.$ac_ext <<_ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12097 #define $ac_func innocuous_$ac_func
12099 /* System header to define __stub macros and hopefully few prototypes,
12100 which can conflict with char $ac_func (); below.
12101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12102 <limits.h> exists even on freestanding compilers. */
12105 # include <limits.h>
12107 # include <assert.h>
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12119 /* The GNU C library defines this for functions which it implements
12120 to always fail with ENOSYS. Some functions are actually named
12121 something starting with __ and the normal name is an alias. */
12122 #if defined __stub_$ac_func || defined __stub___$ac_func
12129 return $ac_func ();
12134 rm -f conftest.$ac_objext conftest$ac_exeext
12135 if { (ac_try="$ac_link"
12136 case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_link") 2>conftest.er1
12143 grep -v '^ *+' conftest.er1 >conftest.err
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; } &&
12158 { ac_try='test -s conftest$ac_exeext'
12159 { (case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164 (eval "$ac_try") 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 eval "$as_ac_var=yes"
12170 echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12173 eval "$as_ac_var=no"
12176 rm -f core conftest.err conftest.$ac_objext \
12177 conftest$ac_exeext conftest.$ac_ext
12179 ac_res=`eval echo '${'$as_ac_var'}'`
12180 { echo "$as_me:$LINENO: result: $ac_res" >&5
12181 echo "${ECHO_T}$ac_res" >&6; }
12182 if test `eval echo '${'$as_ac_var'}'` = yes; then
12183 cat >>confdefs.h <<_ACEOF
12184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12192 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12193 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12206 if test "$GCC" != "yes" && test "$ICC" != "yes"
12208 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12209 echo "$as_me: error: gcc|icc required but not found" >&2;}
12210 { (exit 1); exit 1; }; }
12213 if test "$GXX" != "yes" && test "$IXX" != "yes"
12215 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12216 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12217 { (exit 1); exit 1; }; }
12220 if test "$GCC" = "yes"
12222 cat >conftest.$ac_ext <<_ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12230 #if !defined(__GNUC__) || __GNUC__ < 3
12231 #error Unsupported GCC version
12236 rm -f conftest.$ac_objext
12237 if { (ac_try="$ac_compile"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_compile") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1 >conftest.err
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest.$ac_objext'
12261 { (case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_try") 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12276 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12277 { (exit 1); exit 1; }; }
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283 if test -z "$llvm_cv_gnu_make_command"
12285 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12286 echo "$as_me: error: GNU Make required but not found" >&2;}
12287 { (exit 1); exit 1; }; }
12290 { echo "$as_me:$LINENO: result: ok" >&5
12291 echo "${ECHO_T}ok" >&6; }
12293 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12294 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12295 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12297 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12299 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12303 NO_MAYBE_UNINITIALIZED=
12304 if test "$GXX" = "yes"
12306 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12308 if test -z "$NO_MAYBE_UNINITIALIZED"
12310 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12314 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12315 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12318 # Check whether --with-python was given.
12319 if test "${with_python+set}" = set; then
12320 withval=$with_python; PYTHON="$withval"
12324 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12325 { echo "$as_me:$LINENO: checking for python" >&5
12326 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12327 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12328 echo "${ECHO_T}user defined: $with_python" >&6; }
12330 if test -n "$PYTHON" ; then
12331 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12332 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12335 # Extract the first word of "python python2 python26", so it can be a program name with args.
12336 set dummy python python2 python26; ac_word=$2
12337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12339 if test "${ac_cv_path_PYTHON+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12363 echo "${ECHO_T}not found" >&6; }
12364 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12365 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12366 { (exit 1); exit 1; }; }"
12370 PYTHON=$ac_cv_path_PYTHON
12371 if test -n "$PYTHON"; then
12372 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12373 echo "${ECHO_T}$PYTHON" >&6; }
12375 { echo "$as_me:$LINENO: result: no" >&5
12376 echo "${ECHO_T}no" >&6; }
12382 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12383 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12384 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12385 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12386 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12387 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12388 if test "$ac_python_version_major" -eq "2" \
12389 && test "$ac_python_version_minor" -ge "5" ; then
12390 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12391 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12393 { echo "$as_me:$LINENO: result: not found" >&5
12394 echo "${ECHO_T}not found" >&6; }
12395 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12396 See \`config.log' for more details." >&5
12397 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12398 See \`config.log' for more details." >&2;}
12399 { (exit 1); exit 1; }; }
12404 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12405 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12406 if test "${ac_cv_lib_m_sin+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 ac_check_lib_save_LIBS=$LIBS
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12433 rm -f conftest.$ac_objext conftest$ac_exeext
12434 if { (ac_try="$ac_link"
12435 case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_link") 2>conftest.er1
12442 grep -v '^ *+' conftest.er1 >conftest.err
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12448 { (case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_try") 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest$ac_exeext'
12458 { (case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_try") 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_lib_m_sin=yes
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12475 rm -f core conftest.err conftest.$ac_objext \
12476 conftest$ac_exeext conftest.$ac_ext
12477 LIBS=$ac_check_lib_save_LIBS
12479 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12480 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12481 if test $ac_cv_lib_m_sin = yes; then
12482 cat >>confdefs.h <<_ACEOF
12483 #define HAVE_LIBM 1
12490 if test "$llvm_cv_os_type" = "MingW" ; then
12492 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12493 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12494 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 ac_check_lib_save_LIBS=$LIBS
12498 LIBS="-limagehlp $LIBS"
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (ac_try="$ac_link"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_link") 2>conftest.er1
12524 grep -v '^ *+' conftest.er1 >conftest.err
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
12529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12530 { (case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_try") 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_try") 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_cv_lib_imagehlp_main=yes
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 ac_cv_lib_imagehlp_main=no
12557 rm -f core conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12559 LIBS=$ac_check_lib_save_LIBS
12561 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12562 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12563 if test $ac_cv_lib_imagehlp_main = yes; then
12564 cat >>confdefs.h <<_ACEOF
12565 #define HAVE_LIBIMAGEHLP 1
12568 LIBS="-limagehlp $LIBS"
12573 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12574 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12575 if test "${ac_cv_lib_psapi_main+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 ac_check_lib_save_LIBS=$LIBS
12579 LIBS="-lpsapi $LIBS"
12580 cat >conftest.$ac_ext <<_ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12596 rm -f conftest.$ac_objext conftest$ac_exeext
12597 if { (ac_try="$ac_link"
12598 case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_link") 2>conftest.er1
12605 grep -v '^ *+' conftest.er1 >conftest.err
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12611 { (case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_try") 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest$ac_exeext'
12621 { (case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_cv_lib_psapi_main=yes
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 ac_cv_lib_psapi_main=no
12638 rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12642 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12643 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12644 if test $ac_cv_lib_psapi_main = yes; then
12645 cat >>confdefs.h <<_ACEOF
12646 #define HAVE_LIBPSAPI 1
12649 LIBS="-lpsapi $LIBS"
12655 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12656 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12657 if test "${ac_cv_search_dlopen+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 ac_func_search_save_LIBS=$LIBS
12661 cat >conftest.$ac_ext <<_ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12668 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12683 for ac_lib in '' dl; do
12684 if test -z "$ac_lib"; then
12685 ac_res="none required"
12688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12690 rm -f conftest.$ac_objext conftest$ac_exeext
12691 if { (ac_try="$ac_link"
12692 case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697 (eval "$ac_link") 2>conftest.er1
12699 grep -v '^ *+' conftest.er1 >conftest.err
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12705 { (case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_try") 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest$ac_exeext'
12715 { (case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720 (eval "$ac_try") 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 ac_cv_search_dlopen=$ac_res
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12732 rm -f core conftest.err conftest.$ac_objext \
12734 if test "${ac_cv_search_dlopen+set}" = set; then
12738 if test "${ac_cv_search_dlopen+set}" = set; then
12741 ac_cv_search_dlopen=no
12743 rm conftest.$ac_ext
12744 LIBS=$ac_func_search_save_LIBS
12746 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12747 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12748 ac_res=$ac_cv_search_dlopen
12749 if test "$ac_res" != no; then
12750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_DLOPEN 1
12757 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12758 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12762 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12763 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12764 if test "${ac_cv_search_clock_gettime+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 ac_func_search_save_LIBS=$LIBS
12768 cat >conftest.$ac_ext <<_ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12775 /* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
12781 char clock_gettime ();
12785 return clock_gettime ();
12790 for ac_lib in '' rt; do
12791 if test -z "$ac_lib"; then
12792 ac_res="none required"
12795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12797 rm -f conftest.$ac_objext conftest$ac_exeext
12798 if { (ac_try="$ac_link"
12799 case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_link") 2>conftest.er1
12806 grep -v '^ *+' conftest.er1 >conftest.err
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12812 { (case "(($ac_try" in
12813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814 *) ac_try_echo=$ac_try;;
12816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817 (eval "$ac_try") 2>&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; } &&
12821 { ac_try='test -s conftest$ac_exeext'
12822 { (case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_try") 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 ac_cv_search_clock_gettime=$ac_res
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12839 rm -f core conftest.err conftest.$ac_objext \
12841 if test "${ac_cv_search_clock_gettime+set}" = set; then
12845 if test "${ac_cv_search_clock_gettime+set}" = set; then
12848 ac_cv_search_clock_gettime=no
12850 rm conftest.$ac_ext
12851 LIBS=$ac_func_search_save_LIBS
12853 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12854 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12855 ac_res=$ac_cv_search_clock_gettime
12856 if test "$ac_res" != no; then
12857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12862 if test "$llvm_cv_enable_libffi" = "yes" ; then
12863 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12864 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12865 if test "${ac_cv_search_ffi_call+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. */
12886 return ffi_call ();
12891 for ac_lib in '' ffi; 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_ffi_call=$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_ffi_call+set}" = set; then
12946 if test "${ac_cv_search_ffi_call+set}" = set; then
12949 ac_cv_search_ffi_call=no
12951 rm conftest.$ac_ext
12952 LIBS=$ac_func_search_save_LIBS
12954 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12955 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12956 ac_res=$ac_cv_search_ffi_call
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_FFI_CALL 1
12965 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12966 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12967 { (exit 1); exit 1; }; }
12972 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12973 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12974 if test "${ac_cv_search_mallinfo+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 ac_func_search_save_LIBS=$LIBS
12978 cat >conftest.$ac_ext <<_ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12985 /* Override any GCC internal prototype to avoid an error.
12986 Use char because int might match the return type of a GCC
12987 builtin and then its argument prototype would still apply. */
12995 return mallinfo ();
13000 for ac_lib in '' malloc; do
13001 if test -z "$ac_lib"; then
13002 ac_res="none required"
13005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (ac_try="$ac_link"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_link") 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13022 { (case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_try") 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try='test -s conftest$ac_exeext'
13032 { (case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_try") 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
13041 ac_cv_search_mallinfo=$ac_res
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13049 rm -f core conftest.err conftest.$ac_objext \
13051 if test "${ac_cv_search_mallinfo+set}" = set; then
13055 if test "${ac_cv_search_mallinfo+set}" = set; then
13058 ac_cv_search_mallinfo=no
13060 rm conftest.$ac_ext
13061 LIBS=$ac_func_search_save_LIBS
13063 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13064 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13065 ac_res=$ac_cv_search_mallinfo
13066 if test "$ac_res" != no; then
13067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13069 cat >>confdefs.h <<\_ACEOF
13070 #define HAVE_MALLINFO 1
13076 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13078 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13079 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13080 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-lpthread $LIBS"
13085 cat >conftest.$ac_ext <<_ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13092 /* Override any GCC internal prototype to avoid an error.
13093 Use char because int might match the return type of a GCC
13094 builtin and then its argument prototype would still apply. */
13098 char pthread_mutex_init ();
13102 return pthread_mutex_init ();
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (ac_try="$ac_link"
13109 case "(($ac_try" in
13110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111 *) ac_try_echo=$ac_try;;
13113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 (eval "$ac_link") 2>conftest.er1
13116 grep -v '^ *+' conftest.er1 >conftest.err
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13122 { (case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_try") 2>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; } &&
13131 { ac_try='test -s conftest$ac_exeext'
13132 { (case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_try") 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 ac_cv_lib_pthread_pthread_mutex_init=yes
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13146 ac_cv_lib_pthread_pthread_mutex_init=no
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151 LIBS=$ac_check_lib_save_LIBS
13153 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13154 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13155 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13156 cat >>confdefs.h <<_ACEOF
13157 #define HAVE_LIBPTHREAD 1
13160 LIBS="-lpthread $LIBS"
13164 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13165 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13166 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 ac_func_search_save_LIBS=$LIBS
13170 cat >conftest.$ac_ext <<_ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13183 char pthread_mutex_lock ();
13187 return pthread_mutex_lock ();
13192 for ac_lib in '' pthread; do
13193 if test -z "$ac_lib"; then
13194 ac_res="none required"
13197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13199 rm -f conftest.$ac_objext conftest$ac_exeext
13200 if { (ac_try="$ac_link"
13201 case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_link") 2>conftest.er1
13208 grep -v '^ *+' conftest.er1 >conftest.err
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13214 { (case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_try") 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try='test -s conftest$ac_exeext'
13224 { (case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_try") 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
13233 ac_cv_search_pthread_mutex_lock=$ac_res
13235 echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13241 rm -f core conftest.err conftest.$ac_objext \
13243 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13247 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13250 ac_cv_search_pthread_mutex_lock=no
13252 rm conftest.$ac_ext
13253 LIBS=$ac_func_search_save_LIBS
13255 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13256 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13257 ac_res=$ac_cv_search_pthread_mutex_lock
13258 if test "$ac_res" != no; then
13259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13261 cat >>confdefs.h <<\_ACEOF
13262 #define HAVE_PTHREAD_MUTEX_LOCK 1
13267 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13268 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13269 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 ac_func_search_save_LIBS=$LIBS
13273 cat >conftest.$ac_ext <<_ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13286 char pthread_rwlock_init ();
13290 return pthread_rwlock_init ();
13295 for ac_lib in '' pthread; do
13296 if test -z "$ac_lib"; then
13297 ac_res="none required"
13300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (ac_try="$ac_link"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_link") 2>conftest.er1
13311 grep -v '^ *+' conftest.er1 >conftest.err
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
13316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13317 { (case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_try") 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest$ac_exeext'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_cv_search_pthread_rwlock_init=$ac_res
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13344 rm -f core conftest.err conftest.$ac_objext \
13346 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13350 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13353 ac_cv_search_pthread_rwlock_init=no
13355 rm conftest.$ac_ext
13356 LIBS=$ac_func_search_save_LIBS
13358 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13359 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13360 ac_res=$ac_cv_search_pthread_rwlock_init
13361 if test "$ac_res" != no; then
13362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_PTHREAD_RWLOCK_INIT 1
13370 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13371 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13372 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 ac_func_search_save_LIBS=$LIBS
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13383 /* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13389 char pthread_getspecific ();
13393 return pthread_getspecific ();
13398 for ac_lib in '' pthread; do
13399 if test -z "$ac_lib"; then
13400 ac_res="none required"
13403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13405 rm -f conftest.$ac_objext conftest$ac_exeext
13406 if { (ac_try="$ac_link"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_link") 2>conftest.er1
13414 grep -v '^ *+' conftest.er1 >conftest.err
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_try") 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 ac_cv_search_pthread_getspecific=$ac_res
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13447 rm -f core conftest.err conftest.$ac_objext \
13449 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13453 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13456 ac_cv_search_pthread_getspecific=no
13458 rm conftest.$ac_ext
13459 LIBS=$ac_func_search_save_LIBS
13461 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13462 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13463 ac_res=$ac_cv_search_pthread_getspecific
13464 if test "$ac_res" != no; then
13465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13467 cat >>confdefs.h <<\_ACEOF
13468 #define HAVE_PTHREAD_GETSPECIFIC 1
13475 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13477 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13478 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13479 if test "${ac_cv_lib_z_compress2+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 ac_check_lib_save_LIBS=$LIBS
13484 cat >conftest.$ac_ext <<_ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13491 /* Override any GCC internal prototype to avoid an error.
13492 Use char because int might match the return type of a GCC
13493 builtin and then its argument prototype would still apply. */
13501 return compress2 ();
13506 rm -f conftest.$ac_objext conftest$ac_exeext
13507 if { (ac_try="$ac_link"
13508 case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_link") 2>conftest.er1
13515 grep -v '^ *+' conftest.er1 >conftest.err
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
13520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13521 { (case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_try") 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; } &&
13530 { ac_try='test -s conftest$ac_exeext'
13531 { (case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_try") 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; }; then
13540 ac_cv_lib_z_compress2=yes
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 ac_cv_lib_z_compress2=no
13548 rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13550 LIBS=$ac_check_lib_save_LIBS
13552 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13553 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13554 if test $ac_cv_lib_z_compress2 = yes; then
13555 cat >>confdefs.h <<_ACEOF
13556 #define HAVE_LIBZ 1
13566 # Check whether --with-udis86 was given.
13567 if test "${with_udis86+set}" = set; then
13568 withval=$with_udis86;
13573 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13576 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13577 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13578 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 ac_check_lib_save_LIBS=$LIBS
13582 LIBS="-ludis86 $LIBS"
13583 cat >conftest.$ac_ext <<_ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13590 /* Override any GCC internal prototype to avoid an error.
13591 Use char because int might match the return type of a GCC
13592 builtin and then its argument prototype would still apply. */
13605 rm -f conftest.$ac_objext conftest$ac_exeext
13606 if { (ac_try="$ac_link"
13607 case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_link") 2>conftest.er1
13614 grep -v '^ *+' conftest.er1 >conftest.err
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13620 { (case "(($ac_try" in
13621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625 (eval "$ac_try") 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
13630 { (case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_try") 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 ac_cv_lib_udis86_ud_init=yes
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13644 ac_cv_lib_udis86_ud_init=no
13647 rm -f core conftest.err conftest.$ac_objext \
13648 conftest$ac_exeext conftest.$ac_ext
13649 LIBS=$ac_check_lib_save_LIBS
13651 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13652 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13653 if test $ac_cv_lib_udis86_ud_init = yes; then
13654 cat >>confdefs.h <<_ACEOF
13655 #define HAVE_LIBUDIS86 1
13658 LIBS="-ludis86 $LIBS"
13662 echo "Error! You need to have libudis86 around."
13674 cat >>confdefs.h <<_ACEOF
13675 #define USE_UDIS86 $USE_UDIS86
13680 # Check whether --with-oprofile was given.
13681 if test "${with_oprofile+set}" = set; then
13682 withval=$with_oprofile;
13686 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13687 no) llvm_cv_oppath=
13690 *) llvm_cv_oppath="${withval}/lib/oprofile"
13691 CPPFLAGS="-I${withval}/include";;
13693 case $llvm_cv_os_type in
13695 if test -n "$llvm_cv_oppath" ; then
13696 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13697 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13698 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13699 if test "${ac_cv_search_bfd_init+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_func_search_save_LIBS=$LIBS
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13710 /* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
13720 return bfd_init ();
13725 for ac_lib in '' bfd; do
13726 if test -z "$ac_lib"; then
13727 ac_res="none required"
13730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13741 grep -v '^ *+' conftest.er1 >conftest.err
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest$ac_exeext'
13757 { (case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_try") 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_search_bfd_init=$ac_res
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13774 rm -f core conftest.err conftest.$ac_objext \
13776 if test "${ac_cv_search_bfd_init+set}" = set; then
13780 if test "${ac_cv_search_bfd_init+set}" = set; then
13783 ac_cv_search_bfd_init=no
13785 rm conftest.$ac_ext
13786 LIBS=$ac_func_search_save_LIBS
13788 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13789 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13790 ac_res=$ac_cv_search_bfd_init
13791 if test "$ac_res" != no; then
13792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13796 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13797 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13798 if test "${ac_cv_search_op_open_agent+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 ac_func_search_save_LIBS=$LIBS
13802 cat >conftest.$ac_ext <<_ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h. */
13809 /* Override any GCC internal prototype to avoid an error.
13810 Use char because int might match the return type of a GCC
13811 builtin and then its argument prototype would still apply. */
13815 char op_open_agent ();
13819 return op_open_agent ();
13824 for ac_lib in '' opagent; do
13825 if test -z "$ac_lib"; then
13826 ac_res="none required"
13829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13831 rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (ac_try="$ac_link"
13833 case "(($ac_try" in
13834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835 *) ac_try_echo=$ac_try;;
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838 (eval "$ac_link") 2>conftest.er1
13840 grep -v '^ *+' conftest.er1 >conftest.err
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13846 { (case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_try") 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 ac_cv_search_op_open_agent=$ac_res
13867 echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13873 rm -f core conftest.err conftest.$ac_objext \
13875 if test "${ac_cv_search_op_open_agent+set}" = set; then
13879 if test "${ac_cv_search_op_open_agent+set}" = set; then
13882 ac_cv_search_op_open_agent=no
13884 rm conftest.$ac_ext
13885 LIBS=$ac_func_search_save_LIBS
13887 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13888 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13889 ac_res=$ac_cv_search_op_open_agent
13890 if test "$ac_res" != no; then
13891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13895 echo "Error! You need to have libopagent around."
13900 if test "${ac_cv_header_opagent_h+set}" = set; then
13901 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13902 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13903 if test "${ac_cv_header_opagent_h+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13907 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13909 # Is the header compilable?
13910 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13911 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13912 cat >conftest.$ac_ext <<_ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 $ac_includes_default
13919 #include <opagent.h>
13921 rm -f conftest.$ac_objext
13922 if { (ac_try="$ac_compile"
13923 case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_compile") 2>conftest.er1
13930 grep -v '^ *+' conftest.er1 >conftest.err
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest.$ac_objext'
13946 { (case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_try") 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_header_compiler=yes
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13960 ac_header_compiler=no
13963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13965 echo "${ECHO_T}$ac_header_compiler" >&6; }
13967 # Is the header present?
13968 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13969 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13970 cat >conftest.$ac_ext <<_ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 #include <opagent.h>
13978 if { (ac_try="$ac_cpp conftest.$ac_ext"
13979 case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } >/dev/null; then
13991 if test -s conftest.err; then
13992 ac_cpp_err=$ac_c_preproc_warn_flag
13993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14000 if test -z "$ac_cpp_err"; then
14001 ac_header_preproc=yes
14003 echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14006 ac_header_preproc=no
14009 rm -f conftest.err conftest.$ac_ext
14010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14011 echo "${ECHO_T}$ac_header_preproc" >&6; }
14013 # So? What about this header?
14014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14016 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14017 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14019 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14020 ac_header_preproc=yes
14023 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14024 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14026 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14028 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14030 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14032 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14034 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14036 ## ------------------------------------ ##
14037 ## Report this to http://llvm.org/bugs/ ##
14038 ## ------------------------------------ ##
14040 ) | sed "s/^/$as_me: WARNING: /" >&2
14043 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14044 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14045 if test "${ac_cv_header_opagent_h+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 ac_cv_header_opagent_h=$ac_header_preproc
14050 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14051 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14054 if test $ac_cv_header_opagent_h = yes; then
14058 echo "Error! You need to have opagent.h around."
14066 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14067 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14068 { (exit 1); exit 1; }; } ;;
14079 cat >>confdefs.h <<_ACEOF
14080 #define LLVM_USE_OPROFILE $USE_OPROFILE
14085 # Check whether --with-intel-jitevents was given.
14086 if test "${with_intel_jitevents+set}" = set; then
14087 withval=$with_intel_jitevents;
14089 yes) USE_INTEL_JITEVENTS=1
14091 no) USE_INTEL_JITEVENTS=0
14093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14094 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14095 { (exit 1); exit 1; }; };;
14098 case $llvm_cv_os_type in
14099 Linux|Win32|Cygwin|MingW) ;;
14100 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14101 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14102 { (exit 1); exit 1; }; };;
14105 case "$llvm_cv_target_arch" in
14107 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14108 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14109 { (exit 1); exit 1; }; };;
14114 USE_INTEL_JITEVENTS=0
14120 cat >>confdefs.h <<_ACEOF
14121 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14125 for ac_prog in xml2-config
14127 # Extract the first word of "$ac_prog", so it can be a program name with args.
14128 set dummy $ac_prog; ac_word=$2
14129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14131 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 if test -n "$XML2CONFIG"; then
14135 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14144 ac_cv_prog_XML2CONFIG="$ac_prog"
14145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14154 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14155 if test -n "$XML2CONFIG"; then
14156 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14157 echo "${ECHO_T}$XML2CONFIG" >&6; }
14159 { echo "$as_me:$LINENO: result: no" >&5
14160 echo "${ECHO_T}no" >&6; }
14164 test -n "$XML2CONFIG" && break
14168 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14169 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14170 if test "x$XML2CONFIG" = "x"; then
14171 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14172 echo "${ECHO_T}xml2-config not found" >&6; }
14174 LIBXML2_INC=`$XML2CONFIG --cflags`
14175 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14176 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14177 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14178 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14179 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 ac_check_lib_save_LIBS=$LIBS
14183 LIBS="-lxml2 $LIBS"
14184 cat >conftest.$ac_ext <<_ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14191 /* Override any GCC internal prototype to avoid an error.
14192 Use char because int might match the return type of a GCC
14193 builtin and then its argument prototype would still apply. */
14197 char xmlReadFile ();
14201 return xmlReadFile ();
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_lib_xml2_xmlReadFile=yes
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14245 ac_cv_lib_xml2_xmlReadFile=no
14248 rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14250 LIBS=$ac_check_lib_save_LIBS
14252 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14253 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14254 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14256 cat >>confdefs.h <<\_ACEOF
14257 #define CLANG_HAVE_LIBXML 1
14260 LIBXML2_LIBS="-lxml2"
14273 ac_header_dirent=no
14274 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14275 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14276 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14277 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 cat >conftest.$ac_ext <<_ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 #include <sys/types.h>
14299 rm -f conftest.$ac_objext
14300 if { (ac_try="$ac_compile"
14301 case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_compile") 2>conftest.er1
14308 grep -v '^ *+' conftest.er1 >conftest.err
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
14313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14314 { (case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_try") 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; } &&
14323 { ac_try='test -s conftest.$ac_objext'
14324 { (case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329 (eval "$ac_try") 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 eval "$as_ac_Header=yes"
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 eval "$as_ac_Header=no"
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 ac_res=`eval echo '${'$as_ac_Header'}'`
14344 { echo "$as_me:$LINENO: result: $ac_res" >&5
14345 echo "${ECHO_T}$ac_res" >&6; }
14346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14347 cat >>confdefs.h <<_ACEOF
14348 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14351 ac_header_dirent=$ac_hdr; break
14355 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14356 if test $ac_header_dirent = dirent.h; then
14357 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14358 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14359 if test "${ac_cv_search_opendir+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 ac_func_search_save_LIBS=$LIBS
14363 cat >conftest.$ac_ext <<_ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14370 /* Override any GCC internal prototype to avoid an error.
14371 Use char because int might match the return type of a GCC
14372 builtin and then its argument prototype would still apply. */
14385 for ac_lib in '' dir; do
14386 if test -z "$ac_lib"; then
14387 ac_res="none required"
14390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14392 rm -f conftest.$ac_objext conftest$ac_exeext
14393 if { (ac_try="$ac_link"
14394 case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_link") 2>conftest.er1
14401 grep -v '^ *+' conftest.er1 >conftest.err
14403 cat conftest.err >&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } &&
14406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14407 { (case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_try") 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest$ac_exeext'
14417 { (case "(($ac_try" in
14418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419 *) ac_try_echo=$ac_try;;
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422 (eval "$ac_try") 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 ac_cv_search_opendir=$ac_res
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14434 rm -f core conftest.err conftest.$ac_objext \
14436 if test "${ac_cv_search_opendir+set}" = set; then
14440 if test "${ac_cv_search_opendir+set}" = set; then
14443 ac_cv_search_opendir=no
14445 rm conftest.$ac_ext
14446 LIBS=$ac_func_search_save_LIBS
14448 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14449 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14450 ac_res=$ac_cv_search_opendir
14451 if test "$ac_res" != no; then
14452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14457 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14458 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14459 if test "${ac_cv_search_opendir+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 ac_func_search_save_LIBS=$LIBS
14463 cat >conftest.$ac_ext <<_ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14470 /* Override any GCC internal prototype to avoid an error.
14471 Use char because int might match the return type of a GCC
14472 builtin and then its argument prototype would still apply. */
14485 for ac_lib in '' x; do
14486 if test -z "$ac_lib"; then
14487 ac_res="none required"
14490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14492 rm -f conftest.$ac_objext conftest$ac_exeext
14493 if { (ac_try="$ac_link"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_link") 2>conftest.er1
14501 grep -v '^ *+' conftest.er1 >conftest.err
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14507 { (case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_try") 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try='test -s conftest$ac_exeext'
14517 { (case "(($ac_try" in
14518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519 *) ac_try_echo=$ac_try;;
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522 (eval "$ac_try") 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
14526 ac_cv_search_opendir=$ac_res
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14534 rm -f core conftest.err conftest.$ac_objext \
14536 if test "${ac_cv_search_opendir+set}" = set; then
14540 if test "${ac_cv_search_opendir+set}" = set; then
14543 ac_cv_search_opendir=no
14545 rm conftest.$ac_ext
14546 LIBS=$ac_func_search_save_LIBS
14548 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14549 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14550 ac_res=$ac_cv_search_opendir
14551 if test "$ac_res" != no; then
14552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14558 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14559 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14560 if test "${ac_cv_header_mmap_anon+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 ac_cpp='$CPP $CPPFLAGS'
14565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14569 cat >conftest.$ac_ext <<_ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 #include <sys/mman.h>
14576 #include <unistd.h>
14581 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14586 rm -f conftest.$ac_objext
14587 if { (ac_try="$ac_compile"
14588 case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_compile") 2>conftest.er1
14595 grep -v '^ *+' conftest.er1 >conftest.err
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest.$ac_objext'
14611 { (case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_try") 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_cv_header_mmap_anon=yes
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_cv_header_mmap_anon=no
14628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14630 ac_cpp='$CPP $CPPFLAGS'
14631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14637 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14638 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14639 if test "$ac_cv_header_mmap_anon" = yes; then
14641 cat >>confdefs.h <<\_ACEOF
14642 #define HAVE_MMAP_ANONYMOUS 1
14647 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14648 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14649 if test "${ac_cv_header_stat_broken+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 cat >conftest.$ac_ext <<_ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14658 #include <sys/types.h>
14659 #include <sys/stat.h>
14661 #if defined S_ISBLK && defined S_IFDIR
14662 # if S_ISBLK (S_IFDIR)
14667 #if defined S_ISBLK && defined S_IFCHR
14668 # if S_ISBLK (S_IFCHR)
14673 #if defined S_ISLNK && defined S_IFREG
14674 # if S_ISLNK (S_IFREG)
14679 #if defined S_ISSOCK && defined S_IFREG
14680 # if S_ISSOCK (S_IFREG)
14686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687 $EGREP "You lose" >/dev/null 2>&1; then
14688 ac_cv_header_stat_broken=yes
14690 ac_cv_header_stat_broken=no
14695 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14696 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14697 if test $ac_cv_header_stat_broken = yes; then
14699 cat >>confdefs.h <<\_ACEOF
14700 #define STAT_MACROS_BROKEN 1
14705 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14706 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14707 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 cat >conftest.$ac_ext <<_ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 #include <sys/types.h>
14717 #include <sys/wait.h>
14718 #ifndef WEXITSTATUS
14719 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14722 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14730 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14735 rm -f conftest.$ac_objext
14736 if { (ac_try="$ac_compile"
14737 case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_compile") 2>conftest.er1
14744 grep -v '^ *+' conftest.er1 >conftest.err
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14750 { (case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_try") 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; } &&
14759 { ac_try='test -s conftest.$ac_objext'
14760 { (case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_try") 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 ac_cv_header_sys_wait_h=yes
14771 echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14774 ac_cv_header_sys_wait_h=no
14777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14780 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14781 if test $ac_cv_header_sys_wait_h = yes; then
14783 cat >>confdefs.h <<\_ACEOF
14784 #define HAVE_SYS_WAIT_H 1
14789 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14790 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14791 if test "${ac_cv_header_time+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 cat >conftest.$ac_ext <<_ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 #include <sys/types.h>
14801 #include <sys/time.h>
14807 if ((struct tm *) 0)
14813 rm -f conftest.$ac_objext
14814 if { (ac_try="$ac_compile"
14815 case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_compile") 2>conftest.er1
14822 grep -v '^ *+' conftest.er1 >conftest.err
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14828 { (case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_try") 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; } &&
14837 { ac_try='test -s conftest.$ac_objext'
14838 { (case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_try") 2>&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_cv_header_time=yes
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 ac_cv_header_time=no
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14858 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14859 if test $ac_cv_header_time = yes; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define TIME_WITH_SYS_TIME 1
14869 ac_cpp='$CXXCPP $CPPFLAGS'
14870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14875 ac_cpp='$CXXCPP $CPPFLAGS'
14876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14879 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14880 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14881 if test -z "$CXXCPP"; then
14882 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 # Double quotes because CXXCPP needs to be expanded
14886 for CXXCPP in "$CXX -E" "/lib/cpp"
14888 ac_preproc_ok=false
14889 for ac_cxx_preproc_warn_flag in '' yes
14891 # Use a header file that comes with gcc, so configuring glibc
14892 # with a fresh cross-compiler works.
14893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14894 # <limits.h> exists even on freestanding compilers.
14895 # On the NeXT, cc -E runs the code through the compiler's parser,
14896 # not just through cpp. "Syntax error" is here to catch this case.
14897 cat >conftest.$ac_ext <<_ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14904 # include <limits.h>
14906 # include <assert.h>
14910 if { (ac_try="$ac_cpp conftest.$ac_ext"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14918 grep -v '^ *+' conftest.er1 >conftest.err
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } >/dev/null; then
14923 if test -s conftest.err; then
14924 ac_cpp_err=$ac_cxx_preproc_warn_flag
14925 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14932 if test -z "$ac_cpp_err"; then
14935 echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14938 # Broken: fails on valid input.
14942 rm -f conftest.err conftest.$ac_ext
14944 # OK, works on sane cases. Now check whether nonexistent headers
14945 # can be detected and how.
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 #include <ac_nonexistent.h>
14954 if { (ac_try="$ac_cpp conftest.$ac_ext"
14955 case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14962 grep -v '^ *+' conftest.er1 >conftest.err
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } >/dev/null; then
14967 if test -s conftest.err; then
14968 ac_cpp_err=$ac_cxx_preproc_warn_flag
14969 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14976 if test -z "$ac_cpp_err"; then
14977 # Broken: success on invalid input.
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 # Passes both tests.
14988 rm -f conftest.err conftest.$ac_ext
14991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14992 rm -f conftest.err conftest.$ac_ext
14993 if $ac_preproc_ok; then
14998 ac_cv_prog_CXXCPP=$CXXCPP
15001 CXXCPP=$ac_cv_prog_CXXCPP
15003 ac_cv_prog_CXXCPP=$CXXCPP
15005 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15006 echo "${ECHO_T}$CXXCPP" >&6; }
15007 ac_preproc_ok=false
15008 for ac_cxx_preproc_warn_flag in '' yes
15010 # Use a header file that comes with gcc, so configuring glibc
15011 # with a fresh cross-compiler works.
15012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15013 # <limits.h> exists even on freestanding compilers.
15014 # On the NeXT, cc -E runs the code through the compiler's parser,
15015 # not just through cpp. "Syntax error" is here to catch this case.
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15023 # include <limits.h>
15025 # include <assert.h>
15029 if { (ac_try="$ac_cpp conftest.$ac_ext"
15030 case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15037 grep -v '^ *+' conftest.er1 >conftest.err
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } >/dev/null; then
15042 if test -s conftest.err; then
15043 ac_cpp_err=$ac_cxx_preproc_warn_flag
15044 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15051 if test -z "$ac_cpp_err"; then
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15057 # Broken: fails on valid input.
15061 rm -f conftest.err conftest.$ac_ext
15063 # OK, works on sane cases. Now check whether nonexistent headers
15064 # can be detected and how.
15065 cat >conftest.$ac_ext <<_ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 #include <ac_nonexistent.h>
15073 if { (ac_try="$ac_cpp conftest.$ac_ext"
15074 case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15081 grep -v '^ *+' conftest.er1 >conftest.err
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } >/dev/null; then
15086 if test -s conftest.err; then
15087 ac_cpp_err=$ac_cxx_preproc_warn_flag
15088 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15095 if test -z "$ac_cpp_err"; then
15096 # Broken: success on invalid input.
15099 echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15102 # Passes both tests.
15107 rm -f conftest.err conftest.$ac_ext
15110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15111 rm -f conftest.err conftest.$ac_ext
15112 if $ac_preproc_ok; then
15115 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15116 See \`config.log' for more details." >&5
15117 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15118 See \`config.log' for more details." >&2;}
15119 { (exit 1); exit 1; }; }
15123 ac_cpp='$CXXCPP $CPPFLAGS'
15124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15130 for ac_header in cxxabi.h
15132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15139 ac_res=`eval echo '${'$as_ac_Header'}'`
15140 { echo "$as_me:$LINENO: result: $ac_res" >&5
15141 echo "${ECHO_T}$ac_res" >&6; }
15143 # Is the header compilable?
15144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15146 cat >conftest.$ac_ext <<_ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15152 $ac_includes_default
15153 #include <$ac_header>
15155 rm -f conftest.$ac_objext
15156 if { (ac_try="$ac_compile"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_compile") 2>conftest.er1
15164 grep -v '^ *+' conftest.er1 >conftest.err
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; } &&
15179 { ac_try='test -s conftest.$ac_objext'
15180 { (case "(($ac_try" in
15181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185 (eval "$ac_try") 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_header_compiler=yes
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_header_compiler=no
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15199 echo "${ECHO_T}$ac_header_compiler" >&6; }
15201 # Is the header present?
15202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 #include <$ac_header>
15212 if { (ac_try="$ac_cpp conftest.$ac_ext"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15220 grep -v '^ *+' conftest.er1 >conftest.err
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } >/dev/null; then
15225 if test -s conftest.err; then
15226 ac_cpp_err=$ac_cxx_preproc_warn_flag
15227 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15234 if test -z "$ac_cpp_err"; then
15235 ac_header_preproc=yes
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_header_preproc=no
15243 rm -f conftest.err conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15245 echo "${ECHO_T}$ac_header_preproc" >&6; }
15247 # So? What about this header?
15248 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15254 ac_header_preproc=yes
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15270 ## ------------------------------------ ##
15271 ## Report this to http://llvm.org/bugs/ ##
15272 ## ------------------------------------ ##
15274 ) | sed "s/^/$as_me: WARNING: /" >&2
15277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 eval "$as_ac_Header=\$ac_header_preproc"
15284 ac_res=`eval echo '${'$as_ac_Header'}'`
15285 { echo "$as_me:$LINENO: result: $ac_res" >&5
15286 echo "${ECHO_T}$ac_res" >&6; }
15289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15290 cat >>confdefs.h <<_ACEOF
15291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15299 ac_cpp='$CPP $CPPFLAGS'
15300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15310 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 ac_res=`eval echo '${'$as_ac_Header'}'`
15320 { echo "$as_me:$LINENO: result: $ac_res" >&5
15321 echo "${ECHO_T}$ac_res" >&6; }
15323 # Is the header compilable?
15324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15326 cat >conftest.$ac_ext <<_ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 $ac_includes_default
15333 #include <$ac_header>
15335 rm -f conftest.$ac_objext
15336 if { (ac_try="$ac_compile"
15337 case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_compile") 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_try") 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_header_compiler=yes
15371 echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15374 ac_header_compiler=no
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15379 echo "${ECHO_T}$ac_header_compiler" >&6; }
15381 # Is the header present?
15382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15384 cat >conftest.$ac_ext <<_ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h. */
15390 #include <$ac_header>
15392 if { (ac_try="$ac_cpp conftest.$ac_ext"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15400 grep -v '^ *+' conftest.er1 >conftest.err
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } >/dev/null; then
15405 if test -s conftest.err; then
15406 ac_cpp_err=$ac_c_preproc_warn_flag
15407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15414 if test -z "$ac_cpp_err"; then
15415 ac_header_preproc=yes
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ac_header_preproc=no
15423 rm -f conftest.err conftest.$ac_ext
15424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15425 echo "${ECHO_T}$ac_header_preproc" >&6; }
15427 # So? What about this header?
15428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15434 ac_header_preproc=yes
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15450 ## ------------------------------------ ##
15451 ## Report this to http://llvm.org/bugs/ ##
15452 ## ------------------------------------ ##
15454 ) | sed "s/^/$as_me: WARNING: /" >&2
15457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 eval "$as_ac_Header=\$ac_header_preproc"
15464 ac_res=`eval echo '${'$as_ac_Header'}'`
15465 { echo "$as_me:$LINENO: result: $ac_res" >&5
15466 echo "${ECHO_T}$ac_res" >&6; }
15469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15470 cat >>confdefs.h <<_ACEOF
15471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15484 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 ac_res=`eval echo '${'$as_ac_Header'}'`
15494 { echo "$as_me:$LINENO: result: $ac_res" >&5
15495 echo "${ECHO_T}$ac_res" >&6; }
15497 # Is the header compilable?
15498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15500 cat >conftest.$ac_ext <<_ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15506 $ac_includes_default
15507 #include <$ac_header>
15509 rm -f conftest.$ac_objext
15510 if { (ac_try="$ac_compile"
15511 case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_compile") 2>conftest.er1
15518 grep -v '^ *+' conftest.er1 >conftest.err
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
15523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; } &&
15533 { ac_try='test -s conftest.$ac_objext'
15534 { (case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_try") 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_header_compiler=yes
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 ac_header_compiler=no
15551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15553 echo "${ECHO_T}$ac_header_compiler" >&6; }
15555 # Is the header present?
15556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15558 cat >conftest.$ac_ext <<_ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 #include <$ac_header>
15566 if { (ac_try="$ac_cpp conftest.$ac_ext"
15567 case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15574 grep -v '^ *+' conftest.er1 >conftest.err
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } >/dev/null; then
15579 if test -s conftest.err; then
15580 ac_cpp_err=$ac_c_preproc_warn_flag
15581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15588 if test -z "$ac_cpp_err"; then
15589 ac_header_preproc=yes
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 ac_header_preproc=no
15597 rm -f conftest.err conftest.$ac_ext
15598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15599 echo "${ECHO_T}$ac_header_preproc" >&6; }
15601 # So? What about this header?
15602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15608 ac_header_preproc=yes
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15624 ## ------------------------------------ ##
15625 ## Report this to http://llvm.org/bugs/ ##
15626 ## ------------------------------------ ##
15628 ) | sed "s/^/$as_me: WARNING: /" >&2
15631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 eval "$as_ac_Header=\$ac_header_preproc"
15638 ac_res=`eval echo '${'$as_ac_Header'}'`
15639 { echo "$as_me:$LINENO: result: $ac_res" >&5
15640 echo "${ECHO_T}$ac_res" >&6; }
15643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15644 cat >>confdefs.h <<_ACEOF
15645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15654 for ac_header in utime.h windows.h
15656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 ac_res=`eval echo '${'$as_ac_Header'}'`
15664 { echo "$as_me:$LINENO: result: $ac_res" >&5
15665 echo "${ECHO_T}$ac_res" >&6; }
15667 # Is the header compilable?
15668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15670 cat >conftest.$ac_ext <<_ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15676 $ac_includes_default
15677 #include <$ac_header>
15679 rm -f conftest.$ac_objext
15680 if { (ac_try="$ac_compile"
15681 case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_compile") 2>conftest.er1
15688 grep -v '^ *+' conftest.er1 >conftest.err
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } &&
15693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15694 { (case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; } &&
15703 { ac_try='test -s conftest.$ac_objext'
15704 { (case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709 (eval "$ac_try") 2>&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713 ac_header_compiler=yes
15715 echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15718 ac_header_compiler=no
15721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15723 echo "${ECHO_T}$ac_header_compiler" >&6; }
15725 # Is the header present?
15726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15728 cat >conftest.$ac_ext <<_ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15734 #include <$ac_header>
15736 if { (ac_try="$ac_cpp conftest.$ac_ext"
15737 case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } >/dev/null; then
15749 if test -s conftest.err; then
15750 ac_cpp_err=$ac_c_preproc_warn_flag
15751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15758 if test -z "$ac_cpp_err"; then
15759 ac_header_preproc=yes
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_header_preproc=no
15767 rm -f conftest.err conftest.$ac_ext
15768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15769 echo "${ECHO_T}$ac_header_preproc" >&6; }
15771 # So? What about this header?
15772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15778 ac_header_preproc=yes
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15794 ## ------------------------------------ ##
15795 ## Report this to http://llvm.org/bugs/ ##
15796 ## ------------------------------------ ##
15798 ) | sed "s/^/$as_me: WARNING: /" >&2
15801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15806 eval "$as_ac_Header=\$ac_header_preproc"
15808 ac_res=`eval echo '${'$as_ac_Header'}'`
15809 { echo "$as_me:$LINENO: result: $ac_res" >&5
15810 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15827 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 ac_res=`eval echo '${'$as_ac_Header'}'`
15837 { echo "$as_me:$LINENO: result: $ac_res" >&5
15838 echo "${ECHO_T}$ac_res" >&6; }
15840 # Is the header compilable?
15841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15843 cat >conftest.$ac_ext <<_ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 $ac_includes_default
15850 #include <$ac_header>
15852 rm -f conftest.$ac_objext
15853 if { (ac_try="$ac_compile"
15854 case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_compile") 2>conftest.er1
15861 grep -v '^ *+' conftest.er1 >conftest.err
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
15866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15867 { (case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_try") 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; } &&
15876 { ac_try='test -s conftest.$ac_objext'
15877 { (case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_try") 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886 ac_header_compiler=yes
15888 echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15891 ac_header_compiler=no
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15896 echo "${ECHO_T}$ac_header_compiler" >&6; }
15898 # Is the header present?
15899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15901 cat >conftest.$ac_ext <<_ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907 #include <$ac_header>
15909 if { (ac_try="$ac_cpp conftest.$ac_ext"
15910 case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15917 grep -v '^ *+' conftest.er1 >conftest.err
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } >/dev/null; then
15922 if test -s conftest.err; then
15923 ac_cpp_err=$ac_c_preproc_warn_flag
15924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15931 if test -z "$ac_cpp_err"; then
15932 ac_header_preproc=yes
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 ac_header_preproc=no
15940 rm -f conftest.err conftest.$ac_ext
15941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15942 echo "${ECHO_T}$ac_header_preproc" >&6; }
15944 # So? What about this header?
15945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15951 ac_header_preproc=yes
15954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15967 ## ------------------------------------ ##
15968 ## Report this to http://llvm.org/bugs/ ##
15969 ## ------------------------------------ ##
15971 ) | sed "s/^/$as_me: WARNING: /" >&2
15974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 eval "$as_ac_Header=\$ac_header_preproc"
15981 ac_res=`eval echo '${'$as_ac_Header'}'`
15982 { echo "$as_me:$LINENO: result: $ac_res" >&5
15983 echo "${ECHO_T}$ac_res" >&6; }
15986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15987 cat >>confdefs.h <<_ACEOF
15988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15999 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 ac_res=`eval echo '${'$as_ac_Header'}'`
16009 { echo "$as_me:$LINENO: result: $ac_res" >&5
16010 echo "${ECHO_T}$ac_res" >&6; }
16012 # Is the header compilable?
16013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16015 cat >conftest.$ac_ext <<_ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 $ac_includes_default
16022 #include <$ac_header>
16024 rm -f conftest.$ac_objext
16025 if { (ac_try="$ac_compile"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_compile") 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16039 { (case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_try") 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; } &&
16048 { ac_try='test -s conftest.$ac_objext'
16049 { (case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_try") 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_header_compiler=yes
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ac_header_compiler=no
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16068 echo "${ECHO_T}$ac_header_compiler" >&6; }
16070 # Is the header present?
16071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16073 cat >conftest.$ac_ext <<_ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <$ac_header>
16081 if { (ac_try="$ac_cpp conftest.$ac_ext"
16082 case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16089 grep -v '^ *+' conftest.er1 >conftest.err
16091 cat conftest.err >&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } >/dev/null; then
16094 if test -s conftest.err; then
16095 ac_cpp_err=$ac_c_preproc_warn_flag
16096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16103 if test -z "$ac_cpp_err"; then
16104 ac_header_preproc=yes
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 ac_header_preproc=no
16112 rm -f conftest.err conftest.$ac_ext
16113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6; }
16116 # So? What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16139 ## ------------------------------------ ##
16140 ## Report this to http://llvm.org/bugs/ ##
16141 ## ------------------------------------ ##
16143 ) | sed "s/^/$as_me: WARNING: /" >&2
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 eval "$as_ac_Header=\$ac_header_preproc"
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16159 cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16168 for ac_header in valgrind/valgrind.h
16170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 ac_res=`eval echo '${'$as_ac_Header'}'`
16178 { echo "$as_me:$LINENO: result: $ac_res" >&5
16179 echo "${ECHO_T}$ac_res" >&6; }
16181 # Is the header compilable?
16182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16184 cat >conftest.$ac_ext <<_ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 $ac_includes_default
16191 #include <$ac_header>
16193 rm -f conftest.$ac_objext
16194 if { (ac_try="$ac_compile"
16195 case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_compile") 2>conftest.er1
16202 grep -v '^ *+' conftest.er1 >conftest.err
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
16207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16208 { (case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_try") 2>&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; } &&
16217 { ac_try='test -s conftest.$ac_objext'
16218 { (case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_try") 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 ac_header_compiler=yes
16229 echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ac_header_compiler=no
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16237 echo "${ECHO_T}$ac_header_compiler" >&6; }
16239 # Is the header present?
16240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16242 cat >conftest.$ac_ext <<_ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 #include <$ac_header>
16250 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1 >conftest.err
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } >/dev/null; then
16263 if test -s conftest.err; then
16264 ac_cpp_err=$ac_c_preproc_warn_flag
16265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16272 if test -z "$ac_cpp_err"; then
16273 ac_header_preproc=yes
16275 echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16278 ac_header_preproc=no
16281 rm -f conftest.err conftest.$ac_ext
16282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16283 echo "${ECHO_T}$ac_header_preproc" >&6; }
16285 # So? What about this header?
16286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16292 ac_header_preproc=yes
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16308 ## ------------------------------------ ##
16309 ## Report this to http://llvm.org/bugs/ ##
16310 ## ------------------------------------ ##
16312 ) | sed "s/^/$as_me: WARNING: /" >&2
16315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 eval "$as_ac_Header=\$ac_header_preproc"
16322 ac_res=`eval echo '${'$as_ac_Header'}'`
16323 { echo "$as_me:$LINENO: result: $ac_res" >&5
16324 echo "${ECHO_T}$ac_res" >&6; }
16327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16328 cat >>confdefs.h <<_ACEOF
16329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16337 for ac_header in fenv.h
16339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 ac_res=`eval echo '${'$as_ac_Header'}'`
16347 { echo "$as_me:$LINENO: result: $ac_res" >&5
16348 echo "${ECHO_T}$ac_res" >&6; }
16350 # Is the header compilable?
16351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16353 cat >conftest.$ac_ext <<_ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h. */
16359 $ac_includes_default
16360 #include <$ac_header>
16362 rm -f conftest.$ac_objext
16363 if { (ac_try="$ac_compile"
16364 case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_compile") 2>conftest.er1
16371 grep -v '^ *+' conftest.er1 >conftest.err
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16377 { (case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_try") 2>&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; } &&
16386 { ac_try='test -s conftest.$ac_objext'
16387 { (case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_try") 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16396 ac_header_compiler=yes
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ac_header_compiler=no
16404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16406 echo "${ECHO_T}$ac_header_compiler" >&6; }
16408 # Is the header present?
16409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16411 cat >conftest.$ac_ext <<_ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16417 #include <$ac_header>
16419 if { (ac_try="$ac_cpp conftest.$ac_ext"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } >/dev/null; then
16432 if test -s conftest.err; then
16433 ac_cpp_err=$ac_c_preproc_warn_flag
16434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16441 if test -z "$ac_cpp_err"; then
16442 ac_header_preproc=yes
16444 echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 ac_header_preproc=no
16450 rm -f conftest.err conftest.$ac_ext
16451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16452 echo "${ECHO_T}$ac_header_preproc" >&6; }
16454 # So? What about this header?
16455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16461 ac_header_preproc=yes
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16477 ## ------------------------------------ ##
16478 ## Report this to http://llvm.org/bugs/ ##
16479 ## ------------------------------------ ##
16481 ) | sed "s/^/$as_me: WARNING: /" >&2
16484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16489 eval "$as_ac_Header=\$ac_header_preproc"
16491 ac_res=`eval echo '${'$as_ac_Header'}'`
16492 { echo "$as_me:$LINENO: result: $ac_res" >&5
16493 echo "${ECHO_T}$ac_res" >&6; }
16496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16497 cat >>confdefs.h <<_ACEOF
16498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16505 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16506 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16507 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 cat >conftest.$ac_ext <<_ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16521 #ifndef FE_ALL_EXCEPT
16522 char *p = (char *) FE_ALL_EXCEPT;
16530 rm -f conftest.$ac_objext
16531 if { (ac_try="$ac_compile"
16532 case "(($ac_try" in
16533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534 *) ac_try_echo=$ac_try;;
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537 (eval "$ac_compile") 2>conftest.er1
16539 grep -v '^ *+' conftest.er1 >conftest.err
16541 cat conftest.err >&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } &&
16544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16545 { (case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_try") 2>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; } &&
16554 { ac_try='test -s conftest.$ac_objext'
16555 { (case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_try") 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16569 ac_cv_have_decl_FE_ALL_EXCEPT=no
16572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16574 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16575 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16576 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16578 cat >>confdefs.h <<_ACEOF
16579 #define HAVE_DECL_FE_ALL_EXCEPT 1
16584 cat >>confdefs.h <<_ACEOF
16585 #define HAVE_DECL_FE_ALL_EXCEPT 0
16590 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16591 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16592 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 cat >conftest.$ac_ext <<_ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16607 char *p = (char *) FE_INEXACT;
16615 rm -f conftest.$ac_objext
16616 if { (ac_try="$ac_compile"
16617 case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_compile") 2>conftest.er1
16624 grep -v '^ *+' conftest.er1 >conftest.err
16626 cat conftest.err >&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } &&
16629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16630 { (case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_try") 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; } &&
16639 { ac_try='test -s conftest.$ac_objext'
16640 { (case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_try") 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 ac_cv_have_decl_FE_INEXACT=yes
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 ac_cv_have_decl_FE_INEXACT=no
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16660 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16661 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16663 cat >>confdefs.h <<_ACEOF
16664 #define HAVE_DECL_FE_INEXACT 1
16669 cat >>confdefs.h <<_ACEOF
16670 #define HAVE_DECL_FE_INEXACT 0
16677 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16679 for ac_header in pthread.h
16681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 ac_res=`eval echo '${'$as_ac_Header'}'`
16689 { echo "$as_me:$LINENO: result: $ac_res" >&5
16690 echo "${ECHO_T}$ac_res" >&6; }
16692 # Is the header compilable?
16693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16695 cat >conftest.$ac_ext <<_ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 $ac_includes_default
16702 #include <$ac_header>
16704 rm -f conftest.$ac_objext
16705 if { (ac_try="$ac_compile"
16706 case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_compile") 2>conftest.er1
16713 grep -v '^ *+' conftest.er1 >conftest.err
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16719 { (case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_try") 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; } &&
16728 { ac_try='test -s conftest.$ac_objext'
16729 { (case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_try") 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 ac_header_compiler=yes
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16743 ac_header_compiler=no
16746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16748 echo "${ECHO_T}$ac_header_compiler" >&6; }
16750 # Is the header present?
16751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16753 cat >conftest.$ac_ext <<_ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 #include <$ac_header>
16761 if { (ac_try="$ac_cpp conftest.$ac_ext"
16762 case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16769 grep -v '^ *+' conftest.er1 >conftest.err
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } >/dev/null; then
16774 if test -s conftest.err; then
16775 ac_cpp_err=$ac_c_preproc_warn_flag
16776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16783 if test -z "$ac_cpp_err"; then
16784 ac_header_preproc=yes
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_header_preproc=no
16792 rm -f conftest.err conftest.$ac_ext
16793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16794 echo "${ECHO_T}$ac_header_preproc" >&6; }
16796 # So? What about this header?
16797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16803 ac_header_preproc=yes
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16819 ## ------------------------------------ ##
16820 ## Report this to http://llvm.org/bugs/ ##
16821 ## ------------------------------------ ##
16823 ) | sed "s/^/$as_me: WARNING: /" >&2
16826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 eval "$as_ac_Header=\$ac_header_preproc"
16833 ac_res=`eval echo '${'$as_ac_Header'}'`
16834 { echo "$as_me:$LINENO: result: $ac_res" >&5
16835 echo "${ECHO_T}$ac_res" >&6; }
16838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16839 cat >>confdefs.h <<_ACEOF
16840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16855 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16857 for ac_header in zlib.h
16859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 ac_res=`eval echo '${'$as_ac_Header'}'`
16867 { echo "$as_me:$LINENO: result: $ac_res" >&5
16868 echo "${ECHO_T}$ac_res" >&6; }
16870 # Is the header compilable?
16871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16873 cat >conftest.$ac_ext <<_ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 $ac_includes_default
16880 #include <$ac_header>
16882 rm -f conftest.$ac_objext
16883 if { (ac_try="$ac_compile"
16884 case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_compile") 2>conftest.er1
16891 grep -v '^ *+' conftest.er1 >conftest.err
16893 cat conftest.err >&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; } &&
16906 { ac_try='test -s conftest.$ac_objext'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_header_compiler=yes
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ac_header_compiler=no
16924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16926 echo "${ECHO_T}$ac_header_compiler" >&6; }
16928 # Is the header present?
16929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16931 cat >conftest.$ac_ext <<_ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16937 #include <$ac_header>
16939 if { (ac_try="$ac_cpp conftest.$ac_ext"
16940 case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16947 grep -v '^ *+' conftest.er1 >conftest.err
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } >/dev/null; then
16952 if test -s conftest.err; then
16953 ac_cpp_err=$ac_c_preproc_warn_flag
16954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16961 if test -z "$ac_cpp_err"; then
16962 ac_header_preproc=yes
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 ac_header_preproc=no
16970 rm -f conftest.err conftest.$ac_ext
16971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16972 echo "${ECHO_T}$ac_header_preproc" >&6; }
16974 # So? What about this header?
16975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16981 ac_header_preproc=yes
16984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16997 ## ------------------------------------ ##
16998 ## Report this to http://llvm.org/bugs/ ##
16999 ## ------------------------------------ ##
17001 ) | sed "s/^/$as_me: WARNING: /" >&2
17004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 eval "$as_ac_Header=\$ac_header_preproc"
17011 ac_res=`eval echo '${'$as_ac_Header'}'`
17012 { echo "$as_me:$LINENO: result: $ac_res" >&5
17013 echo "${ECHO_T}$ac_res" >&6; }
17016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17017 cat >>confdefs.h <<_ACEOF
17018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17034 if test "$llvm_cv_enable_libffi" = "yes" ; then
17037 for ac_header in ffi.h ffi/ffi.h
17039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 ac_res=`eval echo '${'$as_ac_Header'}'`
17047 { echo "$as_me:$LINENO: result: $ac_res" >&5
17048 echo "${ECHO_T}$ac_res" >&6; }
17050 # Is the header compilable?
17051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17053 cat >conftest.$ac_ext <<_ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h. */
17059 $ac_includes_default
17060 #include <$ac_header>
17062 rm -f conftest.$ac_objext
17063 if { (ac_try="$ac_compile"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_compile") 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
17076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077 { (case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_try") 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest.$ac_objext'
17087 { (case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_try") 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096 ac_header_compiler=yes
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 ac_header_compiler=no
17104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17106 echo "${ECHO_T}$ac_header_compiler" >&6; }
17108 # Is the header present?
17109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17111 cat >conftest.$ac_ext <<_ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 #include <$ac_header>
17119 if { (ac_try="$ac_cpp conftest.$ac_ext"
17120 case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17127 grep -v '^ *+' conftest.er1 >conftest.err
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } >/dev/null; then
17132 if test -s conftest.err; then
17133 ac_cpp_err=$ac_c_preproc_warn_flag
17134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17141 if test -z "$ac_cpp_err"; then
17142 ac_header_preproc=yes
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ac_header_preproc=no
17150 rm -f conftest.err conftest.$ac_ext
17151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17152 echo "${ECHO_T}$ac_header_preproc" >&6; }
17154 # So? What about this header?
17155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17161 ac_header_preproc=yes
17164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17177 ## ------------------------------------ ##
17178 ## Report this to http://llvm.org/bugs/ ##
17179 ## ------------------------------------ ##
17181 ) | sed "s/^/$as_me: WARNING: /" >&2
17184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17187 echo $ECHO_N "(cached) $ECHO_C" >&6
17189 eval "$as_ac_Header=\$ac_header_preproc"
17191 ac_res=`eval echo '${'$as_ac_Header'}'`
17192 { echo "$as_me:$LINENO: result: $ac_res" >&5
17193 echo "${ECHO_T}$ac_res" >&6; }
17196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17197 cat >>confdefs.h <<_ACEOF
17198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17208 for ac_header in CrashReporterClient.h
17210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 ac_res=`eval echo '${'$as_ac_Header'}'`
17218 { echo "$as_me:$LINENO: result: $ac_res" >&5
17219 echo "${ECHO_T}$ac_res" >&6; }
17221 # Is the header compilable?
17222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17224 cat >conftest.$ac_ext <<_ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17230 $ac_includes_default
17231 #include <$ac_header>
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_compile") 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17248 { (case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_try") 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
17258 { (case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_try") 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_header_compiler=yes
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ac_header_compiler=no
17275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17277 echo "${ECHO_T}$ac_header_compiler" >&6; }
17279 # Is the header present?
17280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17282 cat >conftest.$ac_ext <<_ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 #include <$ac_header>
17290 if { (ac_try="$ac_cpp conftest.$ac_ext"
17291 case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17298 grep -v '^ *+' conftest.er1 >conftest.err
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } >/dev/null; then
17303 if test -s conftest.err; then
17304 ac_cpp_err=$ac_c_preproc_warn_flag
17305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17312 if test -z "$ac_cpp_err"; then
17313 ac_header_preproc=yes
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 ac_header_preproc=no
17321 rm -f conftest.err conftest.$ac_ext
17322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17323 echo "${ECHO_T}$ac_header_preproc" >&6; }
17325 # So? What about this header?
17326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17332 ac_header_preproc=yes
17335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17348 ## ------------------------------------ ##
17349 ## Report this to http://llvm.org/bugs/ ##
17350 ## ------------------------------------ ##
17352 ) | sed "s/^/$as_me: WARNING: /" >&2
17355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 eval "$as_ac_Header=\$ac_header_preproc"
17362 ac_res=`eval echo '${'$as_ac_Header'}'`
17363 { echo "$as_me:$LINENO: result: $ac_res" >&5
17364 echo "${ECHO_T}$ac_res" >&6; }
17367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17368 cat >>confdefs.h <<_ACEOF
17369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17377 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17378 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17379 cat >conftest.$ac_ext <<_ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17387 extern const char *__crashreporter_info__;
17389 __crashreporter_info__ = "test";
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (ac_try="$ac_link"
17397 case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_link") 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17410 { (case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_try") 2>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; } &&
17419 { ac_try='test -s conftest$ac_exeext'
17420 { (case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_try") 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17430 { echo "$as_me:$LINENO: result: yes" >&5
17431 echo "${ECHO_T}yes" >&6; }
17433 cat >>confdefs.h <<\_ACEOF
17434 #define HAVE_CRASHREPORTER_INFO 1
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17443 { echo "$as_me:$LINENO: result: no" >&5
17444 echo "${ECHO_T}no" >&6; }
17446 cat >>confdefs.h <<\_ACEOF
17447 #define HAVE_CRASHREPORTER_INFO 0
17453 rm -f core conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17458 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17459 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17460 if test "${ac_cv_huge_val_sanity+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 ac_cpp='$CXXCPP $CPPFLAGS'
17466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17470 ac_save_CXXFLAGS=$CXXFLAGS
17471 CXXFLAGS="$CXXFLAGS -pedantic"
17472 if test "$cross_compiling" = yes; then
17473 ac_cv_huge_val_sanity=yes
17475 cat >conftest.$ac_ext <<_ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17485 double x = HUGE_VAL; return x != x;
17490 rm -f conftest$ac_exeext
17491 if { (ac_try="$ac_link"
17492 case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_link") 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17501 { (case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_try") 2>&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_cv_huge_val_sanity=yes
17512 echo "$as_me: program exited with status $ac_status" >&5
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 ( exit $ac_status )
17517 ac_cv_huge_val_sanity=no
17519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17523 CXXFLAGS=$ac_save_CXXFLAGS
17525 ac_cpp='$CPP $CPPFLAGS'
17526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17532 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17533 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17534 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17537 { echo "$as_me:$LINENO: checking for pid_t" >&5
17538 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17539 if test "${ac_cv_type_pid_t+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17542 cat >conftest.$ac_ext <<_ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17548 $ac_includes_default
17549 typedef pid_t ac__type_new_;
17553 if ((ac__type_new_ *) 0)
17555 if (sizeof (ac__type_new_))
17561 rm -f conftest.$ac_objext
17562 if { (ac_try="$ac_compile"
17563 case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_compile") 2>conftest.er1
17570 grep -v '^ *+' conftest.er1 >conftest.err
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17576 { (case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_try") 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try='test -s conftest.$ac_objext'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_type_pid_t=yes
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 ac_cv_type_pid_t=no
17603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17606 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17607 if test $ac_cv_type_pid_t = yes; then
17611 cat >>confdefs.h <<_ACEOF
17617 { echo "$as_me:$LINENO: checking for size_t" >&5
17618 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17619 if test "${ac_cv_type_size_t+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17622 cat >conftest.$ac_ext <<_ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 $ac_includes_default
17629 typedef size_t ac__type_new_;
17633 if ((ac__type_new_ *) 0)
17635 if (sizeof (ac__type_new_))
17641 rm -f conftest.$ac_objext
17642 if { (ac_try="$ac_compile"
17643 case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_compile") 2>conftest.er1
17650 grep -v '^ *+' conftest.er1 >conftest.err
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
17655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest.$ac_objext'
17666 { (case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_try") 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 ac_cv_type_size_t=yes
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_cv_type_size_t=no
17683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17685 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17686 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17687 if test $ac_cv_type_size_t = yes; then
17691 cat >>confdefs.h <<_ACEOF
17692 #define size_t unsigned int
17698 cat >>confdefs.h <<_ACEOF
17699 #define RETSIGTYPE void
17702 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17703 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17704 if test "${ac_cv_struct_tm+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 cat >conftest.$ac_ext <<_ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 #include <sys/types.h>
17719 struct tm *tp; tp->tm_sec;
17724 rm -f conftest.$ac_objext
17725 if { (ac_try="$ac_compile"
17726 case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_compile") 2>conftest.er1
17733 grep -v '^ *+' conftest.er1 >conftest.err
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest.$ac_objext'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 ac_cv_struct_tm=time.h
17760 echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17763 ac_cv_struct_tm=sys/time.h
17766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17769 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17770 if test $ac_cv_struct_tm = sys/time.h; then
17772 cat >>confdefs.h <<\_ACEOF
17773 #define TM_IN_SYS_TIME 1
17778 { echo "$as_me:$LINENO: checking for int64_t" >&5
17779 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17780 if test "${ac_cv_type_int64_t+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17783 cat >conftest.$ac_ext <<_ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 $ac_includes_default
17790 typedef int64_t ac__type_new_;
17794 if ((ac__type_new_ *) 0)
17796 if (sizeof (ac__type_new_))
17802 rm -f conftest.$ac_objext
17803 if { (ac_try="$ac_compile"
17804 case "(($ac_try" in
17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_compile") 2>conftest.er1
17811 grep -v '^ *+' conftest.er1 >conftest.err
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
17816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17817 { (case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_try") 2>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest.$ac_objext'
17827 { (case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_try") 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_cv_type_int64_t=yes
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 ac_cv_type_int64_t=no
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17846 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17847 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17848 if test $ac_cv_type_int64_t = yes; then
17850 cat >>confdefs.h <<_ACEOF
17851 #define HAVE_INT64_T 1
17856 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17857 echo "$as_me: error: Type int64_t required but not found" >&2;}
17858 { (exit 1); exit 1; }; }
17861 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17862 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17863 if test "${ac_cv_type_uint64_t+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 $ac_includes_default
17873 typedef uint64_t ac__type_new_;
17877 if ((ac__type_new_ *) 0)
17879 if (sizeof (ac__type_new_))
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17894 grep -v '^ *+' conftest.er1 >conftest.err
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17900 { (case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_try") 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17919 ac_cv_type_uint64_t=yes
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17924 ac_cv_type_uint64_t=no
17927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17929 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17930 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17931 if test $ac_cv_type_uint64_t = yes; then
17933 cat >>confdefs.h <<_ACEOF
17934 #define HAVE_UINT64_T 1
17939 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17940 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17941 if test "${ac_cv_type_u_int64_t+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17944 cat >conftest.$ac_ext <<_ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 $ac_includes_default
17951 typedef u_int64_t ac__type_new_;
17955 if ((ac__type_new_ *) 0)
17957 if (sizeof (ac__type_new_))
17963 rm -f conftest.$ac_objext
17964 if { (ac_try="$ac_compile"
17965 case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_compile") 2>conftest.er1
17972 grep -v '^ *+' conftest.er1 >conftest.err
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } &&
17977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17978 { (case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_try") 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; } &&
17987 { ac_try='test -s conftest.$ac_objext'
17988 { (case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_try") 2>&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17997 ac_cv_type_u_int64_t=yes
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 ac_cv_type_u_int64_t=no
18005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18007 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18008 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18009 if test $ac_cv_type_u_int64_t = yes; then
18011 cat >>confdefs.h <<_ACEOF
18012 #define HAVE_U_INT64_T 1
18017 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18018 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18019 { (exit 1); exit 1; }; }
18033 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 cat >conftest.$ac_ext <<_ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18049 #define $ac_func innocuous_$ac_func
18051 /* System header to define __stub macros and hopefully few prototypes,
18052 which can conflict with char $ac_func (); below.
18053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18054 <limits.h> exists even on freestanding compilers. */
18057 # include <limits.h>
18059 # include <assert.h>
18064 /* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18071 /* The GNU C library defines this for functions which it implements
18072 to always fail with ENOSYS. Some functions are actually named
18073 something starting with __ and the normal name is an alias. */
18074 #if defined __stub_$ac_func || defined __stub___$ac_func
18081 return $ac_func ();
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>conftest.er1
18095 grep -v '^ *+' conftest.er1 >conftest.err
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest$ac_exeext'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 eval "$as_ac_var=yes"
18122 echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18125 eval "$as_ac_var=no"
18128 rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18131 ac_res=`eval echo '${'$as_ac_var'}'`
18132 { echo "$as_me:$LINENO: result: $ac_res" >&5
18133 echo "${ECHO_T}$ac_res" >&6; }
18134 if test `eval echo '${'$as_ac_var'}'` = yes; then
18135 cat >>confdefs.h <<_ACEOF
18136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18146 for ac_func in powf fmodf strtof round
18148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18162 #define $ac_func innocuous_$ac_func
18164 /* System header to define __stub macros and hopefully few prototypes,
18165 which can conflict with char $ac_func (); below.
18166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18167 <limits.h> exists even on freestanding compilers. */
18170 # include <limits.h>
18172 # include <assert.h>
18177 /* Override any GCC internal prototype to avoid an error.
18178 Use char because int might match the return type of a GCC
18179 builtin and then its argument prototype would still apply. */
18184 /* The GNU C library defines this for functions which it implements
18185 to always fail with ENOSYS. Some functions are actually named
18186 something starting with __ and the normal name is an alias. */
18187 #if defined __stub_$ac_func || defined __stub___$ac_func
18194 return $ac_func ();
18199 rm -f conftest.$ac_objext conftest$ac_exeext
18200 if { (ac_try="$ac_link"
18201 case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_link") 2>conftest.er1
18208 grep -v '^ *+' conftest.er1 >conftest.err
18210 cat conftest.err >&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } &&
18213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18214 { (case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_try") 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest$ac_exeext'
18224 { (case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229 (eval "$ac_try") 2>&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18233 eval "$as_ac_var=yes"
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 eval "$as_ac_var=no"
18241 rm -f core conftest.err conftest.$ac_objext \
18242 conftest$ac_exeext conftest.$ac_ext
18244 ac_res=`eval echo '${'$as_ac_var'}'`
18245 { echo "$as_me:$LINENO: result: $ac_res" >&5
18246 echo "${ECHO_T}$ac_res" >&6; }
18247 if test `eval echo '${'$as_ac_var'}'` = yes; then
18248 cat >>confdefs.h <<_ACEOF
18249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18260 for ac_func in log log2 log10 exp exp2
18262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 cat >conftest.$ac_ext <<_ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18276 #define $ac_func innocuous_$ac_func
18278 /* System header to define __stub macros and hopefully few prototypes,
18279 which can conflict with char $ac_func (); below.
18280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18281 <limits.h> exists even on freestanding compilers. */
18284 # include <limits.h>
18286 # include <assert.h>
18291 /* Override any GCC internal prototype to avoid an error.
18292 Use char because int might match the return type of a GCC
18293 builtin and then its argument prototype would still apply. */
18298 /* The GNU C library defines this for functions which it implements
18299 to always fail with ENOSYS. Some functions are actually named
18300 something starting with __ and the normal name is an alias. */
18301 #if defined __stub_$ac_func || defined __stub___$ac_func
18308 return $ac_func ();
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_link") 2>conftest.er1
18322 grep -v '^ *+' conftest.er1 >conftest.err
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18328 { (case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_try") 2>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 eval "$as_ac_var=yes"
18349 echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18352 eval "$as_ac_var=no"
18355 rm -f core conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18358 ac_res=`eval echo '${'$as_ac_var'}'`
18359 { echo "$as_me:$LINENO: result: $ac_res" >&5
18360 echo "${ECHO_T}$ac_res" >&6; }
18361 if test `eval echo '${'$as_ac_var'}'` = yes; then
18362 cat >>confdefs.h <<_ACEOF
18363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18374 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 cat >conftest.$ac_ext <<_ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18390 #define $ac_func innocuous_$ac_func
18392 /* System header to define __stub macros and hopefully few prototypes,
18393 which can conflict with char $ac_func (); below.
18394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395 <limits.h> exists even on freestanding compilers. */
18398 # include <limits.h>
18400 # include <assert.h>
18405 /* Override any GCC internal prototype to avoid an error.
18406 Use char because int might match the return type of a GCC
18407 builtin and then its argument prototype would still apply. */
18412 /* The GNU C library defines this for functions which it implements
18413 to always fail with ENOSYS. Some functions are actually named
18414 something starting with __ and the normal name is an alias. */
18415 #if defined __stub_$ac_func || defined __stub___$ac_func
18422 return $ac_func ();
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 eval "$as_ac_var=yes"
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 eval "$as_ac_var=no"
18469 rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18472 ac_res=`eval echo '${'$as_ac_var'}'`
18473 { echo "$as_me:$LINENO: result: $ac_res" >&5
18474 echo "${ECHO_T}$ac_res" >&6; }
18475 if test `eval echo '${'$as_ac_var'}'` = yes; then
18476 cat >>confdefs.h <<_ACEOF
18477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18486 for ac_func in isatty mkdtemp mkstemp
18488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18494 cat >conftest.$ac_ext <<_ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18502 #define $ac_func innocuous_$ac_func
18504 /* System header to define __stub macros and hopefully few prototypes,
18505 which can conflict with char $ac_func (); below.
18506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18507 <limits.h> exists even on freestanding compilers. */
18510 # include <limits.h>
18512 # include <assert.h>
18517 /* Override any GCC internal prototype to avoid an error.
18518 Use char because int might match the return type of a GCC
18519 builtin and then its argument prototype would still apply. */
18524 /* The GNU C library defines this for functions which it implements
18525 to always fail with ENOSYS. Some functions are actually named
18526 something starting with __ and the normal name is an alias. */
18527 #if defined __stub_$ac_func || defined __stub___$ac_func
18534 return $ac_func ();
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (ac_try="$ac_link"
18541 case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546 (eval "$ac_link") 2>conftest.er1
18548 grep -v '^ *+' conftest.er1 >conftest.err
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
18553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18554 { (case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_try") 2>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; } &&
18563 { ac_try='test -s conftest$ac_exeext'
18564 { (case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_try") 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 eval "$as_ac_var=yes"
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 eval "$as_ac_var=no"
18581 rm -f core conftest.err conftest.$ac_objext \
18582 conftest$ac_exeext conftest.$ac_ext
18584 ac_res=`eval echo '${'$as_ac_var'}'`
18585 { echo "$as_me:$LINENO: result: $ac_res" >&5
18586 echo "${ECHO_T}$ac_res" >&6; }
18587 if test `eval echo '${'$as_ac_var'}'` = yes; then
18588 cat >>confdefs.h <<_ACEOF
18589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18602 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 cat >conftest.$ac_ext <<_ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18618 #define $ac_func innocuous_$ac_func
18620 /* System header to define __stub macros and hopefully few prototypes,
18621 which can conflict with char $ac_func (); below.
18622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18623 <limits.h> exists even on freestanding compilers. */
18626 # include <limits.h>
18628 # include <assert.h>
18633 /* Override any GCC internal prototype to avoid an error.
18634 Use char because int might match the return type of a GCC
18635 builtin and then its argument prototype would still apply. */
18640 /* The GNU C library defines this for functions which it implements
18641 to always fail with ENOSYS. Some functions are actually named
18642 something starting with __ and the normal name is an alias. */
18643 #if defined __stub_$ac_func || defined __stub___$ac_func
18650 return $ac_func ();
18655 rm -f conftest.$ac_objext conftest$ac_exeext
18656 if { (ac_try="$ac_link"
18657 case "(($ac_try" in
18658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659 *) ac_try_echo=$ac_try;;
18661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_link") 2>conftest.er1
18664 grep -v '^ *+' conftest.er1 >conftest.err
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } &&
18669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18670 { (case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_try") 2>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; } &&
18679 { ac_try='test -s conftest$ac_exeext'
18680 { (case "(($ac_try" in
18681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685 (eval "$ac_try") 2>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 eval "$as_ac_var=yes"
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18694 eval "$as_ac_var=no"
18697 rm -f core conftest.err conftest.$ac_objext \
18698 conftest$ac_exeext conftest.$ac_ext
18700 ac_res=`eval echo '${'$as_ac_var'}'`
18701 { echo "$as_me:$LINENO: result: $ac_res" >&5
18702 echo "${ECHO_T}$ac_res" >&6; }
18703 if test `eval echo '${'$as_ac_var'}'` = yes; then
18704 cat >>confdefs.h <<_ACEOF
18705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18715 for ac_func in strerror strerror_r setenv arc4random
18717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18731 #define $ac_func innocuous_$ac_func
18733 /* System header to define __stub macros and hopefully few prototypes,
18734 which can conflict with char $ac_func (); below.
18735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18736 <limits.h> exists even on freestanding compilers. */
18739 # include <limits.h>
18741 # include <assert.h>
18746 /* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18753 /* The GNU C library defines this for functions which it implements
18754 to always fail with ENOSYS. Some functions are actually named
18755 something starting with __ and the normal name is an alias. */
18756 #if defined __stub_$ac_func || defined __stub___$ac_func
18763 return $ac_func ();
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18777 grep -v '^ *+' conftest.er1 >conftest.err
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest$ac_exeext'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 eval "$as_ac_var=yes"
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 eval "$as_ac_var=no"
18810 rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18813 ac_res=`eval echo '${'$as_ac_var'}'`
18814 { echo "$as_me:$LINENO: result: $ac_res" >&5
18815 echo "${ECHO_T}$ac_res" >&6; }
18816 if test `eval echo '${'$as_ac_var'}'` = yes; then
18817 cat >>confdefs.h <<_ACEOF
18818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18828 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18834 echo $ECHO_N "(cached) $ECHO_C" >&6
18836 cat >conftest.$ac_ext <<_ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18844 #define $ac_func innocuous_$ac_func
18846 /* System header to define __stub macros and hopefully few prototypes,
18847 which can conflict with char $ac_func (); below.
18848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18849 <limits.h> exists even on freestanding compilers. */
18852 # include <limits.h>
18854 # include <assert.h>
18859 /* Override any GCC internal prototype to avoid an error.
18860 Use char because int might match the return type of a GCC
18861 builtin and then its argument prototype would still apply. */
18866 /* The GNU C library defines this for functions which it implements
18867 to always fail with ENOSYS. Some functions are actually named
18868 something starting with __ and the normal name is an alias. */
18869 #if defined __stub_$ac_func || defined __stub___$ac_func
18876 return $ac_func ();
18881 rm -f conftest.$ac_objext conftest$ac_exeext
18882 if { (ac_try="$ac_link"
18883 case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_link") 2>conftest.er1
18890 grep -v '^ *+' conftest.er1 >conftest.err
18892 cat conftest.err >&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } &&
18895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; } &&
18905 { ac_try='test -s conftest$ac_exeext'
18906 { (case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_try") 2>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 eval "$as_ac_var=yes"
18917 echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18920 eval "$as_ac_var=no"
18923 rm -f core conftest.err conftest.$ac_objext \
18924 conftest$ac_exeext conftest.$ac_ext
18926 ac_res=`eval echo '${'$as_ac_var'}'`
18927 { echo "$as_me:$LINENO: result: $ac_res" >&5
18928 echo "${ECHO_T}$ac_res" >&6; }
18929 if test `eval echo '${'$as_ac_var'}'` = yes; then
18930 cat >>confdefs.h <<_ACEOF
18931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18942 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 cat >conftest.$ac_ext <<_ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18958 #define $ac_func innocuous_$ac_func
18960 /* System header to define __stub macros and hopefully few prototypes,
18961 which can conflict with char $ac_func (); below.
18962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18963 <limits.h> exists even on freestanding compilers. */
18966 # include <limits.h>
18968 # include <assert.h>
18973 /* Override any GCC internal prototype to avoid an error.
18974 Use char because int might match the return type of a GCC
18975 builtin and then its argument prototype would still apply. */
18980 /* The GNU C library defines this for functions which it implements
18981 to always fail with ENOSYS. Some functions are actually named
18982 something starting with __ and the normal name is an alias. */
18983 #if defined __stub_$ac_func || defined __stub___$ac_func
18990 return $ac_func ();
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>conftest.er1
19004 grep -v '^ *+' conftest.er1 >conftest.err
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } &&
19009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19010 { (case "(($ac_try" in
19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012 *) ac_try_echo=$ac_try;;
19014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015 (eval "$ac_try") 2>&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; } &&
19019 { ac_try='test -s conftest$ac_exeext'
19020 { (case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_try") 2>&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; }; then
19029 eval "$as_ac_var=yes"
19031 echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19034 eval "$as_ac_var=no"
19037 rm -f core conftest.err conftest.$ac_objext \
19038 conftest$ac_exeext conftest.$ac_ext
19040 ac_res=`eval echo '${'$as_ac_var'}'`
19041 { echo "$as_me:$LINENO: result: $ac_res" >&5
19042 echo "${ECHO_T}$ac_res" >&6; }
19043 if test `eval echo '${'$as_ac_var'}'` = yes; then
19044 cat >>confdefs.h <<_ACEOF
19045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19051 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19052 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19053 if test "${llvm_cv_c_printf_a+set}" = set; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 ac_cpp='$CPP $CPPFLAGS'
19058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19062 if test "$cross_compiling" = yes; then
19063 llvmac_cv_c_printf_a=no
19065 cat >conftest.$ac_ext <<_ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19074 #include <stdlib.h>
19080 volatile double A, B;
19084 sprintf(Buffer, "%a", A);
19088 if (A != 0x1.999999999999ap-4)
19095 rm -f conftest$ac_exeext
19096 if { (ac_try="$ac_link"
19097 case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_link") 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19106 { (case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_try") 2>&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 llvm_cv_c_printf_a=yes
19117 echo "$as_me: program exited with status $ac_status" >&5
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ( exit $ac_status )
19122 llvmac_cv_c_printf_a=no
19124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19129 ac_cpp='$CPP $CPPFLAGS'
19130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19135 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19136 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19137 if test "$llvm_cv_c_printf_a" = "yes"; then
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE_PRINTF_A 1
19147 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19148 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19149 if test "${ac_cv_func_rand48+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 ac_cpp='$CXXCPP $CPPFLAGS'
19155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 #include <stdlib.h>
19169 srand48(0);lrand48();drand48();
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_compile") 2>conftest.er1
19183 grep -v '^ *+' conftest.er1 >conftest.err
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_try") 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_func_rand48=yes
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 ac_cv_func_rand48=no
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 ac_cpp='$CPP $CPPFLAGS'
19219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19225 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19226 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19228 if test "$ac_cv_func_rand48" = "yes" ; then
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE_RAND48 1
19237 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19238 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19239 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19242 cat >conftest.$ac_ext <<_ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 $ac_includes_default
19253 char *p = (char *) strerror_s;
19261 rm -f conftest.$ac_objext
19262 if { (ac_try="$ac_compile"
19263 case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_compile") 2>conftest.er1
19270 grep -v '^ *+' conftest.er1 >conftest.err
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } &&
19275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19276 { (case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_try") 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest.$ac_objext'
19286 { (case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_try") 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_cv_have_decl_strerror_s=yes
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19300 ac_cv_have_decl_strerror_s=no
19303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19305 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19306 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19307 if test $ac_cv_have_decl_strerror_s = yes; then
19309 cat >>confdefs.h <<_ACEOF
19310 #define HAVE_DECL_STRERROR_S 1
19315 cat >>confdefs.h <<_ACEOF
19316 #define HAVE_DECL_STRERROR_S 0
19324 if test "$llvm_cv_os_type" = "MingW" ; then
19325 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19326 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19327 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19330 ac_check_lib_save_LIBS=$LIBS
19332 cat >conftest.$ac_ext <<_ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19339 /* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19354 rm -f conftest.$ac_objext conftest$ac_exeext
19355 if { (ac_try="$ac_link"
19356 case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_link") 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
19368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19369 { (case "(($ac_try" in
19370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371 *) ac_try_echo=$ac_try;;
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374 (eval "$ac_try") 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest$ac_exeext'
19379 { (case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_try") 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_lib_gcc__alloca=yes
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 ac_cv_lib_gcc__alloca=no
19396 rm -f core conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398 LIBS=$ac_check_lib_save_LIBS
19400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19401 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19402 if test $ac_cv_lib_gcc__alloca = yes; then
19404 cat >>confdefs.h <<\_ACEOF
19405 #define HAVE__ALLOCA 1
19410 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19411 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19412 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 ac_check_lib_save_LIBS=$LIBS
19417 cat >conftest.$ac_ext <<_ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19424 /* Override any GCC internal prototype to avoid an error.
19425 Use char because int might match the return type of a GCC
19426 builtin and then its argument prototype would still apply. */
19434 return __alloca ();
19439 rm -f conftest.$ac_objext conftest$ac_exeext
19440 if { (ac_try="$ac_link"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_link") 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19454 { (case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest$ac_exeext'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
19473 ac_cv_lib_gcc___alloca=yes
19475 echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19478 ac_cv_lib_gcc___alloca=no
19481 rm -f core conftest.err conftest.$ac_objext \
19482 conftest$ac_exeext conftest.$ac_ext
19483 LIBS=$ac_check_lib_save_LIBS
19485 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19486 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19487 if test $ac_cv_lib_gcc___alloca = yes; then
19489 cat >>confdefs.h <<\_ACEOF
19490 #define HAVE___ALLOCA 1
19495 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19496 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19497 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 ac_check_lib_save_LIBS=$LIBS
19502 cat >conftest.$ac_ext <<_ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19509 /* Override any GCC internal prototype to avoid an error.
19510 Use char because int might match the return type of a GCC
19511 builtin and then its argument prototype would still apply. */
19519 return __chkstk ();
19524 rm -f conftest.$ac_objext conftest$ac_exeext
19525 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19533 grep -v '^ *+' conftest.er1 >conftest.err
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } &&
19538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19539 { (case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_try") 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest$ac_exeext'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_lib_gcc___chkstk=yes
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ac_cv_lib_gcc___chkstk=no
19566 rm -f core conftest.err conftest.$ac_objext \
19567 conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19570 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19571 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19572 if test $ac_cv_lib_gcc___chkstk = yes; then
19574 cat >>confdefs.h <<\_ACEOF
19575 #define HAVE___CHKSTK 1
19580 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19581 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19582 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 ac_check_lib_save_LIBS=$LIBS
19587 cat >conftest.$ac_ext <<_ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19594 /* Override any GCC internal prototype to avoid an error.
19595 Use char because int might match the return type of a GCC
19596 builtin and then its argument prototype would still apply. */
19604 return ___chkstk ();
19609 rm -f conftest.$ac_objext conftest$ac_exeext
19610 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19618 grep -v '^ *+' conftest.er1 >conftest.err
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19624 { (case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_try") 2>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest$ac_exeext'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19643 ac_cv_lib_gcc____chkstk=yes
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ac_cv_lib_gcc____chkstk=no
19651 rm -f core conftest.err conftest.$ac_objext \
19652 conftest$ac_exeext conftest.$ac_ext
19653 LIBS=$ac_check_lib_save_LIBS
19655 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19656 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19657 if test $ac_cv_lib_gcc____chkstk = yes; then
19659 cat >>confdefs.h <<\_ACEOF
19660 #define HAVE____CHKSTK 1
19666 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19667 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19668 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 ac_check_lib_save_LIBS=$LIBS
19673 cat >conftest.$ac_ext <<_ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19680 /* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19690 return __ashldi3 ();
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (ac_try="$ac_link"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_link") 2>conftest.er1
19704 grep -v '^ *+' conftest.er1 >conftest.err
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
19709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19710 { (case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_try") 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest$ac_exeext'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 ac_cv_lib_gcc___ashldi3=yes
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 ac_cv_lib_gcc___ashldi3=no
19737 rm -f core conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
19739 LIBS=$ac_check_lib_save_LIBS
19741 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19742 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19743 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19745 cat >>confdefs.h <<\_ACEOF
19746 #define HAVE___ASHLDI3 1
19751 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19752 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19753 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 ac_check_lib_save_LIBS=$LIBS
19758 cat >conftest.$ac_ext <<_ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19765 /* Override any GCC internal prototype to avoid an error.
19766 Use char because int might match the return type of a GCC
19767 builtin and then its argument prototype would still apply. */
19775 return __ashrdi3 ();
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (ac_try="$ac_link"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_link") 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19795 { (case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_try") 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest$ac_exeext'
19805 { (case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810 (eval "$ac_try") 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 ac_cv_lib_gcc___ashrdi3=yes
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 ac_cv_lib_gcc___ashrdi3=no
19822 rm -f core conftest.err conftest.$ac_objext \
19823 conftest$ac_exeext conftest.$ac_ext
19824 LIBS=$ac_check_lib_save_LIBS
19826 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19827 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19828 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE___ASHRDI3 1
19836 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19837 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19838 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 ac_check_lib_save_LIBS=$LIBS
19843 cat >conftest.$ac_ext <<_ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19850 /* Override any GCC internal prototype to avoid an error.
19851 Use char because int might match the return type of a GCC
19852 builtin and then its argument prototype would still apply. */
19860 return __divdi3 ();
19865 rm -f conftest.$ac_objext conftest$ac_exeext
19866 if { (ac_try="$ac_link"
19867 case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_link") 2>conftest.er1
19874 grep -v '^ *+' conftest.er1 >conftest.err
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
19879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19880 { (case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_try") 2>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest$ac_exeext'
19890 { (case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_try") 2>&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; }; then
19899 ac_cv_lib_gcc___divdi3=yes
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19904 ac_cv_lib_gcc___divdi3=no
19907 rm -f core conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
19909 LIBS=$ac_check_lib_save_LIBS
19911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19912 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19913 if test $ac_cv_lib_gcc___divdi3 = yes; then
19915 cat >>confdefs.h <<\_ACEOF
19916 #define HAVE___DIVDI3 1
19921 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19922 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19923 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 ac_check_lib_save_LIBS=$LIBS
19928 cat >conftest.$ac_ext <<_ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19935 /* Override any GCC internal prototype to avoid an error.
19936 Use char because int might match the return type of a GCC
19937 builtin and then its argument prototype would still apply. */
19945 return __fixdfdi ();
19950 rm -f conftest.$ac_objext conftest$ac_exeext
19951 if { (ac_try="$ac_link"
19952 case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_link") 2>conftest.er1
19959 grep -v '^ *+' conftest.er1 >conftest.err
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
19964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19965 { (case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_try") 2>&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; } &&
19974 { ac_try='test -s conftest$ac_exeext'
19975 { (case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_try") 2>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 ac_cv_lib_gcc___fixdfdi=yes
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_cv_lib_gcc___fixdfdi=no
19992 rm -f core conftest.err conftest.$ac_objext \
19993 conftest$ac_exeext conftest.$ac_ext
19994 LIBS=$ac_check_lib_save_LIBS
19996 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19997 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19998 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20000 cat >>confdefs.h <<\_ACEOF
20001 #define HAVE___FIXDFDI 1
20006 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20007 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20008 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20009 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 ac_check_lib_save_LIBS=$LIBS
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20020 /* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20030 return __fixsfdi ();
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_link") 2>conftest.er1
20044 grep -v '^ *+' conftest.er1 >conftest.err
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } &&
20049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20050 { (case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_try") 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try='test -s conftest$ac_exeext'
20060 { (case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_try") 2>&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 ac_cv_lib_gcc___fixsfdi=yes
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_cv_lib_gcc___fixsfdi=no
20077 rm -f core conftest.err conftest.$ac_objext \
20078 conftest$ac_exeext conftest.$ac_ext
20079 LIBS=$ac_check_lib_save_LIBS
20081 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20082 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20083 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20085 cat >>confdefs.h <<\_ACEOF
20086 #define HAVE___FIXSFDI 1
20091 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20092 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20093 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20096 ac_check_lib_save_LIBS=$LIBS
20098 cat >conftest.$ac_ext <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20105 /* Override any GCC internal prototype to avoid an error.
20106 Use char because int might match the return type of a GCC
20107 builtin and then its argument prototype would still apply. */
20111 char __floatdidf ();
20115 return __floatdidf ();
20120 rm -f conftest.$ac_objext conftest$ac_exeext
20121 if { (ac_try="$ac_link"
20122 case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_link") 2>conftest.er1
20129 grep -v '^ *+' conftest.er1 >conftest.err
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20135 { (case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_try") 2>&5
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); }; } &&
20144 { ac_try='test -s conftest$ac_exeext'
20145 { (case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_try") 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 ac_cv_lib_gcc___floatdidf=yes
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ac_cv_lib_gcc___floatdidf=no
20162 rm -f core conftest.err conftest.$ac_objext \
20163 conftest$ac_exeext conftest.$ac_ext
20164 LIBS=$ac_check_lib_save_LIBS
20166 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20167 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20168 if test $ac_cv_lib_gcc___floatdidf = yes; then
20170 cat >>confdefs.h <<\_ACEOF
20171 #define HAVE___FLOATDIDF 1
20176 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20177 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20178 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 ac_check_lib_save_LIBS=$LIBS
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20190 /* Override any GCC internal prototype to avoid an error.
20191 Use char because int might match the return type of a GCC
20192 builtin and then its argument prototype would still apply. */
20200 return __lshrdi3 ();
20205 rm -f conftest.$ac_objext conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_link") 2>conftest.er1
20214 grep -v '^ *+' conftest.er1 >conftest.err
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } &&
20219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20220 { (case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_try") 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest$ac_exeext'
20230 { (case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_try") 2>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 ac_cv_lib_gcc___lshrdi3=yes
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 ac_cv_lib_gcc___lshrdi3=no
20247 rm -f core conftest.err conftest.$ac_objext \
20248 conftest$ac_exeext conftest.$ac_ext
20249 LIBS=$ac_check_lib_save_LIBS
20251 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20252 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20253 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20255 cat >>confdefs.h <<\_ACEOF
20256 #define HAVE___LSHRDI3 1
20261 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20262 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20263 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20266 ac_check_lib_save_LIBS=$LIBS
20268 cat >conftest.$ac_ext <<_ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20275 /* Override any GCC internal prototype to avoid an error.
20276 Use char because int might match the return type of a GCC
20277 builtin and then its argument prototype would still apply. */
20285 return __moddi3 ();
20290 rm -f conftest.$ac_objext conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_link") 2>conftest.er1
20299 grep -v '^ *+' conftest.er1 >conftest.err
20301 cat conftest.err >&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } &&
20304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20305 { (case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_try") 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; } &&
20314 { ac_try='test -s conftest$ac_exeext'
20315 { (case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_try") 2>&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; }; then
20324 ac_cv_lib_gcc___moddi3=yes
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20329 ac_cv_lib_gcc___moddi3=no
20332 rm -f core conftest.err conftest.$ac_objext \
20333 conftest$ac_exeext conftest.$ac_ext
20334 LIBS=$ac_check_lib_save_LIBS
20336 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20337 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20338 if test $ac_cv_lib_gcc___moddi3 = yes; then
20340 cat >>confdefs.h <<\_ACEOF
20341 #define HAVE___MODDI3 1
20346 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20347 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20348 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 ac_check_lib_save_LIBS=$LIBS
20353 cat >conftest.$ac_ext <<_ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h. */
20360 /* Override any GCC internal prototype to avoid an error.
20361 Use char because int might match the return type of a GCC
20362 builtin and then its argument prototype would still apply. */
20370 return __udivdi3 ();
20375 rm -f conftest.$ac_objext conftest$ac_exeext
20376 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
20384 grep -v '^ *+' conftest.er1 >conftest.err
20386 cat conftest.err >&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } &&
20389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20390 { (case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_try") 2>&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; } &&
20399 { ac_try='test -s conftest$ac_exeext'
20400 { (case "(($ac_try" in
20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402 *) ac_try_echo=$ac_try;;
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405 (eval "$ac_try") 2>&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ac_cv_lib_gcc___udivdi3=yes
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20414 ac_cv_lib_gcc___udivdi3=no
20417 rm -f core conftest.err conftest.$ac_objext \
20418 conftest$ac_exeext conftest.$ac_ext
20419 LIBS=$ac_check_lib_save_LIBS
20421 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20422 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20423 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20425 cat >>confdefs.h <<\_ACEOF
20426 #define HAVE___UDIVDI3 1
20431 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20432 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20433 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 ac_check_lib_save_LIBS=$LIBS
20438 cat >conftest.$ac_ext <<_ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20445 /* Override any GCC internal prototype to avoid an error.
20446 Use char because int might match the return type of a GCC
20447 builtin and then its argument prototype would still apply. */
20455 return __umoddi3 ();
20460 rm -f conftest.$ac_objext conftest$ac_exeext
20461 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
20469 grep -v '^ *+' conftest.er1 >conftest.err
20471 cat conftest.err >&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } &&
20474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20475 { (case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_try") 2>&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; } &&
20484 { ac_try='test -s conftest$ac_exeext'
20485 { (case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_try") 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 ac_cv_lib_gcc___umoddi3=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_cv_lib_gcc___umoddi3=no
20502 rm -f core conftest.err conftest.$ac_objext \
20503 conftest$ac_exeext conftest.$ac_ext
20504 LIBS=$ac_check_lib_save_LIBS
20506 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20507 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20508 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20510 cat >>confdefs.h <<\_ACEOF
20511 #define HAVE___UMODDI3 1
20517 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20518 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20519 if test "${ac_cv_lib_gcc___main+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 ac_check_lib_save_LIBS=$LIBS
20524 cat >conftest.$ac_ext <<_ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20531 /* Override any GCC internal prototype to avoid an error.
20532 Use char because int might match the return type of a GCC
20533 builtin and then its argument prototype would still apply. */
20546 rm -f conftest.$ac_objext conftest$ac_exeext
20547 if { (ac_try="$ac_link"
20548 case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_link") 2>conftest.er1
20555 grep -v '^ *+' conftest.er1 >conftest.err
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20561 { (case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_try") 2>&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; } &&
20570 { ac_try='test -s conftest$ac_exeext'
20571 { (case "(($ac_try" in
20572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573 *) ac_try_echo=$ac_try;;
20575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20576 (eval "$ac_try") 2>&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580 ac_cv_lib_gcc___main=yes
20582 echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20585 ac_cv_lib_gcc___main=no
20588 rm -f core conftest.err conftest.$ac_objext \
20589 conftest$ac_exeext conftest.$ac_ext
20590 LIBS=$ac_check_lib_save_LIBS
20592 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20593 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20594 if test $ac_cv_lib_gcc___main = yes; then
20596 cat >>confdefs.h <<\_ACEOF
20597 #define HAVE___MAIN 1
20602 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20603 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20604 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 ac_check_lib_save_LIBS=$LIBS
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20626 return __cmpdi2 ();
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (ac_try="$ac_link"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_link") 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_try") 2>&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest$ac_exeext'
20656 { (case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_try") 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_cv_lib_gcc___cmpdi2=yes
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_cv_lib_gcc___cmpdi2=no
20673 rm -f core conftest.err conftest.$ac_objext \
20674 conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20677 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20678 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20679 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20681 cat >>confdefs.h <<\_ACEOF
20682 #define HAVE___CMPDI2 1
20689 if test "$llvm_cv_os_type" = "MingW" ; then
20690 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20691 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20692 cat >conftest.$ac_ext <<_ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20700 #include <windows.h>
20701 #include <imagehlp.h>
20702 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20703 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20707 rm -f conftest.$ac_objext
20708 if { (ac_try="$ac_compile"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_compile") 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
20721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20722 { (case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_try") 2>&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; } &&
20731 { ac_try='test -s conftest.$ac_objext'
20732 { (case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_try") 2>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; }; then
20742 { echo "$as_me:$LINENO: result: yes" >&5
20743 echo "${ECHO_T}yes" >&6; }
20744 llvm_cv_win32_elmcb_pcstr="PCSTR"
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20751 { echo "$as_me:$LINENO: result: no" >&5
20752 echo "${ECHO_T}no" >&6; }
20753 llvm_cv_win32_elmcb_pcstr="PSTR"
20757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 cat >>confdefs.h <<_ACEOF
20760 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20767 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20768 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20769 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20774 ac_cpp='$CXXCPP $CPPFLAGS'
20775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20794 rm -f conftest.$ac_objext
20795 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20803 grep -v '^ *+' conftest.er1 >conftest.err
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20809 { (case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_try") 2>&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
20819 { (case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_try") 2>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 ac_cv_func_isnan_in_math_h=yes
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ac_cv_func_isnan_in_math_h=no
20836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20838 ac_cpp='$CPP $CPPFLAGS'
20839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20846 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20849 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_ISNAN_IN_MATH_H 1
20858 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20859 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20860 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 ac_cpp='$CXXCPP $CPPFLAGS'
20866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20870 cat >conftest.$ac_ext <<_ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h. */
20885 rm -f conftest.$ac_objext
20886 if { (ac_try="$ac_compile"
20887 case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
20899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20900 { (case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_try") 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try='test -s conftest.$ac_objext'
20910 { (case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_try") 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 ac_cv_func_isnan_in_cmath=yes
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ac_cv_func_isnan_in_cmath=no
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20929 ac_cpp='$CPP $CPPFLAGS'
20930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20937 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20939 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20941 cat >>confdefs.h <<\_ACEOF
20942 #define HAVE_ISNAN_IN_CMATH 1
20948 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20949 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20950 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 ac_cpp='$CXXCPP $CPPFLAGS'
20956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20960 cat >conftest.$ac_ext <<_ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20970 float f; std::isnan(f);
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_cv_func_std_isnan_in_cmath=yes
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_cv_func_std_isnan_in_cmath=no
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21026 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21027 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21029 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21031 cat >>confdefs.h <<\_ACEOF
21032 #define HAVE_STD_ISNAN_IN_CMATH 1
21040 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21041 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21042 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 ac_cpp='$CXXCPP $CPPFLAGS'
21048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21052 cat >conftest.$ac_ext <<_ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21076 grep -v '^ *+' conftest.er1 >conftest.err
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } &&
21081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21082 { (case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_try") 2>&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; } &&
21091 { ac_try='test -s conftest.$ac_objext'
21092 { (case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_try") 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
21101 ac_cv_func_isinf_in_math_h=yes
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_cv_func_isinf_in_math_h=no
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21111 ac_cpp='$CPP $CPPFLAGS'
21112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21118 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21119 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21121 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21123 cat >>confdefs.h <<\_ACEOF
21124 #define HAVE_ISINF_IN_MATH_H 1
21130 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21131 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21132 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21137 ac_cpp='$CXXCPP $CPPFLAGS'
21138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21157 rm -f conftest.$ac_objext
21158 if { (ac_try="$ac_compile"
21159 case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_compile") 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21172 { (case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_try") 2>&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; } &&
21181 { ac_try='test -s conftest.$ac_objext'
21182 { (case "(($ac_try" in
21183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184 *) ac_try_echo=$ac_try;;
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_try") 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191 ac_cv_func_isinf_in_cmath=yes
21193 echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21196 ac_cv_func_isinf_in_cmath=no
21199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21201 ac_cpp='$CPP $CPPFLAGS'
21202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21208 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21209 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21211 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_ISINF_IN_CMATH 1
21220 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21221 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21222 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21227 ac_cpp='$CXXCPP $CPPFLAGS'
21228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21242 float f; std::isinf(f);
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254 (eval "$ac_compile") 2>conftest.er1
21256 grep -v '^ *+' conftest.er1 >conftest.err
21258 cat conftest.err >&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } &&
21261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21262 { (case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_try") 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; } &&
21271 { ac_try='test -s conftest.$ac_objext'
21272 { (case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_try") 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_cv_func_std_isinf_in_cmath=yes
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_cv_func_std_isinf_in_cmath=no
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 ac_cpp='$CPP $CPPFLAGS'
21292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21298 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21299 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21301 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21303 cat >>confdefs.h <<\_ACEOF
21304 #define HAVE_STD_ISINF_IN_CMATH 1
21310 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21311 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21312 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 ac_cpp='$CXXCPP $CPPFLAGS'
21318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21322 cat >conftest.$ac_ext <<_ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21328 #include <ieeefp.h>
21332 float f; finite(f);
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_compile") 2>conftest.er1
21346 grep -v '^ *+' conftest.er1 >conftest.err
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } &&
21351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21352 { (case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_try") 2>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest.$ac_objext'
21362 { (case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 (eval "$ac_try") 2>&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; }; then
21371 ac_cv_func_finite_in_ieeefp_h=yes
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21376 ac_cv_func_finite_in_ieeefp_h=no
21379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21381 ac_cpp='$CPP $CPPFLAGS'
21382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21388 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21389 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21391 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21393 cat >>confdefs.h <<\_ACEOF
21394 #define HAVE_FINITE_IN_IEEEFP_H 1
21401 if test "$llvm_cv_platform_type" = "Unix" ; then
21404 for ac_header in stdlib.h unistd.h
21406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 ac_res=`eval echo '${'$as_ac_Header'}'`
21414 { echo "$as_me:$LINENO: result: $ac_res" >&5
21415 echo "${ECHO_T}$ac_res" >&6; }
21417 # Is the header compilable?
21418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 $ac_includes_default
21427 #include <$ac_header>
21429 rm -f conftest.$ac_objext
21430 if { (ac_try="$ac_compile"
21431 case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_compile") 2>conftest.er1
21438 grep -v '^ *+' conftest.er1 >conftest.err
21440 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } &&
21443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21444 { (case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_try") 2>&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; } &&
21453 { ac_try='test -s conftest.$ac_objext'
21454 { (case "(($ac_try" in
21455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456 *) ac_try_echo=$ac_try;;
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459 (eval "$ac_try") 2>&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; }; then
21463 ac_header_compiler=yes
21465 echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21468 ac_header_compiler=no
21471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21473 echo "${ECHO_T}$ac_header_compiler" >&6; }
21475 # Is the header present?
21476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21478 cat >conftest.$ac_ext <<_ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h. */
21484 #include <$ac_header>
21486 if { (ac_try="$ac_cpp conftest.$ac_ext"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21494 grep -v '^ *+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } >/dev/null; then
21499 if test -s conftest.err; then
21500 ac_cpp_err=$ac_c_preproc_warn_flag
21501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21508 if test -z "$ac_cpp_err"; then
21509 ac_header_preproc=yes
21511 echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21514 ac_header_preproc=no
21517 rm -f conftest.err conftest.$ac_ext
21518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21519 echo "${ECHO_T}$ac_header_preproc" >&6; }
21521 # So? What about this header?
21522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21528 ac_header_preproc=yes
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21544 ## ------------------------------------ ##
21545 ## Report this to http://llvm.org/bugs/ ##
21546 ## ------------------------------------ ##
21548 ) | sed "s/^/$as_me: WARNING: /" >&2
21551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21554 echo $ECHO_N "(cached) $ECHO_C" >&6
21556 eval "$as_ac_Header=\$ac_header_preproc"
21558 ac_res=`eval echo '${'$as_ac_Header'}'`
21559 { echo "$as_me:$LINENO: result: $ac_res" >&5
21560 echo "${ECHO_T}$ac_res" >&6; }
21563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21564 cat >>confdefs.h <<_ACEOF
21565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21573 for ac_func in getpagesize
21575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21589 #define $ac_func innocuous_$ac_func
21591 /* System header to define __stub macros and hopefully few prototypes,
21592 which can conflict with char $ac_func (); below.
21593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21594 <limits.h> exists even on freestanding compilers. */
21597 # include <limits.h>
21599 # include <assert.h>
21604 /* Override any GCC internal prototype to avoid an error.
21605 Use char because int might match the return type of a GCC
21606 builtin and then its argument prototype would still apply. */
21611 /* The GNU C library defines this for functions which it implements
21612 to always fail with ENOSYS. Some functions are actually named
21613 something starting with __ and the normal name is an alias. */
21614 #if defined __stub_$ac_func || defined __stub___$ac_func
21621 return $ac_func ();
21626 rm -f conftest.$ac_objext conftest$ac_exeext
21627 if { (ac_try="$ac_link"
21628 case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_link") 2>conftest.er1
21635 grep -v '^ *+' conftest.er1 >conftest.err
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } &&
21640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21641 { (case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_try") 2>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; } &&
21650 { ac_try='test -s conftest$ac_exeext'
21651 { (case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_try") 2>&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 eval "$as_ac_var=yes"
21662 echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21665 eval "$as_ac_var=no"
21668 rm -f core conftest.err conftest.$ac_objext \
21669 conftest$ac_exeext conftest.$ac_ext
21671 ac_res=`eval echo '${'$as_ac_var'}'`
21672 { echo "$as_me:$LINENO: result: $ac_res" >&5
21673 echo "${ECHO_T}$ac_res" >&6; }
21674 if test `eval echo '${'$as_ac_var'}'` = yes; then
21675 cat >>confdefs.h <<_ACEOF
21676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21682 { echo "$as_me:$LINENO: checking for working mmap" >&5
21683 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21684 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21687 if test "$cross_compiling" = yes; then
21688 ac_cv_func_mmap_fixed_mapped=no
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 $ac_includes_default
21697 /* malloc might have been renamed as rpl_malloc. */
21700 /* Thanks to Mike Haertel and Jim Avera for this test.
21701 Here is a matrix of mmap possibilities:
21702 mmap private not fixed
21703 mmap private fixed at somewhere currently unmapped
21704 mmap private fixed at somewhere already mapped
21705 mmap shared not fixed
21706 mmap shared fixed at somewhere currently unmapped
21707 mmap shared fixed at somewhere already mapped
21708 For private mappings, we should verify that changes cannot be read()
21709 back from the file, nor mmap's back from the file at a different
21710 address. (There have been systems where private was not correctly
21711 implemented like the infamous i386 svr4.0, and systems where the
21712 VM page cache was not coherent with the file system buffer cache
21713 like early versions of FreeBSD and possibly contemporary NetBSD.)
21714 For shared mappings, we should conversely verify that changes get
21715 propagated back to all the places they're supposed to be.
21717 Grep wants private fixed already mapped.
21718 The main things grep needs to know about mmap are:
21719 * does it exist and is it safe to write into the mmap'd area
21720 * how to use it (BSD variants) */
21723 #include <sys/mman.h>
21725 #if !STDC_HEADERS && !HAVE_STDLIB_H
21729 /* This mess was copied from the GNU getpagesize.h. */
21730 #if !HAVE_GETPAGESIZE
21731 /* Assume that all systems that can run configure have sys/param.h. */
21732 # if !HAVE_SYS_PARAM_H
21733 # define HAVE_SYS_PARAM_H 1
21736 # ifdef _SC_PAGESIZE
21737 # define getpagesize() sysconf(_SC_PAGESIZE)
21738 # else /* no _SC_PAGESIZE */
21739 # if HAVE_SYS_PARAM_H
21740 # include <sys/param.h>
21741 # ifdef EXEC_PAGESIZE
21742 # define getpagesize() EXEC_PAGESIZE
21743 # else /* no EXEC_PAGESIZE */
21745 # define getpagesize() NBPG * CLSIZE
21748 # endif /* no CLSIZE */
21749 # else /* no NBPG */
21751 # define getpagesize() NBPC
21752 # else /* no NBPC */
21754 # define getpagesize() PAGESIZE
21755 # endif /* PAGESIZE */
21756 # endif /* no NBPC */
21757 # endif /* no NBPG */
21758 # endif /* no EXEC_PAGESIZE */
21759 # else /* no HAVE_SYS_PARAM_H */
21760 # define getpagesize() 8192 /* punt totally */
21761 # endif /* no HAVE_SYS_PARAM_H */
21762 # endif /* no _SC_PAGESIZE */
21764 #endif /* no HAVE_GETPAGESIZE */
21769 char *data, *data2, *data3;
21773 pagesize = getpagesize ();
21775 /* First, make a file with some known garbage in it. */
21776 data = (char *) malloc (pagesize);
21779 for (i = 0; i < pagesize; ++i)
21780 *(data + i) = rand ();
21782 fd = creat ("conftest.mmap", 0600);
21785 if (write (fd, data, pagesize) != pagesize)
21789 /* Next, try to mmap the file at a fixed address which already has
21790 something else allocated at it. If we can, also make sure that
21791 we see the same garbage. */
21792 fd = open ("conftest.mmap", O_RDWR);
21795 data2 = (char *) malloc (2 * pagesize);
21798 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21799 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21800 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21802 for (i = 0; i < pagesize; ++i)
21803 if (*(data + i) != *(data2 + i))
21806 /* Finally, make sure that changes to the mapped area do not
21807 percolate back to the file as seen by read(). (This is a bug on
21808 some variants of i386 svr4.0.) */
21809 for (i = 0; i < pagesize; ++i)
21810 *(data2 + i) = *(data2 + i) + 1;
21811 data3 = (char *) malloc (pagesize);
21814 if (read (fd, data3, pagesize) != pagesize)
21816 for (i = 0; i < pagesize; ++i)
21817 if (*(data + i) != *(data3 + i))
21823 rm -f conftest$ac_exeext
21824 if { (ac_try="$ac_link"
21825 case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_link") 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21834 { (case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839 (eval "$ac_try") 2>&5
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; }; then
21843 ac_cv_func_mmap_fixed_mapped=yes
21845 echo "$as_me: program exited with status $ac_status" >&5
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ( exit $ac_status )
21850 ac_cv_func_mmap_fixed_mapped=no
21852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21857 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21858 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21859 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21861 cat >>confdefs.h <<\_ACEOF
21862 #define HAVE_MMAP 1
21866 rm -f conftest.mmap
21868 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21869 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21870 if test "${ac_cv_func_mmap_file+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21874 ac_cpp='$CPP $CPPFLAGS'
21875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21879 if test "$cross_compiling" = yes; then
21880 ac_cv_func_mmap_file=no
21882 cat >conftest.$ac_ext <<_ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21890 #include <sys/types.h>
21891 #include <sys/mman.h>
21899 fd = creat ("foo",0777);
21900 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21902 return (fd != (int) MAP_FAILED);
21907 rm -f conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_link") 2>&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21918 { (case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923 (eval "$ac_try") 2>&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; }; then
21927 ac_cv_func_mmap_file=yes
21929 echo "$as_me: program exited with status $ac_status" >&5
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 ( exit $ac_status )
21934 ac_cv_func_mmap_file=no
21936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21941 ac_cpp='$CPP $CPPFLAGS'
21942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21948 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21949 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21950 if test "$ac_cv_func_mmap_file" = yes; then
21952 cat >>confdefs.h <<\_ACEOF
21953 #define HAVE_MMAP_FILE
21960 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21961 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21962 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 if test "$llvm_cv_os_type" = "Interix" ; then
21966 ac_cv_need_dev_zero_for_mmap=yes
21968 ac_cv_need_dev_zero_for_mmap=no
21972 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21973 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21974 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21976 cat >>confdefs.h <<\_ACEOF
21977 #define NEED_DEV_ZERO_FOR_MMAP 1
21982 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21984 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21985 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21987 if test "$ac_cv_func_mmap_file" = "no"
21989 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21990 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21994 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21995 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21997 ac_cpp='$CXXCPP $CPPFLAGS'
21998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22002 cat >conftest.$ac_ext <<_ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h. */
22011 volatile unsigned long val = 1;
22012 __sync_synchronize();
22013 __sync_val_compare_and_swap(&val, 1, 0);
22014 __sync_add_and_fetch(&val, 1);
22015 __sync_sub_and_fetch(&val, 1);
22021 rm -f conftest.$ac_objext conftest$ac_exeext
22022 if { (ac_try="$ac_link"
22023 case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_link") 2>conftest.er1
22030 grep -v '^ *+' conftest.er1 >conftest.err
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22036 { (case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_try") 2>&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; } &&
22045 { ac_try='test -s conftest$ac_exeext'
22046 { (case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_try") 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22056 { echo "$as_me:$LINENO: result: yes" >&5
22057 echo "${ECHO_T}yes" >&6; }
22059 cat >>confdefs.h <<\_ACEOF
22060 #define LLVM_HAS_ATOMICS 1
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22069 { echo "$as_me:$LINENO: result: no" >&5
22070 echo "${ECHO_T}no" >&6; }
22072 cat >>confdefs.h <<\_ACEOF
22073 #define LLVM_HAS_ATOMICS 0
22076 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22077 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22081 rm -f core conftest.err conftest.$ac_objext \
22082 conftest$ac_exeext conftest.$ac_ext
22084 ac_cpp='$CPP $CPPFLAGS'
22085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22091 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22092 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22093 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22094 if test "${llvm_cv_linux_mixed+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22098 ac_cpp='$CPP $CPPFLAGS'
22099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22103 cat >conftest.$ac_ext <<_ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22110 error: Not x86-64 even if uname says so!
22121 rm -f conftest.$ac_objext
22122 if { (ac_try="$ac_compile"
22123 case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_compile") 2>conftest.er1
22130 grep -v '^ *+' conftest.er1 >conftest.err
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } &&
22135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22136 { (case "(($ac_try" in
22137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138 *) ac_try_echo=$ac_try;;
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141 (eval "$ac_try") 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; } &&
22145 { ac_try='test -s conftest.$ac_objext'
22146 { (case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_try") 2>&5
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); }; }; then
22155 llvm_cv_linux_mixed=no
22157 echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22160 llvm_cv_linux_mixed=yes
22163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165 ac_cpp='$CPP $CPPFLAGS'
22166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22172 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22173 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22175 if test "$llvm_cv_linux_mixed" = "yes"; then
22176 llvm_cv_target_arch="x86"
22182 for ac_func in __dso_handle
22184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 cat >conftest.$ac_ext <<_ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22198 #define $ac_func innocuous_$ac_func
22200 /* System header to define __stub macros and hopefully few prototypes,
22201 which can conflict with char $ac_func (); below.
22202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22203 <limits.h> exists even on freestanding compilers. */
22206 # include <limits.h>
22208 # include <assert.h>
22213 /* Override any GCC internal prototype to avoid an error.
22214 Use char because int might match the return type of a GCC
22215 builtin and then its argument prototype would still apply. */
22220 /* The GNU C library defines this for functions which it implements
22221 to always fail with ENOSYS. Some functions are actually named
22222 something starting with __ and the normal name is an alias. */
22223 #if defined __stub_$ac_func || defined __stub___$ac_func
22230 return $ac_func ();
22235 rm -f conftest.$ac_objext conftest$ac_exeext
22236 if { (ac_try="$ac_link"
22237 case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_link") 2>conftest.er1
22244 grep -v '^ *+' conftest.er1 >conftest.err
22246 cat conftest.err >&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } &&
22249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22250 { (case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_try") 2>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest$ac_exeext'
22260 { (case "(($ac_try" in
22261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262 *) ac_try_echo=$ac_try;;
22264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265 (eval "$ac_try") 2>&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; }; then
22269 eval "$as_ac_var=yes"
22271 echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22274 eval "$as_ac_var=no"
22277 rm -f core conftest.err conftest.$ac_objext \
22278 conftest$ac_exeext conftest.$ac_ext
22280 ac_res=`eval echo '${'$as_ac_var'}'`
22281 { echo "$as_me:$LINENO: result: $ac_res" >&5
22282 echo "${ECHO_T}$ac_res" >&6; }
22283 if test `eval echo '${'$as_ac_var'}'` = yes; then
22284 cat >>confdefs.h <<_ACEOF
22285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22292 SHLIBEXT=$libltdl_cv_shlibext
22295 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22298 if test "${prefix}" = "NONE" ; then
22299 prefix="/usr/local"
22301 eval LLVM_PREFIX="${prefix}";
22302 eval LLVM_BINDIR="${prefix}/bin";
22303 eval LLVM_LIBDIR="${prefix}/lib";
22304 eval LLVM_DATADIR="${prefix}/share/llvm";
22305 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22306 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22307 eval LLVM_INCLUDEDIR="${prefix}/include";
22308 eval LLVM_INFODIR="${prefix}/info";
22309 eval LLVM_MANDIR="${prefix}/man";
22310 LLVM_CONFIGTIME=`date`
22322 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22323 LLVM_CONFIGTIME="(timestamp not enabled)"
22327 cat >>confdefs.h <<_ACEOF
22328 #define LLVM_PREFIX "$LLVM_PREFIX"
22332 cat >>confdefs.h <<_ACEOF
22333 #define LLVM_BINDIR "$LLVM_BINDIR"
22337 cat >>confdefs.h <<_ACEOF
22338 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22342 cat >>confdefs.h <<_ACEOF
22343 #define LLVM_DATADIR "$LLVM_DATADIR"
22347 cat >>confdefs.h <<_ACEOF
22348 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22352 cat >>confdefs.h <<_ACEOF
22353 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22357 cat >>confdefs.h <<_ACEOF
22358 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22362 cat >>confdefs.h <<_ACEOF
22363 #define LLVM_INFODIR "$LLVM_INFODIR"
22367 cat >>confdefs.h <<_ACEOF
22368 #define LLVM_MANDIR "$LLVM_MANDIR"
22372 cat >>confdefs.h <<_ACEOF
22373 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22377 cat >>confdefs.h <<_ACEOF
22378 #define LLVM_HOST_TRIPLE "$host"
22382 cat >>confdefs.h <<_ACEOF
22383 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22387 if test "$BINDINGS_TO_BUILD" = auto ; then
22388 BINDINGS_TO_BUILD=""
22389 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22390 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22393 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22399 binding_prereqs_failed=0
22400 for a_binding in $BINDINGS_TO_BUILD ; do
22401 case "$a_binding" in
22403 if test "x$OCAMLC" = x ; then
22404 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22405 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22406 binding_prereqs_failed=1
22408 if test "x$OCAMLDEP" = x ; then
22409 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22410 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22411 binding_prereqs_failed=1
22413 if test "x$OCAMLOPT" = x ; then
22414 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22415 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22417 if test "x$with_ocaml_libdir" != xauto ; then
22418 OCAML_LIBDIR=$with_ocaml_libdir
22421 ocaml_stdlib="`"$OCAMLC" -where`"
22422 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22424 # ocaml stdlib is beneath our prefix; use stdlib
22425 OCAML_LIBDIR=$ocaml_stdlib
22428 # ocaml stdlib is outside our prefix; use libdir/ocaml
22429 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22436 if test "$binding_prereqs_failed" = 1 ; then
22437 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22438 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22439 { (exit 1); exit 1; }; }
22442 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22443 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22444 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 ac_cpp='$CXXCPP $CPPFLAGS'
22449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22453 oldcxxflags="$CXXFLAGS"
22454 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22470 rm -f conftest.$ac_objext
22471 if { (ac_try="$ac_compile"
22472 case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477 (eval "$ac_compile") 2>conftest.er1
22479 grep -v '^ *+' conftest.er1 >conftest.err
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } &&
22484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22485 { (case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_try") 2>&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; } &&
22494 { ac_try='test -s conftest.$ac_objext'
22495 { (case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_try") 2>&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22504 llvm_cv_cxx_visibility_inlines_hidden=yes
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 llvm_cv_cxx_visibility_inlines_hidden=no
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 CXXFLAGS="$oldcxxflags"
22515 ac_cpp='$CPP $CPPFLAGS'
22516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22522 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22523 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22524 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22525 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22528 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22533 if test "$llvm_cv_link_use_r" = "yes" ; then
22540 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22541 RDYNAMIC="-Wl,-export-dynamic"
22548 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22555 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22557 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22559 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22561 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22563 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22566 ac_config_files="$ac_config_files Makefile.config"
22569 ac_config_files="$ac_config_files llvm.spec"
22572 ac_config_files="$ac_config_files docs/doxygen.cfg"
22575 if test "${clang_src_root}" = ""; then
22576 clang_src_root="$srcdir/tools/clang"
22578 if test -f ${clang_src_root}/README.txt; then
22579 configh="include/clang/Config/config.h"
22580 doxy="docs/doxygen.cfg"
22581 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22583 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22587 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22590 test "x$program_prefix" = "xNONE" && program_prefix=""
22594 ac_config_commands="$ac_config_commands setup"
22596 ac_config_commands="$ac_config_commands Makefile"
22599 ac_config_commands="$ac_config_commands Makefile.common"
22602 ac_config_commands="$ac_config_commands examples/Makefile"
22605 ac_config_commands="$ac_config_commands lib/Makefile"
22608 ac_config_commands="$ac_config_commands runtime/Makefile"
22611 ac_config_commands="$ac_config_commands test/Makefile"
22614 ac_config_commands="$ac_config_commands test/Makefile.tests"
22617 ac_config_commands="$ac_config_commands unittests/Makefile"
22620 ac_config_commands="$ac_config_commands tools/Makefile"
22623 ac_config_commands="$ac_config_commands utils/Makefile"
22626 ac_config_commands="$ac_config_commands projects/Makefile"
22629 ac_config_commands="$ac_config_commands bindings/Makefile"
22632 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22636 cat >confcache <<\_ACEOF
22637 # This file is a shell script that caches the results of configure
22638 # tests run on this system so they can be shared between configure
22639 # scripts and configure runs, see configure's option --config-cache.
22640 # It is not useful on other systems. If it contains results you don't
22641 # want to keep, you may remove or edit it.
22643 # config.status only pays attention to the cache file if you give it
22644 # the --recheck option to rerun configure.
22646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22648 # following values.
22652 # The following way of writing the cache mishandles newlines in values,
22653 # but we know of no workaround that is simple, portable, and efficient.
22654 # So, we kill variables containing newlines.
22655 # Ultrix sh set writes to stderr and can't be redirected directly,
22656 # and sets the high bit in the cache file unless we assign to the vars.
22658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22659 eval ac_val=\$$ac_var
22663 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22664 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22667 _ | IFS | as_nl) ;; #(
22668 *) $as_unset $ac_var ;;
22674 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22675 *${as_nl}ac_space=\ *)
22676 # `set' does not quote correctly, so add quotes (double-quote
22677 # substitution turns \\\\ into \\, and sed turns \\ into \).
22680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22683 # `set' quotes correctly as required by POSIX, so do not add quotes.
22684 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22693 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22695 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22697 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22698 if test -w "$cache_file"; then
22699 test "x$cache_file" != "x/dev/null" &&
22700 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22701 echo "$as_me: updating cache $cache_file" >&6;}
22702 cat confcache >$cache_file
22704 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22705 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22711 # Let make expand exec_prefix.
22712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22714 DEFS=-DHAVE_CONFIG_H
22718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22719 # 1. Remove the extension, and $U if already installed.
22720 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22721 ac_i=`echo "$ac_i" | sed "$ac_script"`
22722 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22723 # will be set to the directory where LIBOBJS objects are built.
22724 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22725 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22727 LIBOBJS=$ac_libobjs
22729 LTLIBOBJS=$ac_ltlibobjs
22732 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22733 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22734 Usually this means the macro was only invoked conditionally." >&5
22735 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22736 Usually this means the macro was only invoked conditionally." >&2;}
22737 { (exit 1); exit 1; }; }
22739 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22740 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22741 Usually this means the macro was only invoked conditionally." >&5
22742 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22743 Usually this means the macro was only invoked conditionally." >&2;}
22744 { (exit 1); exit 1; }; }
22747 : ${CONFIG_STATUS=./config.status}
22748 ac_clean_files_save=$ac_clean_files
22749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22750 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22751 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22752 cat >$CONFIG_STATUS <<_ACEOF
22754 # Generated by $as_me.
22755 # Run this file to recreate the current configuration.
22756 # Compiler output produced by configure, useful for debugging
22757 # configure, is in config.log if it exists.
22760 ac_cs_recheck=false
22762 SHELL=\${CONFIG_SHELL-$SHELL}
22765 cat >>$CONFIG_STATUS <<\_ACEOF
22766 ## --------------------- ##
22767 ## M4sh Initialization. ##
22768 ## --------------------- ##
22770 # Be Bourne compatible
22771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22774 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22775 # is contrary to our usage. Disable this feature.
22776 alias -g '${1+"$@"}'='"$@"'
22777 setopt NO_GLOB_SUBST
22779 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22781 BIN_SH=xpg4; export BIN_SH # for Tru64
22782 DUALCASE=1; export DUALCASE # for MKS sh
22786 # Avoid depending upon Character Ranges.
22787 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22788 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22789 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22790 as_cr_digits='0123456789'
22791 as_cr_alnum=$as_cr_Letters$as_cr_digits
22793 # The user is always right.
22794 if test "${PATH_SEPARATOR+set}" != set; then
22795 echo "#! /bin/sh" >conf$$.sh
22796 echo "exit 0" >>conf$$.sh
22798 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22806 # Support unset when possible.
22807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22815 # We need space, tab and new line, in precisely that order. Quoting is
22816 # there to prevent editors from complaining about space-tab.
22817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22818 # splitting by setting IFS to empty value.)
22823 # Find who we are. Look in the path if we contain no directory separator.
22825 *[\\/]* ) as_myself=$0 ;;
22826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22827 for as_dir in $PATH
22830 test -z "$as_dir" && as_dir=.
22831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22837 # We did not find ourselves, most probably we were run as `sh COMMAND'
22838 # in which case we are not to be found in the path.
22839 if test "x$as_myself" = x; then
22842 if test ! -f "$as_myself"; then
22843 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22844 { (exit 1); exit 1; }
22847 # Work around bugs in pre-3.0 UWIN ksh.
22848 for as_var in ENV MAIL MAILPATH
22849 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22857 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22858 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22859 LC_TELEPHONE LC_TIME
22861 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22862 eval $as_var=C; export $as_var
22864 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22868 # Required to use basename.
22869 if expr a : '\(a\)' >/dev/null 2>&1 &&
22870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22877 as_basename=basename
22883 # Name of the executable.
22884 as_me=`$as_basename -- "$0" ||
22885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22886 X"$0" : 'X\(//\)$' \| \
22887 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22889 sed '/^.*\/\([^/][^/]*\)\/*$/{
22908 as_lineno_1=$LINENO
22909 as_lineno_2=$LINENO
22910 test "x$as_lineno_1" != "x$as_lineno_2" &&
22911 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22913 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22914 # uniformly replaced by the line number. The first 'sed' inserts a
22915 # line-number line after each line using $LINENO; the second 'sed'
22916 # does the real work. The second script uses 'N' to pair each
22917 # line-number line with the line containing $LINENO, and appends
22918 # trailing '-' during substitution so that $LINENO is not a special
22919 # case at line end.
22920 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22921 # scripts with optimization help from Paolo Bonzini. Blame Lee
22922 # E. McMahon (1931-1989) for sed's syntax. :-)
22934 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22937 ' >$as_me.lineno &&
22938 chmod +x "$as_me.lineno" ||
22939 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22940 { (exit 1); exit 1; }; }
22942 # Don't try to exec as it changes $[0], causing all sort of problems
22943 # (the dirname of $[0] is not the place where we might find the
22944 # original and so on. Autoconf is especially sensitive to this).
22945 . "./$as_me.lineno"
22946 # Exit status is that of the last command.
22951 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22957 ECHO_C= ECHO_N= ECHO_T=
22958 case `echo -n x` in
22960 case `echo 'x\c'` in
22961 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22968 if expr a : '\(a\)' >/dev/null 2>&1 &&
22969 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22975 rm -f conf$$ conf$$.exe conf$$.file
22976 if test -d conf$$.dir; then
22977 rm -f conf$$.dir/conf$$.file
22983 if ln -s conf$$.file conf$$ 2>/dev/null; then
22985 # ... but there are two gotchas:
22986 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22987 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22988 # In both cases, we have to default to `cp -p'.
22989 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22991 elif ln conf$$.file conf$$ 2>/dev/null; then
22996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22997 rmdir conf$$.dir 2>/dev/null
22999 if mkdir -p . 2>/dev/null; then
23002 test -d ./-p && rmdir ./-p
23006 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23007 # systems may use methods other than mode bits to determine executability.
23008 cat >conf$$.file <<_ASEOF
23012 chmod +x conf$$.file
23013 if test -x conf$$.file >/dev/null 2>&1; then
23014 as_executable_p="test -x"
23020 # Sed expression to map a string onto a valid CPP name.
23021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23023 # Sed expression to map a string onto a valid variable name.
23024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23029 # Save the log message, to keep $[0] and so on meaningful, and to
23030 # report actual input values of CONFIG_FILES etc. instead of their
23031 # values after options handling.
23033 This file was extended by LLVM $as_me 3.3svn, which was
23034 generated by GNU Autoconf 2.60. Invocation command line was
23036 CONFIG_FILES = $CONFIG_FILES
23037 CONFIG_HEADERS = $CONFIG_HEADERS
23038 CONFIG_LINKS = $CONFIG_LINKS
23039 CONFIG_COMMANDS = $CONFIG_COMMANDS
23042 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23047 cat >>$CONFIG_STATUS <<_ACEOF
23048 # Files that config.status was made for.
23049 config_files="$ac_config_files"
23050 config_headers="$ac_config_headers"
23051 config_commands="$ac_config_commands"
23055 cat >>$CONFIG_STATUS <<\_ACEOF
23057 \`$as_me' instantiates files from templates according to the
23058 current configuration.
23060 Usage: $0 [OPTIONS] [FILE]...
23062 -h, --help print this help, then exit
23063 -V, --version print version number, then exit
23064 -q, --quiet do not print progress messages
23065 -d, --debug don't remove temporary files
23066 --recheck update $as_me by reconfiguring in the same conditions
23067 --file=FILE[:TEMPLATE]
23068 instantiate the configuration file FILE
23069 --header=FILE[:TEMPLATE]
23070 instantiate the configuration header FILE
23072 Configuration files:
23075 Configuration headers:
23078 Configuration commands:
23081 Report bugs to <bug-autoconf@gnu.org>."
23084 cat >>$CONFIG_STATUS <<_ACEOF
23086 LLVM config.status 3.3svn
23087 configured by $0, generated by GNU Autoconf 2.60,
23088 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23090 Copyright (C) 2006 Free Software Foundation, Inc.
23091 This config.status script is free software; the Free Software Foundation
23092 gives unlimited permission to copy, distribute and modify it."
23099 cat >>$CONFIG_STATUS <<\_ACEOF
23100 # If no file are specified by the user, then we need to provide default
23101 # value. By we need to know if files were specified by the user.
23107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23119 # Handling of the options.
23120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23122 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23123 echo "$ac_cs_version"; exit ;;
23124 --debug | --debu | --deb | --de | --d | -d )
23126 --file | --fil | --fi | --f )
23128 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23129 ac_need_defaults=false;;
23130 --header | --heade | --head | --hea )
23132 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23133 ac_need_defaults=false;;
23135 # Conflict between --help and --header
23136 { echo "$as_me: error: ambiguous option: $1
23137 Try \`$0 --help' for more information." >&2
23138 { (exit 1); exit 1; }; };;
23139 --help | --hel | -h )
23140 echo "$ac_cs_usage"; exit ;;
23141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23142 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23145 # This is an error.
23146 -*) { echo "$as_me: error: unrecognized option: $1
23147 Try \`$0 --help' for more information." >&2
23148 { (exit 1); exit 1; }; } ;;
23150 *) ac_config_targets="$ac_config_targets $1"
23151 ac_need_defaults=false ;;
23157 ac_configure_extra_args=
23159 if $ac_cs_silent; then
23161 ac_configure_extra_args="$ac_configure_extra_args --silent"
23165 cat >>$CONFIG_STATUS <<_ACEOF
23166 if \$ac_cs_recheck; then
23167 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23168 CONFIG_SHELL=$SHELL
23169 export CONFIG_SHELL
23170 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23174 cat >>$CONFIG_STATUS <<\_ACEOF
23178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23179 ## Running $as_me. ##
23185 cat >>$CONFIG_STATUS <<_ACEOF
23189 llvm_src="${srcdir}"
23193 cat >>$CONFIG_STATUS <<\_ACEOF
23195 # Handling of arguments.
23196 for ac_config_target in $ac_config_targets
23198 case $ac_config_target in
23199 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23200 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23201 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23202 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23203 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23204 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23205 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23206 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23207 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23208 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23209 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23210 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23211 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23212 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23213 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23214 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23215 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23216 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23217 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23218 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23219 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23220 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23221 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23222 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23223 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23224 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23225 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23227 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23228 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23229 { (exit 1); exit 1; }; };;
23234 # If the user did not use the arguments to specify the items to instantiate,
23235 # then the envvar interface is used. Set only those that are not.
23236 # We use the long form for the default assignment because of an extremely
23237 # bizarre bug on SunOS 4.1.3.
23238 if $ac_need_defaults; then
23239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23244 # Have a temporary directory for convenience. Make it in the build tree
23245 # simply because there is no reason against having it here, and in addition,
23246 # creating and moving files from /tmp can sometimes cause problems.
23247 # Hook for its removal unless debugging.
23248 # Note that there is a small window in which the directory will not be cleaned:
23249 # after its creation but before its name has been assigned to `$tmp'.
23253 trap 'exit_status=$?
23254 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23256 trap '{ (exit 1); exit 1; }' 1 2 13 15
23258 # Create a (secure) tmp directory for tmp files.
23261 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23262 test -n "$tmp" && test -d "$tmp"
23265 tmp=./conf$$-$RANDOM
23266 (umask 077 && mkdir "$tmp")
23269 echo "$me: cannot create a temporary directory in ." >&2
23270 { (exit 1); exit 1; }
23274 # Set up the sed scripts for CONFIG_FILES section.
23277 # No need to generate the scripts if there are no CONFIG_FILES.
23278 # This happens for instance when ./config.status config.h
23279 if test -n "$CONFIG_FILES"; then
23286 for ac_last_try in false false false false false :; do
23287 cat >conf$$subs.sed <<_ACEOF
23288 SHELL!$SHELL$ac_delim
23289 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23290 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23291 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23292 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23293 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23294 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23295 exec_prefix!$exec_prefix$ac_delim
23296 prefix!$prefix$ac_delim
23297 program_transform_name!$program_transform_name$ac_delim
23298 bindir!$bindir$ac_delim
23299 sbindir!$sbindir$ac_delim
23300 libexecdir!$libexecdir$ac_delim
23301 datarootdir!$datarootdir$ac_delim
23302 datadir!$datadir$ac_delim
23303 sysconfdir!$sysconfdir$ac_delim
23304 sharedstatedir!$sharedstatedir$ac_delim
23305 localstatedir!$localstatedir$ac_delim
23306 includedir!$includedir$ac_delim
23307 oldincludedir!$oldincludedir$ac_delim
23308 docdir!$docdir$ac_delim
23309 infodir!$infodir$ac_delim
23310 htmldir!$htmldir$ac_delim
23311 dvidir!$dvidir$ac_delim
23312 pdfdir!$pdfdir$ac_delim
23313 psdir!$psdir$ac_delim
23314 libdir!$libdir$ac_delim
23315 localedir!$localedir$ac_delim
23316 mandir!$mandir$ac_delim
23317 DEFS!$DEFS$ac_delim
23318 ECHO_C!$ECHO_C$ac_delim
23319 ECHO_N!$ECHO_N$ac_delim
23320 ECHO_T!$ECHO_T$ac_delim
23321 LIBS!$LIBS$ac_delim
23322 build_alias!$build_alias$ac_delim
23323 host_alias!$host_alias$ac_delim
23324 target_alias!$target_alias$ac_delim
23325 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23327 CFLAGS!$CFLAGS$ac_delim
23328 LDFLAGS!$LDFLAGS$ac_delim
23329 CPPFLAGS!$CPPFLAGS$ac_delim
23330 ac_ct_CC!$ac_ct_CC$ac_delim
23331 EXEEXT!$EXEEXT$ac_delim
23332 OBJEXT!$OBJEXT$ac_delim
23334 CXXFLAGS!$CXXFLAGS$ac_delim
23335 ac_ct_CXX!$ac_ct_CXX$ac_delim
23337 subdirs!$subdirs$ac_delim
23338 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23339 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23340 build!$build$ac_delim
23341 build_cpu!$build_cpu$ac_delim
23342 build_vendor!$build_vendor$ac_delim
23343 build_os!$build_os$ac_delim
23344 host!$host$ac_delim
23345 host_cpu!$host_cpu$ac_delim
23346 host_vendor!$host_vendor$ac_delim
23347 host_os!$host_os$ac_delim
23348 target!$target$ac_delim
23349 target_cpu!$target_cpu$ac_delim
23350 target_vendor!$target_vendor$ac_delim
23351 target_os!$target_os$ac_delim
23353 HOST_OS!$HOST_OS$ac_delim
23354 TARGET_OS!$TARGET_OS$ac_delim
23355 LINKALL!$LINKALL$ac_delim
23356 NOLINKALL!$NOLINKALL$ac_delim
23357 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23358 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23359 ARCH!$ARCH$ac_delim
23360 HOST_ARCH!$HOST_ARCH$ac_delim
23361 ENDIAN!$ENDIAN$ac_delim
23362 GREP!$GREP$ac_delim
23363 EGREP!$EGREP$ac_delim
23364 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23365 BUILD_CC!$BUILD_CC$ac_delim
23366 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23367 BUILD_CXX!$BUILD_CXX$ac_delim
23368 CVSBUILD!$CVSBUILD$ac_delim
23369 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23370 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23371 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23372 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23373 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23374 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23375 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23376 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23377 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23378 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23379 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23380 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23381 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23382 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23384 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23387 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23389 elif $ac_last_try; then
23390 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23391 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23392 { (exit 1); exit 1; }; }
23394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23398 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23399 if test -n "$ac_eof"; then
23400 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23401 ac_eof=`expr $ac_eof + 1`
23404 cat >>$CONFIG_STATUS <<_ACEOF
23405 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23409 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23410 s/^/s,@/; s/!/@,|#_!!_#|/
23413 s/'"$ac_delim"'$/,g/; t
23415 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23416 ' >>$CONFIG_STATUS <conf$$subs.sed
23417 rm -f conf$$subs.sed
23418 cat >>$CONFIG_STATUS <<_ACEOF
23424 for ac_last_try in false false false false false :; do
23425 cat >conf$$subs.sed <<_ACEOF
23426 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23427 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23428 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23429 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23430 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23431 ENABLE_PIC!$ENABLE_PIC$ac_delim
23432 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23433 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23434 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23435 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23436 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23437 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23438 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23439 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23440 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23441 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23442 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23443 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23444 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23445 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23446 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23448 ifGNUmake!$ifGNUmake$ac_delim
23449 LN_S!$LN_S$ac_delim
23452 DATE!$DATE$ac_delim
23453 FIND!$FIND$ac_delim
23454 MKDIR!$MKDIR$ac_delim
23456 RANLIB!$RANLIB$ac_delim
23461 BINPWD!$BINPWD$ac_delim
23462 GRAPHVIZ!$GRAPHVIZ$ac_delim
23465 NEATO!$NEATO$ac_delim
23466 TWOPI!$TWOPI$ac_delim
23467 CIRCO!$CIRCO$ac_delim
23469 DOTTY!$DOTTY$ac_delim
23470 XDOT_PY!$XDOT_PY$ac_delim
23471 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23472 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23473 INSTALL_DATA!$INSTALL_DATA$ac_delim
23474 BZIP2!$BZIP2$ac_delim
23476 DOXYGEN!$DOXYGEN$ac_delim
23477 GROFF!$GROFF$ac_delim
23478 GZIPBIN!$GZIPBIN$ac_delim
23479 PDFROFF!$PDFROFF$ac_delim
23481 OCAMLC!$OCAMLC$ac_delim
23482 OCAMLOPT!$OCAMLOPT$ac_delim
23483 OCAMLDEP!$OCAMLDEP$ac_delim
23484 OCAMLDOC!$OCAMLDOC$ac_delim
23486 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23487 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23488 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23489 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23490 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23491 LIBADD_DL!$LIBADD_DL$ac_delim
23492 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23493 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23494 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23495 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23496 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23497 PYTHON!$PYTHON$ac_delim
23498 USE_UDIS86!$USE_UDIS86$ac_delim
23499 USE_OPROFILE!$USE_OPROFILE$ac_delim
23500 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23501 XML2CONFIG!$XML2CONFIG$ac_delim
23502 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23503 LIBXML2_INC!$LIBXML2_INC$ac_delim
23504 CXXCPP!$CXXCPP$ac_delim
23505 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23506 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23507 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23508 MMAP_FILE!$MMAP_FILE$ac_delim
23509 SHLIBEXT!$SHLIBEXT$ac_delim
23510 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23511 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23512 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23513 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23514 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23515 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23516 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23517 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23518 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23519 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23520 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23521 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23522 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23525 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23527 elif $ac_last_try; then
23528 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23529 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23530 { (exit 1); exit 1; }; }
23532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23536 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23537 if test -n "$ac_eof"; then
23538 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23539 ac_eof=`expr $ac_eof + 1`
23542 cat >>$CONFIG_STATUS <<_ACEOF
23543 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23547 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23548 s/^/s,@/; s/!/@,|#_!!_#|/
23551 s/'"$ac_delim"'$/,g/; t
23553 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23554 ' >>$CONFIG_STATUS <conf$$subs.sed
23555 rm -f conf$$subs.sed
23556 cat >>$CONFIG_STATUS <<_ACEOF
23562 for ac_last_try in false false false false false :; do
23563 cat >conf$$subs.sed <<_ACEOF
23564 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23565 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23566 RPATH!$RPATH$ac_delim
23567 RDYNAMIC!$RDYNAMIC$ac_delim
23568 program_prefix!$program_prefix$ac_delim
23569 LIBOBJS!$LIBOBJS$ac_delim
23570 LTLIBOBJS!$LTLIBOBJS$ac_delim
23573 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23575 elif $ac_last_try; then
23576 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23577 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23578 { (exit 1); exit 1; }; }
23580 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23584 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23585 if test -n "$ac_eof"; then
23586 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23587 ac_eof=`expr $ac_eof + 1`
23590 cat >>$CONFIG_STATUS <<_ACEOF
23591 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23595 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23596 s/^/s,@/; s/!/@,|#_!!_#|/
23599 s/'"$ac_delim"'$/,g/; t
23601 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23602 ' >>$CONFIG_STATUS <conf$$subs.sed
23603 rm -f conf$$subs.sed
23604 cat >>$CONFIG_STATUS <<_ACEOF
23611 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23612 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23613 # trailing colons and then remove the whole line if VPATH becomes empty
23614 # (actually we leave an empty line to preserve line numbers).
23615 if test "x$srcdir" = x.; then
23616 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23617 s/:*\$(srcdir):*/:/
23618 s/:*\${srcdir}:*/:/
23620 s/^\([^=]*=[ ]*\):*/\1/
23626 cat >>$CONFIG_STATUS <<\_ACEOF
23627 fi # test -n "$CONFIG_FILES"
23630 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23633 :[FHLC]) ac_mode=$ac_tag; continue;;
23635 case $ac_mode$ac_tag in
23637 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23638 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23639 { (exit 1); exit 1; }; };;
23640 :[FH]-) ac_tag=-:-;;
23641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23658 -) ac_f="$tmp/stdin";;
23659 *) # Look for the file first in the build tree, then in the source tree
23660 # (if the path is not absolute). The absolute path cannot be DOS-style,
23661 # because $ac_f cannot contain `:'.
23665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23667 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23668 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23669 { (exit 1); exit 1; }; };;
23671 ac_file_inputs="$ac_file_inputs $ac_f"
23674 # Let's still pretend it is `configure' which instantiates (i.e., don't
23675 # use $as_me), people would be surprised to read:
23676 # /* config.h. Generated by config.status. */
23677 configure_input="Generated from "`IFS=:
23678 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23679 if test x"$ac_file" != x-; then
23680 configure_input="$ac_file. $configure_input"
23681 { echo "$as_me:$LINENO: creating $ac_file" >&5
23682 echo "$as_me: creating $ac_file" >&6;}
23686 *:-:* | *:-) cat >"$tmp/stdin";;
23691 ac_dir=`$as_dirname -- "$ac_file" ||
23692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23693 X"$ac_file" : 'X\(//\)[^/]' \| \
23694 X"$ac_file" : 'X\(//\)$' \| \
23695 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23701 /^X\(\/\/\)[^/].*/{
23716 -*) as_dir=./$as_dir;;
23718 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23722 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23723 *) as_qdir=$as_dir;;
23725 as_dirs="'$as_qdir' $as_dirs"
23726 as_dir=`$as_dirname -- "$as_dir" ||
23727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23728 X"$as_dir" : 'X\(//\)[^/]' \| \
23729 X"$as_dir" : 'X\(//\)$' \| \
23730 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23736 /^X\(\/\/\)[^/].*/{
23749 test -d "$as_dir" && break
23751 test -z "$as_dirs" || eval "mkdir $as_dirs"
23752 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23753 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23754 { (exit 1); exit 1; }; }; }
23758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23760 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23761 # A ".." for each directory in $ac_dir_suffix.
23762 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23763 case $ac_top_builddir_sub in
23764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23768 ac_abs_top_builddir=$ac_pwd
23769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23770 # for backward compatibility:
23771 ac_top_builddir=$ac_top_build_prefix
23774 .) # We are building in place.
23776 ac_top_srcdir=$ac_top_builddir_sub
23777 ac_abs_top_srcdir=$ac_pwd ;;
23778 [\\/]* | ?:[\\/]* ) # Absolute name.
23779 ac_srcdir=$srcdir$ac_dir_suffix;
23780 ac_top_srcdir=$srcdir
23781 ac_abs_top_srcdir=$srcdir ;;
23782 *) # Relative name.
23783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23784 ac_top_srcdir=$ac_top_build_prefix$srcdir
23785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23797 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23798 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23802 cat >>$CONFIG_STATUS <<\_ACEOF
23803 # If the template does not know about datarootdir, expand it.
23804 # FIXME: This hack should be removed a few years after 2.60.
23805 ac_datarootdir_hack=; ac_datarootdir_seen=
23807 case `sed -n '/datarootdir/ {
23816 ' $ac_file_inputs` in
23817 *datarootdir*) ac_datarootdir_seen=yes;;
23818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23819 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23820 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23822 cat >>$CONFIG_STATUS <<_ACEOF
23823 ac_datarootdir_hack='
23824 s&@datadir@&$datadir&g
23825 s&@docdir@&$docdir&g
23826 s&@infodir@&$infodir&g
23827 s&@localedir@&$localedir&g
23828 s&@mandir@&$mandir&g
23829 s&\\\${datarootdir}&$datarootdir&g' ;;
23833 # Neutralize VPATH when `$srcdir' = `.'.
23834 # Shell code in configure.ac might set extrasub.
23835 # FIXME: do we really want to maintain this feature?
23836 cat >>$CONFIG_STATUS <<_ACEOF
23840 cat >>$CONFIG_STATUS <<\_ACEOF
23842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23843 s&@configure_input@&$configure_input&;t t
23844 s&@top_builddir@&$ac_top_builddir_sub&;t t
23845 s&@srcdir@&$ac_srcdir&;t t
23846 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23847 s&@top_srcdir@&$ac_top_srcdir&;t t
23848 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23849 s&@builddir@&$ac_builddir&;t t
23850 s&@abs_builddir@&$ac_abs_builddir&;t t
23851 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23852 s&@INSTALL@&$ac_INSTALL&;t t
23853 $ac_datarootdir_hack
23854 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23857 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23859 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23860 which seems to be undefined. Please make sure it is defined." >&5
23861 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862 which seems to be undefined. Please make sure it is defined." >&2;}
23866 -) cat "$tmp/out"; rm -f "$tmp/out";;
23867 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23876 # Transform confdefs.h into a sed script `conftest.defines', that
23877 # substitutes the proper values into config.h.in to produce config.h.
23878 rm -f conftest.defines conftest.tail
23879 # First, append a space to every undef/define line, to ease matching.
23880 echo 's/$/ /' >conftest.defines
23881 # Then, protect against being on the right side of a sed subst, or in
23882 # an unquoted here document, in config.status. If some macros were
23883 # called several times there might be several #defines for the same
23884 # symbol, which is useless. But do not sort them, since the last
23885 # AC_DEFINE must be honored.
23886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23887 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23888 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23889 # PARAMS is the parameter list in the macro definition--in most cases, it's
23890 # just an empty string.
23891 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23892 ac_dB='\\)[ (].*,\\1define\\2'
23900 s/^[ ]*#[ ]*define[ ][ ]*//
23905 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23906 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23907 ' >>conftest.defines
23909 # Remove the space that was appended to ease matching.
23910 # Then replace #undef with comments. This is necessary, for
23911 # example, in the case of _POSIX_SOURCE, which is predefined and required
23912 # on some systems where configure will not decide to define it.
23913 # (The regexp can be short, since the line contains either #define or #undef.)
23915 s,^[ #]*u.*,/* & */,' >>conftest.defines
23917 # Break up conftest.defines:
23918 ac_max_sed_lines=50
23920 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23921 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23922 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23924 ac_in='$ac_file_inputs'
23925 ac_out='"$tmp/out1"'
23926 ac_nxt='"$tmp/out2"'
23930 # Write a here document:
23931 cat >>$CONFIG_STATUS <<_ACEOF
23932 # First, check the format of the line:
23933 cat >"\$tmp/defines.sed" <<\\CEOF
23934 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23935 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23939 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23941 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23942 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23943 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23944 grep . conftest.tail >/dev/null || break
23945 rm -f conftest.defines
23946 mv conftest.tail conftest.defines
23948 rm -f conftest.defines conftest.tail
23950 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23951 cat >>$CONFIG_STATUS <<\_ACEOF
23952 if test x"$ac_file" != x-; then
23953 echo "/* $configure_input */" >"$tmp/config.h"
23954 cat "$ac_result" >>"$tmp/config.h"
23955 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23956 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23957 echo "$as_me: $ac_file is unchanged" >&6;}
23960 mv "$tmp/config.h" $ac_file
23963 echo "/* $configure_input */"
23969 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23970 echo "$as_me: executing $ac_file commands" >&6;}
23975 case $ac_file$ac_mode in
23976 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23977 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23978 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23979 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23980 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23981 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23982 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23984 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23986 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23988 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23990 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23992 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23994 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23996 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23998 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24000 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24007 { (exit 0); exit 0; }
24009 chmod +x $CONFIG_STATUS
24010 ac_clean_files=$ac_clean_files_save
24013 # configure is writing to config.log, and then calls config.status.
24014 # config.status does its own redirection, appending to config.log.
24015 # Unfortunately, on DOS this fails, as config.log is still kept open
24016 # by configure, so config.status won't be able to write to it; its
24017 # output is simply discarded. So we exec the FD to /dev/null,
24018 # effectively closing config.log, so it can be properly (re)opened and
24019 # appended to by config.status. When coming back to configure, we
24020 # need to make the FD available again.
24021 if test "$no_create" != yes; then
24023 ac_config_status_args=
24024 test "$silent" = yes &&
24025 ac_config_status_args="$ac_config_status_args --quiet"
24027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24030 # would make configure fail if this is the last instruction.
24031 $ac_cs_success || { (exit 1); exit 1; }
24035 # CONFIG_SUBDIRS section.
24037 if test "$no_recursion" != yes; then
24039 # Remove --cache-file and --srcdir arguments so they do not pile up.
24040 ac_sub_configure_args=
24042 eval "set x $ac_configure_args"
24046 if test -n "$ac_prev"; then
24051 -cache-file | --cache-file | --cache-fil | --cache-fi \
24052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24053 ac_prev=cache_file ;;
24054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24058 --config-cache | -C)
24060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24070 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24072 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24076 # Always prepend --prefix to ensure using the same prefix
24077 # in subdir configurations.
24078 ac_arg="--prefix=$prefix"
24080 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24082 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24085 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24087 # Do not complain, so a configure script can configure whichever
24088 # parts of a large source tree are present.
24089 test -d "$srcdir/$ac_dir" || continue
24091 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24092 echo "$as_me:$LINENO: $ac_msg" >&5
24096 -*) as_dir=./$as_dir;;
24098 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24102 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24103 *) as_qdir=$as_dir;;
24105 as_dirs="'$as_qdir' $as_dirs"
24106 as_dir=`$as_dirname -- "$as_dir" ||
24107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24108 X"$as_dir" : 'X\(//\)[^/]' \| \
24109 X"$as_dir" : 'X\(//\)$' \| \
24110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24116 /^X\(\/\/\)[^/].*/{
24129 test -d "$as_dir" && break
24131 test -z "$as_dirs" || eval "mkdir $as_dirs"
24132 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24133 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24134 { (exit 1); exit 1; }; }; }
24138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24140 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24141 # A ".." for each directory in $ac_dir_suffix.
24142 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24143 case $ac_top_builddir_sub in
24144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24148 ac_abs_top_builddir=$ac_pwd
24149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24150 # for backward compatibility:
24151 ac_top_builddir=$ac_top_build_prefix
24154 .) # We are building in place.
24156 ac_top_srcdir=$ac_top_builddir_sub
24157 ac_abs_top_srcdir=$ac_pwd ;;
24158 [\\/]* | ?:[\\/]* ) # Absolute name.
24159 ac_srcdir=$srcdir$ac_dir_suffix;
24160 ac_top_srcdir=$srcdir
24161 ac_abs_top_srcdir=$srcdir ;;
24162 *) # Relative name.
24163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24164 ac_top_srcdir=$ac_top_build_prefix$srcdir
24165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24172 # Check for guested configure; otherwise get Cygnus style configure.
24173 if test -f "$ac_srcdir/configure.gnu"; then
24174 ac_sub_configure=$ac_srcdir/configure.gnu
24175 elif test -f "$ac_srcdir/configure"; then
24176 ac_sub_configure=$ac_srcdir/configure
24177 elif test -f "$ac_srcdir/configure.in"; then
24178 # This should be Cygnus configure.
24179 ac_sub_configure=$ac_aux_dir/configure
24181 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24186 # The recursion is here.
24187 if test -n "$ac_sub_configure"; then
24188 # Make the cache file name correct relative to the subdirectory.
24189 case $cache_file in
24190 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24191 *) # Relative name.
24192 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24195 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24196 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24197 # The eval makes quoting arguments work.
24198 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24199 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24200 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24201 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24202 { (exit 1); exit 1; }; }