2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
692 ENABLE_EXPENSIVE_CHECKS
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
756 HAVE_LINK_VERSION_SCRIPT
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
768 INTEL_JITEVENTS_INCDIR
769 INTEL_JITEVENTS_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
797 ac_precious_vars='build_alias
808 ac_subdirs_all='projects/llvm-gcc
812 projects/llvm-poolalloc
815 projects/llvm-stacker
823 # Initialize some variables set by options.
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 -enable-* | --enable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
964 -help | --help | --hel | --he | -h)
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
1158 # Obsolete; use --with-x.
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-polly Use polly if available (default is YES)
1397 --enable-libcpp Use libc++ if available (default is NO)
1398 --enable-cxx11 Use c++11 if available (default is NO)
1399 --enable-optimized Compile with optimizations enabled (default is NO)
1400 --enable-profiling Compile with profiling enabled (default is NO)
1401 --enable-assertions Compile with assertion checks enabled (default is
1403 --enable-werror Compile with -Werror enabled (default is NO)
1404 --enable-expensive-checks
1405 Compile with expensive debug checks enabled (default
1407 --enable-debug-runtime Build runtime libs with debug symbols (default is
1409 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1410 optimization is on and YES if it's off)
1411 --enable-jit Enable Just In Time Compiling (default is YES)
1412 --enable-docs Build documents (default is YES)
1413 --enable-doxygen Build doxygen documentation (default is NO)
1414 --enable-threads Use threads if available (default is YES)
1415 --enable-pthreads Use pthreads if available (default is YES)
1416 --enable-pic Build LLVM with Position Independent Code (default
1418 --enable-shared Build a shared library and link tools against it
1420 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1421 Win32 DLL (default is NO)
1422 --enable-timestamps Enable embedding timestamp information in build
1424 --enable-targets Build specific host targets: all or
1425 target1,target2,... Valid targets are: host, x86,
1426 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1427 xcore, msp430, nvptx, and cpp (default=all)
1428 --enable-experimental-targets
1429 Build experimental host targets: disable or
1430 target1,target2,... (default=disable)
1431 --enable-bindings Build specific language bindings:
1432 all,auto,none,{binding-name} (default=auto)
1433 --enable-libffi Check for the presence of libffi (default is NO)
1434 --enable-ltdl-install install libltdl
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-optimize-option Select the compiler options to use for optimized
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-extra-ld-options Specify additional options to link LLVM with
1443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1445 --with-clang-srcdir Directory to the out-of-tree Clang source
1446 --with-clang-resource-dir
1447 Relative directory from the Clang binary for
1449 --with-c-include-dirs Colon separated list of directories clang will
1451 --with-gcc-toolchain Directory where gcc is installed.
1452 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
1455 --with-bug-report-url Specify the URL where bug reports should be
1456 submitted (default=http://llvm.org/bugs/)
1457 --with-internal-prefix Installation directory for internal files
1458 --with-udis86=<path> Use udis86 external x86 disassembler library
1459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 --with-intel-jitevents=<vtune-amplifier-dir>
1462 Specify location of run-time support library for
1464 (default=/opt/intel/vtune_amplifier_xe_2011)
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1480 Report bugs to <http://llvm.org/bugs/>.
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" || continue
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1508 .) # We are building in place.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1541 LLVM configure 3.2svn
1542 generated by GNU Autoconf 2.60
1544 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1545 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1549 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1553 cat >config.log <<_ACEOF
1554 This file contains any messages produced by compilers while
1555 running configure, to aid debugging if configure makes a mistake.
1557 It was created by LLVM $as_me 3.2svn, which was
1558 generated by GNU Autoconf 2.60. Invocation command line was
1570 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1579 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1580 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1581 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1582 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1583 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1584 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1585 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 test -z "$as_dir" && as_dir=.
1594 echo "PATH: $as_dir"
1610 # Keep a trace of the command line.
1611 # Strip out --no-create and --no-recursion so they do not pile up.
1612 # Strip out --silent because we don't want to record it for future runs.
1613 # Also quote any args containing shell meta-characters.
1614 # Make two passes to allow for proper duplicate-argument suppression.
1618 ac_must_keep_next=false
1624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626 | -silent | --silent | --silen | --sile | --sil)
1629 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1632 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1634 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1635 if test $ac_must_keep_next = true; then
1636 ac_must_keep_next=false # Got value, back to normal.
1639 *=* | --config-cache | -C | -disable-* | --disable-* \
1640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642 | -with-* | --with-* | -without-* | --without-* | --x)
1643 case "$ac_configure_args0 " in
1644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1647 -* ) ac_must_keep_next=true ;;
1650 ac_configure_args="$ac_configure_args '$ac_arg'"
1655 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1658 # When interrupted or exit'd, cleanup temporary files, and complete
1659 # config.log. We remove comments because anyway the quotes in there
1660 # would cause problems or look ugly.
1661 # WARNING: Use '\'' to represent an apostrophe within the trap.
1662 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1663 trap 'exit_status=$?
1664 # Save into config.log some information that might help in debugging.
1669 ## ---------------- ##
1670 ## Cache variables. ##
1671 ## ---------------- ##
1674 # The following way of writing the cache mishandles newlines in values,
1676 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677 eval ac_val=\$$ac_var
1681 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1682 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1685 _ | IFS | as_nl) ;; #(
1686 *) $as_unset $ac_var ;;
1691 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692 *${as_nl}ac_space=\ *)
1694 "s/'\''/'\''\\\\'\'''\''/g;
1695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1706 ## ----------------- ##
1707 ## Output variables. ##
1708 ## ----------------- ##
1711 for ac_var in $ac_subst_vars
1713 eval ac_val=\$$ac_var
1715 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 echo "$ac_var='\''$ac_val'\''"
1721 if test -n "$ac_subst_files"; then
1723 ## ------------------- ##
1724 ## File substitutions. ##
1725 ## ------------------- ##
1728 for ac_var in $ac_subst_files
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 echo "$ac_var='\''$ac_val'\''"
1739 if test -s confdefs.h; then
1749 test "$ac_signal" != 0 &&
1750 echo "$as_me: caught signal $ac_signal"
1751 echo "$as_me: exit $exit_status"
1753 rm -f core *.core core.conftest.* &&
1754 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1757 for ac_signal in 1 2 13 15; do
1758 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1763 rm -f -r conftest* confdefs.h
1765 # Predefined preprocessor variables.
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_NAME "$PACKAGE_NAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1792 # Let the site file select an alternate cache file if it wants to.
1793 # Prefer explicitly selected file to automatically selected ones.
1794 if test -n "$CONFIG_SITE"; then
1795 set x "$CONFIG_SITE"
1796 elif test "x$prefix" != xNONE; then
1797 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 set x "$ac_default_prefix/share/config.site" \
1800 "$ac_default_prefix/etc/config.site"
1805 if test -r "$ac_site_file"; then
1806 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1807 echo "$as_me: loading site script $ac_site_file" >&6;}
1808 sed 's/^/| /' "$ac_site_file" >&5
1813 if test -r "$cache_file"; then
1814 # Some versions of bash will fail to source /dev/null (special
1815 # files actually), so we avoid doing that.
1816 if test -f "$cache_file"; then
1817 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1818 echo "$as_me: loading cache $cache_file" >&6;}
1820 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1821 *) . "./$cache_file";;
1825 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1826 echo "$as_me: creating cache $cache_file" >&6;}
1830 # Check that the precious variables saved in the cache have kept the same
1832 ac_cache_corrupted=false
1833 for ac_var in $ac_precious_vars; do
1834 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1835 eval ac_new_set=\$ac_env_${ac_var}_set
1836 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1837 eval ac_new_val=\$ac_env_${ac_var}_value
1838 case $ac_old_set,$ac_new_set in
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1842 ac_cache_corrupted=: ;;
1844 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1846 ac_cache_corrupted=: ;;
1849 if test "x$ac_old_val" != "x$ac_new_val"; then
1850 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1853 echo "$as_me: former value: $ac_old_val" >&2;}
1854 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1855 echo "$as_me: current value: $ac_new_val" >&2;}
1856 ac_cache_corrupted=:
1859 # Pass precious variables to config.status.
1860 if test "$ac_new_set" = set; then
1862 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 *) ac_arg=$ac_var=$ac_new_val ;;
1865 case " $ac_configure_args " in
1866 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1867 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1871 if $ac_cache_corrupted; then
1872 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876 { (exit 1); exit 1; }; }
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 cat >>confdefs.h <<\_ACEOF
1912 #define LLVM_VERSION_MAJOR 3
1916 cat >>confdefs.h <<\_ACEOF
1917 #define LLVM_VERSION_MINOR 2
1921 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1930 for ac_dir in autoconf "$srcdir"/autoconf; do
1931 if test -f "$ac_dir/install-sh"; then
1933 ac_install_sh="$ac_aux_dir/install-sh -c"
1935 elif test -f "$ac_dir/install.sh"; then
1937 ac_install_sh="$ac_aux_dir/install.sh -c"
1939 elif test -f "$ac_dir/shtool"; then
1941 ac_install_sh="$ac_aux_dir/shtool install -c"
1945 if test -z "$ac_aux_dir"; then
1946 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1947 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1948 { (exit 1); exit 1; }; }
1951 # These three variables are undocumented and unsupported,
1952 # and are intended to be withdrawn in a future Autoconf release.
1953 # They can cause serious problems if a builder's source tree is in a directory
1954 # whose full name contains unusual characters.
1955 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1961 if test ${srcdir} != "." ; then
1962 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1963 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1964 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1965 { (exit 1); exit 1; }; }
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975 for ac_prog in clang llvm-gcc gcc
1977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test -n "$CC"; then
2006 { echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6; }
2009 { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2014 test -n "$CC" && break
2017 if test -z "$CC"; then
2019 for ac_prog in clang llvm-gcc gcc
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 if test -n "$ac_ct_CC"; then
2029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2038 ac_cv_prog_ac_ct_CC="$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049 if test -n "$ac_ct_CC"; then
2050 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051 echo "${ECHO_T}$ac_ct_CC" >&6; }
2053 { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2058 test -n "$ac_ct_CC" && break
2061 if test "x$ac_ct_CC" = x; then
2064 case $cross_compiling:$ac_tool_warned in
2066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet. If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&5
2069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet. If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2072 ac_tool_warned=yes ;;
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
2085 # Provide some information about the compiler.
2086 echo "$as_me:$LINENO: checking for C compiler version" >&5
2087 ac_compiler=`set X $ac_compile; echo $2`
2088 { (ac_try="$ac_compiler --version >&5"
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler --version >&5") 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098 { (ac_try="$ac_compiler -v >&5"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -v >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (ac_try="$ac_compiler -V >&5"
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -V >&5") 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2119 cat >conftest.$ac_ext <<_ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h. */
2134 ac_clean_files_save=$ac_clean_files
2135 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2136 # Try to create an executable without -o first, disregard a.out.
2137 # It will help us diagnose broken compilers, and finding out an intuition
2139 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 # List of possible output files, starting from the most likely.
2144 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145 # only as a last resort. b.out is created by i960 compilers.
2146 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148 # The IRIX 6 linker writes into existing files which may not be
2149 # executable, retaining their permissions. Remove them first so a
2150 # subsequent execution test works.
2152 for ac_file in $ac_files
2155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2161 if { (ac_try="$ac_link_default"
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167 (eval "$ac_link_default") 2>&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; then
2171 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2174 # so that the user can short-circuit this test for compilers unknown to
2176 for ac_file in $ac_files
2178 test -f "$ac_file" || continue
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2183 # We found the default executable, but exeext='' is most
2187 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 # We set ac_cv_exeext here because the later test for it is not
2192 # safe: cross compilers may not add the suffix if given an `-o'
2193 # argument, so we may need to know it at that point already.
2194 # Even if this section looks crufty: it has the advantage of
2201 test "$ac_cv_exeext" = no && ac_cv_exeext=
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211 { (exit 77); exit 77; }; }
2214 ac_exeext=$ac_cv_exeext
2215 { echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6; }
2218 # Check that the compiler produces executables we can run. If not, either
2219 # the compiler is broken, or we cross compile.
2220 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225 if { ac_try='./$ac_file'
2226 { (case "(($ac_try" in
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231 (eval "$ac_try") 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 if test "$cross_compiling" = maybe; then
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2250 { echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6; }
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check that the compiler produces executables we can run. If not, either
2256 # the compiler is broken, or we cross compile.
2257 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6; }
2262 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264 if { (ac_try="$ac_link"
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270 (eval "$ac_link") 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2276 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 for ac_file in conftest.exe conftest conftest.*; do
2279 test -f "$ac_file" || continue
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest$ac_cv_exeext
2296 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2302 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304 if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.$ac_ext <<_ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2322 rm -f conftest.o conftest.obj
2323 if { (ac_try="$ac_compile"
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_compile") 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 for ac_file in conftest.o conftest.obj conftest.*; do
2334 test -f "$ac_file" || continue;
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6; }
2356 OBJEXT=$ac_cv_objext
2358 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.$ac_ext <<_ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2381 rm -f conftest.$ac_objext
2382 if { (ac_try="$ac_compile"
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388 (eval "$ac_compile") 2>conftest.er1
2390 grep -v '^ *+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2427 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429 GCC=`test $ac_compiler_gnu = yes && echo yes`
2430 ac_test_CFLAGS=${CFLAGS+set}
2431 ac_save_CFLAGS=$CFLAGS
2432 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 ac_save_c_werror_flag=$ac_c_werror_flag
2438 ac_c_werror_flag=yes
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compile") 2>conftest.er1
2465 grep -v '^ *+' conftest.er1 >conftest.err
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2496 cat >conftest.$ac_ext <<_ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2511 rm -f conftest.$ac_objext
2512 if { (ac_try="$ac_compile"
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518 (eval "$ac_compile") 2>conftest.er1
2520 grep -v '^ *+' conftest.er1 >conftest.err
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_try") 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2550 ac_c_werror_flag=$ac_save_c_werror_flag
2552 cat >conftest.$ac_ext <<_ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2567 rm -f conftest.$ac_objext
2568 if { (ac_try="$ac_compile"
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_compile") 2>conftest.er1
2576 grep -v '^ *+' conftest.er1 >conftest.err
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 ac_c_werror_flag=$ac_save_c_werror_flag
2618 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2620 if test "$ac_test_CFLAGS" = set; then
2621 CFLAGS=$ac_save_CFLAGS
2622 elif test $ac_cv_prog_cc_g = yes; then
2623 if test "$GCC" = yes; then
2629 if test "$GCC" = yes; then
2635 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_cc_c89+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 ac_cv_prog_cc_c89=no
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2653 struct buf { int x; };
2654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655 static char *e (p, i)
2661 static char *f (char * (*g) (char **, int), char **p, ...)
2666 s = g (p, va_arg (v,int));
2671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2672 function prototypes and stuff, but not '\xHH' hex character constants.
2673 These don't provoke an error unfortunately, instead are silently treated
2674 as 'x'. The following induces an error, until -std is added to get
2675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2676 array size at least. It's necessary to write '\x00'==0 to get something
2677 that's true only with -std. */
2678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681 inside strings and character constants. */
2683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 CC="$ac_save_CC $ac_arg"
2703 rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 ac_cv_prog_cc_c89=$ac_arg
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f core conftest.err conftest.$ac_objext
2746 test "x$ac_cv_prog_cc_c89" != "xno" && break
2748 rm -f conftest.$ac_ext
2753 case "x$ac_cv_prog_cc_c89" in
2755 { echo "$as_me:$LINENO: result: none needed" >&5
2756 echo "${ECHO_T}none needed" >&6; } ;;
2758 { echo "$as_me:$LINENO: result: unsupported" >&5
2759 echo "${ECHO_T}unsupported" >&6; } ;;
2761 CC="$CC $ac_cv_prog_cc_c89"
2762 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778 if test -z "$CXX"; then
2779 if test -n "$CCC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in clang++ llvm-g++ g++
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CXX+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$CXX"; then
2793 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 if test -n "$CXX"; then
2814 { echo "$as_me:$LINENO: result: $CXX" >&5
2815 echo "${ECHO_T}$CXX" >&6; }
2817 { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2822 test -n "$CXX" && break
2825 if test -z "$CXX"; then
2827 for ac_prog in clang++ llvm-g++ g++
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 if test -n "$ac_ct_CXX"; then
2837 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_CXX="$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857 if test -n "$ac_ct_CXX"; then
2858 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861 { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2866 test -n "$ac_ct_CXX" && break
2869 if test "x$ac_ct_CXX" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet. If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&5
2877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet. If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880 ac_tool_warned=yes ;;
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (ac_try="$ac_compiler --version >&5"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler --version >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901 { (ac_try="$ac_compiler -v >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -v >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (ac_try="$ac_compiler -V >&5"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -V >&5") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993 GXX=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CXXFLAGS=${CXXFLAGS+set}
2995 ac_save_CXXFLAGS=$CXXFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cxx_g+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002 ac_cxx_werror_flag=yes
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 ac_cv_prog_cxx_g=yes
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_cv_prog_cxx_g=yes
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184 if test "$ac_test_CXXFLAGS" = set; then
3185 CXXFLAGS=$ac_save_CXXFLAGS
3186 elif test $ac_cv_prog_cxx_g = yes; then
3187 if test "$GXX" = yes; then
3193 if test "$GXX" = yes; then
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3212 # On Suns, sometimes $CPP names a directory.
3213 if test -n "$CPP" && test -d "$CPP"; then
3216 if test -z "$CPP"; then
3217 if test "${ac_cv_prog_CPP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 # Double quotes because CPP needs to be expanded
3221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3224 for ac_c_preproc_warn_flag in '' yes
3226 # Use a header file that comes with gcc, so configuring glibc
3227 # with a fresh cross-compiler works.
3228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229 # <limits.h> exists even on freestanding compilers.
3230 # On the NeXT, cc -E runs the code through the compiler's parser,
3231 # not just through cpp. "Syntax error" is here to catch this case.
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3239 # include <limits.h>
3241 # include <assert.h>
3245 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253 grep -v '^ *+' conftest.er1 >conftest.err
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } >/dev/null; then
3258 if test -s conftest.err; then
3259 ac_cpp_err=$ac_c_preproc_warn_flag
3260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3267 if test -z "$ac_cpp_err"; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3273 # Broken: fails on valid input.
3277 rm -f conftest.err conftest.$ac_ext
3279 # OK, works on sane cases. Now check whether nonexistent headers
3280 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <ac_nonexistent.h>
3289 if { (ac_try="$ac_cpp conftest.$ac_ext"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null; then
3302 if test -s conftest.err; then
3303 ac_cpp_err=$ac_c_preproc_warn_flag
3304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3311 if test -z "$ac_cpp_err"; then
3312 # Broken: success on invalid input.
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 # Passes both tests.
3323 rm -f conftest.err conftest.$ac_ext
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3340 { echo "$as_me:$LINENO: result: $CPP" >&5
3341 echo "${ECHO_T}$CPP" >&6; }
3343 for ac_c_preproc_warn_flag in '' yes
3345 # Use a header file that comes with gcc, so configuring glibc
3346 # with a fresh cross-compiler works.
3347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348 # <limits.h> exists even on freestanding compilers.
3349 # On the NeXT, cc -E runs the code through the compiler's parser,
3350 # not just through cpp. "Syntax error" is here to catch this case.
3351 cat >conftest.$ac_ext <<_ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3358 # include <limits.h>
3360 # include <assert.h>
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386 if test -z "$ac_cpp_err"; then
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 # Broken: fails on valid input.
3396 rm -f conftest.err conftest.$ac_ext
3398 # OK, works on sane cases. Now check whether nonexistent headers
3399 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <ac_nonexistent.h>
3408 if { (ac_try="$ac_cpp conftest.$ac_ext"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null; then
3421 if test -s conftest.err; then
3422 ac_cpp_err=$ac_c_preproc_warn_flag
3423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3430 if test -z "$ac_cpp_err"; then
3431 # Broken: success on invalid input.
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 # Passes both tests.
3442 rm -f conftest.err conftest.$ac_ext
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3450 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466 if test -d ${srcdir}/projects/llvm-gcc ; then
3467 subdirs="$subdirs projects/llvm-gcc"
3471 if test -d ${srcdir}/projects/test-suite ; then
3472 subdirs="$subdirs projects/test-suite"
3476 if test -d ${srcdir}/projects/llvm-test ; then
3477 subdirs="$subdirs projects/llvm-test"
3481 if test -d ${srcdir}/projects/poolalloc ; then
3482 subdirs="$subdirs projects/poolalloc"
3486 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3487 subdirs="$subdirs projects/llvm-poolalloc"
3491 for i in `ls ${srcdir}/projects`
3493 if test -d ${srcdir}/projects/${i} ; then
3495 sample) subdirs="$subdirs projects/sample"
3497 privbracket) subdirs="$subdirs projects/privbracket"
3499 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3501 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3503 llvm-java) subdirs="$subdirs projects/llvm-java"
3505 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3507 safecode) subdirs="$subdirs projects/safecode"
3509 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3518 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3519 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3525 # Check whether --enable-polly was given.
3526 if test "${enable_polly+set}" = set; then
3527 enableval=$enable_polly;
3532 case "$enableval" in
3537 default) ENABLE_POLLY=1
3539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3540 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3541 { (exit 1); exit 1; }; } ;;
3545 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3548 subdirs="$subdirs tools/polly"
3553 # Make sure we can run config.sub.
3554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3555 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3556 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3557 { (exit 1); exit 1; }; }
3559 { echo "$as_me:$LINENO: checking build system type" >&5
3560 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3561 if test "${ac_cv_build+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 ac_build_alias=$build_alias
3565 test "x$ac_build_alias" = x &&
3566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567 test "x$ac_build_alias" = x &&
3568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3569 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3570 { (exit 1); exit 1; }; }
3571 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3572 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3573 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3574 { (exit 1); exit 1; }; }
3577 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3578 echo "${ECHO_T}$ac_cv_build" >&6; }
3579 case $ac_cv_build in
3581 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3582 echo "$as_me: error: invalid value of canonical build" >&2;}
3583 { (exit 1); exit 1; }; };;
3586 ac_save_IFS=$IFS; IFS='-'
3592 # Remember, the first character of IFS is used to create $*,
3593 # except with old shells:
3596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3599 { echo "$as_me:$LINENO: checking host system type" >&5
3600 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3601 if test "${ac_cv_host+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 if test "x$host_alias" = x; then
3605 ac_cv_host=$ac_cv_build
3607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3608 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3609 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3610 { (exit 1); exit 1; }; }
3614 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3615 echo "${ECHO_T}$ac_cv_host" >&6; }
3618 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3619 echo "$as_me: error: invalid value of canonical host" >&2;}
3620 { (exit 1); exit 1; }; };;
3623 ac_save_IFS=$IFS; IFS='-'
3629 # Remember, the first character of IFS is used to create $*,
3630 # except with old shells:
3633 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3636 { echo "$as_me:$LINENO: checking target system type" >&5
3637 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3638 if test "${ac_cv_target+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 if test "x$target_alias" = x; then
3642 ac_cv_target=$ac_cv_host
3644 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3645 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3646 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3647 { (exit 1); exit 1; }; }
3651 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3652 echo "${ECHO_T}$ac_cv_target" >&6; }
3653 case $ac_cv_target in
3655 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3656 echo "$as_me: error: invalid value of canonical target" >&2;}
3657 { (exit 1); exit 1; }; };;
3659 target=$ac_cv_target
3660 ac_save_IFS=$IFS; IFS='-'
3666 # Remember, the first character of IFS is used to create $*,
3667 # except with old shells:
3670 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3673 # The aliases save the names the user supplied, while $host etc.
3674 # will get canonicalized.
3675 test -n "$target_alias" &&
3676 test "$program_prefix$program_suffix$program_transform_name" = \
3678 program_prefix=${target_alias}-
3680 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3681 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3682 if test "${llvm_cv_os_type+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="AIX"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="IRIX"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="Cygwin"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,-all_load"
3703 llvm_cv_no_link_all_option="-Wl,-noall_load"
3704 llvm_cv_os_type="Darwin"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,-all_load"
3708 llvm_cv_no_link_all_option="-Wl,-noall_load"
3709 llvm_cv_os_type="Minix"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-freebsd* | *-*-kfreebsd-gnu)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="FreeBSD"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="OpenBSD"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="NetBSD"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="DragonFly"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="HP-UX"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="Interix"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Linux"
3745 llvm_cv_platform_type="Unix" ;;
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="GNU"
3750 llvm_cv_platform_type="Unix" ;;
3752 llvm_cv_link_all_option="-Wl,-z,allextract"
3753 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3754 llvm_cv_os_type="SunOS"
3755 llvm_cv_platform_type="Unix" ;;
3757 llvm_cv_link_all_option="-Wl,-z,allextract"
3758 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3759 llvm_cv_os_type="AuroraUX"
3760 llvm_cv_platform_type="Unix" ;;
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Win32"
3765 llvm_cv_platform_type="Win32" ;;
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="MingW"
3770 llvm_cv_platform_type="Win32" ;;
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Haiku"
3775 llvm_cv_platform_type="Unix" ;;
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="Freestanding"
3780 llvm_cv_platform_type="Unix" ;;
3782 llvm_cv_link_all_option="-Wl,--whole-archive"
3783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784 llvm_cv_os_type="Freestanding"
3785 llvm_cv_platform_type="Unix" ;;
3787 llvm_cv_link_all_option=""
3788 llvm_cv_no_link_all_option=""
3789 llvm_cv_os_type="Unknown"
3790 llvm_cv_platform_type="Unknown" ;;
3793 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3794 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3797 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3798 if test "${llvm_cv_target_os_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 llvm_cv_target_os_type="AIX" ;;
3805 llvm_cv_target_os_type="IRIX" ;;
3807 llvm_cv_target_os_type="Cygwin" ;;
3809 llvm_cv_target_os_type="Darwin" ;;
3811 llvm_cv_target_os_type="Minix" ;;
3812 *-*-freebsd* | *-*-kfreebsd-gnu)
3813 llvm_cv_target_os_type="FreeBSD" ;;
3815 llvm_cv_target_os_type="OpenBSD" ;;
3817 llvm_cv_target_os_type="NetBSD" ;;
3819 llvm_cv_target_os_type="DragonFly" ;;
3821 llvm_cv_target_os_type="HP-UX" ;;
3823 llvm_cv_target_os_type="Interix" ;;
3825 llvm_cv_target_os_type="Linux" ;;
3827 llvm_cv_target_os_type="GNU" ;;
3829 llvm_cv_target_os_type="SunOS" ;;
3831 llvm_cv_target_os_type="AuroraUX" ;;
3833 llvm_cv_target_os_type="Win32" ;;
3835 llvm_cv_target_os_type="MingW" ;;
3837 llvm_cv_target_os_type="Haiku" ;;
3839 llvm_cv_target_os_type="RTEMS" ;;
3841 llvm_cv_target_os_type="NativeClient" ;;
3843 llvm_cv_target_os_type="Freestanding" ;;
3845 llvm_cv_target_os_type="Unknown" ;;
3848 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3849 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3851 if test "$llvm_cv_os_type" = "Unknown" ; then
3852 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3853 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3854 { (exit 1); exit 1; }; }
3859 HOST_OS=$llvm_cv_os_type
3861 TARGET_OS=$llvm_cv_target_os_type
3864 LINKALL=$llvm_cv_link_all_option
3866 NOLINKALL=$llvm_cv_no_link_all_option
3869 case $llvm_cv_platform_type in
3872 cat >>confdefs.h <<\_ACEOF
3873 #define LLVM_ON_UNIX 1
3883 cat >>confdefs.h <<\_ACEOF
3884 #define LLVM_ON_WIN32 1
3894 { echo "$as_me:$LINENO: checking target architecture" >&5
3895 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3896 if test "${llvm_cv_target_arch+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 i?86-*) llvm_cv_target_arch="x86" ;;
3901 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3902 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3903 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3904 arm*-*) llvm_cv_target_arch="ARM" ;;
3905 mips-*) llvm_cv_target_arch="Mips" ;;
3906 mipsel-*) llvm_cv_target_arch="Mips" ;;
3907 xcore-*) llvm_cv_target_arch="XCore" ;;
3908 msp430-*) llvm_cv_target_arch="MSP430" ;;
3909 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3910 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3911 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3912 *) llvm_cv_target_arch="Unknown" ;;
3915 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3918 if test "$llvm_cv_target_arch" = "Unknown" ; then
3919 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3923 case "$llvm_cv_target_arch" in
3924 x86) LLVM_NATIVE_ARCH="X86" ;;
3925 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3926 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3929 ARCH=$llvm_cv_target_arch
3933 i?86-*) host_arch="x86" ;;
3934 amd64-* | x86_64-*) host_arch="x86_64" ;;
3935 sparc*-*) host_arch="Sparc" ;;
3936 powerpc*-*) host_arch="PowerPC" ;;
3937 arm*-*) host_arch="ARM" ;;
3938 mips-*) host_arch="Mips" ;;
3939 mipsel-*) host_arch="Mips" ;;
3940 xcore-*) host_arch="XCore" ;;
3941 msp430-*) host_arch="MSP430" ;;
3942 hexagon-*) host_arch="Hexagon" ;;
3943 mblaze-*) host_arch="MBlaze" ;;
3944 *) host_arch="Unknown" ;;
3947 if test "$host_arch" = "Unknown" ; then
3948 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3949 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3952 HOST_ARCH=$host_arch
3957 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_GREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 # Extract the first word of "grep ggrep" to use in msg output
3963 if test -z "$GREP"; then
3964 set dummy grep ggrep; ac_prog_name=$2
3965 if test "${ac_cv_path_GREP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 test -z "$as_dir" && as_dir=.
3975 for ac_prog in grep ggrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3979 # Check for GNU ac_path_GREP and select it if it is found.
3980 # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 echo 'GREP' >> "conftest.nl"
3993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 ac_count=`expr $ac_count + 1`
3996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_GREP="$ac_path_GREP"
3999 ac_path_GREP_max=$ac_count
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 $ac_path_GREP_found && break 3
4018 GREP="$ac_cv_path_GREP"
4019 if test -z "$GREP"; then
4020 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022 { (exit 1); exit 1; }; }
4026 ac_cv_path_GREP=$GREP
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4033 GREP="$ac_cv_path_GREP"
4036 { echo "$as_me:$LINENO: checking for egrep" >&5
4037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042 then ac_cv_path_EGREP="$GREP -E"
4044 # Extract the first word of "egrep" to use in msg output
4045 if test -z "$EGREP"; then
4046 set dummy egrep; ac_prog_name=$2
4047 if test "${ac_cv_path_EGREP+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_path_EGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 test -z "$as_dir" && as_dir=.
4057 for ac_prog in egrep; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4061 # Check for GNU ac_path_EGREP and select it if it is found.
4062 # Check for GNU $ac_path_EGREP
4063 case `"$ac_path_EGREP" --version 2>&1` in
4065 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
4074 echo 'EGREP' >> "conftest.nl"
4075 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077 ac_count=`expr $ac_count + 1`
4078 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_EGREP="$ac_path_EGREP"
4081 ac_path_EGREP_max=$ac_count
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090 $ac_path_EGREP_found && break 3
4100 EGREP="$ac_cv_path_EGREP"
4101 if test -z "$EGREP"; then
4102 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104 { (exit 1); exit 1; }; }
4108 ac_cv_path_EGREP=$EGREP
4114 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4116 EGREP="$ac_cv_path_EGREP"
4119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4121 if test "${ac_cv_header_stdc+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4152 grep -v '^ *+' conftest.er1 >conftest.err
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_try") 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_header_stdc=yes
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_cv_header_stdc=no
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 if test $ac_cv_header_stdc = yes; then
4188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4189 cat >conftest.$ac_ext <<_ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4199 $EGREP "memchr" >/dev/null 2>&1; then
4202 ac_cv_header_stdc=no
4208 if test $ac_cv_header_stdc = yes; then
4209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4220 $EGREP "free" >/dev/null 2>&1; then
4223 ac_cv_header_stdc=no
4229 if test $ac_cv_header_stdc = yes; then
4230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4231 if test "$cross_compiling" = yes; then
4234 cat >conftest.$ac_ext <<_ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4242 #if ((' ' & 0x0FF) == 0x020)
4243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4246 # define ISLOWER(c) \
4247 (('a' <= (c) && (c) <= 'i') \
4248 || ('j' <= (c) && (c) <= 'r') \
4249 || ('s' <= (c) && (c) <= 'z'))
4250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4258 for (i = 0; i < 256; i++)
4259 if (XOR (islower (i), ISLOWER (i))
4260 || toupper (i) != TOUPPER (i))
4265 rm -f conftest$ac_exeext
4266 if { (ac_try="$ac_link"
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_link") 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4287 echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4292 ac_cv_header_stdc=no
4294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4301 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4302 if test $ac_cv_header_stdc = yes; then
4304 cat >>confdefs.h <<\_ACEOF
4305 #define STDC_HEADERS 1
4310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321 inttypes.h stdint.h unistd.h
4323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 $ac_includes_default
4337 #include <$ac_header>
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 eval "$as_ac_Header=yes"
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 eval "$as_ac_Header=no"
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_res=`eval echo '${'$as_ac_Header'}'`
4384 { echo "$as_me:$LINENO: result: $ac_res" >&5
4385 echo "${ECHO_T}$ac_res" >&6; }
4386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4387 cat >>confdefs.h <<_ACEOF
4388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4396 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4397 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4398 if test "${ac_cv_c_bigendian+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 # See if sys/param.h defines the BYTE_ORDER macro.
4402 cat >conftest.$ac_ext <<_ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 #include <sys/types.h>
4409 #include <sys/param.h>
4414 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4422 rm -f conftest.$ac_objext
4423 if { (ac_try="$ac_compile"
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_compile") 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4437 { (case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_try") 2>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 # It does; now see whether it defined to BIG_ENDIAN or not.
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #include <sys/types.h>
4464 #include <sys/param.h>
4469 #if BYTE_ORDER != BIG_ENDIAN
4477 rm -f conftest.$ac_objext
4478 if { (ac_try="$ac_compile"
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_compile") 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4492 { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_try") 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_c_bigendian=yes
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 ac_cv_c_bigendian=no
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 # It does not; compile a test program.
4525 if test "$cross_compiling" = yes; then
4526 # try to guess the endianness by grepping values into an object file
4527 ac_cv_c_bigendian=unknown
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4535 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4536 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4537 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4538 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4539 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4543 _ascii (); _ebcdic ();
4548 rm -f conftest.$ac_objext
4549 if { (ac_try="$ac_compile"
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555 (eval "$ac_compile") 2>conftest.er1
4557 grep -v '^ *+' conftest.er1 >conftest.err
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4563 { (case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_try") 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_try") 2>&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4583 ac_cv_c_bigendian=yes
4585 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4586 if test "$ac_cv_c_bigendian" = unknown; then
4587 ac_cv_c_bigendian=no
4589 # finding both strings is unlikely to happen, but who knows?
4590 ac_cv_c_bigendian=unknown
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 cat >conftest.$ac_ext <<_ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 $ac_includes_default
4613 /* Are we little or big endian? From Harbison&Steele. */
4617 char c[sizeof (long int)];
4620 return u.c[sizeof (long int) - 1] == 1;
4626 rm -f conftest$ac_exeext
4627 if { (ac_try="$ac_link"
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633 (eval "$ac_link") 2>&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4637 { (case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_try") 2>&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_c_bigendian=no
4648 echo "$as_me: program exited with status $ac_status" >&5
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4653 ac_cv_c_bigendian=yes
4655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4664 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4665 case $ac_cv_c_bigendian in
4673 { { echo "$as_me:$LINENO: error: unknown endianness
4674 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4675 echo "$as_me: error: unknown endianness
4676 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4677 { (exit 1); exit 1; }; } ;;
4681 if test "$cross_compiling" = yes; then
4682 LLVM_CROSS_COMPILING=1
4685 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4686 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4687 if test "${ac_cv_build_exeext+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4691 ac_cv_build_exeext=.exe
4693 ac_build_prefix=${build_alias}-
4695 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4696 set dummy ${ac_build_prefix}gcc; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 if test -n "$BUILD_CC"; then
4703 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 BUILD_CC=$ac_cv_prog_BUILD_CC
4723 if test -n "$BUILD_CC"; then
4724 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4725 echo "${ECHO_T}$BUILD_CC" >&6; }
4727 { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4732 if test -z "$BUILD_CC"; then
4733 # Extract the first word of "gcc", so it can be a program name with args.
4734 set dummy gcc; ac_word=$2
4735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4737 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 if test -n "$BUILD_CC"; then
4741 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_BUILD_CC="gcc"
4751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 BUILD_CC=$ac_cv_prog_BUILD_CC
4761 if test -n "$BUILD_CC"; then
4762 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4763 echo "${ECHO_T}$BUILD_CC" >&6; }
4765 { echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6; }
4770 if test -z "$BUILD_CC"; then
4771 # Extract the first word of "cc", so it can be a program name with args.
4772 set dummy cc; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 if test -n "$BUILD_CC"; then
4779 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4790 ac_prog_rejected=yes
4793 ac_cv_prog_BUILD_CC="cc"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 if test $ac_prog_rejected = yes; then
4802 # We found a bogon in the path, so make sure we never use it.
4803 set dummy $ac_cv_prog_BUILD_CC
4805 if test $# != 0; then
4806 # We chose a different compiler from the bogus one.
4807 # However, it has the same basename, so the bogon will be chosen
4808 # first if we set BUILD_CC to just the basename; use the full file name.
4810 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4815 BUILD_CC=$ac_cv_prog_BUILD_CC
4816 if test -n "$BUILD_CC"; then
4817 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4818 echo "${ECHO_T}$BUILD_CC" >&6; }
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4827 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4828 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4829 { (exit 1); exit 1; }; }
4830 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4832 echo 'int main () { return 0; }' > conftest.$ac_ext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4835 (eval $ac_build_link) 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; then
4839 for file in conftest.*; do
4841 *.c | *.o | *.obj | *.dSYM) ;;
4842 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4846 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4847 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4848 { (exit 1); exit 1; }; }
4851 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4856 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4857 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4858 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4859 ac_build_exeext=$BUILD_EXEEXT
4861 ac_build_prefix=${build_alias}-
4862 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4863 set dummy ${ac_build_prefix}g++; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 if test -n "$BUILD_CXX"; then
4870 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4890 if test -n "$BUILD_CXX"; then
4891 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4892 echo "${ECHO_T}$BUILD_CXX" >&6; }
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 if test -z "$BUILD_CXX"; then
4900 # Extract the first word of "g++", so it can be a program name with args.
4901 set dummy g++; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 if test -n "$BUILD_CXX"; then
4908 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_BUILD_CXX="g++"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4928 if test -n "$BUILD_CXX"; then
4929 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4930 echo "${ECHO_T}$BUILD_CXX" >&6; }
4932 { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4937 if test -z "$BUILD_CXX"; then
4938 # Extract the first word of "c++", so it can be a program name with args.
4939 set dummy c++; ac_word=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 if test -n "$BUILD_CXX"; then
4946 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4957 ac_prog_rejected=yes
4960 ac_cv_prog_BUILD_CXX="c++"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 if test $ac_prog_rejected = yes; then
4969 # We found a bogon in the path, so make sure we never use it.
4970 set dummy $ac_cv_prog_BUILD_CXX
4972 if test $# != 0; then
4973 # We chose a different compiler from the bogus one.
4974 # However, it has the same basename, so the bogon will be chosen
4975 # first if we set BUILD_CXX to just the basename; use the full file name.
4977 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4982 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4983 if test -n "$BUILD_CXX"; then
4984 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4985 echo "${ECHO_T}$BUILD_CXX" >&6; }
4987 { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4995 LLVM_CROSS_COMPILING=0
4999 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5010 # Check whether --enable-libcpp was given.
5011 if test "${enable_libcpp+set}" = set; then
5012 enableval=$enable_libcpp;
5017 case "$enableval" in
5018 yes) ENABLE_LIBCPP=1
5022 default) ENABLE_LIBCPP=0
5024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5025 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5026 { (exit 1); exit 1; }; } ;;
5029 # Check whether --enable-cxx11 was given.
5030 if test "${enable_cxx11+set}" = set; then
5031 enableval=$enable_cxx11;
5036 case "$enableval" in
5041 default) ENABLE_CXX11=0
5043 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5044 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5045 { (exit 1); exit 1; }; } ;;
5048 # Check whether --enable-optimized was given.
5049 if test "${enable_optimized+set}" = set; then
5050 enableval=$enable_optimized;
5055 if test ${enableval} = "no" ; then
5059 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5063 # Check whether --enable-profiling was given.
5064 if test "${enable_profiling+set}" = set; then
5065 enableval=$enable_profiling;
5070 if test ${enableval} = "no" ; then
5074 ENABLE_PROFILING=ENABLE_PROFILING=1
5078 # Check whether --enable-assertions was given.
5079 if test "${enable_assertions+set}" = set; then
5080 enableval=$enable_assertions;
5085 if test ${enableval} = "yes" ; then
5089 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5093 # Check whether --enable-werror was given.
5094 if test "${enable_werror+set}" = set; then
5095 enableval=$enable_werror;
5100 case "$enableval" in
5101 yes) ENABLE_WERROR=1
5105 default) ENABLE_WERROR=0
5107 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5108 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5109 { (exit 1); exit 1; }; } ;;
5112 # Check whether --enable-expensive-checks was given.
5113 if test "${enable_expensive_checks+set}" = set; then
5114 enableval=$enable_expensive_checks;
5119 if test ${enableval} = "yes" ; then
5120 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5122 EXPENSIVE_CHECKS=yes
5125 ENABLE_EXPENSIVE_CHECKS=
5131 # Check whether --enable-debug-runtime was given.
5132 if test "${enable_debug_runtime+set}" = set; then
5133 enableval=$enable_debug_runtime;
5138 if test ${enableval} = "no" ; then
5142 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5146 # Check whether --enable-debug-symbols was given.
5147 if test "${enable_debug_symbols+set}" = set; then
5148 enableval=$enable_debug_symbols;
5153 if test ${enableval} = "no" ; then
5157 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5161 # Check whether --enable-jit was given.
5162 if test "${enable_jit+set}" = set; then
5163 enableval=$enable_jit;
5168 if test ${enableval} = "no"
5173 case "$llvm_cv_target_arch" in
5174 x86) TARGET_HAS_JIT=1
5176 Sparc) TARGET_HAS_JIT=0
5178 PowerPC) TARGET_HAS_JIT=1
5180 x86_64) TARGET_HAS_JIT=1
5182 ARM) TARGET_HAS_JIT=1
5184 Mips) TARGET_HAS_JIT=1
5186 XCore) TARGET_HAS_JIT=0
5188 MSP430) TARGET_HAS_JIT=0
5190 Hexagon) TARGET_HAS_JIT=0
5192 MBlaze) TARGET_HAS_JIT=0
5194 NVPTX) TARGET_HAS_JIT=0
5201 # Check whether --enable-docs was given.
5202 if test "${enable_docs+set}" = set; then
5203 enableval=$enable_docs;
5208 case "$enableval" in
5213 default) ENABLE_DOCS=1
5215 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5216 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5217 { (exit 1); exit 1; }; } ;;
5220 # Check whether --enable-doxygen was given.
5221 if test "${enable_doxygen+set}" = set; then
5222 enableval=$enable_doxygen;
5227 case "$enableval" in
5228 yes) ENABLE_DOXYGEN=1
5230 no) ENABLE_DOXYGEN=0
5232 default) ENABLE_DOXYGEN=0
5234 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5236 { (exit 1); exit 1; }; } ;;
5239 # Check whether --enable-threads was given.
5240 if test "${enable_threads+set}" = set; then
5241 enableval=$enable_threads;
5246 case "$enableval" in
5247 yes) LLVM_ENABLE_THREADS=1
5249 no) LLVM_ENABLE_THREADS=0
5251 default) LLVM_ENABLE_THREADS=1
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5258 cat >>confdefs.h <<_ACEOF
5259 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5263 # Check whether --enable-pthreads was given.
5264 if test "${enable_pthreads+set}" = set; then
5265 enableval=$enable_pthreads;
5270 case "$enableval" in
5271 yes) ENABLE_PTHREADS=1
5273 no) ENABLE_PTHREADS=0
5275 default) ENABLE_PTHREADS=1
5277 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5278 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5279 { (exit 1); exit 1; }; } ;;
5282 # Check whether --enable-pic was given.
5283 if test "${enable_pic+set}" = set; then
5284 enableval=$enable_pic;
5289 case "$enableval" in
5294 default) ENABLE_PIC=1
5296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5301 cat >>confdefs.h <<_ACEOF
5302 #define ENABLE_PIC $ENABLE_PIC
5306 # Check whether --enable-shared was given.
5307 if test "${enable_shared+set}" = set; then
5308 enableval=$enable_shared;
5313 case "$enableval" in
5314 yes) ENABLE_SHARED=1
5318 default) ENABLE_SHARED=0
5320 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5322 { (exit 1); exit 1; }; } ;;
5325 # Check whether --enable-embed-stdcxx was given.
5326 if test "${enable_embed_stdcxx+set}" = set; then
5327 enableval=$enable_embed_stdcxx;
5332 case "$enableval" in
5333 yes) ENABLE_EMBED_STDCXX=1
5335 no) ENABLE_EMBED_STDCXX=0
5337 default) ENABLE_EMBED_STDCXX=0
5339 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5340 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5341 { (exit 1); exit 1; }; } ;;
5344 # Check whether --enable-timestamps was given.
5345 if test "${enable_timestamps+set}" = set; then
5346 enableval=$enable_timestamps;
5351 case "$enableval" in
5352 yes) ENABLE_TIMESTAMPS=1
5354 no) ENABLE_TIMESTAMPS=0
5356 default) ENABLE_TIMESTAMPS=1
5358 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5359 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5360 { (exit 1); exit 1; }; } ;;
5363 cat >>confdefs.h <<_ACEOF
5364 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5369 # Check whether --enable-targets was given.
5370 if test "${enable_targets+set}" = set; then
5371 enableval=$enable_targets;
5376 if test "$enableval" = host-only ; then
5379 case "$enableval" in
5380 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5381 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5383 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5384 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5385 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5386 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5387 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5388 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5389 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5390 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5391 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5392 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5393 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5394 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5395 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5396 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5397 host) case "$llvm_cv_target_arch" in
5398 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5399 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5400 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5401 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5402 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5403 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5404 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5405 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5406 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5407 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5408 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5409 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5410 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5411 echo "$as_me: error: Can not set target to build" >&2;}
5412 { (exit 1); exit 1; }; } ;;
5414 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5415 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5416 { (exit 1); exit 1; }; } ;;
5422 # Check whether --enable-experimental-targets was given.
5423 if test "${enable_experimental_targets+set}" = set; then
5424 enableval=$enable_experimental_targets;
5430 if test ${enableval} != "disable"
5432 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5435 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5438 for a_target in $TARGETS_TO_BUILD; do
5439 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5445 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5446 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5447 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5448 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5449 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5450 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5452 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5453 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5456 cat >>confdefs.h <<_ACEOF
5457 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5461 cat >>confdefs.h <<_ACEOF
5462 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5466 cat >>confdefs.h <<_ACEOF
5467 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5471 cat >>confdefs.h <<_ACEOF
5472 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5475 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5477 cat >>confdefs.h <<_ACEOF
5478 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5482 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5484 cat >>confdefs.h <<_ACEOF
5485 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5492 LLVM_ENUM_TARGETS=""
5493 LLVM_ENUM_ASM_PRINTERS=""
5494 LLVM_ENUM_ASM_PARSERS=""
5495 LLVM_ENUM_DISASSEMBLERS=""
5496 for target_to_build in $TARGETS_TO_BUILD; do
5497 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5498 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5499 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5501 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5502 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5504 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5505 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5514 # Check whether --with-optimize-option was given.
5515 if test "${with_optimize_option+set}" = set; then
5516 withval=$with_optimize_option;
5521 { echo "$as_me:$LINENO: checking optimization flags" >&5
5522 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5525 case "$llvm_cv_os_type" in
5526 FreeBSD) optimize_option=-O2 ;;
5527 MingW) optimize_option=-O2 ;;
5528 *) optimize_option=-O3 ;;
5530 *) optimize_option="$withval" ;;
5532 OPTIMIZE_OPTION=$optimize_option
5534 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5535 echo "${ECHO_T}$optimize_option" >&6; }
5538 # Check whether --with-extra-options was given.
5539 if test "${with_extra_options+set}" = set; then
5540 withval=$with_extra_options;
5546 default) EXTRA_OPTIONS= ;;
5547 *) EXTRA_OPTIONS=$withval ;;
5549 EXTRA_OPTIONS=$EXTRA_OPTIONS
5553 # Check whether --with-extra-ld-options was given.
5554 if test "${with_extra_ld_options+set}" = set; then
5555 withval=$with_extra_ld_options;
5561 default) EXTRA_LD_OPTIONS= ;;
5562 *) EXTRA_LD_OPTIONS=$withval ;;
5564 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5567 # Check whether --enable-bindings was given.
5568 if test "${enable_bindings+set}" = set; then
5569 enableval=$enable_bindings;
5574 BINDINGS_TO_BUILD=""
5575 case "$enableval" in
5576 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5577 all ) BINDINGS_TO_BUILD="ocaml" ;;
5578 none | no) BINDINGS_TO_BUILD="" ;;
5579 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5580 case "$a_binding" in
5581 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5582 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5583 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5584 { (exit 1); exit 1; }; } ;;
5591 # Check whether --with-ocaml-libdir was given.
5592 if test "${with_ocaml_libdir+set}" = set; then
5593 withval=$with_ocaml_libdir;
5599 auto) with_ocaml_libdir="$withval" ;;
5600 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5601 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5602 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5603 { (exit 1); exit 1; }; } ;;
5607 # Check whether --with-clang-srcdir was given.
5608 if test "${with_clang_srcdir+set}" = set; then
5609 withval=$with_clang_srcdir;
5615 -) clang_src_root="" ;;
5616 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5617 *) clang_src_root="$ac_pwd/$withval" ;;
5619 CLANG_SRC_ROOT=$clang_src_root
5623 # Check whether --with-clang-resource-dir was given.
5624 if test "${with_clang_resource_dir+set}" = set; then
5625 withval=$with_clang_resource_dir;
5631 cat >>confdefs.h <<_ACEOF
5632 #define CLANG_RESOURCE_DIR "$withval"
5637 # Check whether --with-c-include-dirs was given.
5638 if test "${with_c_include_dirs+set}" = set; then
5639 withval=$with_c_include_dirs;
5645 cat >>confdefs.h <<_ACEOF
5646 #define C_INCLUDE_DIRS "$withval"
5650 # Clang normally uses the system c++ headers and libraries. With this option,
5651 # clang will use the ones provided by a gcc installation instead. This option should
5652 # be passed the same value that was used with --prefix when configuring gcc.
5654 # Check whether --with-gcc-toolchain was given.
5655 if test "${with_gcc_toolchain+set}" = set; then
5656 withval=$with_gcc_toolchain;
5662 cat >>confdefs.h <<_ACEOF
5663 #define GCC_INSTALL_PREFIX "$withval"
5668 # Check whether --with-default-sysroot was given.
5669 if test "${with_default_sysroot+set}" = set; then
5670 withval=$with_default_sysroot;
5676 cat >>confdefs.h <<_ACEOF
5677 #define DEFAULT_SYSROOT "$withval"
5682 # Check whether --with-binutils-include was given.
5683 if test "${with_binutils_include+set}" = set; then
5684 withval=$with_binutils_include;
5690 default) WITH_BINUTILS_INCDIR=default ;;
5691 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5692 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5693 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5694 { (exit 1); exit 1; }; } ;;
5696 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5697 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5699 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5700 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5701 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5702 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5703 { (exit 1); exit 1; }; };
5708 # Check whether --with-bug-report-url was given.
5709 if test "${with_bug_report_url+set}" = set; then
5710 withval=$with_bug_report_url;
5712 withval="http://llvm.org/bugs/"
5716 cat >>confdefs.h <<_ACEOF
5717 #define BUG_REPORT_URL "$withval"
5721 # Check whether --enable-libffi was given.
5722 if test "${enable_libffi+set}" = set; then
5723 enableval=$enable_libffi; case "$enableval" in
5724 yes) llvm_cv_enable_libffi="yes" ;;
5725 no) llvm_cv_enable_libffi="no" ;;
5726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5727 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5728 { (exit 1); exit 1; }; } ;;
5731 llvm_cv_enable_libffi=no
5736 # Check whether --with-internal-prefix was given.
5737 if test "${with_internal_prefix+set}" = set; then
5738 withval=$with_internal_prefix;
5743 INTERNAL_PREFIX=$withval
5747 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5748 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5749 if test "${lt_cv_path_NM+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 if test -n "$NM"; then
5753 # Let the user override the test.
5756 lt_nm_to_check="${ac_tool_prefix}nm"
5757 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5758 lt_nm_to_check="$lt_nm_to_check nm"
5760 for lt_tmp_nm in $lt_nm_to_check; do
5761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5762 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5764 test -z "$ac_dir" && ac_dir=.
5765 tmp_nm="$ac_dir/$lt_tmp_nm"
5766 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5767 # Check to see if the nm accepts a BSD-compat flag.
5768 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5769 # nm: unknown option "B" ignored
5770 # Tru64's nm complains that /dev/null is an invalid object file
5771 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5772 */dev/null* | *'Invalid file or object type'*)
5773 lt_cv_path_NM="$tmp_nm -B"
5777 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5779 lt_cv_path_NM="$tmp_nm -p"
5783 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5784 continue # so that we can try to find one that supports BSD flags
5793 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5796 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5797 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5802 { echo "$as_me:$LINENO: checking for GNU make" >&5
5803 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5804 if test "${llvm_cv_gnu_make_command+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 llvm_cv_gnu_make_command=''
5808 for a in "$MAKE" make gmake gnumake ; do
5809 if test -z "$a" ; then continue ; fi ;
5810 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5812 llvm_cv_gnu_make_command=$a ;
5817 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5818 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5819 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5823 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5824 echo "${ECHO_T}\"Not found\"" >&6; };
5828 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5829 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5831 if test "$LN_S" = "ln -s"; then
5832 { echo "$as_me:$LINENO: result: yes" >&5
5833 echo "${ECHO_T}yes" >&6; }
5835 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5836 echo "${ECHO_T}no, using $LN_S" >&6; }
5839 # Extract the first word of "cmp", so it can be a program name with args.
5840 set dummy cmp; ac_word=$2
5841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843 if test "${ac_cv_path_CMP+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5871 if test -n "$CMP"; then
5872 { echo "$as_me:$LINENO: result: $CMP" >&5
5873 echo "${ECHO_T}$CMP" >&6; }
5875 { echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6; }
5880 # Extract the first word of "cp", so it can be a program name with args.
5881 set dummy cp; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_path_CP+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5899 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5912 if test -n "$CP"; then
5913 { echo "$as_me:$LINENO: result: $CP" >&5
5914 echo "${ECHO_T}$CP" >&6; }
5916 { echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6; }
5921 # Extract the first word of "date", so it can be a program name with args.
5922 set dummy date; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_path_DATE+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5952 DATE=$ac_cv_path_DATE
5953 if test -n "$DATE"; then
5954 { echo "$as_me:$LINENO: result: $DATE" >&5
5955 echo "${ECHO_T}$DATE" >&6; }
5957 { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5962 # Extract the first word of "find", so it can be a program name with args.
5963 set dummy find; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_path_FIND+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5993 FIND=$ac_cv_path_FIND
5994 if test -n "$FIND"; then
5995 { echo "$as_me:$LINENO: result: $FIND" >&5
5996 echo "${ECHO_T}$FIND" >&6; }
5998 { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6003 # Extract the first word of "grep", so it can be a program name with args.
6004 set dummy grep; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_path_GREP+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6022 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6034 GREP=$ac_cv_path_GREP
6035 if test -n "$GREP"; then
6036 { echo "$as_me:$LINENO: result: $GREP" >&5
6037 echo "${ECHO_T}$GREP" >&6; }
6039 { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6044 # Extract the first word of "mkdir", so it can be a program name with args.
6045 set dummy mkdir; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_path_MKDIR+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6075 MKDIR=$ac_cv_path_MKDIR
6076 if test -n "$MKDIR"; then
6077 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6078 echo "${ECHO_T}$MKDIR" >&6; }
6080 { echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6; }
6085 # Extract the first word of "mv", so it can be a program name with args.
6086 set dummy mv; ac_word=$2
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089 if test "${ac_cv_path_MV+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6117 if test -n "$MV"; then
6118 { echo "$as_me:$LINENO: result: $MV" >&5
6119 echo "${ECHO_T}$MV" >&6; }
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_RANLIB+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 if test -n "$RANLIB"; then
6135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 RANLIB=$ac_cv_prog_RANLIB
6155 if test -n "$RANLIB"; then
6156 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6157 echo "${ECHO_T}$RANLIB" >&6; }
6159 { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6165 if test -z "$ac_cv_prog_RANLIB"; then
6166 ac_ct_RANLIB=$RANLIB
6167 # Extract the first word of "ranlib", so it can be a program name with args.
6168 set dummy ranlib; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 if test -n "$ac_ct_RANLIB"; then
6175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_RANLIB="ranlib"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195 if test -n "$ac_ct_RANLIB"; then
6196 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6197 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6199 { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6203 if test "x$ac_ct_RANLIB" = x; then
6206 case $cross_compiling:$ac_tool_warned in
6208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6209 whose name does not start with the host triplet. If you think this
6210 configuration is useful to you, please write to autoconf@gnu.org." >&5
6211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6212 whose name does not start with the host triplet. If you think this
6213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6214 ac_tool_warned=yes ;;
6216 RANLIB=$ac_ct_RANLIB
6219 RANLIB="$ac_cv_prog_RANLIB"
6222 if test -n "$ac_tool_prefix"; then
6223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6224 set dummy ${ac_tool_prefix}ar; ac_word=$2
6225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227 if test "${ac_cv_prog_AR+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 if test -n "$AR"; then
6231 ac_cv_prog_AR="$AR" # Let the user override the test.
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6240 ac_cv_prog_AR="${ac_tool_prefix}ar"
6241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 if test -n "$AR"; then
6252 { echo "$as_me:$LINENO: result: $AR" >&5
6253 echo "${ECHO_T}$AR" >&6; }
6255 { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6261 if test -z "$ac_cv_prog_AR"; then
6263 # Extract the first word of "ar", so it can be a program name with args.
6264 set dummy ar; ac_word=$2
6265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 if test -n "$ac_ct_AR"; then
6271 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_ac_ct_AR="ar"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6291 if test -n "$ac_ct_AR"; then
6292 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6293 echo "${ECHO_T}$ac_ct_AR" >&6; }
6295 { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6299 if test "x$ac_ct_AR" = x; then
6302 case $cross_compiling:$ac_tool_warned in
6304 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6305 whose name does not start with the host triplet. If you think this
6306 configuration is useful to you, please write to autoconf@gnu.org." >&5
6307 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6308 whose name does not start with the host triplet. If you think this
6309 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6310 ac_tool_warned=yes ;;
6318 # Extract the first word of "rm", so it can be a program name with args.
6319 set dummy rm; ac_word=$2
6320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322 if test "${ac_cv_path_RM+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6350 if test -n "$RM"; then
6351 { echo "$as_me:$LINENO: result: $RM" >&5
6352 echo "${ECHO_T}$RM" >&6; }
6354 { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6359 # Extract the first word of "sed", so it can be a program name with args.
6360 set dummy sed; ac_word=$2
6361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363 if test "${ac_cv_path_SED+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6391 if test -n "$SED"; then
6392 { echo "$as_me:$LINENO: result: $SED" >&5
6393 echo "${ECHO_T}$SED" >&6; }
6395 { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6400 # Extract the first word of "tar", so it can be a program name with args.
6401 set dummy tar; ac_word=$2
6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404 if test "${ac_cv_path_TAR+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6432 if test -n "$TAR"; then
6433 { echo "$as_me:$LINENO: result: $TAR" >&5
6434 echo "${ECHO_T}$TAR" >&6; }
6436 { echo "$as_me:$LINENO: result: no" >&5
6437 echo "${ECHO_T}no" >&6; }
6441 # Extract the first word of "pwd", so it can be a program name with args.
6442 set dummy pwd; ac_word=$2
6443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445 if test "${ac_cv_path_BINPWD+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6472 BINPWD=$ac_cv_path_BINPWD
6473 if test -n "$BINPWD"; then
6474 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6475 echo "${ECHO_T}$BINPWD" >&6; }
6477 { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6483 # Extract the first word of "Graphviz", so it can be a program name with args.
6484 set dummy Graphviz; ac_word=$2
6485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6487 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6514 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6515 if test -n "$GRAPHVIZ"; then
6516 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6517 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6519 { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6524 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6526 cat >>confdefs.h <<\_ACEOF
6527 #define HAVE_GRAPHVIZ 1
6530 if test "$llvm_cv_os_type" = "MingW" ; then
6531 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6534 cat >>confdefs.h <<_ACEOF
6535 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6539 # Extract the first word of "dot", so it can be a program name with args.
6540 set dummy dot; ac_word=$2
6541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543 if test "${ac_cv_path_DOT+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6571 if test -n "$DOT"; then
6572 { echo "$as_me:$LINENO: result: $DOT" >&5
6573 echo "${ECHO_T}$DOT" >&6; }
6575 { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6580 if test "$DOT" != "echo dot" ; then
6582 cat >>confdefs.h <<\_ACEOF
6586 if test "$llvm_cv_os_type" = "MingW" ; then
6587 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6590 cat >>confdefs.h <<_ACEOF
6591 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6595 # Extract the first word of "fdp", so it can be a program name with args.
6596 set dummy fdp; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_path_FDP+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6627 if test -n "$FDP"; then
6628 { echo "$as_me:$LINENO: result: $FDP" >&5
6629 echo "${ECHO_T}$FDP" >&6; }
6631 { echo "$as_me:$LINENO: result: no" >&5
6632 echo "${ECHO_T}no" >&6; }
6636 if test "$FDP" != "echo fdp" ; then
6638 cat >>confdefs.h <<\_ACEOF
6642 if test "$llvm_cv_os_type" = "MingW" ; then
6643 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6646 cat >>confdefs.h <<_ACEOF
6647 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6651 # Extract the first word of "neato", so it can be a program name with args.
6652 set dummy neato; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_path_NEATO+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6682 NEATO=$ac_cv_path_NEATO
6683 if test -n "$NEATO"; then
6684 { echo "$as_me:$LINENO: result: $NEATO" >&5
6685 echo "${ECHO_T}$NEATO" >&6; }
6687 { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6692 if test "$NEATO" != "echo neato" ; then
6694 cat >>confdefs.h <<\_ACEOF
6695 #define HAVE_NEATO 1
6698 if test "$llvm_cv_os_type" = "MingW" ; then
6699 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6702 cat >>confdefs.h <<_ACEOF
6703 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6707 # Extract the first word of "twopi", so it can be a program name with args.
6708 set dummy twopi; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_TWOPI+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6738 TWOPI=$ac_cv_path_TWOPI
6739 if test -n "$TWOPI"; then
6740 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6741 echo "${ECHO_T}$TWOPI" >&6; }
6743 { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6748 if test "$TWOPI" != "echo twopi" ; then
6750 cat >>confdefs.h <<\_ACEOF
6751 #define HAVE_TWOPI 1
6754 if test "$llvm_cv_os_type" = "MingW" ; then
6755 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6758 cat >>confdefs.h <<_ACEOF
6759 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6763 # Extract the first word of "circo", so it can be a program name with args.
6764 set dummy circo; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_path_CIRCO+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6794 CIRCO=$ac_cv_path_CIRCO
6795 if test -n "$CIRCO"; then
6796 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6797 echo "${ECHO_T}$CIRCO" >&6; }
6799 { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6804 if test "$CIRCO" != "echo circo" ; then
6806 cat >>confdefs.h <<\_ACEOF
6807 #define HAVE_CIRCO 1
6810 if test "$llvm_cv_os_type" = "MingW" ; then
6811 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6814 cat >>confdefs.h <<_ACEOF
6815 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6819 for ac_prog in gv gsview32
6821 # Extract the first word of "$ac_prog", so it can be a program name with args.
6822 set dummy $ac_prog; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_path_GV+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 if test -n "$GV"; then
6853 { echo "$as_me:$LINENO: result: $GV" >&5
6854 echo "${ECHO_T}$GV" >&6; }
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 test -n "$GV" && break
6863 test -n "$GV" || GV="echo gv"
6865 if test "$GV" != "echo gv" ; then
6867 cat >>confdefs.h <<\_ACEOF
6871 if test "$llvm_cv_os_type" = "MingW" ; then
6872 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6875 cat >>confdefs.h <<_ACEOF
6876 #define LLVM_PATH_GV "$GV${EXEEXT}"
6880 # Extract the first word of "dotty", so it can be a program name with args.
6881 set dummy dotty; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_DOTTY+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6911 DOTTY=$ac_cv_path_DOTTY
6912 if test -n "$DOTTY"; then
6913 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6914 echo "${ECHO_T}$DOTTY" >&6; }
6916 { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6921 if test "$DOTTY" != "echo dotty" ; then
6923 cat >>confdefs.h <<\_ACEOF
6924 #define HAVE_DOTTY 1
6927 if test "$llvm_cv_os_type" = "MingW" ; then
6928 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6931 cat >>confdefs.h <<_ACEOF
6932 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6936 # Extract the first word of "xdot.py", so it can be a program name with args.
6937 set dummy xdot.py; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6967 XDOT_PY=$ac_cv_path_XDOT_PY
6968 if test -n "$XDOT_PY"; then
6969 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6970 echo "${ECHO_T}$XDOT_PY" >&6; }
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6977 if test "$XDOT_PY" != "echo xdot.py" ; then
6979 cat >>confdefs.h <<\_ACEOF
6980 #define HAVE_XDOT_PY 1
6983 if test "$llvm_cv_os_type" = "MingW" ; then
6984 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6987 cat >>confdefs.h <<_ACEOF
6988 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6993 # Find a good install program. We prefer a C program (faster),
6994 # so one script is as good as another. But avoid the broken or
6995 # incompatible versions:
6996 # SysV /etc/install, /usr/sbin/install
6997 # SunOS /usr/etc/install
6998 # IRIX /sbin/install
7000 # AmigaOS /C/install, which installs bootblocks on floppy discs
7001 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7002 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7003 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7004 # OS/2's system install, which has a completely different semantic
7005 # ./install, which can be erroneously created by make from ./install.sh.
7006 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7007 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7008 if test -z "$INSTALL"; then
7009 if test "${ac_cv_path_install+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 test -z "$as_dir" && as_dir=.
7017 # Account for people who put trailing slashes in PATH elements.
7019 ./ | .// | /cC/* | \
7020 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7021 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7024 # OSF1 and SCO ODT 3.0 have their own names for install.
7025 # Don't use installbsd from OSF since it installs stuff as root
7027 for ac_prog in ginstall scoinst install; do
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7030 if test $ac_prog = install &&
7031 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7032 # AIX install. It has an incompatible calling convention.
7034 elif test $ac_prog = install &&
7035 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7036 # program-specific install script used by HP pwplus--don't use.
7039 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7052 if test "${ac_cv_path_install+set}" = set; then
7053 INSTALL=$ac_cv_path_install
7055 # As a last resort, use the slow shell script. Don't cache a
7056 # value for INSTALL within a source directory, because that will
7057 # break other packages using the cache if that directory is
7058 # removed, or if the value is a relative name.
7059 INSTALL=$ac_install_sh
7062 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7063 echo "${ECHO_T}$INSTALL" >&6; }
7065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7066 # It thinks the first close brace ends the variable substitution.
7067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7074 [\\/$]* | ?:[\\/]* ) ;;
7075 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7078 # Extract the first word of "bzip2", so it can be a program name with args.
7079 set dummy bzip2; 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_BZIP2+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_cv_path_BZIP2="$BZIP2" # 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_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 BZIP2=$ac_cv_path_BZIP2
7109 if test -n "$BZIP2"; then
7110 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7111 echo "${ECHO_T}$BZIP2" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7118 # Extract the first word of "cat", so it can be a program name with args.
7119 set dummy cat; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_CAT+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 if test -n "$CAT"; then
7150 { echo "$as_me:$LINENO: result: $CAT" >&5
7151 echo "${ECHO_T}$CAT" >&6; }
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7158 # Extract the first word of "doxygen", so it can be a program name with args.
7159 set dummy doxygen; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 DOXYGEN=$ac_cv_path_DOXYGEN
7189 if test -n "$DOXYGEN"; then
7190 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7191 echo "${ECHO_T}$DOXYGEN" >&6; }
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7198 # Extract the first word of "groff", so it can be a program name with args.
7199 set dummy groff; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_GROFF+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 GROFF=$ac_cv_path_GROFF
7229 if test -n "$GROFF"; then
7230 { echo "$as_me:$LINENO: result: $GROFF" >&5
7231 echo "${ECHO_T}$GROFF" >&6; }
7233 { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7238 # Extract the first word of "gzip", so it can be a program name with args.
7239 set dummy gzip; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 GZIPBIN=$ac_cv_path_GZIPBIN
7269 if test -n "$GZIPBIN"; then
7270 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7271 echo "${ECHO_T}$GZIPBIN" >&6; }
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7278 # Extract the first word of "pdfroff", so it can be a program name with args.
7279 set dummy pdfroff; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_PDFROFF+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 PDFROFF=$ac_cv_path_PDFROFF
7309 if test -n "$PDFROFF"; then
7310 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7311 echo "${ECHO_T}$PDFROFF" >&6; }
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7318 # Extract the first word of "zip", so it can be a program name with args.
7319 set dummy zip; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_ZIP+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 if test -n "$ZIP"; then
7350 { echo "$as_me:$LINENO: result: $ZIP" >&5
7351 echo "${ECHO_T}$ZIP" >&6; }
7353 { echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6; }
7358 for ac_prog in ocamlc
7360 # Extract the first word of "$ac_prog", so it can be a program name with args.
7361 set dummy $ac_prog; ac_word=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_path_OCAMLC+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 OCAMLC=$ac_cv_path_OCAMLC
7391 if test -n "$OCAMLC"; then
7392 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7393 echo "${ECHO_T}$OCAMLC" >&6; }
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7400 test -n "$OCAMLC" && break
7403 for ac_prog in ocamlopt
7405 # Extract the first word of "$ac_prog", so it can be a program name with args.
7406 set dummy $ac_prog; ac_word=$2
7407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 OCAMLOPT=$ac_cv_path_OCAMLOPT
7436 if test -n "$OCAMLOPT"; then
7437 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7438 echo "${ECHO_T}$OCAMLOPT" >&6; }
7440 { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7445 test -n "$OCAMLOPT" && break
7448 for ac_prog in ocamldep
7450 # Extract the first word of "$ac_prog", so it can be a program name with args.
7451 set dummy $ac_prog; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 OCAMLDEP=$ac_cv_path_OCAMLDEP
7481 if test -n "$OCAMLDEP"; then
7482 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7483 echo "${ECHO_T}$OCAMLDEP" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7490 test -n "$OCAMLDEP" && break
7493 for ac_prog in ocamldoc
7495 # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; 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_OCAMLDOC+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 ac_cv_path_OCAMLDOC="$OCAMLDOC" # 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_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 OCAMLDOC=$ac_cv_path_OCAMLDOC
7526 if test -n "$OCAMLDOC"; then
7527 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7528 echo "${ECHO_T}$OCAMLDOC" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7535 test -n "$OCAMLDOC" && break
7538 for ac_prog in gas as
7540 # Extract the first word of "$ac_prog", so it can be a program name with args.
7541 set dummy $ac_prog; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_GAS+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 if test -n "$GAS"; then
7572 { echo "$as_me:$LINENO: result: $GAS" >&5
7573 echo "${ECHO_T}$GAS" >&6; }
7575 { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7580 test -n "$GAS" && break
7584 { echo "$as_me:$LINENO: checking for linker version" >&5
7585 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7586 if test "${llvm_cv_link_version+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 version_string="$(ld -v 2>&1 | head -1)"
7593 if (echo "$version_string" | grep -q "ld64"); then
7594 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7596 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7600 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7601 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7603 cat >>confdefs.h <<_ACEOF
7604 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7609 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7610 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7611 if test "${llvm_cv_link_use_r+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 ac_cpp='$CPP $CPPFLAGS'
7616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621 CFLAGS="$CFLAGS -Wl,-R."
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7637 rm -f conftest.$ac_objext conftest$ac_exeext
7638 if { (ac_try="$ac_link"
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_link") 2>conftest.er1
7646 grep -v '^ *+' conftest.er1 >conftest.err
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7652 { (case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_try") 2>&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest$ac_exeext'
7662 { (case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_try") 2>&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 llvm_cv_link_use_r=yes
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 llvm_cv_link_use_r=no
7679 rm -f core conftest.err conftest.$ac_objext \
7680 conftest$ac_exeext conftest.$ac_ext
7683 ac_cpp='$CPP $CPPFLAGS'
7684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7691 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7692 if test "$llvm_cv_link_use_r" = yes ; then
7694 cat >>confdefs.h <<\_ACEOF
7695 #define HAVE_LINK_R 1
7701 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7702 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7703 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7714 cat >conftest.$ac_ext <<_ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736 (eval "$ac_link") 2>conftest.er1
7738 grep -v '^ *+' conftest.er1 >conftest.err
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7744 { (case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_try") 2>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; } &&
7753 { ac_try='test -s conftest$ac_exeext'
7754 { (case "(($ac_try" in
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_try") 2>&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 llvm_cv_link_use_export_dynamic=yes
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 llvm_cv_link_use_export_dynamic=no
7771 rm -f core conftest.err conftest.$ac_objext \
7772 conftest$ac_exeext conftest.$ac_ext
7775 ac_cpp='$CPP $CPPFLAGS'
7776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7783 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7784 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7786 cat >>confdefs.h <<\_ACEOF
7787 #define HAVE_LINK_EXPORT_DYNAMIC 1
7793 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7794 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7795 if test "${llvm_cv_link_use_version_script+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 ac_cpp='$CPP $CPPFLAGS'
7800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7806 # The following code is from the autoconf manual,
7807 # "11.13: Limitations of Usual Tools".
7808 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7809 # Use mktemp if possible; otherwise fall back on mkdir,
7810 # with $RANDOM to make collisions less likely.
7814 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7816 test -n "$tmp" && test -d "$tmp"
7818 tmp=$TMPDIR/foo$$-$RANDOM
7819 (umask 077 && mkdir "$tmp")
7822 echo "{" > "$tmp/export.map"
7823 echo " global: main;" >> "$tmp/export.map"
7824 echo " local: *;" >> "$tmp/export.map"
7825 echo "};" >> "$tmp/export.map"
7827 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7828 cat >conftest.$ac_ext <<_ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (ac_try="$ac_link"
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_link") 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7858 { (case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_try") 2>&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; } &&
7867 { ac_try='test -s conftest$ac_exeext'
7868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 llvm_cv_link_use_version_script=yes
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 llvm_cv_link_use_version_script=no
7885 rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7887 rm "$tmp/export.map"
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7899 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7900 if test "$llvm_cv_link_use_version_script" = yes ; then
7901 HAVE_LINK_VERSION_SCRIPT=1
7908 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7909 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7910 if test "${ac_cv_c_const+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7923 /* FIXME: Include the comments suggested by Paul. */
7925 /* Ultrix mips cc rejects this. */
7926 typedef int charset[2];
7928 /* SunOS 4.1.1 cc rejects this. */
7929 char const *const *ccp;
7931 /* NEC SVR4.0.2 mips cc rejects this. */
7932 struct point {int x, y;};
7933 static struct point const zero = {0,0};
7934 /* AIX XL C 1.02.0.0 rejects this.
7935 It does not let you subtract one const X* pointer from another in
7936 an arm of an if-expression whose if-part is not a constant
7938 const char *g = "string";
7939 ccp = &g + (g ? g-g : 0);
7940 /* HPUX 7.0 cc rejects these. */
7943 ccp = (char const *const *) p;
7944 { /* SCO 3.2v4 cc rejects this. */
7946 char const *s = 0 ? (char *) 0 : (char const *) 0;
7951 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7953 const int *foo = &x[0];
7956 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7957 typedef const int *iptr;
7961 { /* AIX XL C 1.02.0.0 rejects this saying
7962 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7963 struct s { int j; const int *ap[3]; };
7964 struct s *b; b->j = 5;
7966 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7970 return !x[0] && !zero.x;
7977 rm -f conftest.$ac_objext
7978 if { (ac_try="$ac_compile"
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_compile") 2>conftest.er1
7986 grep -v '^ *+' conftest.er1 >conftest.err
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7992 { (case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_try") 2>&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try='test -s conftest.$ac_objext'
8002 { (case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_try") 2>&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8022 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8023 if test $ac_cv_c_const = no; then
8025 cat >>confdefs.h <<\_ACEOF
8037 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8038 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8039 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8040 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <sys/types.h>
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1 >conftest.err
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8077 { (case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_try") 2>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; } &&
8086 { ac_try='test -s conftest.$ac_objext'
8087 { (case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_try") 2>&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 eval "$as_ac_Header=yes"
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 eval "$as_ac_Header=no"
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 ac_res=`eval echo '${'$as_ac_Header'}'`
8107 { echo "$as_me:$LINENO: result: $ac_res" >&5
8108 echo "${ECHO_T}$ac_res" >&6; }
8109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8110 cat >>confdefs.h <<_ACEOF
8111 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8114 ac_header_dirent=$ac_hdr; break
8118 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8119 if test $ac_header_dirent = dirent.h; then
8120 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8121 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8122 if test "${ac_cv_search_opendir+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 ac_func_search_save_LIBS=$LIBS
8126 cat >conftest.$ac_ext <<_ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8133 /* Override any GCC internal prototype to avoid an error.
8134 Use char because int might match the return type of a GCC
8135 builtin and then its argument prototype would still apply. */
8148 for ac_lib in '' dir; do
8149 if test -z "$ac_lib"; then
8150 ac_res="none required"
8153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8155 rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (ac_try="$ac_link"
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_link") 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest$ac_exeext'
8180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_try") 2>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_search_opendir=$ac_res
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8197 rm -f core conftest.err conftest.$ac_objext \
8199 if test "${ac_cv_search_opendir+set}" = set; then
8203 if test "${ac_cv_search_opendir+set}" = set; then
8206 ac_cv_search_opendir=no
8209 LIBS=$ac_func_search_save_LIBS
8211 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8212 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8213 ac_res=$ac_cv_search_opendir
8214 if test "$ac_res" != no; then
8215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8220 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8221 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8222 if test "${ac_cv_search_opendir+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 ac_func_search_save_LIBS=$LIBS
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8233 /* Override any GCC internal prototype to avoid an error.
8234 Use char because int might match the return type of a GCC
8235 builtin and then its argument prototype would still apply. */
8248 for ac_lib in '' x; do
8249 if test -z "$ac_lib"; then
8250 ac_res="none required"
8253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8255 rm -f conftest.$ac_objext conftest$ac_exeext
8256 if { (ac_try="$ac_link"
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_link") 2>conftest.er1
8264 grep -v '^ *+' conftest.er1 >conftest.err
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8270 { (case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_try") 2>&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try='test -s conftest$ac_exeext'
8280 { (case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_try") 2>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 ac_cv_search_opendir=$ac_res
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8297 rm -f core conftest.err conftest.$ac_objext \
8299 if test "${ac_cv_search_opendir+set}" = set; then
8303 if test "${ac_cv_search_opendir+set}" = set; then
8306 ac_cv_search_opendir=no
8309 LIBS=$ac_func_search_save_LIBS
8311 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8312 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8313 ac_res=$ac_cv_search_opendir
8314 if test "$ac_res" != no; then
8315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8322 for ac_header in dlfcn.h
8324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 ac_res=`eval echo '${'$as_ac_Header'}'`
8332 { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8335 # Is the header compilable?
8336 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 #include <$ac_header>
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362 { (case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_try") 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest.$ac_objext'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 ac_header_compiler=yes
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8386 ac_header_compiler=no
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8391 echo "${ECHO_T}$ac_header_compiler" >&6; }
8393 # Is the header present?
8394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 #include <$ac_header>
8404 if { (ac_try="$ac_cpp conftest.$ac_ext"
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8412 grep -v '^ *+' conftest.er1 >conftest.err
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } >/dev/null; then
8417 if test -s conftest.err; then
8418 ac_cpp_err=$ac_c_preproc_warn_flag
8419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8426 if test -z "$ac_cpp_err"; then
8427 ac_header_preproc=yes
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 ac_header_preproc=no
8435 rm -f conftest.err conftest.$ac_ext
8436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8437 echo "${ECHO_T}$ac_header_preproc" >&6; }
8439 # So? What about this header?
8440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8446 ac_header_preproc=yes
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8462 ## ------------------------------------ ##
8463 ## Report this to http://llvm.org/bugs/ ##
8464 ## ------------------------------------ ##
8466 ) | sed "s/^/$as_me: WARNING: /" >&2
8469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 eval "$as_ac_Header=\$ac_header_preproc"
8476 ac_res=`eval echo '${'$as_ac_Header'}'`
8477 { echo "$as_me:$LINENO: result: $ac_res" >&5
8478 echo "${ECHO_T}$ac_res" >&6; }
8481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8482 cat >>confdefs.h <<_ACEOF
8483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8490 # Check whether --enable-ltdl-install was given.
8491 if test "${enable_ltdl_install+set}" = set; then
8492 enableval=$enable_ltdl_install;
8498 if test x"${enable_ltdl_install-no}" != xno; then
8500 INSTALL_LTDL_FALSE='#'
8502 INSTALL_LTDL_TRUE='#'
8508 if test x"${enable_ltdl_convenience-no}" != xno; then
8509 CONVENIENCE_LTDL_TRUE=
8510 CONVENIENCE_LTDL_FALSE='#'
8512 CONVENIENCE_LTDL_TRUE='#'
8513 CONVENIENCE_LTDL_FALSE=
8517 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8518 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8520 libname_spec='lib$name'
8528 shlibpath_overrides_runpath=unknown
8530 dynamic_linker="$host_os ld.so"
8531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8532 if test "$GCC" = yes; then
8533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8534 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8535 # if the path contains ";" then we assume it to be the separator
8536 # otherwise default to the standard path separator (i.e. ":") - it is
8537 # assumed that no part of a normal pathname contains ";" but that should
8538 # okay in the real world where ";" in dirpaths is itself problematic.
8539 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8546 need_lib_prefix=unknown
8547 hardcode_into_libs=no
8549 # when you set need_version to no, make sure it does not cause -set_version
8550 # flags to be left without arguments
8551 need_version=unknown
8556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8557 shlibpath_var=LIBPATH
8559 # AIX 3 has no versioning support, so we append a major version to the name.
8560 soname_spec='${libname}${release}${shared_ext}$major'
8567 hardcode_into_libs=yes
8568 if test "$host_cpu" = ia64; then
8569 # AIX 5 supports IA64
8570 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8571 shlibpath_var=LD_LIBRARY_PATH
8573 # With GCC up to 2.95.x, collect2 would create an import file
8574 # for dependence libraries. The import file would start with
8575 # the line `#! .'. This would cause the generated library to
8576 # depend on `.', always an invalid library. This was fixed in
8577 # development snapshots of GCC prior to 3.0.
8579 aix4 | aix4.[01] | aix4.[01].*)
8580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8582 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8589 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8590 # soname into executable. Probably we can add versioning support to
8591 # collect2, so additional links can be useful in future.
8592 if test "$aix_use_runtimelinking" = yes; then
8593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8594 # instead of lib<name>.a to let people know that these are not
8595 # typical AIX shared libraries.
8596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8598 # We preserve .a as extension for shared libraries through AIX4.2
8599 # and later when we are not doing run time linking.
8600 library_names_spec='${libname}${release}.a $libname.a'
8601 soname_spec='${libname}${release}${shared_ext}$major'
8603 shlibpath_var=LIBPATH
8608 library_names_spec='$libname.ixlibrary $libname.a'
8609 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8610 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'
8614 library_names_spec='${libname}${shared_ext}'
8615 dynamic_linker="$host_os ld.so"
8616 shlibpath_var=LIBRARY_PATH
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 soname_spec='${libname}${release}${shared_ext}$major'
8624 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8627 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8628 # the default ld.so.conf also contains /usr/contrib/lib and
8629 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8630 # libtool to hard-code these into programs
8633 cygwin* | mingw* | pw32*)
8634 version_type=windows
8639 case $GCC,$host_os in
8640 yes,cygwin* | yes,mingw* | yes,pw32*)
8641 library_names_spec='$libname.dll.a'
8642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8643 postinstall_cmds='base_file=`basename \${file}`~
8644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8645 dldir=$destdir/`dirname \$dlpath`~
8646 test -d \$dldir || mkdir -p \$dldir~
8647 $install_prog $dir/$dlname \$dldir/$dlname~
8648 chmod a+x \$dldir/$dlname'
8649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8650 dlpath=$dir/\$dldll~
8652 shlibpath_overrides_runpath=yes
8656 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8657 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8658 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8661 # MinGW DLLs use traditional 'lib' prefix
8662 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8663 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8664 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8665 # It is most probably a Windows format PATH printed by
8666 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8667 # path with ; separators, and with drive letters. We can handle the
8668 # drive letters (cygwin fileutils understands them), so leave them,
8669 # especially as we might pass files found there to a mingw objdump,
8670 # which wouldn't understand a cygwinified path. Ahh.
8671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8677 # pw32 DLLs use 'pw' prefix rather than 'lib'
8678 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8684 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8687 dynamic_linker='Win32 ld.exe'
8688 # FIXME: first we should search . and the directory the executable is in
8692 darwin* | rhapsody*)
8693 dynamic_linker="$host_os dyld"
8697 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8698 soname_spec='${libname}${release}${major}$shared_ext'
8699 shlibpath_overrides_runpath=yes
8700 shlibpath_var=DYLD_LIBRARY_PATH
8701 shrext_cmds='.dylib'
8702 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8703 if test "$GCC" = yes; then
8704 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"`
8706 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8708 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8716 soname_spec='${libname}${release}${shared_ext}$major'
8717 shlibpath_var=LD_LIBRARY_PATH
8728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8729 soname_spec='${libname}${release}${shared_ext}$major'
8730 shlibpath_var=LD_LIBRARY_PATH
8731 shlibpath_overrides_runpath=no
8732 hardcode_into_libs=yes
8733 dynamic_linker='GNU ld.so'
8736 freebsd* | dragonfly*)
8737 # DragonFly does not have aout. When/if they implement a new
8738 # versioning mechanism, adjust this.
8739 if test -x /usr/bin/objformat; then
8740 objformat=`/usr/bin/objformat`
8743 freebsd[123].*) objformat=aout ;;
8747 version_type=freebsd-$objformat
8748 case $version_type in
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8759 shlibpath_var=LD_LIBRARY_PATH
8762 shlibpath_overrides_runpath=yes
8764 freebsd3.[01]* | freebsdelf3.[01]*)
8765 shlibpath_overrides_runpath=yes
8766 hardcode_into_libs=yes
8768 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8769 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8770 shlibpath_overrides_runpath=no
8771 hardcode_into_libs=yes
8773 freebsd*) # from 4.6 on
8774 shlibpath_overrides_runpath=yes
8775 hardcode_into_libs=yes
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8785 soname_spec='${libname}${release}${shared_ext}$major'
8786 shlibpath_var=LD_LIBRARY_PATH
8787 hardcode_into_libs=yes
8790 hpux9* | hpux10* | hpux11*)
8791 # Give a soname corresponding to the major version so that dld.sl refuses to
8792 # link against other versions.
8799 hardcode_into_libs=yes
8800 dynamic_linker="$host_os dld.so"
8801 shlibpath_var=LD_LIBRARY_PATH
8802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 if test "X$HPUX_IA64_MODE" = X32; then
8806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8814 hardcode_into_libs=yes
8815 dynamic_linker="$host_os dld.sl"
8816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8825 dynamic_linker="$host_os dld.sl"
8826 shlibpath_var=SHLIB_PATH
8827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8832 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8833 postinstall_cmds='chmod 555 $lib'
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 shlibpath_overrides_runpath=no
8845 hardcode_into_libs=yes
8848 irix5* | irix6* | nonstopux*)
8850 nonstopux*) version_type=nonstopux ;;
8852 if test "$lt_cv_prog_gnu_ld" = yes; then
8860 soname_spec='${libname}${release}${shared_ext}$major'
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8863 irix5* | nonstopux*)
8867 case $LD in # libtool.m4 will add one of these switches to LD
8868 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8869 libsuff= shlibsuff= libmagic=32-bit;;
8870 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8871 libsuff=32 shlibsuff=N32 libmagic=N32;;
8872 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8873 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8874 *) libsuff= shlibsuff= libmagic=never-match;;
8878 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8879 shlibpath_overrides_runpath=no
8880 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8881 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8882 hardcode_into_libs=yes
8885 # No shared lib support for Linux oldld, aout, or coff.
8886 linux*oldld* | linux*aout* | linux*coff*)
8890 # This must be Linux ELF.
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8898 shlibpath_var=LD_LIBRARY_PATH
8899 shlibpath_overrides_runpath=no
8900 # This implies no fast_install, which is unacceptable.
8901 # Some rework will be needed to allow for fast_install
8902 # before this can be enabled.
8903 hardcode_into_libs=yes
8905 # Append ld.so.conf contents to the search path
8906 if test -f /etc/ld.so.conf; then
8907 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' ' '`
8908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8911 # We used to test for /lib/ld.so.1 and disable shared libraries on
8912 # powerpc, because MkLinux only supported shared libraries with the
8913 # GNU dynamic linker. Since this was broken with cross compilers,
8914 # most powerpc-linux boxes support dynamic linking these days and
8915 # people can always --disable-shared, the test was removed, and we
8916 # assume the GNU/Linux dynamic linker is in use.
8917 dynamic_linker='GNU/Linux ld.so'
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 shlibpath_var=LD_LIBRARY_PATH
8927 shlibpath_overrides_runpath=no
8928 hardcode_into_libs=yes
8929 dynamic_linker='GNU ld.so'
8936 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8939 dynamic_linker='NetBSD (a.out) ld.so'
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 dynamic_linker='NetBSD ld.elf_so'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=yes
8947 hardcode_into_libs=yes
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=yes
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 shlibpath_var=LD_LIBRARY_PATH
8964 shlibpath_overrides_runpath=yes
8969 sys_lib_dlsearch_path_spec="/usr/lib"
8971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8973 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8974 *) need_version=no ;;
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8981 openbsd2.[89] | openbsd2.[89].*)
8982 shlibpath_overrides_runpath=no
8985 shlibpath_overrides_runpath=yes
8989 shlibpath_overrides_runpath=yes
8994 libname_spec='$name'
8997 library_names_spec='$libname${shared_ext} $libname.a'
8998 dynamic_linker='OS/2 ld.exe'
8999 shlibpath_var=LIBPATH
9002 osf3* | osf4* | osf5*)
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=yes
9021 hardcode_into_libs=yes
9022 # ldd complains unless libraries are executable
9023 postinstall_cmds='chmod +x $lib'
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9029 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9032 if test "$with_gnu_ld" = yes; then
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 case $host_vendor in
9045 shlibpath_overrides_runpath=no
9047 export_dynamic_flag_spec='${wl}-Blargedynsym'
9048 runpath_var=LD_RUN_PATH
9056 shlibpath_overrides_runpath=no
9057 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9063 if test -d /usr/nec ;then
9065 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9066 soname_spec='$libname${shared_ext}.$major'
9067 shlibpath_var=LD_LIBRARY_PATH
9071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9072 version_type=freebsd-elf
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 hardcode_into_libs=yes
9079 if test "$with_gnu_ld" = yes; then
9080 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9081 shlibpath_overrides_runpath=no
9083 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9084 shlibpath_overrides_runpath=yes
9087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9091 sys_lib_dlsearch_path_spec='/usr/lib'
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 shlibpath_var=LD_LIBRARY_PATH
9105 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9106 echo "${ECHO_T}$dynamic_linker" >&6; }
9107 test "$dynamic_linker" = no && can_build_shared=no
9109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9110 if test "$GCC" = yes; then
9111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9115 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9116 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9117 if test "${libltdl_cv_shlibext+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 eval libltdl_cv_shlibext=$shrext_cmds
9125 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9126 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9127 if test -n "$libltdl_cv_shlibext"; then
9129 cat >>confdefs.h <<_ACEOF
9130 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9136 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9137 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9138 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 libltdl_cv_shlibpath_var="$shlibpath_var"
9143 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9144 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9145 if test -n "$libltdl_cv_shlibpath_var"; then
9147 cat >>confdefs.h <<_ACEOF
9148 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9154 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9155 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9156 if test "${libltdl_cv_sys_search_path+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9161 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9162 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9163 if test -n "$libltdl_cv_sys_search_path"; then
9165 for dir in $libltdl_cv_sys_search_path; do
9166 if test -z "$sys_search_path"; then
9167 sys_search_path="$dir"
9169 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9173 cat >>confdefs.h <<_ACEOF
9174 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9179 { echo "$as_me:$LINENO: checking for objdir" >&5
9180 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9181 if test "${libltdl_cv_objdir+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 libltdl_cv_objdir="$objdir"
9185 if test -n "$objdir"; then
9188 rm -f .libs 2>/dev/null
9189 mkdir .libs 2>/dev/null
9190 if test -d .libs; then
9191 libltdl_cv_objdir=.libs
9193 # MS-DOS does not allow filenames that begin with a dot.
9194 libltdl_cv_objdir=_libs
9196 rmdir .libs 2>/dev/null
9200 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9201 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9203 cat >>confdefs.h <<_ACEOF
9204 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9212 # Check for command to grab the raw symbol name followed by C symbol from nm.
9213 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9214 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9215 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 # These are sane defaults that work on at least a few old systems.
9220 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9222 # Character class describing NM global symbol codes.
9223 symcode='[BCDEGRST]'
9225 # Regexp to match symbols that can be accessed directly from C.
9226 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9228 # Transform an extracted symbol line into a proper C declaration
9229 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9231 # Transform an extracted symbol line into symbol name and symbol address
9232 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'"
9234 # Define system-specific variables.
9239 cygwin* | mingw* | pw32*)
9240 symcode='[ABCDGISTW]'
9242 hpux*) # Its linker distinguishes data from code symbols
9243 if test "$host_cpu" = ia64; then
9244 symcode='[ABCDEGRST]'
9246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9247 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'"
9250 if test "$host_cpu" = ia64; then
9251 symcode='[ABCDGIRSTW]'
9252 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9253 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'"
9257 symcode='[BCDEGRST]'
9260 symcode='[BCDEGQRST]'
9271 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9279 # Handle CRLF in mingw tool chain
9283 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9287 # If we're using GNU nm, then use its standard symbol codes.
9288 case `$NM -V 2>&1` in
9289 *GNU* | *'with BFD'*)
9290 symcode='[ABCDGIRSTW]' ;;
9293 # Try without a prefix undercore, then with it.
9294 for ac_symprfx in "" "_"; do
9296 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9297 symxfrm="\\1 $ac_symprfx\\2 \\2"
9299 # Write the raw and C identifiers.
9300 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9302 # Check to see that the pipe works correctly.
9306 cat > conftest.$ac_ext <<EOF
9311 void nm_test_func(){}
9315 int main(){nm_test_var='a';nm_test_func();return(0);}
9318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9319 (eval $ac_compile) 2>&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; then
9323 # Now try to grab the symbols.
9325 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9326 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && test -s "$nlist"; then
9330 # Try sorting and uniquifying the output.
9331 if sort "$nlist" | uniq > "$nlist"T; then
9332 mv -f "$nlist"T "$nlist"
9337 # Make sure that we snagged all the symbols we need.
9338 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9339 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9340 cat <<EOF > conftest.$ac_ext
9346 # Now generate the symbol file.
9347 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9349 cat <<EOF >> conftest.$ac_ext
9350 #if defined (__STDC__) && __STDC__
9351 # define lt_ptr_t void *
9353 # define lt_ptr_t char *
9357 /* The mapping between symbol names and symbols. */
9362 lt_preloaded_symbols[] =
9365 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9366 cat <<\EOF >> conftest.$ac_ext
9374 # Now try linking the two files.
9375 mv conftest.$ac_objext conftstm.$ac_objext
9376 lt_save_LIBS="$LIBS"
9377 lt_save_CFLAGS="$CFLAGS"
9378 LIBS="conftstm.$ac_objext"
9379 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381 (eval $ac_link) 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9387 LIBS="$lt_save_LIBS"
9388 CFLAGS="$lt_save_CFLAGS"
9390 echo "cannot find nm_test_func in $nlist" >&5
9393 echo "cannot find nm_test_var in $nlist" >&5
9396 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9399 echo "$progname: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9402 rm -f conftest* conftst*
9404 # Do not use the global_symbol_pipe unless it works.
9405 if test "$pipe_works" = yes; then
9408 lt_cv_sys_global_symbol_pipe=
9414 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9415 lt_cv_sys_global_symbol_to_cdecl=
9417 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9418 { echo "$as_me:$LINENO: result: failed" >&5
9419 echo "${ECHO_T}failed" >&6; }
9421 { echo "$as_me:$LINENO: result: ok" >&5
9422 echo "${ECHO_T}ok" >&6; }
9426 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9427 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9428 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9432 libltdl_cv_preloaded_symbols=yes
9434 libltdl_cv_preloaded_symbols=no
9438 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9439 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9440 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9442 cat >>confdefs.h <<\_ACEOF
9443 #define HAVE_PRELOADED_SYMBOLS 1
9451 ac_cpp='$CPP $CPPFLAGS'
9452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9457 { echo "$as_me:$LINENO: checking for shl_load" >&5
9458 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9459 if test "${ac_cv_func_shl_load+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9468 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9470 #define shl_load innocuous_shl_load
9472 /* System header to define __stub macros and hopefully few prototypes,
9473 which can conflict with char shl_load (); below.
9474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9475 <limits.h> exists even on freestanding compilers. */
9478 # include <limits.h>
9480 # include <assert.h>
9485 /* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9492 /* The GNU C library defines this for functions which it implements
9493 to always fail with ENOSYS. Some functions are actually named
9494 something starting with __ and the normal name is an alias. */
9495 #if defined __stub_shl_load || defined __stub___shl_load
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (ac_try="$ac_link"
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_link") 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9522 { (case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_try") 2>&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest$ac_exeext'
9532 { (case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_try") 2>&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_func_shl_load=yes
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ac_cv_func_shl_load=no
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9552 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9553 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9554 if test $ac_cv_func_shl_load = yes; then
9556 cat >>confdefs.h <<\_ACEOF
9557 #define HAVE_SHL_LOAD 1
9561 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9562 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9563 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 ac_check_lib_save_LIBS=$LIBS
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_link") 2>conftest.er1
9599 grep -v '^ *+' conftest.er1 >conftest.err
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9605 { (case "(($ac_try" in
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_try") 2>&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; } &&
9614 { ac_try='test -s conftest$ac_exeext'
9615 { (case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_try") 2>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 ac_cv_lib_dld_shl_load=yes
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_lib_dld_shl_load=no
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9637 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9638 if test $ac_cv_lib_dld_shl_load = yes; then
9640 cat >>confdefs.h <<\_ACEOF
9641 #define HAVE_SHL_LOAD 1
9644 LIBADD_DL="$LIBADD_DL -ldld"
9646 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9647 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9648 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 ac_check_lib_save_LIBS=$LIBS
9653 cat >conftest.$ac_ext <<_ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9660 /* Override any GCC internal prototype to avoid an error.
9661 Use char because int might match the return type of a GCC
9662 builtin and then its argument prototype would still apply. */
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (ac_try="$ac_link"
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_link") 2>conftest.er1
9684 grep -v '^ *+' conftest.er1 >conftest.err
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9690 { (case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_try") 2>&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest$ac_exeext'
9700 { (case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_try") 2>&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_cv_lib_dl_dlopen=yes
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9714 ac_cv_lib_dl_dlopen=no
9717 rm -f core conftest.err conftest.$ac_objext \
9718 conftest$ac_exeext conftest.$ac_ext
9719 LIBS=$ac_check_lib_save_LIBS
9721 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9722 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9723 if test $ac_cv_lib_dl_dlopen = yes; then
9725 cat >>confdefs.h <<\_ACEOF
9726 #define HAVE_LIBDL 1
9729 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9731 cat >conftest.$ac_ext <<_ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_link") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9764 { (case "(($ac_try" in
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_try") 2>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_try") 2>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9784 cat >>confdefs.h <<\_ACEOF
9785 #define HAVE_LIBDL 1
9787 libltdl_cv_func_dlopen="yes"
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9793 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9794 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 ac_check_lib_save_LIBS=$LIBS
9799 cat >conftest.$ac_ext <<_ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9806 /* Override any GCC internal prototype to avoid an error.
9807 Use char because int might match the return type of a GCC
9808 builtin and then its argument prototype would still apply. */
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 ac_cv_lib_svld_dlopen=yes
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 ac_cv_lib_svld_dlopen=no
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 LIBS=$ac_check_lib_save_LIBS
9867 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9868 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9869 if test $ac_cv_lib_svld_dlopen = yes; then
9871 cat >>confdefs.h <<\_ACEOF
9872 #define HAVE_LIBDL 1
9875 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9877 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9878 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9879 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 ac_check_lib_save_LIBS=$LIBS
9884 cat >conftest.$ac_ext <<_ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any GCC internal prototype to avoid an error.
9892 Use char because int might match the return type of a GCC
9893 builtin and then its argument prototype would still apply. */
9906 rm -f conftest.$ac_objext conftest$ac_exeext
9907 if { (ac_try="$ac_link"
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_link") 2>conftest.er1
9915 grep -v '^ *+' conftest.er1 >conftest.err
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921 { (case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_try") 2>&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest$ac_exeext'
9931 { (case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_try") 2>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_lib_dld_dld_link=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_lib_dld_dld_link=no
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9954 if test $ac_cv_lib_dld_dld_link = yes; then
9956 cat >>confdefs.h <<\_ACEOF
9960 LIBADD_DL="$LIBADD_DL -ldld"
9962 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9963 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9964 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9975 #define _dyld_func_lookup innocuous__dyld_func_lookup
9977 /* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char _dyld_func_lookup (); below.
9979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980 <limits.h> exists even on freestanding compilers. */
9983 # include <limits.h>
9985 # include <assert.h>
9988 #undef _dyld_func_lookup
9990 /* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9996 char _dyld_func_lookup ();
9997 /* The GNU C library defines this for functions which it implements
9998 to always fail with ENOSYS. Some functions are actually named
9999 something starting with __ and the normal name is an alias. */
10000 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10007 return _dyld_func_lookup ();
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_func__dyld_func_lookup=yes
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_func__dyld_func_lookup=no
10054 rm -f core conftest.err conftest.$ac_objext \
10055 conftest$ac_exeext conftest.$ac_ext
10057 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10058 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10059 if test $ac_cv_func__dyld_func_lookup = yes; then
10061 cat >>confdefs.h <<\_ACEOF
10062 #define HAVE_DYLD 1
10076 rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10088 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10090 lt_save_LIBS="$LIBS"
10091 LIBS="$LIBS $LIBADD_DL"
10093 for ac_func in dlerror
10095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 cat >conftest.$ac_ext <<_ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10109 #define $ac_func innocuous_$ac_func
10111 /* System header to define __stub macros and hopefully few prototypes,
10112 which can conflict with char $ac_func (); below.
10113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10114 <limits.h> exists even on freestanding compilers. */
10117 # include <limits.h>
10119 # include <assert.h>
10124 /* Override any GCC internal prototype to avoid an error.
10125 Use char because int might match the return type of a GCC
10126 builtin and then its argument prototype would still apply. */
10131 /* The GNU C library defines this for functions which it implements
10132 to always fail with ENOSYS. Some functions are actually named
10133 something starting with __ and the normal name is an alias. */
10134 #if defined __stub_$ac_func || defined __stub___$ac_func
10141 return $ac_func ();
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (ac_try="$ac_link"
10148 case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_link") 2>conftest.er1
10155 grep -v '^ *+' conftest.er1 >conftest.err
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10161 { (case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_try") 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; } &&
10170 { ac_try='test -s conftest$ac_exeext'
10171 { (case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_try") 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 eval "$as_ac_var=yes"
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 eval "$as_ac_var=no"
10188 rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10191 ac_res=`eval echo '${'$as_ac_var'}'`
10192 { echo "$as_me:$LINENO: result: $ac_res" >&5
10193 echo "${ECHO_T}$ac_res" >&6; }
10194 if test `eval echo '${'$as_ac_var'}'` = yes; then
10195 cat >>confdefs.h <<_ACEOF
10196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10202 LIBS="$lt_save_LIBS"
10205 ac_cpp='$CPP $CPPFLAGS'
10206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10212 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10213 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10214 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 ac_cv_sys_symbol_underscore=no
10218 cat > conftest.$ac_ext <<EOF
10219 void nm_test_func(){}
10220 int main(){nm_test_func;return 0;}
10222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10223 (eval $ac_compile) 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; then
10227 # Now try to grab the symbols.
10228 ac_nlist=conftest.nm
10229 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10230 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } && test -s "$ac_nlist"; then
10234 # See whether the symbols have a leading underscore.
10235 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10236 ac_cv_sys_symbol_underscore=yes
10238 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10241 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10245 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10248 echo "configure: failed program was:" >&5
10254 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10255 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10258 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10259 if test x"$libltdl_cv_func_dlopen" = xyes ||
10260 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10261 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10262 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10263 if test "${libltdl_cv_need_uscore+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 libltdl_cv_need_uscore=unknown
10268 LIBS="$LIBS $LIBADD_DL"
10269 if test "$cross_compiling" = yes; then :
10270 libltdl_cv_need_uscore=cross
10272 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10273 lt_status=$lt_dlunknown
10274 cat > conftest.$ac_ext <<EOF
10275 #line 10275 "configure"
10276 #include "confdefs.h"
10285 # define LT_DLGLOBAL RTLD_GLOBAL
10288 # define LT_DLGLOBAL DL_GLOBAL
10290 # define LT_DLGLOBAL 0
10294 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10295 find out it does not work in some platform. */
10296 #ifndef LT_DLLAZY_OR_NOW
10298 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10301 # define LT_DLLAZY_OR_NOW DL_LAZY
10304 # define LT_DLLAZY_OR_NOW RTLD_NOW
10307 # define LT_DLLAZY_OR_NOW DL_NOW
10309 # define LT_DLLAZY_OR_NOW 0
10317 extern "C" void exit (int);
10320 void fnord() { int i=42;}
10323 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10324 int status = $lt_dlunknown;
10328 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10329 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10330 /* dlclose (self); */
10338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339 (eval $ac_link) 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10343 (./conftest; exit; ) >&5 2>/dev/null
10345 case x$lt_status in
10346 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10347 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10348 x$lt_dlunknown|x*) ;;
10351 # compilation failed
10360 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10361 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10365 if test x"$libltdl_cv_need_uscore" = xyes; then
10367 cat >>confdefs.h <<\_ACEOF
10368 #define NEED_USCORE 1
10374 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10375 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10376 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 # PORTME does your system automatically load deplibs for dlopen?
10380 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10381 # For now, we just catch OSes we know something about -- in the
10382 # future, we'll try test this programmatically.
10383 libltdl_cv_sys_dlopen_deplibs=unknown
10385 aix3*|aix4.1.*|aix4.2.*)
10386 # Unknown whether this is true for these versions of AIX, but
10387 # we want this `case' here to explicitly catch those versions.
10388 libltdl_cv_sys_dlopen_deplibs=unknown
10391 libltdl_cv_sys_dlopen_deplibs=yes
10394 # Assuming the user has installed a libdl from somewhere, this is true
10395 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10396 libltdl_cv_sys_dlopen_deplibs=yes
10398 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10399 # GNU and its variants, using gnu ld.so (Glibc)
10400 libltdl_cv_sys_dlopen_deplibs=yes
10403 libltdl_cv_sys_dlopen_deplibs=yes
10406 libltdl_cv_sys_dlopen_deplibs=yes
10408 irix[12345]*|irix6.[01]*)
10409 # Catch all versions of IRIX before 6.2, and indicate that we don't
10410 # know how it worked for any of those versions.
10411 libltdl_cv_sys_dlopen_deplibs=unknown
10414 # The case above catches anything before 6.2, and it's known that
10415 # at 6.2 and later dlopen does load deplibs.
10416 libltdl_cv_sys_dlopen_deplibs=yes
10419 libltdl_cv_sys_dlopen_deplibs=yes
10422 libltdl_cv_sys_dlopen_deplibs=yes
10425 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10426 # it did *not* use an RPATH in a shared library to find objects the
10427 # library depends on, so we explicitly say `no'.
10428 libltdl_cv_sys_dlopen_deplibs=no
10430 osf5.0|osf5.0a|osf5.1)
10431 # dlopen *does* load deplibs and with the right loader patch applied
10432 # it even uses RPATH in a shared library to search for shared objects
10433 # that the library depends on, but there's no easy way to know if that
10434 # patch is installed. Since this is the case, all we can really
10435 # say is unknown -- it depends on the patch being installed. If
10436 # it is, this changes to `yes'. Without it, it would be `no'.
10437 libltdl_cv_sys_dlopen_deplibs=unknown
10440 # the two cases above should catch all versions of osf <= 5.1. Read
10441 # the comments above for what we know about them.
10442 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10443 # is used to find them so we can finally say `yes'.
10444 libltdl_cv_sys_dlopen_deplibs=yes
10447 libltdl_cv_sys_dlopen_deplibs=yes
10449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10450 libltdl_cv_sys_dlopen_deplibs=yes
10455 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10456 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10457 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10459 cat >>confdefs.h <<\_ACEOF
10460 #define LTDL_DLOPEN_DEPLIBS 1
10466 for ac_header in argz.h
10468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 ac_res=`eval echo '${'$as_ac_Header'}'`
10476 { echo "$as_me:$LINENO: result: $ac_res" >&5
10477 echo "${ECHO_T}$ac_res" >&6; }
10479 # Is the header compilable?
10480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 $ac_includes_default
10489 #include <$ac_header>
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_compile") 2>conftest.er1
10500 grep -v '^ *+' conftest.er1 >conftest.err
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506 { (case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_try") 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_try") 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_header_compiler=yes
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10530 ac_header_compiler=no
10533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10535 echo "${ECHO_T}$ac_header_compiler" >&6; }
10537 # Is the header present?
10538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10540 cat >conftest.$ac_ext <<_ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546 #include <$ac_header>
10548 if { (ac_try="$ac_cpp conftest.$ac_ext"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10556 grep -v '^ *+' conftest.er1 >conftest.err
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } >/dev/null; then
10561 if test -s conftest.err; then
10562 ac_cpp_err=$ac_c_preproc_warn_flag
10563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10570 if test -z "$ac_cpp_err"; then
10571 ac_header_preproc=yes
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 ac_header_preproc=no
10579 rm -f conftest.err conftest.$ac_ext
10580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10581 echo "${ECHO_T}$ac_header_preproc" >&6; }
10583 # So? What about this header?
10584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10590 ac_header_preproc=yes
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10606 ## ------------------------------------ ##
10607 ## Report this to http://llvm.org/bugs/ ##
10608 ## ------------------------------------ ##
10610 ) | sed "s/^/$as_me: WARNING: /" >&2
10613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 eval "$as_ac_Header=\$ac_header_preproc"
10620 ac_res=`eval echo '${'$as_ac_Header'}'`
10621 { echo "$as_me:$LINENO: result: $ac_res" >&5
10622 echo "${ECHO_T}$ac_res" >&6; }
10625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10635 { echo "$as_me:$LINENO: checking for error_t" >&5
10636 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10637 if test "${ac_cv_type_error_t+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10650 typedef error_t ac__type_new_;
10654 if ((ac__type_new_ *) 0)
10656 if (sizeof (ac__type_new_))
10662 rm -f conftest.$ac_objext
10663 if { (ac_try="$ac_compile"
10664 case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_compile") 2>conftest.er1
10671 grep -v '^ *+' conftest.er1 >conftest.err
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10677 { (case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_try") 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; } &&
10686 { ac_try='test -s conftest.$ac_objext'
10687 { (case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_try") 2>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; }; then
10696 ac_cv_type_error_t=yes
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ac_cv_type_error_t=no
10704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10707 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10708 if test $ac_cv_type_error_t = yes; then
10710 cat >>confdefs.h <<_ACEOF
10711 #define HAVE_ERROR_T 1
10717 cat >>confdefs.h <<\_ACEOF
10718 #define error_t int
10729 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10745 #define $ac_func innocuous_$ac_func
10747 /* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char $ac_func (); below.
10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 <limits.h> exists even on freestanding compilers. */
10753 # include <limits.h>
10755 # include <assert.h>
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10767 /* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770 #if defined __stub_$ac_func || defined __stub___$ac_func
10777 return $ac_func ();
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_link") 2>conftest.er1
10791 grep -v '^ *+' conftest.er1 >conftest.err
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10797 { (case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_try") 2>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest$ac_exeext'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 eval "$as_ac_var=yes"
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 eval "$as_ac_var=no"
10824 rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10827 ac_res=`eval echo '${'$as_ac_var'}'`
10828 { echo "$as_me:$LINENO: result: $ac_res" >&5
10829 echo "${ECHO_T}$ac_res" >&6; }
10830 if test `eval echo '${'$as_ac_var'}'` = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10865 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
10876 { echo "$as_me:$LINENO: result: $ac_res" >&5
10877 echo "${ECHO_T}$ac_res" >&6; }
10879 # Is the header compilable?
10880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 $ac_includes_default
10889 #include <$ac_header>
10891 rm -f conftest.$ac_objext
10892 if { (ac_try="$ac_compile"
10893 case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_compile") 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10906 { (case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_try") 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest.$ac_objext'
10916 { (case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_try") 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_header_compiler=yes
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_header_compiler=no
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10935 echo "${ECHO_T}$ac_header_compiler" >&6; }
10937 # Is the header present?
10938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10940 cat >conftest.$ac_ext <<_ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 #include <$ac_header>
10948 if { (ac_try="$ac_cpp conftest.$ac_ext"
10949 case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10956 grep -v '^ *+' conftest.er1 >conftest.err
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } >/dev/null; then
10961 if test -s conftest.err; then
10962 ac_cpp_err=$ac_c_preproc_warn_flag
10963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10970 if test -z "$ac_cpp_err"; then
10971 ac_header_preproc=yes
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ac_header_preproc=no
10979 rm -f conftest.err conftest.$ac_ext
10980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10981 echo "${ECHO_T}$ac_header_preproc" >&6; }
10983 # So? What about this header?
10984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10990 ac_header_preproc=yes
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11006 ## ------------------------------------ ##
11007 ## Report this to http://llvm.org/bugs/ ##
11008 ## ------------------------------------ ##
11010 ) | sed "s/^/$as_me: WARNING: /" >&2
11013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 eval "$as_ac_Header=\$ac_header_preproc"
11020 ac_res=`eval echo '${'$as_ac_Header'}'`
11021 { echo "$as_me:$LINENO: result: $ac_res" >&5
11022 echo "${ECHO_T}$ac_res" >&6; }
11025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11026 cat >>confdefs.h <<_ACEOF
11027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11038 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 ac_res=`eval echo '${'$as_ac_Header'}'`
11048 { echo "$as_me:$LINENO: result: $ac_res" >&5
11049 echo "${ECHO_T}$ac_res" >&6; }
11051 # Is the header compilable?
11052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11054 cat >conftest.$ac_ext <<_ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11060 $ac_includes_default
11061 #include <$ac_header>
11063 rm -f conftest.$ac_objext
11064 if { (ac_try="$ac_compile"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_compile") 2>conftest.er1
11072 grep -v '^ *+' conftest.er1 >conftest.err
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11078 { (case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_try") 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; } &&
11087 { ac_try='test -s conftest.$ac_objext'
11088 { (case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_try") 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_header_compiler=yes
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_header_compiler=no
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11107 echo "${ECHO_T}$ac_header_compiler" >&6; }
11109 # Is the header present?
11110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 #include <$ac_header>
11120 if { (ac_try="$ac_cpp conftest.$ac_ext"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11128 grep -v '^ *+' conftest.er1 >conftest.err
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } >/dev/null; then
11133 if test -s conftest.err; then
11134 ac_cpp_err=$ac_c_preproc_warn_flag
11135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11142 if test -z "$ac_cpp_err"; then
11143 ac_header_preproc=yes
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ac_header_preproc=no
11151 rm -f conftest.err conftest.$ac_ext
11152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11153 echo "${ECHO_T}$ac_header_preproc" >&6; }
11155 # So? What about this header?
11156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11162 ac_header_preproc=yes
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11178 ## ------------------------------------ ##
11179 ## Report this to http://llvm.org/bugs/ ##
11180 ## ------------------------------------ ##
11182 ) | sed "s/^/$as_me: WARNING: /" >&2
11185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 eval "$as_ac_Header=\$ac_header_preproc"
11192 ac_res=`eval echo '${'$as_ac_Header'}'`
11193 { echo "$as_me:$LINENO: result: $ac_res" >&5
11194 echo "${ECHO_T}$ac_res" >&6; }
11197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11198 cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11208 for ac_header in string.h strings.h
11210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 ac_res=`eval echo '${'$as_ac_Header'}'`
11218 { echo "$as_me:$LINENO: result: $ac_res" >&5
11219 echo "${ECHO_T}$ac_res" >&6; }
11221 # Is the header compilable?
11222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11224 cat >conftest.$ac_ext <<_ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11230 $ac_includes_default
11231 #include <$ac_header>
11233 rm -f conftest.$ac_objext
11234 if { (ac_try="$ac_compile"
11235 case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_compile") 2>conftest.er1
11242 grep -v '^ *+' conftest.er1 >conftest.err
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11248 { (case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_try") 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try='test -s conftest.$ac_objext'
11258 { (case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_try") 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }; then
11267 ac_header_compiler=yes
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11272 ac_header_compiler=no
11275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11277 echo "${ECHO_T}$ac_header_compiler" >&6; }
11279 # Is the header present?
11280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 #include <$ac_header>
11290 if { (ac_try="$ac_cpp conftest.$ac_ext"
11291 case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11298 grep -v '^ *+' conftest.er1 >conftest.err
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } >/dev/null; then
11303 if test -s conftest.err; then
11304 ac_cpp_err=$ac_c_preproc_warn_flag
11305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11312 if test -z "$ac_cpp_err"; then
11313 ac_header_preproc=yes
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_header_preproc=no
11321 rm -f conftest.err conftest.$ac_ext
11322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11323 echo "${ECHO_T}$ac_header_preproc" >&6; }
11325 # So? What about this header?
11326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11332 ac_header_preproc=yes
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11348 ## ------------------------------------ ##
11349 ## Report this to http://llvm.org/bugs/ ##
11350 ## ------------------------------------ ##
11352 ) | sed "s/^/$as_me: WARNING: /" >&2
11355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 eval "$as_ac_Header=\$ac_header_preproc"
11362 ac_res=`eval echo '${'$as_ac_Header'}'`
11363 { echo "$as_me:$LINENO: result: $ac_res" >&5
11364 echo "${ECHO_T}$ac_res" >&6; }
11367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11368 cat >>confdefs.h <<_ACEOF
11369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11379 for ac_func in strchr index
11381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.$ac_ext <<_ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11395 #define $ac_func innocuous_$ac_func
11397 /* System header to define __stub macros and hopefully few prototypes,
11398 which can conflict with char $ac_func (); below.
11399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11400 <limits.h> exists even on freestanding compilers. */
11403 # include <limits.h>
11405 # include <assert.h>
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11417 /* The GNU C library defines this for functions which it implements
11418 to always fail with ENOSYS. Some functions are actually named
11419 something starting with __ and the normal name is an alias. */
11420 #if defined __stub_$ac_func || defined __stub___$ac_func
11427 return $ac_func ();
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (ac_try="$ac_link"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_link") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1 >conftest.err
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest$ac_exeext'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 eval "$as_ac_var=yes"
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 eval "$as_ac_var=no"
11474 rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11477 ac_res=`eval echo '${'$as_ac_var'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480 if test `eval echo '${'$as_ac_var'}'` = yes; then
11481 cat >>confdefs.h <<_ACEOF
11482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11490 for ac_func in strrchr rindex
11492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 cat >conftest.$ac_ext <<_ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11506 #define $ac_func innocuous_$ac_func
11508 /* System header to define __stub macros and hopefully few prototypes,
11509 which can conflict with char $ac_func (); below.
11510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511 <limits.h> exists even on freestanding compilers. */
11514 # include <limits.h>
11516 # include <assert.h>
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11528 /* The GNU C library defines this for functions which it implements
11529 to always fail with ENOSYS. Some functions are actually named
11530 something starting with __ and the normal name is an alias. */
11531 #if defined __stub_$ac_func || defined __stub___$ac_func
11538 return $ac_func ();
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (ac_try="$ac_link"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_link") 2>conftest.er1
11552 grep -v '^ *+' conftest.er1 >conftest.err
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } &&
11557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558 { (case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_try") 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest$ac_exeext'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 eval "$as_ac_var=yes"
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11582 eval "$as_ac_var=no"
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11588 ac_res=`eval echo '${'$as_ac_var'}'`
11589 { echo "$as_me:$LINENO: result: $ac_res" >&5
11590 echo "${ECHO_T}$ac_res" >&6; }
11591 if test `eval echo '${'$as_ac_var'}'` = yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11601 for ac_func in memcpy bcopy
11603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 cat >conftest.$ac_ext <<_ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11617 #define $ac_func innocuous_$ac_func
11619 /* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func (); below.
11621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11622 <limits.h> exists even on freestanding compilers. */
11625 # include <limits.h>
11627 # include <assert.h>
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11639 /* The GNU C library defines this for functions which it implements
11640 to always fail with ENOSYS. Some functions are actually named
11641 something starting with __ and the normal name is an alias. */
11642 #if defined __stub_$ac_func || defined __stub___$ac_func
11649 return $ac_func ();
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (ac_try="$ac_link"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_link") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11669 { (case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest$ac_exeext'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 eval "$as_ac_var=yes"
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 eval "$as_ac_var=no"
11696 rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11699 ac_res=`eval echo '${'$as_ac_var'}'`
11700 { echo "$as_me:$LINENO: result: $ac_res" >&5
11701 echo "${ECHO_T}$ac_res" >&6; }
11702 if test `eval echo '${'$as_ac_var'}'` = yes; then
11703 cat >>confdefs.h <<_ACEOF
11704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11712 for ac_func in memmove strcmp
11714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11728 #define $ac_func innocuous_$ac_func
11730 /* System header to define __stub macros and hopefully few prototypes,
11731 which can conflict with char $ac_func (); below.
11732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11733 <limits.h> exists even on freestanding compilers. */
11736 # include <limits.h>
11738 # include <assert.h>
11743 /* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11750 /* The GNU C library defines this for functions which it implements
11751 to always fail with ENOSYS. Some functions are actually named
11752 something starting with __ and the normal name is an alias. */
11753 #if defined __stub_$ac_func || defined __stub___$ac_func
11760 return $ac_func ();
11765 rm -f conftest.$ac_objext conftest$ac_exeext
11766 if { (ac_try="$ac_link"
11767 case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_link") 2>conftest.er1
11774 grep -v '^ *+' conftest.er1 >conftest.err
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_try") 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 eval "$as_ac_var=yes"
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 eval "$as_ac_var=no"
11807 rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11810 ac_res=`eval echo '${'$as_ac_var'}'`
11811 { echo "$as_me:$LINENO: result: $ac_res" >&5
11812 echo "${ECHO_T}$ac_res" >&6; }
11813 if test `eval echo '${'$as_ac_var'}'` = yes; then
11814 cat >>confdefs.h <<_ACEOF
11815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11824 for ac_func in closedir opendir readdir
11826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 cat >conftest.$ac_ext <<_ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11840 #define $ac_func innocuous_$ac_func
11842 /* System header to define __stub macros and hopefully few prototypes,
11843 which can conflict with char $ac_func (); below.
11844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11845 <limits.h> exists even on freestanding compilers. */
11848 # include <limits.h>
11850 # include <assert.h>
11855 /* Override any GCC internal prototype to avoid an error.
11856 Use char because int might match the return type of a GCC
11857 builtin and then its argument prototype would still apply. */
11862 /* The GNU C library defines this for functions which it implements
11863 to always fail with ENOSYS. Some functions are actually named
11864 something starting with __ and the normal name is an alias. */
11865 #if defined __stub_$ac_func || defined __stub___$ac_func
11872 return $ac_func ();
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (ac_try="$ac_link"
11879 case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_link") 2>conftest.er1
11886 grep -v '^ *+' conftest.er1 >conftest.err
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; } &&
11901 { ac_try='test -s conftest$ac_exeext'
11902 { (case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_try") 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 eval "$as_ac_var=yes"
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 eval "$as_ac_var=no"
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11922 ac_res=`eval echo '${'$as_ac_var'}'`
11923 { echo "$as_me:$LINENO: result: $ac_res" >&5
11924 echo "${ECHO_T}$ac_res" >&6; }
11925 if test `eval echo '${'$as_ac_var'}'` = yes; then
11926 cat >>confdefs.h <<_ACEOF
11927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11935 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11936 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11949 if test "$GCC" != "yes" && test "$ICC" != "yes"
11951 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11952 echo "$as_me: error: gcc|icc required but not found" >&2;}
11953 { (exit 1); exit 1; }; }
11956 if test "$GXX" != "yes" && test "$IXX" != "yes"
11958 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11959 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11960 { (exit 1); exit 1; }; }
11963 if test "$GCC" = "yes"
11965 cat >conftest.$ac_ext <<_ACEOF
11966 #if !defined(__GNUC__) || __GNUC__ < 3
11967 #error Unsupported GCC version
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_compile") 2>conftest.er1
11980 grep -v '^ *+' conftest.er1 >conftest.err
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_try") 2>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12011 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12012 { (exit 1); exit 1; }; }
12015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12018 if test -z "$llvm_cv_gnu_make_command"
12020 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12021 echo "$as_me: error: GNU Make required but not found" >&2;}
12022 { (exit 1); exit 1; }; }
12025 { echo "$as_me:$LINENO: result: ok" >&5
12026 echo "${ECHO_T}ok" >&6; }
12028 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12029 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12030 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12032 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12034 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12036 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12037 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12041 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12042 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12043 if test "${ac_cv_lib_m_sin+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 ac_check_lib_save_LIBS=$LIBS
12048 cat >conftest.$ac_ext <<_ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12055 /* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
12070 rm -f conftest.$ac_objext conftest$ac_exeext
12071 if { (ac_try="$ac_link"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_link") 2>conftest.er1
12079 grep -v '^ *+' conftest.er1 >conftest.err
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_try") 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest$ac_exeext'
12095 { (case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_try") 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_cv_lib_m_sin=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12112 rm -f core conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12114 LIBS=$ac_check_lib_save_LIBS
12116 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12117 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12118 if test $ac_cv_lib_m_sin = yes; then
12119 cat >>confdefs.h <<_ACEOF
12120 #define HAVE_LIBM 1
12127 if test "$llvm_cv_os_type" = "MingW" ; then
12129 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12130 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12131 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 ac_check_lib_save_LIBS=$LIBS
12135 LIBS="-limagehlp $LIBS"
12136 cat >conftest.$ac_ext <<_ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (ac_try="$ac_link"
12154 case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_link") 2>conftest.er1
12161 grep -v '^ *+' conftest.er1 >conftest.err
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12167 { (case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_try") 2>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; } &&
12176 { ac_try='test -s conftest$ac_exeext'
12177 { (case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_try") 2>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 ac_cv_lib_imagehlp_main=yes
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12191 ac_cv_lib_imagehlp_main=no
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12198 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12199 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12200 if test $ac_cv_lib_imagehlp_main = yes; then
12201 cat >>confdefs.h <<_ACEOF
12202 #define HAVE_LIBIMAGEHLP 1
12205 LIBS="-limagehlp $LIBS"
12210 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12211 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12212 if test "${ac_cv_lib_psapi_main+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-lpsapi $LIBS"
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (ac_try="$ac_link"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_link") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267 ac_cv_lib_psapi_main=yes
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_cv_lib_psapi_main=no
12275 rm -f core conftest.err conftest.$ac_objext \
12276 conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12279 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12280 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12281 if test $ac_cv_lib_psapi_main = yes; then
12282 cat >>confdefs.h <<_ACEOF
12283 #define HAVE_LIBPSAPI 1
12286 LIBS="-lpsapi $LIBS"
12292 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12293 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12294 if test "${ac_cv_search_dlopen+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 ac_func_search_save_LIBS=$LIBS
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12305 /* Override any GCC internal prototype to avoid an error.
12306 Use char because int might match the return type of a GCC
12307 builtin and then its argument prototype would still apply. */
12320 for ac_lib in '' dl; do
12321 if test -z "$ac_lib"; then
12322 ac_res="none required"
12325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (ac_try="$ac_link"
12329 case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_link") 2>conftest.er1
12336 grep -v '^ *+' conftest.er1 >conftest.err
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12342 { (case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_try") 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_try") 2>&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_search_dlopen=$ac_res
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12369 rm -f core conftest.err conftest.$ac_objext \
12371 if test "${ac_cv_search_dlopen+set}" = set; then
12375 if test "${ac_cv_search_dlopen+set}" = set; then
12378 ac_cv_search_dlopen=no
12380 rm conftest.$ac_ext
12381 LIBS=$ac_func_search_save_LIBS
12383 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12384 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12385 ac_res=$ac_cv_search_dlopen
12386 if test "$ac_res" != no; then
12387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_DLOPEN 1
12394 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12395 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12399 if test "$llvm_cv_enable_libffi" = "yes" ; then
12400 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12401 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12402 if test "${ac_cv_search_ffi_call+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 ac_func_search_save_LIBS=$LIBS
12406 cat >conftest.$ac_ext <<_ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12413 /* Override any GCC internal prototype to avoid an error.
12414 Use char because int might match the return type of a GCC
12415 builtin and then its argument prototype would still apply. */
12423 return ffi_call ();
12428 for ac_lib in '' ffi; do
12429 if test -z "$ac_lib"; then
12430 ac_res="none required"
12433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (ac_try="$ac_link"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_link") 2>conftest.er1
12444 grep -v '^ *+' conftest.er1 >conftest.err
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_try") 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_cv_search_ffi_call=$ac_res
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12477 rm -f core conftest.err conftest.$ac_objext \
12479 if test "${ac_cv_search_ffi_call+set}" = set; then
12483 if test "${ac_cv_search_ffi_call+set}" = set; then
12486 ac_cv_search_ffi_call=no
12488 rm conftest.$ac_ext
12489 LIBS=$ac_func_search_save_LIBS
12491 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12492 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12493 ac_res=$ac_cv_search_ffi_call
12494 if test "$ac_res" != no; then
12495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12497 cat >>confdefs.h <<\_ACEOF
12498 #define HAVE_FFI_CALL 1
12502 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12503 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12504 { (exit 1); exit 1; }; }
12509 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12510 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12511 if test "${ac_cv_search_mallinfo+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 ac_func_search_save_LIBS=$LIBS
12515 cat >conftest.$ac_ext <<_ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12522 /* Override any GCC internal prototype to avoid an error.
12523 Use char because int might match the return type of a GCC
12524 builtin and then its argument prototype would still apply. */
12532 return mallinfo ();
12537 for ac_lib in '' malloc; do
12538 if test -z "$ac_lib"; then
12539 ac_res="none required"
12542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12544 rm -f conftest.$ac_objext conftest$ac_exeext
12545 if { (ac_try="$ac_link"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_link") 2>conftest.er1
12553 grep -v '^ *+' conftest.er1 >conftest.err
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12559 { (case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_try") 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } &&
12568 { ac_try='test -s conftest$ac_exeext'
12569 { (case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_try") 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 ac_cv_search_mallinfo=$ac_res
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12586 rm -f core conftest.err conftest.$ac_objext \
12588 if test "${ac_cv_search_mallinfo+set}" = set; then
12592 if test "${ac_cv_search_mallinfo+set}" = set; then
12595 ac_cv_search_mallinfo=no
12597 rm conftest.$ac_ext
12598 LIBS=$ac_func_search_save_LIBS
12600 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12601 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12602 ac_res=$ac_cv_search_mallinfo
12603 if test "$ac_res" != no; then
12604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_MALLINFO 1
12613 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12615 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12616 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12617 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 ac_check_lib_save_LIBS=$LIBS
12621 LIBS="-lpthread $LIBS"
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 /* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
12635 char pthread_mutex_init ();
12639 return pthread_mutex_init ();
12644 rm -f conftest.$ac_objext conftest$ac_exeext
12645 if { (ac_try="$ac_link"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_link") 2>conftest.er1
12653 grep -v '^ *+' conftest.er1 >conftest.err
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659 { (case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_try") 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; } &&
12668 { ac_try='test -s conftest$ac_exeext'
12669 { (case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_try") 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_lib_pthread_pthread_mutex_init=yes
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_cv_lib_pthread_pthread_mutex_init=no
12686 rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_check_lib_save_LIBS
12690 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12691 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12692 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12693 cat >>confdefs.h <<_ACEOF
12694 #define HAVE_LIBPTHREAD 1
12697 LIBS="-lpthread $LIBS"
12701 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12702 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12703 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 ac_func_search_save_LIBS=$LIBS
12707 cat >conftest.$ac_ext <<_ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12720 char pthread_mutex_lock ();
12724 return pthread_mutex_lock ();
12729 for ac_lib in '' pthread; do
12730 if test -z "$ac_lib"; then
12731 ac_res="none required"
12734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12736 rm -f conftest.$ac_objext conftest$ac_exeext
12737 if { (ac_try="$ac_link"
12738 case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743 (eval "$ac_link") 2>conftest.er1
12745 grep -v '^ *+' conftest.er1 >conftest.err
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751 { (case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_try") 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest$ac_exeext'
12761 { (case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_try") 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_cv_search_pthread_mutex_lock=$ac_res
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12778 rm -f core conftest.err conftest.$ac_objext \
12780 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12784 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12787 ac_cv_search_pthread_mutex_lock=no
12789 rm conftest.$ac_ext
12790 LIBS=$ac_func_search_save_LIBS
12792 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12793 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12794 ac_res=$ac_cv_search_pthread_mutex_lock
12795 if test "$ac_res" != no; then
12796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12798 cat >>confdefs.h <<\_ACEOF
12799 #define HAVE_PTHREAD_MUTEX_LOCK 1
12804 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12805 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12806 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 ac_func_search_save_LIBS=$LIBS
12810 cat >conftest.$ac_ext <<_ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12817 /* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
12823 char pthread_rwlock_init ();
12827 return pthread_rwlock_init ();
12832 for ac_lib in '' pthread; do
12833 if test -z "$ac_lib"; then
12834 ac_res="none required"
12837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (ac_try="$ac_link"
12841 case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_link") 2>conftest.er1
12848 grep -v '^ *+' conftest.er1 >conftest.err
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12854 { (case "(($ac_try" in
12855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856 *) ac_try_echo=$ac_try;;
12858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12859 (eval "$ac_try") 2>&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest$ac_exeext'
12864 { (case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_try") 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_search_pthread_rwlock_init=$ac_res
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12881 rm -f core conftest.err conftest.$ac_objext \
12883 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12887 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12890 ac_cv_search_pthread_rwlock_init=no
12892 rm conftest.$ac_ext
12893 LIBS=$ac_func_search_save_LIBS
12895 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12896 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12897 ac_res=$ac_cv_search_pthread_rwlock_init
12898 if test "$ac_res" != no; then
12899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12901 cat >>confdefs.h <<\_ACEOF
12902 #define HAVE_PTHREAD_RWLOCK_INIT 1
12907 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12908 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12909 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 ac_func_search_save_LIBS=$LIBS
12913 cat >conftest.$ac_ext <<_ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12926 char pthread_getspecific ();
12930 return pthread_getspecific ();
12935 for ac_lib in '' pthread; do
12936 if test -z "$ac_lib"; then
12937 ac_res="none required"
12940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12942 rm -f conftest.$ac_objext conftest$ac_exeext
12943 if { (ac_try="$ac_link"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_link") 2>conftest.er1
12951 grep -v '^ *+' conftest.er1 >conftest.err
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12957 { (case "(($ac_try" in
12958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12959 *) ac_try_echo=$ac_try;;
12961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12962 (eval "$ac_try") 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest$ac_exeext'
12967 { (case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_try") 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 ac_cv_search_pthread_getspecific=$ac_res
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12984 rm -f core conftest.err conftest.$ac_objext \
12986 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12990 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12993 ac_cv_search_pthread_getspecific=no
12995 rm conftest.$ac_ext
12996 LIBS=$ac_func_search_save_LIBS
12998 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12999 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13000 ac_res=$ac_cv_search_pthread_getspecific
13001 if test "$ac_res" != no; then
13002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13004 cat >>confdefs.h <<\_ACEOF
13005 #define HAVE_PTHREAD_GETSPECIFIC 1
13013 # Check whether --with-udis86 was given.
13014 if test "${with_udis86+set}" = set; then
13015 withval=$with_udis86;
13020 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13023 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13024 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13025 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 ac_check_lib_save_LIBS=$LIBS
13029 LIBS="-ludis86 $LIBS"
13030 cat >conftest.$ac_ext <<_ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13037 /* Override any GCC internal prototype to avoid an error.
13038 Use char because int might match the return type of a GCC
13039 builtin and then its argument prototype would still apply. */
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_link") 2>conftest.er1
13061 grep -v '^ *+' conftest.er1 >conftest.err
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
13066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13067 { (case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_try") 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; } &&
13076 { ac_try='test -s conftest$ac_exeext'
13077 { (case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_try") 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13086 ac_cv_lib_udis86_ud_init=yes
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13091 ac_cv_lib_udis86_ud_init=no
13094 rm -f core conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096 LIBS=$ac_check_lib_save_LIBS
13098 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13099 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13100 if test $ac_cv_lib_udis86_ud_init = yes; then
13101 cat >>confdefs.h <<_ACEOF
13102 #define HAVE_LIBUDIS86 1
13105 LIBS="-ludis86 $LIBS"
13109 echo "Error! You need to have libudis86 around."
13121 cat >>confdefs.h <<_ACEOF
13122 #define USE_UDIS86 $USE_UDIS86
13127 # Check whether --with-oprofile was given.
13128 if test "${with_oprofile+set}" = set; then
13129 withval=$with_oprofile;
13133 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13134 no) llvm_cv_oppath=
13137 *) llvm_cv_oppath="${withval}/lib/oprofile"
13138 CPPFLAGS="-I${withval}/include";;
13140 case $llvm_cv_os_type in
13142 if test -n "$llvm_cv_oppath" ; then
13143 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13144 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13145 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13146 if test "${ac_cv_search_bfd_init+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 ac_func_search_save_LIBS=$LIBS
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13157 /* Override any GCC internal prototype to avoid an error.
13158 Use char because int might match the return type of a GCC
13159 builtin and then its argument prototype would still apply. */
13167 return bfd_init ();
13172 for ac_lib in '' bfd; do
13173 if test -z "$ac_lib"; then
13174 ac_res="none required"
13177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13179 rm -f conftest.$ac_objext conftest$ac_exeext
13180 if { (ac_try="$ac_link"
13181 case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_link") 2>conftest.er1
13188 grep -v '^ *+' conftest.er1 >conftest.err
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } &&
13193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13194 { (case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_try") 2>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; } &&
13203 { ac_try='test -s conftest$ac_exeext'
13204 { (case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_try") 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 ac_cv_search_bfd_init=$ac_res
13215 echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13221 rm -f core conftest.err conftest.$ac_objext \
13223 if test "${ac_cv_search_bfd_init+set}" = set; then
13227 if test "${ac_cv_search_bfd_init+set}" = set; then
13230 ac_cv_search_bfd_init=no
13232 rm conftest.$ac_ext
13233 LIBS=$ac_func_search_save_LIBS
13235 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13236 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13237 ac_res=$ac_cv_search_bfd_init
13238 if test "$ac_res" != no; then
13239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13243 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13244 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13245 if test "${ac_cv_search_op_open_agent+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 ac_func_search_save_LIBS=$LIBS
13249 cat >conftest.$ac_ext <<_ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13256 /* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13262 char op_open_agent ();
13266 return op_open_agent ();
13271 for ac_lib in '' opagent; do
13272 if test -z "$ac_lib"; then
13273 ac_res="none required"
13276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13278 rm -f conftest.$ac_objext conftest$ac_exeext
13279 if { (ac_try="$ac_link"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_link") 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } &&
13302 { ac_try='test -s conftest$ac_exeext'
13303 { (case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_try") 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_search_op_open_agent=$ac_res
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13320 rm -f core conftest.err conftest.$ac_objext \
13322 if test "${ac_cv_search_op_open_agent+set}" = set; then
13326 if test "${ac_cv_search_op_open_agent+set}" = set; then
13329 ac_cv_search_op_open_agent=no
13331 rm conftest.$ac_ext
13332 LIBS=$ac_func_search_save_LIBS
13334 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13335 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13336 ac_res=$ac_cv_search_op_open_agent
13337 if test "$ac_res" != no; then
13338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13342 echo "Error! You need to have libopagent around."
13347 if test "${ac_cv_header_opagent_h+set}" = set; then
13348 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13349 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13350 if test "${ac_cv_header_opagent_h+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13354 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13356 # Is the header compilable?
13357 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13358 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13359 cat >conftest.$ac_ext <<_ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13365 $ac_includes_default
13366 #include <opagent.h>
13368 rm -f conftest.$ac_objext
13369 if { (ac_try="$ac_compile"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_compile") 2>conftest.er1
13377 grep -v '^ *+' conftest.er1 >conftest.err
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
13382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13383 { (case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_try") 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; } &&
13392 { ac_try='test -s conftest.$ac_objext'
13393 { (case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_try") 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_header_compiler=yes
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13407 ac_header_compiler=no
13410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13412 echo "${ECHO_T}$ac_header_compiler" >&6; }
13414 # Is the header present?
13415 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13416 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 #include <opagent.h>
13425 if { (ac_try="$ac_cpp conftest.$ac_ext"
13426 case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } >/dev/null; then
13438 if test -s conftest.err; then
13439 ac_cpp_err=$ac_c_preproc_warn_flag
13440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13447 if test -z "$ac_cpp_err"; then
13448 ac_header_preproc=yes
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_header_preproc=no
13456 rm -f conftest.err conftest.$ac_ext
13457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13458 echo "${ECHO_T}$ac_header_preproc" >&6; }
13460 # So? What about this header?
13461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13463 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13464 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13466 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13467 ac_header_preproc=yes
13470 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13471 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13473 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13475 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13477 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13478 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13479 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13481 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13483 ## ------------------------------------ ##
13484 ## Report this to http://llvm.org/bugs/ ##
13485 ## ------------------------------------ ##
13487 ) | sed "s/^/$as_me: WARNING: /" >&2
13490 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13491 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13492 if test "${ac_cv_header_opagent_h+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 ac_cv_header_opagent_h=$ac_header_preproc
13497 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13498 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13501 if test $ac_cv_header_opagent_h = yes; then
13505 echo "Error! You need to have opagent.h around."
13513 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13514 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13515 { (exit 1); exit 1; }; } ;;
13526 cat >>confdefs.h <<_ACEOF
13527 #define LLVM_USE_OPROFILE $USE_OPROFILE
13532 # Check whether --with-intel-jitevents was given.
13533 if test "${with_intel_jitevents+set}" = set; then
13534 withval=$with_intel_jitevents;
13535 case $llvm_cv_os_type in
13536 Linux|Win32|Cygwin|MingW) ;;
13538 { { echo "$as_me:$LINENO: error:
13539 Intel JIT API support is available on Linux and Windows only.\"" >&5
13540 echo "$as_me: error:
13541 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13542 { (exit 1); exit 1; }; } ;;
13545 USE_INTEL_JITEVENTS=1
13547 case "$llvm_cv_target_arch" in
13548 x86) llvm_intel_jitevents_archdir="lib32";;
13549 x86_64) llvm_intel_jitevents_archdir="lib64";;
13550 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13553 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13554 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13556 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13557 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13564 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13565 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13567 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13568 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13569 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 ac_func_search_save_LIBS=$LIBS
13573 cat >conftest.$ac_ext <<_ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13580 /* Override any GCC internal prototype to avoid an error.
13581 Use char because int might match the return type of a GCC
13582 builtin and then its argument prototype would still apply. */
13586 char iJIT_IsProfilingActive ();
13590 return iJIT_IsProfilingActive ();
13595 for ac_lib in '' jitprofiling; do
13596 if test -z "$ac_lib"; then
13597 ac_res="none required"
13600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13602 rm -f conftest.$ac_objext conftest$ac_exeext
13603 if { (ac_try="$ac_link"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_link") 2>conftest.er1
13611 grep -v '^ *+' conftest.er1 >conftest.err
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest$ac_exeext'
13627 { (case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_try") 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13644 rm -f core conftest.err conftest.$ac_objext \
13646 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13650 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13653 ac_cv_search_iJIT_IsProfilingActive=no
13655 rm conftest.$ac_ext
13656 LIBS=$ac_func_search_save_LIBS
13658 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13659 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13660 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13661 if test "$ac_res" != no; then
13662 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13666 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13671 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13672 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13673 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13674 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13678 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13680 # Is the header compilable?
13681 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13682 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13683 cat >conftest.$ac_ext <<_ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689 $ac_includes_default
13690 #include <jitprofiling.h>
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13701 grep -v '^ *+' conftest.er1 >conftest.err
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_header_compiler=yes
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 ac_header_compiler=no
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13736 echo "${ECHO_T}$ac_header_compiler" >&6; }
13738 # Is the header present?
13739 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13740 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13741 cat >conftest.$ac_ext <<_ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747 #include <jitprofiling.h>
13749 if { (ac_try="$ac_cpp conftest.$ac_ext"
13750 case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13757 grep -v '^ *+' conftest.er1 >conftest.err
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } >/dev/null; then
13762 if test -s conftest.err; then
13763 ac_cpp_err=$ac_c_preproc_warn_flag
13764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13771 if test -z "$ac_cpp_err"; then
13772 ac_header_preproc=yes
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 ac_header_preproc=no
13780 rm -f conftest.err conftest.$ac_ext
13781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13782 echo "${ECHO_T}$ac_header_preproc" >&6; }
13784 # So? What about this header?
13785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13787 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13788 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13790 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13791 ac_header_preproc=yes
13794 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13795 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13797 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13799 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13801 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13803 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13805 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13807 ## ------------------------------------ ##
13808 ## Report this to http://llvm.org/bugs/ ##
13809 ## ------------------------------------ ##
13811 ) | sed "s/^/$as_me: WARNING: /" >&2
13814 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13815 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13816 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 ac_cv_header_jitprofiling_h=$ac_header_preproc
13821 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13822 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13825 if test $ac_cv_header_jitprofiling_h = yes; then
13829 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13839 USE_INTEL_JITEVENTS=0
13845 cat >>confdefs.h <<_ACEOF
13846 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13850 for ac_prog in xml2-config
13852 # Extract the first word of "$ac_prog", so it can be a program name with args.
13853 set dummy $ac_prog; ac_word=$2
13854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13856 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 if test -n "$XML2CONFIG"; then
13860 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13866 test -z "$as_dir" && as_dir=.
13867 for ac_exec_ext in '' $ac_executable_extensions; do
13868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13869 ac_cv_prog_XML2CONFIG="$ac_prog"
13870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13879 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13880 if test -n "$XML2CONFIG"; then
13881 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13882 echo "${ECHO_T}$XML2CONFIG" >&6; }
13884 { echo "$as_me:$LINENO: result: no" >&5
13885 echo "${ECHO_T}no" >&6; }
13889 test -n "$XML2CONFIG" && break
13893 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13894 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13895 if test "x$XML2CONFIG" = "x"; then
13896 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13897 echo "${ECHO_T}xml2-config not found" >&6; }
13899 LIBXML2_INC=`$XML2CONFIG --cflags`
13900 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13901 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13902 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13903 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13904 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 ac_check_lib_save_LIBS=$LIBS
13908 LIBS="-lxml2 $LIBS"
13909 cat >conftest.$ac_ext <<_ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13922 char xmlReadFile ();
13926 return xmlReadFile ();
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (ac_try="$ac_link"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_link") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13955 { ac_try='test -s conftest$ac_exeext'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 ac_cv_lib_xml2_xmlReadFile=yes
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970 ac_cv_lib_xml2_xmlReadFile=no
13973 rm -f core conftest.err conftest.$ac_objext \
13974 conftest$ac_exeext conftest.$ac_ext
13975 LIBS=$ac_check_lib_save_LIBS
13977 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13978 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13979 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13981 cat >>confdefs.h <<\_ACEOF
13982 #define CLANG_HAVE_LIBXML 1
13985 LIBXML2_LIBS="-lxml2"
13998 ac_header_dirent=no
13999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14000 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14001 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14002 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 cat >conftest.$ac_ext <<_ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 #include <sys/types.h>
14024 rm -f conftest.$ac_objext
14025 if { (ac_try="$ac_compile"
14026 case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_compile") 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14039 { (case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_try") 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest.$ac_objext'
14049 { (case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_try") 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
14058 eval "$as_ac_Header=yes"
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14063 eval "$as_ac_Header=no"
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 ac_res=`eval echo '${'$as_ac_Header'}'`
14069 { echo "$as_me:$LINENO: result: $ac_res" >&5
14070 echo "${ECHO_T}$ac_res" >&6; }
14071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14072 cat >>confdefs.h <<_ACEOF
14073 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14076 ac_header_dirent=$ac_hdr; break
14080 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14081 if test $ac_header_dirent = dirent.h; then
14082 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14083 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14084 if test "${ac_cv_search_opendir+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 ac_func_search_save_LIBS=$LIBS
14088 cat >conftest.$ac_ext <<_ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14095 /* Override any GCC internal prototype to avoid an error.
14096 Use char because int might match the return type of a GCC
14097 builtin and then its argument prototype would still apply. */
14110 for ac_lib in '' dir; do
14111 if test -z "$ac_lib"; then
14112 ac_res="none required"
14115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14117 rm -f conftest.$ac_objext conftest$ac_exeext
14118 if { (ac_try="$ac_link"
14119 case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_link") 2>conftest.er1
14126 grep -v '^ *+' conftest.er1 >conftest.err
14128 cat conftest.err >&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } &&
14131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14132 { (case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_try") 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; } &&
14141 { ac_try='test -s conftest$ac_exeext'
14142 { (case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_try") 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; }; then
14151 ac_cv_search_opendir=$ac_res
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14159 rm -f core conftest.err conftest.$ac_objext \
14161 if test "${ac_cv_search_opendir+set}" = set; then
14165 if test "${ac_cv_search_opendir+set}" = set; then
14168 ac_cv_search_opendir=no
14170 rm conftest.$ac_ext
14171 LIBS=$ac_func_search_save_LIBS
14173 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14174 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14175 ac_res=$ac_cv_search_opendir
14176 if test "$ac_res" != no; then
14177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14183 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14184 if test "${ac_cv_search_opendir+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 ac_func_search_save_LIBS=$LIBS
14188 cat >conftest.$ac_ext <<_ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14195 /* Override any GCC internal prototype to avoid an error.
14196 Use char because int might match the return type of a GCC
14197 builtin and then its argument prototype would still apply. */
14210 for ac_lib in '' x; do
14211 if test -z "$ac_lib"; then
14212 ac_res="none required"
14215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14217 rm -f conftest.$ac_objext conftest$ac_exeext
14218 if { (ac_try="$ac_link"
14219 case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_link") 2>conftest.er1
14226 grep -v '^ *+' conftest.er1 >conftest.err
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14232 { (case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237 (eval "$ac_try") 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; } &&
14241 { ac_try='test -s conftest$ac_exeext'
14242 { (case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_try") 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_cv_search_opendir=$ac_res
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14259 rm -f core conftest.err conftest.$ac_objext \
14261 if test "${ac_cv_search_opendir+set}" = set; then
14265 if test "${ac_cv_search_opendir+set}" = set; then
14268 ac_cv_search_opendir=no
14270 rm conftest.$ac_ext
14271 LIBS=$ac_func_search_save_LIBS
14273 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14274 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14275 ac_res=$ac_cv_search_opendir
14276 if test "$ac_res" != no; then
14277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14283 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14284 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14285 if test "${ac_cv_header_mmap_anon+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 ac_cpp='$CPP $CPPFLAGS'
14290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 #include <sys/mman.h>
14301 #include <unistd.h>
14306 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14311 rm -f conftest.$ac_objext
14312 if { (ac_try="$ac_compile"
14313 case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_compile") 2>conftest.er1
14320 grep -v '^ *+' conftest.er1 >conftest.err
14322 cat conftest.err >&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
14325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14326 { (case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_try") 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_try") 2>&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14345 ac_cv_header_mmap_anon=yes
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 ac_cv_header_mmap_anon=no
14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14355 ac_cpp='$CPP $CPPFLAGS'
14356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14362 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14363 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14364 if test "$ac_cv_header_mmap_anon" = yes; then
14366 cat >>confdefs.h <<\_ACEOF
14367 #define HAVE_MMAP_ANONYMOUS 1
14372 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14373 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14374 if test "${ac_cv_header_stat_broken+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 cat >conftest.$ac_ext <<_ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14383 #include <sys/types.h>
14384 #include <sys/stat.h>
14386 #if defined S_ISBLK && defined S_IFDIR
14387 # if S_ISBLK (S_IFDIR)
14392 #if defined S_ISBLK && defined S_IFCHR
14393 # if S_ISBLK (S_IFCHR)
14398 #if defined S_ISLNK && defined S_IFREG
14399 # if S_ISLNK (S_IFREG)
14404 #if defined S_ISSOCK && defined S_IFREG
14405 # if S_ISSOCK (S_IFREG)
14411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14412 $EGREP "You lose" >/dev/null 2>&1; then
14413 ac_cv_header_stat_broken=yes
14415 ac_cv_header_stat_broken=no
14420 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14421 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14422 if test $ac_cv_header_stat_broken = yes; then
14424 cat >>confdefs.h <<\_ACEOF
14425 #define STAT_MACROS_BROKEN 1
14430 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14431 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14432 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14435 cat >conftest.$ac_ext <<_ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 #include <sys/types.h>
14442 #include <sys/wait.h>
14443 #ifndef WEXITSTATUS
14444 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14447 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14455 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14460 rm -f conftest.$ac_objext
14461 if { (ac_try="$ac_compile"
14462 case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_compile") 2>conftest.er1
14469 grep -v '^ *+' conftest.er1 >conftest.err
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
14474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14475 { (case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480 (eval "$ac_try") 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; } &&
14484 { ac_try='test -s conftest.$ac_objext'
14485 { (case "(($ac_try" in
14486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487 *) ac_try_echo=$ac_try;;
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490 (eval "$ac_try") 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14494 ac_cv_header_sys_wait_h=yes
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 ac_cv_header_sys_wait_h=no
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14505 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14506 if test $ac_cv_header_sys_wait_h = yes; then
14508 cat >>confdefs.h <<\_ACEOF
14509 #define HAVE_SYS_WAIT_H 1
14514 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14515 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14516 if test "${ac_cv_header_time+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 cat >conftest.$ac_ext <<_ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14525 #include <sys/types.h>
14526 #include <sys/time.h>
14532 if ((struct tm *) 0)
14538 rm -f conftest.$ac_objext
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_compile") 2>conftest.er1
14547 grep -v '^ *+' conftest.er1 >conftest.err
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
14552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14553 { (case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_try") 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; } &&
14562 { ac_try='test -s conftest.$ac_objext'
14563 { (case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_try") 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_cv_header_time=yes
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 ac_cv_header_time=no
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14583 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14584 if test $ac_cv_header_time = yes; then
14586 cat >>confdefs.h <<\_ACEOF
14587 #define TIME_WITH_SYS_TIME 1
14599 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 ac_res=`eval echo '${'$as_ac_Header'}'`
14609 { echo "$as_me:$LINENO: result: $ac_res" >&5
14610 echo "${ECHO_T}$ac_res" >&6; }
14612 # Is the header compilable?
14613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14615 cat >conftest.$ac_ext <<_ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 $ac_includes_default
14622 #include <$ac_header>
14624 rm -f conftest.$ac_objext
14625 if { (ac_try="$ac_compile"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_compile") 2>conftest.er1
14633 grep -v '^ *+' conftest.er1 >conftest.err
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14639 { (case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644 (eval "$ac_try") 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; } &&
14648 { ac_try='test -s conftest.$ac_objext'
14649 { (case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_try") 2>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 ac_header_compiler=yes
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 ac_header_compiler=no
14666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14668 echo "${ECHO_T}$ac_header_compiler" >&6; }
14670 # Is the header present?
14671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14673 cat >conftest.$ac_ext <<_ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 #include <$ac_header>
14681 if { (ac_try="$ac_cpp conftest.$ac_ext"
14682 case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14689 grep -v '^ *+' conftest.er1 >conftest.err
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } >/dev/null; then
14694 if test -s conftest.err; then
14695 ac_cpp_err=$ac_c_preproc_warn_flag
14696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14703 if test -z "$ac_cpp_err"; then
14704 ac_header_preproc=yes
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_header_preproc=no
14712 rm -f conftest.err conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14714 echo "${ECHO_T}$ac_header_preproc" >&6; }
14716 # So? What about this header?
14717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14723 ac_header_preproc=yes
14726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14739 ## ------------------------------------ ##
14740 ## Report this to http://llvm.org/bugs/ ##
14741 ## ------------------------------------ ##
14743 ) | sed "s/^/$as_me: WARNING: /" >&2
14746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 eval "$as_ac_Header=\$ac_header_preproc"
14753 ac_res=`eval echo '${'$as_ac_Header'}'`
14754 { echo "$as_me:$LINENO: result: $ac_res" >&5
14755 echo "${ECHO_T}$ac_res" >&6; }
14758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14759 cat >>confdefs.h <<_ACEOF
14760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14773 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 ac_res=`eval echo '${'$as_ac_Header'}'`
14783 { echo "$as_me:$LINENO: result: $ac_res" >&5
14784 echo "${ECHO_T}$ac_res" >&6; }
14786 # Is the header compilable?
14787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 $ac_includes_default
14796 #include <$ac_header>
14798 rm -f conftest.$ac_objext
14799 if { (ac_try="$ac_compile"
14800 case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_compile") 2>conftest.er1
14807 grep -v '^ *+' conftest.er1 >conftest.err
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14813 { (case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_try") 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try='test -s conftest.$ac_objext'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_header_compiler=yes
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 ac_header_compiler=no
14840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14842 echo "${ECHO_T}$ac_header_compiler" >&6; }
14844 # Is the header present?
14845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14847 cat >conftest.$ac_ext <<_ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 #include <$ac_header>
14855 if { (ac_try="$ac_cpp conftest.$ac_ext"
14856 case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14863 grep -v '^ *+' conftest.er1 >conftest.err
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } >/dev/null; then
14868 if test -s conftest.err; then
14869 ac_cpp_err=$ac_c_preproc_warn_flag
14870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14877 if test -z "$ac_cpp_err"; then
14878 ac_header_preproc=yes
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 ac_header_preproc=no
14886 rm -f conftest.err conftest.$ac_ext
14887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14888 echo "${ECHO_T}$ac_header_preproc" >&6; }
14890 # So? What about this header?
14891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14897 ac_header_preproc=yes
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14913 ## ------------------------------------ ##
14914 ## Report this to http://llvm.org/bugs/ ##
14915 ## ------------------------------------ ##
14917 ) | sed "s/^/$as_me: WARNING: /" >&2
14920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 eval "$as_ac_Header=\$ac_header_preproc"
14927 ac_res=`eval echo '${'$as_ac_Header'}'`
14928 { echo "$as_me:$LINENO: result: $ac_res" >&5
14929 echo "${ECHO_T}$ac_res" >&6; }
14932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14933 cat >>confdefs.h <<_ACEOF
14934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14943 for ac_header in utime.h windows.h
14945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 ac_res=`eval echo '${'$as_ac_Header'}'`
14953 { echo "$as_me:$LINENO: result: $ac_res" >&5
14954 echo "${ECHO_T}$ac_res" >&6; }
14956 # Is the header compilable?
14957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14959 cat >conftest.$ac_ext <<_ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h. */
14965 $ac_includes_default
14966 #include <$ac_header>
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_compile") 2>conftest.er1
14977 grep -v '^ *+' conftest.er1 >conftest.err
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest.$ac_objext'
14993 { (case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_try") 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_header_compiler=yes
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 ac_header_compiler=no
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15012 echo "${ECHO_T}$ac_header_compiler" >&6; }
15014 # Is the header present?
15015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 #include <$ac_header>
15025 if { (ac_try="$ac_cpp conftest.$ac_ext"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } >/dev/null; then
15038 if test -s conftest.err; then
15039 ac_cpp_err=$ac_c_preproc_warn_flag
15040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15047 if test -z "$ac_cpp_err"; then
15048 ac_header_preproc=yes
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_header_preproc=no
15056 rm -f conftest.err conftest.$ac_ext
15057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15058 echo "${ECHO_T}$ac_header_preproc" >&6; }
15060 # So? What about this header?
15061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15067 ac_header_preproc=yes
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15083 ## ------------------------------------ ##
15084 ## Report this to http://llvm.org/bugs/ ##
15085 ## ------------------------------------ ##
15087 ) | sed "s/^/$as_me: WARNING: /" >&2
15090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 eval "$as_ac_Header=\$ac_header_preproc"
15097 ac_res=`eval echo '${'$as_ac_Header'}'`
15098 { echo "$as_me:$LINENO: result: $ac_res" >&5
15099 echo "${ECHO_T}$ac_res" >&6; }
15102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15103 cat >>confdefs.h <<_ACEOF
15104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15116 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 ac_res=`eval echo '${'$as_ac_Header'}'`
15126 { echo "$as_me:$LINENO: result: $ac_res" >&5
15127 echo "${ECHO_T}$ac_res" >&6; }
15129 # Is the header compilable?
15130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15132 cat >conftest.$ac_ext <<_ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15138 $ac_includes_default
15139 #include <$ac_header>
15141 rm -f conftest.$ac_objext
15142 if { (ac_try="$ac_compile"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_compile") 2>conftest.er1
15150 grep -v '^ *+' conftest.er1 >conftest.err
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15156 { (case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_try") 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try='test -s conftest.$ac_objext'
15166 { (case "(($ac_try" in
15167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168 *) ac_try_echo=$ac_try;;
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171 (eval "$ac_try") 2>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 ac_header_compiler=yes
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 ac_header_compiler=no
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15185 echo "${ECHO_T}$ac_header_compiler" >&6; }
15187 # Is the header present?
15188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15190 cat >conftest.$ac_ext <<_ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 #include <$ac_header>
15198 if { (ac_try="$ac_cpp conftest.$ac_ext"
15199 case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15206 grep -v '^ *+' conftest.er1 >conftest.err
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } >/dev/null; then
15211 if test -s conftest.err; then
15212 ac_cpp_err=$ac_c_preproc_warn_flag
15213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15220 if test -z "$ac_cpp_err"; then
15221 ac_header_preproc=yes
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15226 ac_header_preproc=no
15229 rm -f conftest.err conftest.$ac_ext
15230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15231 echo "${ECHO_T}$ac_header_preproc" >&6; }
15233 # So? What about this header?
15234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15240 ac_header_preproc=yes
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15256 ## ------------------------------------ ##
15257 ## Report this to http://llvm.org/bugs/ ##
15258 ## ------------------------------------ ##
15260 ) | sed "s/^/$as_me: WARNING: /" >&2
15263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 eval "$as_ac_Header=\$ac_header_preproc"
15270 ac_res=`eval echo '${'$as_ac_Header'}'`
15271 { echo "$as_me:$LINENO: result: $ac_res" >&5
15272 echo "${ECHO_T}$ac_res" >&6; }
15275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15276 cat >>confdefs.h <<_ACEOF
15277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15288 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 ac_res=`eval echo '${'$as_ac_Header'}'`
15298 { echo "$as_me:$LINENO: result: $ac_res" >&5
15299 echo "${ECHO_T}$ac_res" >&6; }
15301 # Is the header compilable?
15302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15304 cat >conftest.$ac_ext <<_ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15310 $ac_includes_default
15311 #include <$ac_header>
15313 rm -f conftest.$ac_objext
15314 if { (ac_try="$ac_compile"
15315 case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_compile") 2>conftest.er1
15322 grep -v '^ *+' conftest.er1 >conftest.err
15324 cat conftest.err >&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15328 { (case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest.$ac_objext'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347 ac_header_compiler=yes
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15352 ac_header_compiler=no
15355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357 echo "${ECHO_T}$ac_header_compiler" >&6; }
15359 # Is the header present?
15360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15362 cat >conftest.$ac_ext <<_ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 #include <$ac_header>
15370 if { (ac_try="$ac_cpp conftest.$ac_ext"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15378 grep -v '^ *+' conftest.er1 >conftest.err
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } >/dev/null; then
15383 if test -s conftest.err; then
15384 ac_cpp_err=$ac_c_preproc_warn_flag
15385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15392 if test -z "$ac_cpp_err"; then
15393 ac_header_preproc=yes
15395 echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15398 ac_header_preproc=no
15401 rm -f conftest.err conftest.$ac_ext
15402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15403 echo "${ECHO_T}$ac_header_preproc" >&6; }
15405 # So? What about this header?
15406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15412 ac_header_preproc=yes
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15428 ## ------------------------------------ ##
15429 ## Report this to http://llvm.org/bugs/ ##
15430 ## ------------------------------------ ##
15432 ) | sed "s/^/$as_me: WARNING: /" >&2
15435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 eval "$as_ac_Header=\$ac_header_preproc"
15442 ac_res=`eval echo '${'$as_ac_Header'}'`
15443 { echo "$as_me:$LINENO: result: $ac_res" >&5
15444 echo "${ECHO_T}$ac_res" >&6; }
15447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15448 cat >>confdefs.h <<_ACEOF
15449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15457 for ac_header in valgrind/valgrind.h
15459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 ac_res=`eval echo '${'$as_ac_Header'}'`
15467 { echo "$as_me:$LINENO: result: $ac_res" >&5
15468 echo "${ECHO_T}$ac_res" >&6; }
15470 # Is the header compilable?
15471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15473 cat >conftest.$ac_ext <<_ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 $ac_includes_default
15480 #include <$ac_header>
15482 rm -f conftest.$ac_objext
15483 if { (ac_try="$ac_compile"
15484 case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_compile") 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
15496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15497 { (case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_try") 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest.$ac_objext'
15507 { (case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_try") 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_header_compiler=yes
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15521 ac_header_compiler=no
15524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15526 echo "${ECHO_T}$ac_header_compiler" >&6; }
15528 # Is the header present?
15529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 #include <$ac_header>
15539 if { (ac_try="$ac_cpp conftest.$ac_ext"
15540 case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15547 grep -v '^ *+' conftest.er1 >conftest.err
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } >/dev/null; then
15552 if test -s conftest.err; then
15553 ac_cpp_err=$ac_c_preproc_warn_flag
15554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15561 if test -z "$ac_cpp_err"; then
15562 ac_header_preproc=yes
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 ac_header_preproc=no
15570 rm -f conftest.err conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15572 echo "${ECHO_T}$ac_header_preproc" >&6; }
15574 # So? What about this header?
15575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15581 ac_header_preproc=yes
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15597 ## ------------------------------------ ##
15598 ## Report this to http://llvm.org/bugs/ ##
15599 ## ------------------------------------ ##
15601 ) | sed "s/^/$as_me: WARNING: /" >&2
15604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 eval "$as_ac_Header=\$ac_header_preproc"
15611 ac_res=`eval echo '${'$as_ac_Header'}'`
15612 { echo "$as_me:$LINENO: result: $ac_res" >&5
15613 echo "${ECHO_T}$ac_res" >&6; }
15616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15617 cat >>confdefs.h <<_ACEOF
15618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15626 for ac_header in fenv.h
15628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 ac_res=`eval echo '${'$as_ac_Header'}'`
15636 { echo "$as_me:$LINENO: result: $ac_res" >&5
15637 echo "${ECHO_T}$ac_res" >&6; }
15639 # Is the header compilable?
15640 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15642 cat >conftest.$ac_ext <<_ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15648 $ac_includes_default
15649 #include <$ac_header>
15651 rm -f conftest.$ac_objext
15652 if { (ac_try="$ac_compile"
15653 case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_compile") 2>conftest.er1
15660 grep -v '^ *+' conftest.er1 >conftest.err
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; } &&
15675 { ac_try='test -s conftest.$ac_objext'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_header_compiler=yes
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690 ac_header_compiler=no
15693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15695 echo "${ECHO_T}$ac_header_compiler" >&6; }
15697 # Is the header present?
15698 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15700 cat >conftest.$ac_ext <<_ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 #include <$ac_header>
15708 if { (ac_try="$ac_cpp conftest.$ac_ext"
15709 case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15716 grep -v '^ *+' conftest.er1 >conftest.err
15718 cat conftest.err >&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } >/dev/null; then
15721 if test -s conftest.err; then
15722 ac_cpp_err=$ac_c_preproc_warn_flag
15723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15730 if test -z "$ac_cpp_err"; then
15731 ac_header_preproc=yes
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15736 ac_header_preproc=no
15739 rm -f conftest.err conftest.$ac_ext
15740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15741 echo "${ECHO_T}$ac_header_preproc" >&6; }
15743 # So? What about this header?
15744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15750 ac_header_preproc=yes
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15766 ## ------------------------------------ ##
15767 ## Report this to http://llvm.org/bugs/ ##
15768 ## ------------------------------------ ##
15770 ) | sed "s/^/$as_me: WARNING: /" >&2
15773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 eval "$as_ac_Header=\$ac_header_preproc"
15780 ac_res=`eval echo '${'$as_ac_Header'}'`
15781 { echo "$as_me:$LINENO: result: $ac_res" >&5
15782 echo "${ECHO_T}$ac_res" >&6; }
15785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15786 cat >>confdefs.h <<_ACEOF
15787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15794 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15796 for ac_header in pthread.h
15798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 ac_res=`eval echo '${'$as_ac_Header'}'`
15806 { echo "$as_me:$LINENO: result: $ac_res" >&5
15807 echo "${ECHO_T}$ac_res" >&6; }
15809 # Is the header compilable?
15810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 $ac_includes_default
15819 #include <$ac_header>
15821 rm -f conftest.$ac_objext
15822 if { (ac_try="$ac_compile"
15823 case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_compile") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836 { (case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_try") 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest.$ac_objext'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_header_compiler=yes
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 ac_header_compiler=no
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15865 echo "${ECHO_T}$ac_header_compiler" >&6; }
15867 # Is the header present?
15868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15870 cat >conftest.$ac_ext <<_ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 #include <$ac_header>
15878 if { (ac_try="$ac_cpp conftest.$ac_ext"
15879 case "(($ac_try" in
15880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15886 grep -v '^ *+' conftest.er1 >conftest.err
15888 cat conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } >/dev/null; then
15891 if test -s conftest.err; then
15892 ac_cpp_err=$ac_c_preproc_warn_flag
15893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15900 if test -z "$ac_cpp_err"; then
15901 ac_header_preproc=yes
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 ac_header_preproc=no
15909 rm -f conftest.err conftest.$ac_ext
15910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15911 echo "${ECHO_T}$ac_header_preproc" >&6; }
15913 # So? What about this header?
15914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15920 ac_header_preproc=yes
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15936 ## ------------------------------------ ##
15937 ## Report this to http://llvm.org/bugs/ ##
15938 ## ------------------------------------ ##
15940 ) | sed "s/^/$as_me: WARNING: /" >&2
15943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15948 eval "$as_ac_Header=\$ac_header_preproc"
15950 ac_res=`eval echo '${'$as_ac_Header'}'`
15951 { echo "$as_me:$LINENO: result: $ac_res" >&5
15952 echo "${ECHO_T}$ac_res" >&6; }
15955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15956 cat >>confdefs.h <<_ACEOF
15957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15973 if test "$llvm_cv_enable_libffi" = "yes" ; then
15976 for ac_header in ffi.h ffi/ffi.h
15978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15989 # Is the header compilable?
15990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15992 cat >conftest.$ac_ext <<_ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 $ac_includes_default
15999 #include <$ac_header>
16001 rm -f conftest.$ac_objext
16002 if { (ac_try="$ac_compile"
16003 case "(($ac_try" in
16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 *) ac_try_echo=$ac_try;;
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008 (eval "$ac_compile") 2>conftest.er1
16010 grep -v '^ *+' conftest.er1 >conftest.err
16012 cat conftest.err >&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016 { (case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_try") 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_header_compiler=yes
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_header_compiler=no
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 echo "${ECHO_T}$ac_header_compiler" >&6; }
16047 # Is the header present?
16048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16056 #include <$ac_header>
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } >/dev/null; then
16071 if test -s conftest.err; then
16072 ac_cpp_err=$ac_c_preproc_warn_flag
16073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16080 if test -z "$ac_cpp_err"; then
16081 ac_header_preproc=yes
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_header_preproc=no
16089 rm -f conftest.err conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6; }
16093 # So? What about this header?
16094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16100 ac_header_preproc=yes
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16116 ## ------------------------------------ ##
16117 ## Report this to http://llvm.org/bugs/ ##
16118 ## ------------------------------------ ##
16120 ) | sed "s/^/$as_me: WARNING: /" >&2
16123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 eval "$as_ac_Header=\$ac_header_preproc"
16130 ac_res=`eval echo '${'$as_ac_Header'}'`
16131 { echo "$as_me:$LINENO: result: $ac_res" >&5
16132 echo "${ECHO_T}$ac_res" >&6; }
16135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16136 cat >>confdefs.h <<_ACEOF
16137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16147 for ac_header in CrashReporterClient.h
16149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 ac_res=`eval echo '${'$as_ac_Header'}'`
16157 { echo "$as_me:$LINENO: result: $ac_res" >&5
16158 echo "${ECHO_T}$ac_res" >&6; }
16160 # Is the header compilable?
16161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16163 cat >conftest.$ac_ext <<_ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16169 $ac_includes_default
16170 #include <$ac_header>
16172 rm -f conftest.$ac_objext
16173 if { (ac_try="$ac_compile"
16174 case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_compile") 2>conftest.er1
16181 grep -v '^ *+' conftest.er1 >conftest.err
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_header_compiler=yes
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ac_header_compiler=no
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16216 echo "${ECHO_T}$ac_header_compiler" >&6; }
16218 # Is the header present?
16219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16221 cat >conftest.$ac_ext <<_ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h. */
16227 #include <$ac_header>
16229 if { (ac_try="$ac_cpp conftest.$ac_ext"
16230 case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16237 grep -v '^ *+' conftest.er1 >conftest.err
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } >/dev/null; then
16242 if test -s conftest.err; then
16243 ac_cpp_err=$ac_c_preproc_warn_flag
16244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16251 if test -z "$ac_cpp_err"; then
16252 ac_header_preproc=yes
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_header_preproc=no
16260 rm -f conftest.err conftest.$ac_ext
16261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16262 echo "${ECHO_T}$ac_header_preproc" >&6; }
16264 # So? What about this header?
16265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16271 ac_header_preproc=yes
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16287 ## ------------------------------------ ##
16288 ## Report this to http://llvm.org/bugs/ ##
16289 ## ------------------------------------ ##
16291 ) | sed "s/^/$as_me: WARNING: /" >&2
16294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 eval "$as_ac_Header=\$ac_header_preproc"
16301 ac_res=`eval echo '${'$as_ac_Header'}'`
16302 { echo "$as_me:$LINENO: result: $ac_res" >&5
16303 echo "${ECHO_T}$ac_res" >&6; }
16306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16307 cat >>confdefs.h <<_ACEOF
16308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16316 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16317 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 extern const char *__crashreporter_info__;
16326 __crashreporter_info__ = "test";
16331 rm -f conftest.$ac_objext conftest$ac_exeext
16332 if { (ac_try="$ac_link"
16333 case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_link") 2>conftest.er1
16340 grep -v '^ *+' conftest.er1 >conftest.err
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16346 { (case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_try") 2>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } &&
16355 { ac_try='test -s conftest$ac_exeext'
16356 { (case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_try") 2>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 { echo "$as_me:$LINENO: result: yes" >&5
16366 echo "${ECHO_T}yes" >&6; }
16368 cat >>confdefs.h <<\_ACEOF
16369 #define HAVE_CRASHREPORTER_INFO 1
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 { echo "$as_me:$LINENO: result: no" >&5
16377 echo "${ECHO_T}no" >&6; }
16379 cat >>confdefs.h <<\_ACEOF
16380 #define HAVE_CRASHREPORTER_INFO 0
16385 rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16391 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16392 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16393 if test "${ac_cv_huge_val_sanity+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16398 ac_cpp='$CXXCPP $CPPFLAGS'
16399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16403 ac_save_CXXFLAGS=$CXXFLAGS
16404 CXXFLAGS="$CXXFLAGS -pedantic"
16405 if test "$cross_compiling" = yes; then
16406 ac_cv_huge_val_sanity=yes
16408 cat >conftest.$ac_ext <<_ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16418 double x = HUGE_VAL; return x != x;
16423 rm -f conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_link") 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16434 { (case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_try") 2>&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16443 ac_cv_huge_val_sanity=yes
16445 echo "$as_me: program exited with status $ac_status" >&5
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 ( exit $ac_status )
16450 ac_cv_huge_val_sanity=no
16452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16456 CXXFLAGS=$ac_save_CXXFLAGS
16458 ac_cpp='$CPP $CPPFLAGS'
16459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16465 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16466 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16467 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16470 { echo "$as_me:$LINENO: checking for pid_t" >&5
16471 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16472 if test "${ac_cv_type_pid_t+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 cat >conftest.$ac_ext <<_ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 $ac_includes_default
16482 typedef pid_t ac__type_new_;
16486 if ((ac__type_new_ *) 0)
16488 if (sizeof (ac__type_new_))
16494 rm -f conftest.$ac_objext
16495 if { (ac_try="$ac_compile"
16496 case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_compile") 2>conftest.er1
16503 grep -v '^ *+' conftest.er1 >conftest.err
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16509 { (case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_try") 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; } &&
16518 { ac_try='test -s conftest.$ac_objext'
16519 { (case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_try") 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_type_pid_t=yes
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 ac_cv_type_pid_t=no
16536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16538 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16539 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16540 if test $ac_cv_type_pid_t = yes; then
16544 cat >>confdefs.h <<_ACEOF
16550 { echo "$as_me:$LINENO: checking for size_t" >&5
16551 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16552 if test "${ac_cv_type_size_t+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 cat >conftest.$ac_ext <<_ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 $ac_includes_default
16562 typedef size_t ac__type_new_;
16566 if ((ac__type_new_ *) 0)
16568 if (sizeof (ac__type_new_))
16574 rm -f conftest.$ac_objext
16575 if { (ac_try="$ac_compile"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_compile") 2>conftest.er1
16583 grep -v '^ *+' conftest.er1 >conftest.err
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } &&
16588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_try") 2>&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_cv_type_size_t=yes
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16613 ac_cv_type_size_t=no
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16619 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16620 if test $ac_cv_type_size_t = yes; then
16624 cat >>confdefs.h <<_ACEOF
16625 #define size_t unsigned int
16631 cat >>confdefs.h <<_ACEOF
16632 #define RETSIGTYPE void
16635 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16636 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16637 if test "${ac_cv_struct_tm+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 #include <sys/types.h>
16652 struct tm *tp; tp->tm_sec;
16657 rm -f conftest.$ac_objext
16658 if { (ac_try="$ac_compile"
16659 case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_compile") 2>conftest.er1
16666 grep -v '^ *+' conftest.er1 >conftest.err
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
16671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16672 { (case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_try") 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try='test -s conftest.$ac_objext'
16682 { (case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_try") 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 ac_cv_struct_tm=time.h
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16696 ac_cv_struct_tm=sys/time.h
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16701 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16702 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16703 if test $ac_cv_struct_tm = sys/time.h; then
16705 cat >>confdefs.h <<\_ACEOF
16706 #define TM_IN_SYS_TIME 1
16711 { echo "$as_me:$LINENO: checking for int64_t" >&5
16712 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16713 if test "${ac_cv_type_int64_t+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 cat >conftest.$ac_ext <<_ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 $ac_includes_default
16723 typedef int64_t ac__type_new_;
16727 if ((ac__type_new_ *) 0)
16729 if (sizeof (ac__type_new_))
16735 rm -f conftest.$ac_objext
16736 if { (ac_try="$ac_compile"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_compile") 2>conftest.er1
16744 grep -v '^ *+' conftest.er1 >conftest.err
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16750 { (case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_try") 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest.$ac_objext'
16760 { (case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_try") 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16769 ac_cv_type_int64_t=yes
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 ac_cv_type_int64_t=no
16777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16779 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16780 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16781 if test $ac_cv_type_int64_t = yes; then
16783 cat >>confdefs.h <<_ACEOF
16784 #define HAVE_INT64_T 1
16789 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16790 echo "$as_me: error: Type int64_t required but not found" >&2;}
16791 { (exit 1); exit 1; }; }
16794 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16795 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16796 if test "${ac_cv_type_uint64_t+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805 $ac_includes_default
16806 typedef uint64_t ac__type_new_;
16810 if ((ac__type_new_ *) 0)
16812 if (sizeof (ac__type_new_))
16818 rm -f conftest.$ac_objext
16819 if { (ac_try="$ac_compile"
16820 case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_compile") 2>conftest.er1
16827 grep -v '^ *+' conftest.er1 >conftest.err
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
16832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16833 { (case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_try") 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest.$ac_objext'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_cv_type_uint64_t=yes
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16857 ac_cv_type_uint64_t=no
16860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16863 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16864 if test $ac_cv_type_uint64_t = yes; then
16866 cat >>confdefs.h <<_ACEOF
16867 #define HAVE_UINT64_T 1
16872 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16873 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16874 if test "${ac_cv_type_u_int64_t+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 cat >conftest.$ac_ext <<_ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 $ac_includes_default
16884 typedef u_int64_t ac__type_new_;
16888 if ((ac__type_new_ *) 0)
16890 if (sizeof (ac__type_new_))
16896 rm -f conftest.$ac_objext
16897 if { (ac_try="$ac_compile"
16898 case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_compile") 2>conftest.er1
16905 grep -v '^ *+' conftest.er1 >conftest.err
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911 { (case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_try") 2>&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest.$ac_objext'
16921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_type_u_int64_t=yes
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ac_cv_type_u_int64_t=no
16938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16941 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16942 if test $ac_cv_type_u_int64_t = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define HAVE_U_INT64_T 1
16950 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16951 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16952 { (exit 1); exit 1; }; }
16966 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 cat >conftest.$ac_ext <<_ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16982 #define $ac_func innocuous_$ac_func
16984 /* System header to define __stub macros and hopefully few prototypes,
16985 which can conflict with char $ac_func (); below.
16986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16987 <limits.h> exists even on freestanding compilers. */
16990 # include <limits.h>
16992 # include <assert.h>
16997 /* Override any GCC internal prototype to avoid an error.
16998 Use char because int might match the return type of a GCC
16999 builtin and then its argument prototype would still apply. */
17004 /* The GNU C library defines this for functions which it implements
17005 to always fail with ENOSYS. Some functions are actually named
17006 something starting with __ and the normal name is an alias. */
17007 #if defined __stub_$ac_func || defined __stub___$ac_func
17014 return $ac_func ();
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (ac_try="$ac_link"
17021 case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_link") 2>conftest.er1
17028 grep -v '^ *+' conftest.er1 >conftest.err
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
17033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17034 { (case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_try") 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try='test -s conftest$ac_exeext'
17044 { (case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_try") 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 eval "$as_ac_var=yes"
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 eval "$as_ac_var=no"
17061 rm -f core conftest.err conftest.$ac_objext \
17062 conftest$ac_exeext conftest.$ac_ext
17064 ac_res=`eval echo '${'$as_ac_var'}'`
17065 { echo "$as_me:$LINENO: result: $ac_res" >&5
17066 echo "${ECHO_T}$ac_res" >&6; }
17067 if test `eval echo '${'$as_ac_var'}'` = yes; then
17068 cat >>confdefs.h <<_ACEOF
17069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17079 for ac_func in powf fmodf strtof round
17081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 cat >conftest.$ac_ext <<_ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17095 #define $ac_func innocuous_$ac_func
17097 /* System header to define __stub macros and hopefully few prototypes,
17098 which can conflict with char $ac_func (); below.
17099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17100 <limits.h> exists even on freestanding compilers. */
17103 # include <limits.h>
17105 # include <assert.h>
17110 /* Override any GCC internal prototype to avoid an error.
17111 Use char because int might match the return type of a GCC
17112 builtin and then its argument prototype would still apply. */
17117 /* The GNU C library defines this for functions which it implements
17118 to always fail with ENOSYS. Some functions are actually named
17119 something starting with __ and the normal name is an alias. */
17120 #if defined __stub_$ac_func || defined __stub___$ac_func
17127 return $ac_func ();
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (ac_try="$ac_link"
17134 case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_link") 2>conftest.er1
17141 grep -v '^ *+' conftest.er1 >conftest.err
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17147 { (case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_try") 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; } &&
17156 { ac_try='test -s conftest$ac_exeext'
17157 { (case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_try") 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; }; then
17166 eval "$as_ac_var=yes"
17168 echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17171 eval "$as_ac_var=no"
17174 rm -f core conftest.err conftest.$ac_objext \
17175 conftest$ac_exeext conftest.$ac_ext
17177 ac_res=`eval echo '${'$as_ac_var'}'`
17178 { echo "$as_me:$LINENO: result: $ac_res" >&5
17179 echo "${ECHO_T}$ac_res" >&6; }
17180 if test `eval echo '${'$as_ac_var'}'` = yes; then
17181 cat >>confdefs.h <<_ACEOF
17182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17193 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 cat >conftest.$ac_ext <<_ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17209 #define $ac_func innocuous_$ac_func
17211 /* System header to define __stub macros and hopefully few prototypes,
17212 which can conflict with char $ac_func (); below.
17213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17214 <limits.h> exists even on freestanding compilers. */
17217 # include <limits.h>
17219 # include <assert.h>
17224 /* Override any GCC internal prototype to avoid an error.
17225 Use char because int might match the return type of a GCC
17226 builtin and then its argument prototype would still apply. */
17231 /* The GNU C library defines this for functions which it implements
17232 to always fail with ENOSYS. Some functions are actually named
17233 something starting with __ and the normal name is an alias. */
17234 #if defined __stub_$ac_func || defined __stub___$ac_func
17241 return $ac_func ();
17246 rm -f conftest.$ac_objext conftest$ac_exeext
17247 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17255 grep -v '^ *+' conftest.er1 >conftest.err
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17261 { (case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_try") 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; } &&
17270 { ac_try='test -s conftest$ac_exeext'
17271 { (case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_try") 2>&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; }; then
17280 eval "$as_ac_var=yes"
17282 echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17285 eval "$as_ac_var=no"
17288 rm -f core conftest.err conftest.$ac_objext \
17289 conftest$ac_exeext conftest.$ac_ext
17291 ac_res=`eval echo '${'$as_ac_var'}'`
17292 { echo "$as_me:$LINENO: result: $ac_res" >&5
17293 echo "${ECHO_T}$ac_res" >&6; }
17294 if test `eval echo '${'$as_ac_var'}'` = yes; then
17295 cat >>confdefs.h <<_ACEOF
17296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17305 for ac_func in isatty mkdtemp mkstemp
17307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 cat >conftest.$ac_ext <<_ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17321 #define $ac_func innocuous_$ac_func
17323 /* System header to define __stub macros and hopefully few prototypes,
17324 which can conflict with char $ac_func (); below.
17325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17326 <limits.h> exists even on freestanding compilers. */
17329 # include <limits.h>
17331 # include <assert.h>
17336 /* Override any GCC internal prototype to avoid an error.
17337 Use char because int might match the return type of a GCC
17338 builtin and then its argument prototype would still apply. */
17343 /* The GNU C library defines this for functions which it implements
17344 to always fail with ENOSYS. Some functions are actually named
17345 something starting with __ and the normal name is an alias. */
17346 #if defined __stub_$ac_func || defined __stub___$ac_func
17353 return $ac_func ();
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_link") 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
17372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17373 { (case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_try") 2>&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; } &&
17382 { ac_try='test -s conftest$ac_exeext'
17383 { (case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_try") 2>&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; }; then
17392 eval "$as_ac_var=yes"
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17397 eval "$as_ac_var=no"
17400 rm -f core conftest.err conftest.$ac_objext \
17401 conftest$ac_exeext conftest.$ac_ext
17403 ac_res=`eval echo '${'$as_ac_var'}'`
17404 { echo "$as_me:$LINENO: result: $ac_res" >&5
17405 echo "${ECHO_T}$ac_res" >&6; }
17406 if test `eval echo '${'$as_ac_var'}'` = yes; then
17407 cat >>confdefs.h <<_ACEOF
17408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17421 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 cat >conftest.$ac_ext <<_ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17437 #define $ac_func innocuous_$ac_func
17439 /* System header to define __stub macros and hopefully few prototypes,
17440 which can conflict with char $ac_func (); below.
17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442 <limits.h> exists even on freestanding compilers. */
17445 # include <limits.h>
17447 # include <assert.h>
17452 /* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17459 /* The GNU C library defines this for functions which it implements
17460 to always fail with ENOSYS. Some functions are actually named
17461 something starting with __ and the normal name is an alias. */
17462 #if defined __stub_$ac_func || defined __stub___$ac_func
17469 return $ac_func ();
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (ac_try="$ac_link"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_link") 2>conftest.er1
17483 grep -v '^ *+' conftest.er1 >conftest.err
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_try") 2>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 eval "$as_ac_var=yes"
17510 echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17513 eval "$as_ac_var=no"
17516 rm -f core conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17519 ac_res=`eval echo '${'$as_ac_var'}'`
17520 { echo "$as_me:$LINENO: result: $ac_res" >&5
17521 echo "${ECHO_T}$ac_res" >&6; }
17522 if test `eval echo '${'$as_ac_var'}'` = yes; then
17523 cat >>confdefs.h <<_ACEOF
17524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17534 for ac_func in strerror strerror_r setenv arc4random
17536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17539 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17550 #define $ac_func innocuous_$ac_func
17552 /* System header to define __stub macros and hopefully few prototypes,
17553 which can conflict with char $ac_func (); below.
17554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17555 <limits.h> exists even on freestanding compilers. */
17558 # include <limits.h>
17560 # include <assert.h>
17565 /* Override any GCC internal prototype to avoid an error.
17566 Use char because int might match the return type of a GCC
17567 builtin and then its argument prototype would still apply. */
17572 /* The GNU C library defines this for functions which it implements
17573 to always fail with ENOSYS. Some functions are actually named
17574 something starting with __ and the normal name is an alias. */
17575 #if defined __stub_$ac_func || defined __stub___$ac_func
17582 return $ac_func ();
17587 rm -f conftest.$ac_objext conftest$ac_exeext
17588 if { (ac_try="$ac_link"
17589 case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_link") 2>conftest.er1
17596 grep -v '^ *+' conftest.er1 >conftest.err
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17602 { (case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_try") 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; } &&
17611 { ac_try='test -s conftest$ac_exeext'
17612 { (case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_try") 2>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; }; then
17621 eval "$as_ac_var=yes"
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 eval "$as_ac_var=no"
17629 rm -f core conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17632 ac_res=`eval echo '${'$as_ac_var'}'`
17633 { echo "$as_me:$LINENO: result: $ac_res" >&5
17634 echo "${ECHO_T}$ac_res" >&6; }
17635 if test `eval echo '${'$as_ac_var'}'` = yes; then
17636 cat >>confdefs.h <<_ACEOF
17637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17647 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 cat >conftest.$ac_ext <<_ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17663 #define $ac_func innocuous_$ac_func
17665 /* System header to define __stub macros and hopefully few prototypes,
17666 which can conflict with char $ac_func (); below.
17667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17668 <limits.h> exists even on freestanding compilers. */
17671 # include <limits.h>
17673 # include <assert.h>
17678 /* Override any GCC internal prototype to avoid an error.
17679 Use char because int might match the return type of a GCC
17680 builtin and then its argument prototype would still apply. */
17685 /* The GNU C library defines this for functions which it implements
17686 to always fail with ENOSYS. Some functions are actually named
17687 something starting with __ and the normal name is an alias. */
17688 #if defined __stub_$ac_func || defined __stub___$ac_func
17695 return $ac_func ();
17700 rm -f conftest.$ac_objext conftest$ac_exeext
17701 if { (ac_try="$ac_link"
17702 case "(($ac_try" in
17703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704 *) ac_try_echo=$ac_try;;
17706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707 (eval "$ac_link") 2>conftest.er1
17709 grep -v '^ *+' conftest.er1 >conftest.err
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17715 { (case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_try") 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; } &&
17724 { ac_try='test -s conftest$ac_exeext'
17725 { (case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_try") 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 eval "$as_ac_var=yes"
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 eval "$as_ac_var=no"
17742 rm -f core conftest.err conftest.$ac_objext \
17743 conftest$ac_exeext conftest.$ac_ext
17745 ac_res=`eval echo '${'$as_ac_var'}'`
17746 { echo "$as_me:$LINENO: result: $ac_res" >&5
17747 echo "${ECHO_T}$ac_res" >&6; }
17748 if test `eval echo '${'$as_ac_var'}'` = yes; then
17749 cat >>confdefs.h <<_ACEOF
17750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17761 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17777 #define $ac_func innocuous_$ac_func
17779 /* System header to define __stub macros and hopefully few prototypes,
17780 which can conflict with char $ac_func (); below.
17781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17782 <limits.h> exists even on freestanding compilers. */
17785 # include <limits.h>
17787 # include <assert.h>
17792 /* Override any GCC internal prototype to avoid an error.
17793 Use char because int might match the return type of a GCC
17794 builtin and then its argument prototype would still apply. */
17799 /* The GNU C library defines this for functions which it implements
17800 to always fail with ENOSYS. Some functions are actually named
17801 something starting with __ and the normal name is an alias. */
17802 #if defined __stub_$ac_func || defined __stub___$ac_func
17809 return $ac_func ();
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_link") 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest$ac_exeext'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 eval "$as_ac_var=yes"
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 eval "$as_ac_var=no"
17856 rm -f core conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17859 ac_res=`eval echo '${'$as_ac_var'}'`
17860 { echo "$as_me:$LINENO: result: $ac_res" >&5
17861 echo "${ECHO_T}$ac_res" >&6; }
17862 if test `eval echo '${'$as_ac_var'}'` = yes; then
17863 cat >>confdefs.h <<_ACEOF
17864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17870 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17871 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17872 if test "${llvm_cv_c_printf_a+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 ac_cpp='$CPP $CPPFLAGS'
17877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17881 if test "$cross_compiling" = yes; then
17882 llvmac_cv_c_printf_a=no
17884 cat >conftest.$ac_ext <<_ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17893 #include <stdlib.h>
17899 volatile double A, B;
17903 sprintf(Buffer, "%a", A);
17907 if (A != 0x1.999999999999ap-4)
17914 rm -f conftest$ac_exeext
17915 if { (ac_try="$ac_link"
17916 case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_link") 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17925 { (case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_try") 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 llvm_cv_c_printf_a=yes
17936 echo "$as_me: program exited with status $ac_status" >&5
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ( exit $ac_status )
17941 llvmac_cv_c_printf_a=no
17943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17948 ac_cpp='$CPP $CPPFLAGS'
17949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17954 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17955 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17956 if test "$llvm_cv_c_printf_a" = "yes"; then
17958 cat >>confdefs.h <<\_ACEOF
17959 #define HAVE_PRINTF_A 1
17965 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17966 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17967 if test "${ac_cv_func_rand48+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 ac_cpp='$CXXCPP $CPPFLAGS'
17972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17976 cat >conftest.$ac_ext <<_ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17982 #include <stdlib.h>
17986 srand48(0);lrand48();drand48();
17991 rm -f conftest.$ac_objext
17992 if { (ac_try="$ac_compile"
17993 case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_compile") 2>conftest.er1
18000 grep -v '^ *+' conftest.er1 >conftest.err
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18006 { (case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_try") 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest.$ac_objext'
18016 { (case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
18025 ac_cv_func_rand48=yes
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 ac_cv_func_rand48=no
18033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 ac_cpp='$CPP $CPPFLAGS'
18036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18041 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18042 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18044 if test "$ac_cv_func_rand48" = "yes" ; then
18046 cat >>confdefs.h <<\_ACEOF
18047 #define HAVE_RAND48 1
18053 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18054 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18055 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 cat >conftest.$ac_ext <<_ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18064 $ac_includes_default
18069 char *p = (char *) strerror_s;
18077 rm -f conftest.$ac_objext
18078 if { (ac_try="$ac_compile"
18079 case "(($ac_try" in
18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081 *) ac_try_echo=$ac_try;;
18083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084 (eval "$ac_compile") 2>conftest.er1
18086 grep -v '^ *+' conftest.er1 >conftest.err
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18092 { (case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_try") 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; } &&
18101 { ac_try='test -s conftest.$ac_objext'
18102 { (case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_try") 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; }; then
18111 ac_cv_have_decl_strerror_s=yes
18113 echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18116 ac_cv_have_decl_strerror_s=no
18119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18122 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18123 if test $ac_cv_have_decl_strerror_s = yes; then
18125 cat >>confdefs.h <<_ACEOF
18126 #define HAVE_DECL_STRERROR_S 1
18131 cat >>confdefs.h <<_ACEOF
18132 #define HAVE_DECL_STRERROR_S 0
18140 if test "$llvm_cv_os_type" = "MingW" ; then
18141 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18142 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18143 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 ac_check_lib_save_LIBS=$LIBS
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18155 /* Override any GCC internal prototype to avoid an error.
18156 Use char because int might match the return type of a GCC
18157 builtin and then its argument prototype would still apply. */
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (ac_try="$ac_link"
18172 case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_link") 2>conftest.er1
18179 grep -v '^ *+' conftest.er1 >conftest.err
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18185 { (case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_try") 2>&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; } &&
18194 { ac_try='test -s conftest$ac_exeext'
18195 { (case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_try") 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18204 ac_cv_lib_gcc__alloca=yes
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 ac_cv_lib_gcc__alloca=no
18212 rm -f core conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18214 LIBS=$ac_check_lib_save_LIBS
18216 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18217 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18218 if test $ac_cv_lib_gcc__alloca = yes; then
18220 cat >>confdefs.h <<\_ACEOF
18221 #define HAVE__ALLOCA 1
18226 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18227 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18228 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 ac_check_lib_save_LIBS=$LIBS
18233 cat >conftest.$ac_ext <<_ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18240 /* Override any GCC internal prototype to avoid an error.
18241 Use char because int might match the return type of a GCC
18242 builtin and then its argument prototype would still apply. */
18250 return __alloca ();
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (ac_try="$ac_link"
18257 case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_link") 2>conftest.er1
18264 grep -v '^ *+' conftest.er1 >conftest.err
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18270 { (case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_try") 2>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; } &&
18279 { ac_try='test -s conftest$ac_exeext'
18280 { (case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_try") 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_lib_gcc___alloca=yes
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18294 ac_cv_lib_gcc___alloca=no
18297 rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
18299 LIBS=$ac_check_lib_save_LIBS
18301 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18302 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18303 if test $ac_cv_lib_gcc___alloca = yes; then
18305 cat >>confdefs.h <<\_ACEOF
18306 #define HAVE___ALLOCA 1
18311 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18312 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18313 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18316 ac_check_lib_save_LIBS=$LIBS
18318 cat >conftest.$ac_ext <<_ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18325 /* Override any GCC internal prototype to avoid an error.
18326 Use char because int might match the return type of a GCC
18327 builtin and then its argument prototype would still apply. */
18335 return __chkstk ();
18340 rm -f conftest.$ac_objext conftest$ac_exeext
18341 if { (ac_try="$ac_link"
18342 case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_link") 2>conftest.er1
18349 grep -v '^ *+' conftest.er1 >conftest.err
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } &&
18354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18355 { (case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_try") 2>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; } &&
18364 { ac_try='test -s conftest$ac_exeext'
18365 { (case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_try") 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18374 ac_cv_lib_gcc___chkstk=yes
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 ac_cv_lib_gcc___chkstk=no
18382 rm -f core conftest.err conftest.$ac_objext \
18383 conftest$ac_exeext conftest.$ac_ext
18384 LIBS=$ac_check_lib_save_LIBS
18386 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18387 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18388 if test $ac_cv_lib_gcc___chkstk = yes; then
18390 cat >>confdefs.h <<\_ACEOF
18391 #define HAVE___CHKSTK 1
18396 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18397 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18398 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 ac_check_lib_save_LIBS=$LIBS
18403 cat >conftest.$ac_ext <<_ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18410 /* Override any GCC internal prototype to avoid an error.
18411 Use char because int might match the return type of a GCC
18412 builtin and then its argument prototype would still apply. */
18420 return ___chkstk ();
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (ac_try="$ac_link"
18427 case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_link") 2>conftest.er1
18434 grep -v '^ *+' conftest.er1 >conftest.err
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440 { (case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_try") 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest$ac_exeext'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 ac_cv_lib_gcc____chkstk=yes
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18464 ac_cv_lib_gcc____chkstk=no
18467 rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18469 LIBS=$ac_check_lib_save_LIBS
18471 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18472 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18473 if test $ac_cv_lib_gcc____chkstk = yes; then
18475 cat >>confdefs.h <<\_ACEOF
18476 #define HAVE____CHKSTK 1
18482 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18483 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18484 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18487 ac_check_lib_save_LIBS=$LIBS
18489 cat >conftest.$ac_ext <<_ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18496 /* Override any GCC internal prototype to avoid an error.
18497 Use char because int might match the return type of a GCC
18498 builtin and then its argument prototype would still apply. */
18506 return __ashldi3 ();
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18520 grep -v '^ *+' conftest.er1 >conftest.err
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526 { (case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_try") 2>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest$ac_exeext'
18536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_cv_lib_gcc___ashldi3=yes
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 ac_cv_lib_gcc___ashldi3=no
18553 rm -f core conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext conftest.$ac_ext
18555 LIBS=$ac_check_lib_save_LIBS
18557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18558 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18559 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18561 cat >>confdefs.h <<\_ACEOF
18562 #define HAVE___ASHLDI3 1
18567 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18568 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18569 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 ac_check_lib_save_LIBS=$LIBS
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18581 /* Override any GCC internal prototype to avoid an error.
18582 Use char because int might match the return type of a GCC
18583 builtin and then its argument prototype would still apply. */
18591 return __ashrdi3 ();
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_link") 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18611 { (case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_try") 2>&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; } &&
18620 { ac_try='test -s conftest$ac_exeext'
18621 { (case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_try") 2>&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_cv_lib_gcc___ashrdi3=yes
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_cv_lib_gcc___ashrdi3=no
18638 rm -f core conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18642 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18643 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18644 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18646 cat >>confdefs.h <<\_ACEOF
18647 #define HAVE___ASHRDI3 1
18652 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18653 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18654 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 ac_check_lib_save_LIBS=$LIBS
18659 cat >conftest.$ac_ext <<_ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18676 return __divdi3 ();
18681 rm -f conftest.$ac_objext conftest$ac_exeext
18682 if { (ac_try="$ac_link"
18683 case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_link") 2>conftest.er1
18690 grep -v '^ *+' conftest.er1 >conftest.err
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } &&
18695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18696 { (case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_try") 2>&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; } &&
18705 { ac_try='test -s conftest$ac_exeext'
18706 { (case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_try") 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 ac_cv_lib_gcc___divdi3=yes
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18720 ac_cv_lib_gcc___divdi3=no
18723 rm -f core conftest.err conftest.$ac_objext \
18724 conftest$ac_exeext conftest.$ac_ext
18725 LIBS=$ac_check_lib_save_LIBS
18727 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18728 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18729 if test $ac_cv_lib_gcc___divdi3 = yes; then
18731 cat >>confdefs.h <<\_ACEOF
18732 #define HAVE___DIVDI3 1
18737 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18738 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18739 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 ac_check_lib_save_LIBS=$LIBS
18744 cat >conftest.$ac_ext <<_ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18751 /* Override any GCC internal prototype to avoid an error.
18752 Use char because int might match the return type of a GCC
18753 builtin and then its argument prototype would still apply. */
18761 return __fixdfdi ();
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_link") 2>conftest.er1
18775 grep -v '^ *+' conftest.er1 >conftest.err
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18781 { (case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_try") 2>&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } &&
18790 { ac_try='test -s conftest$ac_exeext'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_cv_lib_gcc___fixdfdi=yes
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18805 ac_cv_lib_gcc___fixdfdi=no
18808 rm -f core conftest.err conftest.$ac_objext \
18809 conftest$ac_exeext conftest.$ac_ext
18810 LIBS=$ac_check_lib_save_LIBS
18812 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18813 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18814 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18816 cat >>confdefs.h <<\_ACEOF
18817 #define HAVE___FIXDFDI 1
18822 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18823 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18824 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 ac_check_lib_save_LIBS=$LIBS
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18836 /* Override any GCC internal prototype to avoid an error.
18837 Use char because int might match the return type of a GCC
18838 builtin and then its argument prototype would still apply. */
18846 return __fixsfdi ();
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (ac_try="$ac_link"
18853 case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_link") 2>conftest.er1
18860 grep -v '^ *+' conftest.er1 >conftest.err
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18866 { (case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_try") 2>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest$ac_exeext'
18876 { (case "(($ac_try" in
18877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878 *) ac_try_echo=$ac_try;;
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881 (eval "$ac_try") 2>&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885 ac_cv_lib_gcc___fixsfdi=yes
18887 echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18890 ac_cv_lib_gcc___fixsfdi=no
18893 rm -f core conftest.err conftest.$ac_objext \
18894 conftest$ac_exeext conftest.$ac_ext
18895 LIBS=$ac_check_lib_save_LIBS
18897 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18898 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18899 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18901 cat >>confdefs.h <<\_ACEOF
18902 #define HAVE___FIXSFDI 1
18907 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18908 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18909 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 ac_check_lib_save_LIBS=$LIBS
18914 cat >conftest.$ac_ext <<_ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h. */
18921 /* Override any GCC internal prototype to avoid an error.
18922 Use char because int might match the return type of a GCC
18923 builtin and then its argument prototype would still apply. */
18927 char __floatdidf ();
18931 return __floatdidf ();
18936 rm -f conftest.$ac_objext conftest$ac_exeext
18937 if { (ac_try="$ac_link"
18938 case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_link") 2>conftest.er1
18945 grep -v '^ *+' conftest.er1 >conftest.err
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
18950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18951 { (case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_try") 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest$ac_exeext'
18961 { (case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_try") 2>&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 ac_cv_lib_gcc___floatdidf=yes
18972 echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_cv_lib_gcc___floatdidf=no
18978 rm -f core conftest.err conftest.$ac_objext \
18979 conftest$ac_exeext conftest.$ac_ext
18980 LIBS=$ac_check_lib_save_LIBS
18982 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18983 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18984 if test $ac_cv_lib_gcc___floatdidf = yes; then
18986 cat >>confdefs.h <<\_ACEOF
18987 #define HAVE___FLOATDIDF 1
18992 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18993 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18994 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 ac_check_lib_save_LIBS=$LIBS
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19006 /* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19016 return __lshrdi3 ();
19021 rm -f conftest.$ac_objext conftest$ac_exeext
19022 if { (ac_try="$ac_link"
19023 case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_link") 2>conftest.er1
19030 grep -v '^ *+' conftest.er1 >conftest.err
19032 cat conftest.err >&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } &&
19035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19036 { (case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_try") 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try='test -s conftest$ac_exeext'
19046 { (case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_try") 2>&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19055 ac_cv_lib_gcc___lshrdi3=yes
19057 echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19060 ac_cv_lib_gcc___lshrdi3=no
19063 rm -f core conftest.err conftest.$ac_objext \
19064 conftest$ac_exeext conftest.$ac_ext
19065 LIBS=$ac_check_lib_save_LIBS
19067 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19068 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19069 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19071 cat >>confdefs.h <<\_ACEOF
19072 #define HAVE___LSHRDI3 1
19077 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19078 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19079 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 ac_check_lib_save_LIBS=$LIBS
19084 cat >conftest.$ac_ext <<_ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19101 return __moddi3 ();
19106 rm -f conftest.$ac_objext conftest$ac_exeext
19107 if { (ac_try="$ac_link"
19108 case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_link") 2>conftest.er1
19115 grep -v '^ *+' conftest.er1 >conftest.err
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19121 { (case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_try") 2>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; } &&
19130 { ac_try='test -s conftest$ac_exeext'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 ac_cv_lib_gcc___moddi3=yes
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_cv_lib_gcc___moddi3=no
19148 rm -f core conftest.err conftest.$ac_objext \
19149 conftest$ac_exeext conftest.$ac_ext
19150 LIBS=$ac_check_lib_save_LIBS
19152 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19153 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19154 if test $ac_cv_lib_gcc___moddi3 = yes; then
19156 cat >>confdefs.h <<\_ACEOF
19157 #define HAVE___MODDI3 1
19162 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19163 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19164 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19167 ac_check_lib_save_LIBS=$LIBS
19169 cat >conftest.$ac_ext <<_ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19176 /* Override any GCC internal prototype to avoid an error.
19177 Use char because int might match the return type of a GCC
19178 builtin and then its argument prototype would still apply. */
19186 return __udivdi3 ();
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (ac_try="$ac_link"
19193 case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_link") 2>conftest.er1
19200 grep -v '^ *+' conftest.er1 >conftest.err
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19206 { (case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_try") 2>&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest$ac_exeext'
19216 { (case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_try") 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_cv_lib_gcc___udivdi3=yes
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 ac_cv_lib_gcc___udivdi3=no
19233 rm -f core conftest.err conftest.$ac_objext \
19234 conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19237 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19238 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19239 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19241 cat >>confdefs.h <<\_ACEOF
19242 #define HAVE___UDIVDI3 1
19247 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19248 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19249 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 ac_check_lib_save_LIBS=$LIBS
19254 cat >conftest.$ac_ext <<_ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19261 /* Override any GCC internal prototype to avoid an error.
19262 Use char because int might match the return type of a GCC
19263 builtin and then its argument prototype would still apply. */
19271 return __umoddi3 ();
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (ac_try="$ac_link"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_link") 2>conftest.er1
19285 grep -v '^ *+' conftest.er1 >conftest.err
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19291 { (case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_try") 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest$ac_exeext'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_lib_gcc___umoddi3=yes
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 ac_cv_lib_gcc___umoddi3=no
19318 rm -f core conftest.err conftest.$ac_objext \
19319 conftest$ac_exeext conftest.$ac_ext
19320 LIBS=$ac_check_lib_save_LIBS
19322 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19323 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19324 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19326 cat >>confdefs.h <<\_ACEOF
19327 #define HAVE___UMODDI3 1
19333 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19334 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19335 if test "${ac_cv_lib_gcc___main+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 ac_check_lib_save_LIBS=$LIBS
19340 cat >conftest.$ac_ext <<_ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19347 /* Override any GCC internal prototype to avoid an error.
19348 Use char because int might match the return type of a GCC
19349 builtin and then its argument prototype would still apply. */
19362 rm -f conftest.$ac_objext conftest$ac_exeext
19363 if { (ac_try="$ac_link"
19364 case "(($ac_try" in
19365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369 (eval "$ac_link") 2>conftest.er1
19371 grep -v '^ *+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19377 { (case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_try") 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest$ac_exeext'
19387 { (case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_try") 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_cv_lib_gcc___main=yes
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19401 ac_cv_lib_gcc___main=no
19404 rm -f core conftest.err conftest.$ac_objext \
19405 conftest$ac_exeext conftest.$ac_ext
19406 LIBS=$ac_check_lib_save_LIBS
19408 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19409 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19410 if test $ac_cv_lib_gcc___main = yes; then
19412 cat >>confdefs.h <<\_ACEOF
19413 #define HAVE___MAIN 1
19418 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19419 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19420 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 ac_check_lib_save_LIBS=$LIBS
19425 cat >conftest.$ac_ext <<_ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19432 /* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19442 return __cmpdi2 ();
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>conftest.er1
19456 grep -v '^ *+' conftest.er1 >conftest.err
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19462 { (case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_try") 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest$ac_exeext'
19472 { (case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_try") 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_lib_gcc___cmpdi2=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_lib_gcc___cmpdi2=no
19489 rm -f core conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19493 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19494 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19495 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE___CMPDI2 1
19505 if test "$llvm_cv_os_type" = "MingW" ; then
19506 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19507 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19508 cat >conftest.$ac_ext <<_ACEOF
19509 #include <windows.h>
19510 #include <imagehlp.h>
19511 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19512 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19514 rm -f conftest.$ac_objext
19515 if { (ac_try="$ac_compile"
19516 case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_compile") 2>conftest.er1
19523 grep -v '^ *+' conftest.er1 >conftest.err
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } &&
19528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19549 { echo "$as_me:$LINENO: result: yes" >&5
19550 echo "${ECHO_T}yes" >&6; }
19551 llvm_cv_win32_elmcb_pcstr="PCSTR"
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19558 { echo "$as_me:$LINENO: result: no" >&5
19559 echo "${ECHO_T}no" >&6; }
19560 llvm_cv_win32_elmcb_pcstr="PSTR"
19564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566 cat >>confdefs.h <<_ACEOF
19567 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19573 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19574 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19575 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 ac_cpp='$CXXCPP $CPPFLAGS'
19580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19584 cat >conftest.$ac_ext <<_ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19599 rm -f conftest.$ac_objext
19600 if { (ac_try="$ac_compile"
19601 case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_compile") 2>conftest.er1
19608 grep -v '^ *+' conftest.er1 >conftest.err
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } &&
19613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19614 { (case "(($ac_try" in
19615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616 *) ac_try_echo=$ac_try;;
19618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619 (eval "$ac_try") 2>&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; } &&
19623 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19633 ac_cv_func_isnan_in_math_h=yes
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 ac_cv_func_isnan_in_math_h=no
19641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19643 ac_cpp='$CPP $CPPFLAGS'
19644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19649 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19650 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19653 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19655 cat >>confdefs.h <<\_ACEOF
19656 #define HAVE_ISNAN_IN_MATH_H 1
19661 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19662 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19663 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 ac_cpp='$CXXCPP $CPPFLAGS'
19668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19672 cat >conftest.$ac_ext <<_ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h. */
19687 rm -f conftest.$ac_objext
19688 if { (ac_try="$ac_compile"
19689 case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_compile") 2>conftest.er1
19696 grep -v '^ *+' conftest.er1 >conftest.err
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19702 { (case "(($ac_try" in
19703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704 *) ac_try_echo=$ac_try;;
19706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19707 (eval "$ac_try") 2>&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; } &&
19711 { ac_try='test -s conftest.$ac_objext'
19712 { (case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_try") 2>&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; }; then
19721 ac_cv_func_isnan_in_cmath=yes
19723 echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19726 ac_cv_func_isnan_in_cmath=no
19729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19731 ac_cpp='$CPP $CPPFLAGS'
19732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19737 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19738 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19740 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19742 cat >>confdefs.h <<\_ACEOF
19743 #define HAVE_ISNAN_IN_CMATH 1
19748 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19749 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19750 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 ac_cpp='$CXXCPP $CPPFLAGS'
19755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19769 float f; std::isnan(f);
19774 rm -f conftest.$ac_objext
19775 if { (ac_try="$ac_compile"
19776 case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_compile") 2>conftest.er1
19783 grep -v '^ *+' conftest.er1 >conftest.err
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
19788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19789 { (case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_try") 2>&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try='test -s conftest.$ac_objext'
19799 { (case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_try") 2>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19808 ac_cv_func_std_isnan_in_cmath=yes
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19813 ac_cv_func_std_isnan_in_cmath=no
19816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19818 ac_cpp='$CPP $CPPFLAGS'
19819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19824 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19825 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19827 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19829 cat >>confdefs.h <<\_ACEOF
19830 #define HAVE_STD_ISNAN_IN_CMATH 1
19836 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19837 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19838 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 ac_cpp='$CXXCPP $CPPFLAGS'
19843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19847 cat >conftest.$ac_ext <<_ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19862 rm -f conftest.$ac_objext
19863 if { (ac_try="$ac_compile"
19864 case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_compile") 2>conftest.er1
19871 grep -v '^ *+' conftest.er1 >conftest.err
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
19876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19877 { (case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_try") 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try='test -s conftest.$ac_objext'
19887 { (case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_try") 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; }; then
19896 ac_cv_func_isinf_in_math_h=yes
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19901 ac_cv_func_isinf_in_math_h=no
19904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19906 ac_cpp='$CPP $CPPFLAGS'
19907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19912 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19913 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19915 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19917 cat >>confdefs.h <<\_ACEOF
19918 #define HAVE_ISINF_IN_MATH_H 1
19923 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19924 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19925 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19926 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 ac_cpp='$CXXCPP $CPPFLAGS'
19930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19934 cat >conftest.$ac_ext <<_ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19949 rm -f conftest.$ac_objext
19950 if { (ac_try="$ac_compile"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_compile") 2>conftest.er1
19958 grep -v '^ *+' conftest.er1 >conftest.err
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } &&
19963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19964 { (case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_try") 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
19974 { (case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 ac_cv_func_isinf_in_cmath=yes
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ac_cv_func_isinf_in_cmath=no
19991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19993 ac_cpp='$CPP $CPPFLAGS'
19994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19999 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20000 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20002 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20004 cat >>confdefs.h <<\_ACEOF
20005 #define HAVE_ISINF_IN_CMATH 1
20010 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20011 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20012 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 ac_cpp='$CXXCPP $CPPFLAGS'
20017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20031 float f; std::isinf(f);
20036 rm -f conftest.$ac_objext
20037 if { (ac_try="$ac_compile"
20038 case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_compile") 2>conftest.er1
20045 grep -v '^ *+' conftest.er1 >conftest.err
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } &&
20050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20051 { (case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_try") 2>&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; } &&
20060 { ac_try='test -s conftest.$ac_objext'
20061 { (case "(($ac_try" in
20062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063 *) ac_try_echo=$ac_try;;
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066 (eval "$ac_try") 2>&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; }; then
20070 ac_cv_func_std_isinf_in_cmath=yes
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20075 ac_cv_func_std_isinf_in_cmath=no
20078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20080 ac_cpp='$CPP $CPPFLAGS'
20081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20086 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20087 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20089 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20091 cat >>confdefs.h <<\_ACEOF
20092 #define HAVE_STD_ISINF_IN_CMATH 1
20097 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20098 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20099 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 ac_cpp='$CXXCPP $CPPFLAGS'
20104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20108 cat >conftest.$ac_ext <<_ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114 #include <ieeefp.h>
20118 float f; finite(f);
20123 rm -f conftest.$ac_objext
20124 if { (ac_try="$ac_compile"
20125 case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_compile") 2>conftest.er1
20132 grep -v '^ *+' conftest.er1 >conftest.err
20134 cat conftest.err >&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); } &&
20137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20138 { (case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_try") 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; } &&
20147 { ac_try='test -s conftest.$ac_objext'
20148 { (case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_try") 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; }; then
20157 ac_cv_func_finite_in_ieeefp_h=yes
20159 echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20162 ac_cv_func_finite_in_ieeefp_h=no
20165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167 ac_cpp='$CPP $CPPFLAGS'
20168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20173 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20174 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20176 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE_FINITE_IN_IEEEFP_H 1
20186 if test "$llvm_cv_platform_type" = "Unix" ; then
20189 for ac_header in stdlib.h unistd.h
20191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 ac_res=`eval echo '${'$as_ac_Header'}'`
20199 { echo "$as_me:$LINENO: result: $ac_res" >&5
20200 echo "${ECHO_T}$ac_res" >&6; }
20202 # Is the header compilable?
20203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20205 cat >conftest.$ac_ext <<_ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211 $ac_includes_default
20212 #include <$ac_header>
20214 rm -f conftest.$ac_objext
20215 if { (ac_try="$ac_compile"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_compile") 2>conftest.er1
20223 grep -v '^ *+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
20228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20229 { (case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_try") 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest.$ac_objext'
20239 { (case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_try") 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_header_compiler=yes
20250 echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20253 ac_header_compiler=no
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20258 echo "${ECHO_T}$ac_header_compiler" >&6; }
20260 # Is the header present?
20261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 #include <$ac_header>
20271 if { (ac_try="$ac_cpp conftest.$ac_ext"
20272 case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20279 grep -v '^ *+' conftest.er1 >conftest.err
20281 cat conftest.err >&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } >/dev/null; then
20284 if test -s conftest.err; then
20285 ac_cpp_err=$ac_c_preproc_warn_flag
20286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20293 if test -z "$ac_cpp_err"; then
20294 ac_header_preproc=yes
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ac_header_preproc=no
20302 rm -f conftest.err conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20304 echo "${ECHO_T}$ac_header_preproc" >&6; }
20306 # So? What about this header?
20307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20313 ac_header_preproc=yes
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20329 ## ------------------------------------ ##
20330 ## Report this to http://llvm.org/bugs/ ##
20331 ## ------------------------------------ ##
20333 ) | sed "s/^/$as_me: WARNING: /" >&2
20336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 eval "$as_ac_Header=\$ac_header_preproc"
20343 ac_res=`eval echo '${'$as_ac_Header'}'`
20344 { echo "$as_me:$LINENO: result: $ac_res" >&5
20345 echo "${ECHO_T}$ac_res" >&6; }
20348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20349 cat >>confdefs.h <<_ACEOF
20350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20358 for ac_func in getpagesize
20360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20374 #define $ac_func innocuous_$ac_func
20376 /* System header to define __stub macros and hopefully few prototypes,
20377 which can conflict with char $ac_func (); below.
20378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20379 <limits.h> exists even on freestanding compilers. */
20382 # include <limits.h>
20384 # include <assert.h>
20389 /* Override any GCC internal prototype to avoid an error.
20390 Use char because int might match the return type of a GCC
20391 builtin and then its argument prototype would still apply. */
20396 /* The GNU C library defines this for functions which it implements
20397 to always fail with ENOSYS. Some functions are actually named
20398 something starting with __ and the normal name is an alias. */
20399 #if defined __stub_$ac_func || defined __stub___$ac_func
20406 return $ac_func ();
20411 rm -f conftest.$ac_objext conftest$ac_exeext
20412 if { (ac_try="$ac_link"
20413 case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_link") 2>conftest.er1
20420 grep -v '^ *+' conftest.er1 >conftest.err
20422 cat conftest.err >&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } &&
20425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20426 { (case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_try") 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest$ac_exeext'
20436 { (case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_try") 2>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
20445 eval "$as_ac_var=yes"
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 eval "$as_ac_var=no"
20453 rm -f core conftest.err conftest.$ac_objext \
20454 conftest$ac_exeext conftest.$ac_ext
20456 ac_res=`eval echo '${'$as_ac_var'}'`
20457 { echo "$as_me:$LINENO: result: $ac_res" >&5
20458 echo "${ECHO_T}$ac_res" >&6; }
20459 if test `eval echo '${'$as_ac_var'}'` = yes; then
20460 cat >>confdefs.h <<_ACEOF
20461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20467 { echo "$as_me:$LINENO: checking for working mmap" >&5
20468 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20469 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 if test "$cross_compiling" = yes; then
20473 ac_cv_func_mmap_fixed_mapped=no
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 $ac_includes_default
20482 /* malloc might have been renamed as rpl_malloc. */
20485 /* Thanks to Mike Haertel and Jim Avera for this test.
20486 Here is a matrix of mmap possibilities:
20487 mmap private not fixed
20488 mmap private fixed at somewhere currently unmapped
20489 mmap private fixed at somewhere already mapped
20490 mmap shared not fixed
20491 mmap shared fixed at somewhere currently unmapped
20492 mmap shared fixed at somewhere already mapped
20493 For private mappings, we should verify that changes cannot be read()
20494 back from the file, nor mmap's back from the file at a different
20495 address. (There have been systems where private was not correctly
20496 implemented like the infamous i386 svr4.0, and systems where the
20497 VM page cache was not coherent with the file system buffer cache
20498 like early versions of FreeBSD and possibly contemporary NetBSD.)
20499 For shared mappings, we should conversely verify that changes get
20500 propagated back to all the places they're supposed to be.
20502 Grep wants private fixed already mapped.
20503 The main things grep needs to know about mmap are:
20504 * does it exist and is it safe to write into the mmap'd area
20505 * how to use it (BSD variants) */
20508 #include <sys/mman.h>
20510 #if !STDC_HEADERS && !HAVE_STDLIB_H
20514 /* This mess was copied from the GNU getpagesize.h. */
20515 #if !HAVE_GETPAGESIZE
20516 /* Assume that all systems that can run configure have sys/param.h. */
20517 # if !HAVE_SYS_PARAM_H
20518 # define HAVE_SYS_PARAM_H 1
20521 # ifdef _SC_PAGESIZE
20522 # define getpagesize() sysconf(_SC_PAGESIZE)
20523 # else /* no _SC_PAGESIZE */
20524 # if HAVE_SYS_PARAM_H
20525 # include <sys/param.h>
20526 # ifdef EXEC_PAGESIZE
20527 # define getpagesize() EXEC_PAGESIZE
20528 # else /* no EXEC_PAGESIZE */
20530 # define getpagesize() NBPG * CLSIZE
20533 # endif /* no CLSIZE */
20534 # else /* no NBPG */
20536 # define getpagesize() NBPC
20537 # else /* no NBPC */
20539 # define getpagesize() PAGESIZE
20540 # endif /* PAGESIZE */
20541 # endif /* no NBPC */
20542 # endif /* no NBPG */
20543 # endif /* no EXEC_PAGESIZE */
20544 # else /* no HAVE_SYS_PARAM_H */
20545 # define getpagesize() 8192 /* punt totally */
20546 # endif /* no HAVE_SYS_PARAM_H */
20547 # endif /* no _SC_PAGESIZE */
20549 #endif /* no HAVE_GETPAGESIZE */
20554 char *data, *data2, *data3;
20558 pagesize = getpagesize ();
20560 /* First, make a file with some known garbage in it. */
20561 data = (char *) malloc (pagesize);
20564 for (i = 0; i < pagesize; ++i)
20565 *(data + i) = rand ();
20567 fd = creat ("conftest.mmap", 0600);
20570 if (write (fd, data, pagesize) != pagesize)
20574 /* Next, try to mmap the file at a fixed address which already has
20575 something else allocated at it. If we can, also make sure that
20576 we see the same garbage. */
20577 fd = open ("conftest.mmap", O_RDWR);
20580 data2 = (char *) malloc (2 * pagesize);
20583 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20584 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20585 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20587 for (i = 0; i < pagesize; ++i)
20588 if (*(data + i) != *(data2 + i))
20591 /* Finally, make sure that changes to the mapped area do not
20592 percolate back to the file as seen by read(). (This is a bug on
20593 some variants of i386 svr4.0.) */
20594 for (i = 0; i < pagesize; ++i)
20595 *(data2 + i) = *(data2 + i) + 1;
20596 data3 = (char *) malloc (pagesize);
20599 if (read (fd, data3, pagesize) != pagesize)
20601 for (i = 0; i < pagesize; ++i)
20602 if (*(data + i) != *(data3 + i))
20608 rm -f conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_link") 2>&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20619 { (case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_try") 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 ac_cv_func_mmap_fixed_mapped=yes
20630 echo "$as_me: program exited with status $ac_status" >&5
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20634 ( exit $ac_status )
20635 ac_cv_func_mmap_fixed_mapped=no
20637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20642 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20643 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20644 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20646 cat >>confdefs.h <<\_ACEOF
20647 #define HAVE_MMAP 1
20651 rm -f conftest.mmap
20653 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20654 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20655 if test "${ac_cv_func_mmap_file+set}" = set; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 ac_cpp='$CPP $CPPFLAGS'
20660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20664 if test "$cross_compiling" = yes; then
20665 ac_cv_func_mmap_file=no
20667 cat >conftest.$ac_ext <<_ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20675 #include <sys/types.h>
20676 #include <sys/mman.h>
20684 fd = creat ("foo",0777);
20685 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20687 return (fd != (int) MAP_FAILED);
20692 rm -f conftest$ac_exeext
20693 if { (ac_try="$ac_link"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_link") 2>&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_try") 2>&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 ac_cv_func_mmap_file=yes
20714 echo "$as_me: program exited with status $ac_status" >&5
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20718 ( exit $ac_status )
20719 ac_cv_func_mmap_file=no
20721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20726 ac_cpp='$CPP $CPPFLAGS'
20727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20733 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20734 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20735 if test "$ac_cv_func_mmap_file" = yes; then
20737 cat >>confdefs.h <<\_ACEOF
20738 #define HAVE_MMAP_FILE
20745 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20746 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20747 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 if test "$llvm_cv_os_type" = "Interix" ; then
20751 ac_cv_need_dev_zero_for_mmap=yes
20753 ac_cv_need_dev_zero_for_mmap=no
20757 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20758 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20759 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20761 cat >>confdefs.h <<\_ACEOF
20762 #define NEED_DEV_ZERO_FOR_MMAP 1
20767 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20769 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20770 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20772 if test "$ac_cv_func_mmap_file" = "no"
20774 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20775 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20779 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20780 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20782 ac_cpp='$CXXCPP $CPPFLAGS'
20783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20787 cat >conftest.$ac_ext <<_ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20794 volatile unsigned long val = 1;
20795 __sync_synchronize();
20796 __sync_val_compare_and_swap(&val, 1, 0);
20797 __sync_add_and_fetch(&val, 1);
20798 __sync_sub_and_fetch(&val, 1);
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (ac_try="$ac_link"
20805 case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_link") 2>conftest.er1
20812 grep -v '^ *+' conftest.er1 >conftest.err
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20818 { (case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_try") 2>&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; } &&
20827 { ac_try='test -s conftest$ac_exeext'
20828 { (case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_try") 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
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
20843 { echo "$as_me:$LINENO: result: yes" >&5
20844 echo "${ECHO_T}yes" >&6; }
20846 cat >>confdefs.h <<\_ACEOF
20847 #define LLVM_HAS_ATOMICS 1
20851 echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20854 { echo "$as_me:$LINENO: result: no" >&5
20855 echo "${ECHO_T}no" >&6; }
20857 cat >>confdefs.h <<\_ACEOF
20858 #define LLVM_HAS_ATOMICS 0
20861 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20862 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20865 rm -f core conftest.err conftest.$ac_objext \
20866 conftest$ac_exeext conftest.$ac_ext
20869 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20870 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20871 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20872 if test "${llvm_cv_linux_mixed+set}" = set; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 ac_cpp='$CPP $CPPFLAGS'
20877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20881 cat >conftest.$ac_ext <<_ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20888 error: Not x86-64 even if uname says so!
20899 rm -f conftest.$ac_objext
20900 if { (ac_try="$ac_compile"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_compile") 2>conftest.er1
20908 grep -v '^ *+' conftest.er1 >conftest.err
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } &&
20913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20914 { (case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_try") 2>&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; } &&
20923 { ac_try='test -s conftest.$ac_objext'
20924 { (case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_try") 2>&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; }; then
20933 llvm_cv_linux_mixed=no
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 llvm_cv_linux_mixed=yes
20941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943 ac_cpp='$CPP $CPPFLAGS'
20944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20950 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20951 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20953 if test "$llvm_cv_linux_mixed" = "yes"; then
20954 llvm_cv_target_arch="x86"
20960 for ac_func in __dso_handle
20962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20976 #define $ac_func innocuous_$ac_func
20978 /* System header to define __stub macros and hopefully few prototypes,
20979 which can conflict with char $ac_func (); below.
20980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20981 <limits.h> exists even on freestanding compilers. */
20984 # include <limits.h>
20986 # include <assert.h>
20991 /* Override any GCC internal prototype to avoid an error.
20992 Use char because int might match the return type of a GCC
20993 builtin and then its argument prototype would still apply. */
20998 /* The GNU C library defines this for functions which it implements
20999 to always fail with ENOSYS. Some functions are actually named
21000 something starting with __ and the normal name is an alias. */
21001 #if defined __stub_$ac_func || defined __stub___$ac_func
21008 return $ac_func ();
21013 rm -f conftest.$ac_objext conftest$ac_exeext
21014 if { (ac_try="$ac_link"
21015 case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_link") 2>conftest.er1
21022 grep -v '^ *+' conftest.er1 >conftest.err
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
21027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21028 { (case "(($ac_try" in
21029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030 *) ac_try_echo=$ac_try;;
21032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033 (eval "$ac_try") 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest$ac_exeext'
21038 { (case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_try") 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21047 eval "$as_ac_var=yes"
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21052 eval "$as_ac_var=no"
21055 rm -f core conftest.err conftest.$ac_objext \
21056 conftest$ac_exeext conftest.$ac_ext
21058 ac_res=`eval echo '${'$as_ac_var'}'`
21059 { echo "$as_me:$LINENO: result: $ac_res" >&5
21060 echo "${ECHO_T}$ac_res" >&6; }
21061 if test `eval echo '${'$as_ac_var'}'` = yes; then
21062 cat >>confdefs.h <<_ACEOF
21063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21070 SHLIBEXT=$libltdl_cv_shlibext
21073 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21076 if test "${prefix}" = "NONE" ; then
21077 prefix="/usr/local"
21079 eval LLVM_PREFIX="${prefix}";
21080 eval LLVM_BINDIR="${prefix}/bin";
21081 eval LLVM_LIBDIR="${prefix}/lib";
21082 eval LLVM_DATADIR="${prefix}/share/llvm";
21083 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21084 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21085 eval LLVM_INCLUDEDIR="${prefix}/include";
21086 eval LLVM_INFODIR="${prefix}/info";
21087 eval LLVM_MANDIR="${prefix}/man";
21088 LLVM_CONFIGTIME=`date`
21100 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21101 LLVM_CONFIGTIME="(timestamp not enabled)"
21105 cat >>confdefs.h <<_ACEOF
21106 #define LLVM_PREFIX "$LLVM_PREFIX"
21110 cat >>confdefs.h <<_ACEOF
21111 #define LLVM_BINDIR "$LLVM_BINDIR"
21115 cat >>confdefs.h <<_ACEOF
21116 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21120 cat >>confdefs.h <<_ACEOF
21121 #define LLVM_DATADIR "$LLVM_DATADIR"
21125 cat >>confdefs.h <<_ACEOF
21126 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21130 cat >>confdefs.h <<_ACEOF
21131 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21135 cat >>confdefs.h <<_ACEOF
21136 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21140 cat >>confdefs.h <<_ACEOF
21141 #define LLVM_INFODIR "$LLVM_INFODIR"
21145 cat >>confdefs.h <<_ACEOF
21146 #define LLVM_MANDIR "$LLVM_MANDIR"
21150 cat >>confdefs.h <<_ACEOF
21151 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21155 cat >>confdefs.h <<_ACEOF
21156 #define LLVM_HOSTTRIPLE "$host"
21160 cat >>confdefs.h <<_ACEOF
21161 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21165 if test "$BINDINGS_TO_BUILD" = auto ; then
21166 BINDINGS_TO_BUILD=""
21167 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21168 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21171 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21177 binding_prereqs_failed=0
21178 for a_binding in $BINDINGS_TO_BUILD ; do
21179 case "$a_binding" in
21181 if test "x$OCAMLC" = x ; then
21182 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21183 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21184 binding_prereqs_failed=1
21186 if test "x$OCAMLDEP" = x ; then
21187 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21188 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21189 binding_prereqs_failed=1
21191 if test "x$OCAMLOPT" = x ; then
21192 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21193 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21195 if test "x$with_ocaml_libdir" != xauto ; then
21196 OCAML_LIBDIR=$with_ocaml_libdir
21199 ocaml_stdlib="`"$OCAMLC" -where`"
21200 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21202 # ocaml stdlib is beneath our prefix; use stdlib
21203 OCAML_LIBDIR=$ocaml_stdlib
21206 # ocaml stdlib is outside our prefix; use libdir/ocaml
21207 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21214 if test "$binding_prereqs_failed" = 1 ; then
21215 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21216 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21217 { (exit 1); exit 1; }; }
21220 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21221 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21222 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21226 ac_cpp='$CXXCPP $CPPFLAGS'
21227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21231 oldcxxflags="$CXXFLAGS"
21232 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21233 cat >conftest.$ac_ext <<_ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */
21239 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21248 rm -f conftest.$ac_objext
21249 if { (ac_try="$ac_compile"
21250 case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_compile") 2>conftest.er1
21257 grep -v '^ *+' conftest.er1 >conftest.err
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } &&
21262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21263 { (case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_try") 2>&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_try") 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 llvm_cv_cxx_visibility_inlines_hidden=yes
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 llvm_cv_cxx_visibility_inlines_hidden=no
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 CXXFLAGS="$oldcxxflags"
21293 ac_cpp='$CPP $CPPFLAGS'
21294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21300 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21301 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21302 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21303 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21306 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21311 if test "$llvm_cv_link_use_r" = "yes" ; then
21318 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21319 RDYNAMIC="-Wl,-export-dynamic"
21326 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21333 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21335 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21337 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21339 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21341 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21344 ac_config_files="$ac_config_files Makefile.config"
21347 ac_config_files="$ac_config_files llvm.spec"
21350 ac_config_files="$ac_config_files docs/doxygen.cfg"
21353 if test "${clang_src_root}" = ""; then
21354 clang_src_root="$srcdir/tools/clang"
21356 if test -f ${clang_src_root}/README.txt; then
21357 configh="include/clang/Config/config.h"
21358 doxy="docs/doxygen.cfg"
21359 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21361 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21365 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21368 ac_config_commands="$ac_config_commands setup"
21370 ac_config_commands="$ac_config_commands Makefile"
21373 ac_config_commands="$ac_config_commands Makefile.common"
21376 ac_config_commands="$ac_config_commands examples/Makefile"
21379 ac_config_commands="$ac_config_commands lib/Makefile"
21382 ac_config_commands="$ac_config_commands runtime/Makefile"
21385 ac_config_commands="$ac_config_commands test/Makefile"
21388 ac_config_commands="$ac_config_commands test/Makefile.tests"
21391 ac_config_commands="$ac_config_commands unittests/Makefile"
21394 ac_config_commands="$ac_config_commands tools/Makefile"
21397 ac_config_commands="$ac_config_commands utils/Makefile"
21400 ac_config_commands="$ac_config_commands projects/Makefile"
21403 ac_config_commands="$ac_config_commands bindings/Makefile"
21406 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21410 cat >confcache <<\_ACEOF
21411 # This file is a shell script that caches the results of configure
21412 # tests run on this system so they can be shared between configure
21413 # scripts and configure runs, see configure's option --config-cache.
21414 # It is not useful on other systems. If it contains results you don't
21415 # want to keep, you may remove or edit it.
21417 # config.status only pays attention to the cache file if you give it
21418 # the --recheck option to rerun configure.
21420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21422 # following values.
21426 # The following way of writing the cache mishandles newlines in values,
21427 # but we know of no workaround that is simple, portable, and efficient.
21428 # So, we kill variables containing newlines.
21429 # Ultrix sh set writes to stderr and can't be redirected directly,
21430 # and sets the high bit in the cache file unless we assign to the vars.
21432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21433 eval ac_val=\$$ac_var
21437 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21438 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21441 _ | IFS | as_nl) ;; #(
21442 *) $as_unset $ac_var ;;
21448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21449 *${as_nl}ac_space=\ *)
21450 # `set' does not quote correctly, so add quotes (double-quote
21451 # substitution turns \\\\ into \\, and sed turns \\ into \).
21454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21457 # `set' quotes correctly as required by POSIX, so do not add quotes.
21458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21472 if test -w "$cache_file"; then
21473 test "x$cache_file" != "x/dev/null" &&
21474 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21475 echo "$as_me: updating cache $cache_file" >&6;}
21476 cat confcache >$cache_file
21478 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21479 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21485 # Let make expand exec_prefix.
21486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21488 DEFS=-DHAVE_CONFIG_H
21492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21493 # 1. Remove the extension, and $U if already installed.
21494 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21495 ac_i=`echo "$ac_i" | sed "$ac_script"`
21496 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21497 # will be set to the directory where LIBOBJS objects are built.
21498 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21499 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21501 LIBOBJS=$ac_libobjs
21503 LTLIBOBJS=$ac_ltlibobjs
21506 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21507 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21508 Usually this means the macro was only invoked conditionally." >&5
21509 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21510 Usually this means the macro was only invoked conditionally." >&2;}
21511 { (exit 1); exit 1; }; }
21513 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21514 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21515 Usually this means the macro was only invoked conditionally." >&5
21516 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21517 Usually this means the macro was only invoked conditionally." >&2;}
21518 { (exit 1); exit 1; }; }
21521 : ${CONFIG_STATUS=./config.status}
21522 ac_clean_files_save=$ac_clean_files
21523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21524 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21525 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21526 cat >$CONFIG_STATUS <<_ACEOF
21528 # Generated by $as_me.
21529 # Run this file to recreate the current configuration.
21530 # Compiler output produced by configure, useful for debugging
21531 # configure, is in config.log if it exists.
21534 ac_cs_recheck=false
21536 SHELL=\${CONFIG_SHELL-$SHELL}
21539 cat >>$CONFIG_STATUS <<\_ACEOF
21540 ## --------------------- ##
21541 ## M4sh Initialization. ##
21542 ## --------------------- ##
21544 # Be Bourne compatible
21545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21548 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21549 # is contrary to our usage. Disable this feature.
21550 alias -g '${1+"$@"}'='"$@"'
21551 setopt NO_GLOB_SUBST
21553 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21555 BIN_SH=xpg4; export BIN_SH # for Tru64
21556 DUALCASE=1; export DUALCASE # for MKS sh
21560 # Avoid depending upon Character Ranges.
21561 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21562 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21563 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21564 as_cr_digits='0123456789'
21565 as_cr_alnum=$as_cr_Letters$as_cr_digits
21567 # The user is always right.
21568 if test "${PATH_SEPARATOR+set}" != set; then
21569 echo "#! /bin/sh" >conf$$.sh
21570 echo "exit 0" >>conf$$.sh
21572 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21580 # Support unset when possible.
21581 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21589 # We need space, tab and new line, in precisely that order. Quoting is
21590 # there to prevent editors from complaining about space-tab.
21591 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21592 # splitting by setting IFS to empty value.)
21597 # Find who we are. Look in the path if we contain no directory separator.
21599 *[\\/]* ) as_myself=$0 ;;
21600 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21601 for as_dir in $PATH
21604 test -z "$as_dir" && as_dir=.
21605 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21611 # We did not find ourselves, most probably we were run as `sh COMMAND'
21612 # in which case we are not to be found in the path.
21613 if test "x$as_myself" = x; then
21616 if test ! -f "$as_myself"; then
21617 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21618 { (exit 1); exit 1; }
21621 # Work around bugs in pre-3.0 UWIN ksh.
21622 for as_var in ENV MAIL MAILPATH
21623 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21631 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21632 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21633 LC_TELEPHONE LC_TIME
21635 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21636 eval $as_var=C; export $as_var
21638 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21642 # Required to use basename.
21643 if expr a : '\(a\)' >/dev/null 2>&1 &&
21644 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21650 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21651 as_basename=basename
21657 # Name of the executable.
21658 as_me=`$as_basename -- "$0" ||
21659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21660 X"$0" : 'X\(//\)$' \| \
21661 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21663 sed '/^.*\/\([^/][^/]*\)\/*$/{
21682 as_lineno_1=$LINENO
21683 as_lineno_2=$LINENO
21684 test "x$as_lineno_1" != "x$as_lineno_2" &&
21685 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21687 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21688 # uniformly replaced by the line number. The first 'sed' inserts a
21689 # line-number line after each line using $LINENO; the second 'sed'
21690 # does the real work. The second script uses 'N' to pair each
21691 # line-number line with the line containing $LINENO, and appends
21692 # trailing '-' during substitution so that $LINENO is not a special
21693 # case at line end.
21694 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21695 # scripts with optimization help from Paolo Bonzini. Blame Lee
21696 # E. McMahon (1931-1989) for sed's syntax. :-)
21708 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21711 ' >$as_me.lineno &&
21712 chmod +x "$as_me.lineno" ||
21713 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21714 { (exit 1); exit 1; }; }
21716 # Don't try to exec as it changes $[0], causing all sort of problems
21717 # (the dirname of $[0] is not the place where we might find the
21718 # original and so on. Autoconf is especially sensitive to this).
21719 . "./$as_me.lineno"
21720 # Exit status is that of the last command.
21725 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21731 ECHO_C= ECHO_N= ECHO_T=
21732 case `echo -n x` in
21734 case `echo 'x\c'` in
21735 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21742 if expr a : '\(a\)' >/dev/null 2>&1 &&
21743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21749 rm -f conf$$ conf$$.exe conf$$.file
21750 if test -d conf$$.dir; then
21751 rm -f conf$$.dir/conf$$.file
21757 if ln -s conf$$.file conf$$ 2>/dev/null; then
21759 # ... but there are two gotchas:
21760 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21761 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21762 # In both cases, we have to default to `cp -p'.
21763 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21765 elif ln conf$$.file conf$$ 2>/dev/null; then
21770 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21771 rmdir conf$$.dir 2>/dev/null
21773 if mkdir -p . 2>/dev/null; then
21776 test -d ./-p && rmdir ./-p
21780 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21781 # systems may use methods other than mode bits to determine executability.
21782 cat >conf$$.file <<_ASEOF
21786 chmod +x conf$$.file
21787 if test -x conf$$.file >/dev/null 2>&1; then
21788 as_executable_p="test -x"
21794 # Sed expression to map a string onto a valid CPP name.
21795 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21797 # Sed expression to map a string onto a valid variable name.
21798 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21803 # Save the log message, to keep $[0] and so on meaningful, and to
21804 # report actual input values of CONFIG_FILES etc. instead of their
21805 # values after options handling.
21807 This file was extended by LLVM $as_me 3.2svn, which was
21808 generated by GNU Autoconf 2.60. Invocation command line was
21810 CONFIG_FILES = $CONFIG_FILES
21811 CONFIG_HEADERS = $CONFIG_HEADERS
21812 CONFIG_LINKS = $CONFIG_LINKS
21813 CONFIG_COMMANDS = $CONFIG_COMMANDS
21816 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21821 cat >>$CONFIG_STATUS <<_ACEOF
21822 # Files that config.status was made for.
21823 config_files="$ac_config_files"
21824 config_headers="$ac_config_headers"
21825 config_commands="$ac_config_commands"
21829 cat >>$CONFIG_STATUS <<\_ACEOF
21831 \`$as_me' instantiates files from templates according to the
21832 current configuration.
21834 Usage: $0 [OPTIONS] [FILE]...
21836 -h, --help print this help, then exit
21837 -V, --version print version number, then exit
21838 -q, --quiet do not print progress messages
21839 -d, --debug don't remove temporary files
21840 --recheck update $as_me by reconfiguring in the same conditions
21841 --file=FILE[:TEMPLATE]
21842 instantiate the configuration file FILE
21843 --header=FILE[:TEMPLATE]
21844 instantiate the configuration header FILE
21846 Configuration files:
21849 Configuration headers:
21852 Configuration commands:
21855 Report bugs to <bug-autoconf@gnu.org>."
21858 cat >>$CONFIG_STATUS <<_ACEOF
21860 LLVM config.status 3.2svn
21861 configured by $0, generated by GNU Autoconf 2.60,
21862 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21864 Copyright (C) 2006 Free Software Foundation, Inc.
21865 This config.status script is free software; the Free Software Foundation
21866 gives unlimited permission to copy, distribute and modify it."
21873 cat >>$CONFIG_STATUS <<\_ACEOF
21874 # If no file are specified by the user, then we need to provide default
21875 # value. By we need to know if files were specified by the user.
21881 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21882 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21893 # Handling of the options.
21894 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21896 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21897 echo "$ac_cs_version"; exit ;;
21898 --debug | --debu | --deb | --de | --d | -d )
21900 --file | --fil | --fi | --f )
21902 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21903 ac_need_defaults=false;;
21904 --header | --heade | --head | --hea )
21906 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21907 ac_need_defaults=false;;
21909 # Conflict between --help and --header
21910 { echo "$as_me: error: ambiguous option: $1
21911 Try \`$0 --help' for more information." >&2
21912 { (exit 1); exit 1; }; };;
21913 --help | --hel | -h )
21914 echo "$ac_cs_usage"; exit ;;
21915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21916 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21919 # This is an error.
21920 -*) { echo "$as_me: error: unrecognized option: $1
21921 Try \`$0 --help' for more information." >&2
21922 { (exit 1); exit 1; }; } ;;
21924 *) ac_config_targets="$ac_config_targets $1"
21925 ac_need_defaults=false ;;
21931 ac_configure_extra_args=
21933 if $ac_cs_silent; then
21935 ac_configure_extra_args="$ac_configure_extra_args --silent"
21939 cat >>$CONFIG_STATUS <<_ACEOF
21940 if \$ac_cs_recheck; then
21941 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21942 CONFIG_SHELL=$SHELL
21943 export CONFIG_SHELL
21944 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21948 cat >>$CONFIG_STATUS <<\_ACEOF
21952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21953 ## Running $as_me. ##
21959 cat >>$CONFIG_STATUS <<_ACEOF
21963 llvm_src="${srcdir}"
21967 cat >>$CONFIG_STATUS <<\_ACEOF
21969 # Handling of arguments.
21970 for ac_config_target in $ac_config_targets
21972 case $ac_config_target in
21973 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21974 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21975 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21976 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21977 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21978 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21979 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21980 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21981 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21982 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21983 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21984 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21985 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21986 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21987 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21988 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21989 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21990 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21991 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21992 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21993 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21994 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21995 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21996 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21997 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21998 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21999 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22001 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22003 { (exit 1); exit 1; }; };;
22008 # If the user did not use the arguments to specify the items to instantiate,
22009 # then the envvar interface is used. Set only those that are not.
22010 # We use the long form for the default assignment because of an extremely
22011 # bizarre bug on SunOS 4.1.3.
22012 if $ac_need_defaults; then
22013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22018 # Have a temporary directory for convenience. Make it in the build tree
22019 # simply because there is no reason against having it here, and in addition,
22020 # creating and moving files from /tmp can sometimes cause problems.
22021 # Hook for its removal unless debugging.
22022 # Note that there is a small window in which the directory will not be cleaned:
22023 # after its creation but before its name has been assigned to `$tmp'.
22027 trap 'exit_status=$?
22028 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22030 trap '{ (exit 1); exit 1; }' 1 2 13 15
22032 # Create a (secure) tmp directory for tmp files.
22035 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22036 test -n "$tmp" && test -d "$tmp"
22039 tmp=./conf$$-$RANDOM
22040 (umask 077 && mkdir "$tmp")
22043 echo "$me: cannot create a temporary directory in ." >&2
22044 { (exit 1); exit 1; }
22048 # Set up the sed scripts for CONFIG_FILES section.
22051 # No need to generate the scripts if there are no CONFIG_FILES.
22052 # This happens for instance when ./config.status config.h
22053 if test -n "$CONFIG_FILES"; then
22060 for ac_last_try in false false false false false :; do
22061 cat >conf$$subs.sed <<_ACEOF
22062 SHELL!$SHELL$ac_delim
22063 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22064 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22065 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22066 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22067 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22068 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22069 exec_prefix!$exec_prefix$ac_delim
22070 prefix!$prefix$ac_delim
22071 program_transform_name!$program_transform_name$ac_delim
22072 bindir!$bindir$ac_delim
22073 sbindir!$sbindir$ac_delim
22074 libexecdir!$libexecdir$ac_delim
22075 datarootdir!$datarootdir$ac_delim
22076 datadir!$datadir$ac_delim
22077 sysconfdir!$sysconfdir$ac_delim
22078 sharedstatedir!$sharedstatedir$ac_delim
22079 localstatedir!$localstatedir$ac_delim
22080 includedir!$includedir$ac_delim
22081 oldincludedir!$oldincludedir$ac_delim
22082 docdir!$docdir$ac_delim
22083 infodir!$infodir$ac_delim
22084 htmldir!$htmldir$ac_delim
22085 dvidir!$dvidir$ac_delim
22086 pdfdir!$pdfdir$ac_delim
22087 psdir!$psdir$ac_delim
22088 libdir!$libdir$ac_delim
22089 localedir!$localedir$ac_delim
22090 mandir!$mandir$ac_delim
22091 DEFS!$DEFS$ac_delim
22092 ECHO_C!$ECHO_C$ac_delim
22093 ECHO_N!$ECHO_N$ac_delim
22094 ECHO_T!$ECHO_T$ac_delim
22095 LIBS!$LIBS$ac_delim
22096 build_alias!$build_alias$ac_delim
22097 host_alias!$host_alias$ac_delim
22098 target_alias!$target_alias$ac_delim
22099 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22101 CFLAGS!$CFLAGS$ac_delim
22102 LDFLAGS!$LDFLAGS$ac_delim
22103 CPPFLAGS!$CPPFLAGS$ac_delim
22104 ac_ct_CC!$ac_ct_CC$ac_delim
22105 EXEEXT!$EXEEXT$ac_delim
22106 OBJEXT!$OBJEXT$ac_delim
22108 CXXFLAGS!$CXXFLAGS$ac_delim
22109 ac_ct_CXX!$ac_ct_CXX$ac_delim
22111 subdirs!$subdirs$ac_delim
22112 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22113 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22114 build!$build$ac_delim
22115 build_cpu!$build_cpu$ac_delim
22116 build_vendor!$build_vendor$ac_delim
22117 build_os!$build_os$ac_delim
22118 host!$host$ac_delim
22119 host_cpu!$host_cpu$ac_delim
22120 host_vendor!$host_vendor$ac_delim
22121 host_os!$host_os$ac_delim
22122 target!$target$ac_delim
22123 target_cpu!$target_cpu$ac_delim
22124 target_vendor!$target_vendor$ac_delim
22125 target_os!$target_os$ac_delim
22127 HOST_OS!$HOST_OS$ac_delim
22128 TARGET_OS!$TARGET_OS$ac_delim
22129 LINKALL!$LINKALL$ac_delim
22130 NOLINKALL!$NOLINKALL$ac_delim
22131 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22132 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22133 ARCH!$ARCH$ac_delim
22134 HOST_ARCH!$HOST_ARCH$ac_delim
22135 ENDIAN!$ENDIAN$ac_delim
22136 GREP!$GREP$ac_delim
22137 EGREP!$EGREP$ac_delim
22138 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22139 BUILD_CC!$BUILD_CC$ac_delim
22140 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22141 BUILD_CXX!$BUILD_CXX$ac_delim
22142 CVSBUILD!$CVSBUILD$ac_delim
22143 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22144 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22145 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22146 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22147 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22148 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22149 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22150 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22151 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22152 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22154 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22155 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22156 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22157 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22158 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22161 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22163 elif $ac_last_try; then
22164 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22165 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22166 { (exit 1); exit 1; }; }
22168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22172 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22173 if test -n "$ac_eof"; then
22174 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22175 ac_eof=`expr $ac_eof + 1`
22178 cat >>$CONFIG_STATUS <<_ACEOF
22179 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22183 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22184 s/^/s,@/; s/!/@,|#_!!_#|/
22187 s/'"$ac_delim"'$/,g/; t
22189 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22190 ' >>$CONFIG_STATUS <conf$$subs.sed
22191 rm -f conf$$subs.sed
22192 cat >>$CONFIG_STATUS <<_ACEOF
22198 for ac_last_try in false false false false false :; do
22199 cat >conf$$subs.sed <<_ACEOF
22200 ENABLE_PIC!$ENABLE_PIC$ac_delim
22201 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22202 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22203 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22204 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22205 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22206 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22207 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22208 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22209 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22210 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22211 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22212 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22213 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22214 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22216 ifGNUmake!$ifGNUmake$ac_delim
22217 LN_S!$LN_S$ac_delim
22220 DATE!$DATE$ac_delim
22221 FIND!$FIND$ac_delim
22222 MKDIR!$MKDIR$ac_delim
22224 RANLIB!$RANLIB$ac_delim
22229 BINPWD!$BINPWD$ac_delim
22230 GRAPHVIZ!$GRAPHVIZ$ac_delim
22233 NEATO!$NEATO$ac_delim
22234 TWOPI!$TWOPI$ac_delim
22235 CIRCO!$CIRCO$ac_delim
22237 DOTTY!$DOTTY$ac_delim
22238 XDOT_PY!$XDOT_PY$ac_delim
22239 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22240 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22241 INSTALL_DATA!$INSTALL_DATA$ac_delim
22242 BZIP2!$BZIP2$ac_delim
22244 DOXYGEN!$DOXYGEN$ac_delim
22245 GROFF!$GROFF$ac_delim
22246 GZIPBIN!$GZIPBIN$ac_delim
22247 PDFROFF!$PDFROFF$ac_delim
22249 OCAMLC!$OCAMLC$ac_delim
22250 OCAMLOPT!$OCAMLOPT$ac_delim
22251 OCAMLDEP!$OCAMLDEP$ac_delim
22252 OCAMLDOC!$OCAMLDOC$ac_delim
22254 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22255 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22256 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22257 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22258 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22259 LIBADD_DL!$LIBADD_DL$ac_delim
22260 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22261 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22262 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22263 USE_UDIS86!$USE_UDIS86$ac_delim
22264 USE_OPROFILE!$USE_OPROFILE$ac_delim
22265 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22266 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22267 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22268 XML2CONFIG!$XML2CONFIG$ac_delim
22269 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22270 LIBXML2_INC!$LIBXML2_INC$ac_delim
22271 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22272 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22273 MMAP_FILE!$MMAP_FILE$ac_delim
22274 SHLIBEXT!$SHLIBEXT$ac_delim
22275 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22276 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22277 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22278 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22279 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22280 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22281 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22282 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22283 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22284 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22285 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22286 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22287 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22288 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22289 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22290 RPATH!$RPATH$ac_delim
22291 RDYNAMIC!$RDYNAMIC$ac_delim
22292 LIBOBJS!$LIBOBJS$ac_delim
22293 LTLIBOBJS!$LTLIBOBJS$ac_delim
22296 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
22298 elif $ac_last_try; then
22299 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22300 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22301 { (exit 1); exit 1; }; }
22303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22307 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22308 if test -n "$ac_eof"; then
22309 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22310 ac_eof=`expr $ac_eof + 1`
22313 cat >>$CONFIG_STATUS <<_ACEOF
22314 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22318 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22319 s/^/s,@/; s/!/@,|#_!!_#|/
22322 s/'"$ac_delim"'$/,g/; t
22324 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22325 ' >>$CONFIG_STATUS <conf$$subs.sed
22326 rm -f conf$$subs.sed
22327 cat >>$CONFIG_STATUS <<_ACEOF
22334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22336 # trailing colons and then remove the whole line if VPATH becomes empty
22337 # (actually we leave an empty line to preserve line numbers).
22338 if test "x$srcdir" = x.; then
22339 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22340 s/:*\$(srcdir):*/:/
22341 s/:*\${srcdir}:*/:/
22343 s/^\([^=]*=[ ]*\):*/\1/
22349 cat >>$CONFIG_STATUS <<\_ACEOF
22350 fi # test -n "$CONFIG_FILES"
22353 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22356 :[FHLC]) ac_mode=$ac_tag; continue;;
22358 case $ac_mode$ac_tag in
22360 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22361 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22362 { (exit 1); exit 1; }; };;
22363 :[FH]-) ac_tag=-:-;;
22364 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22381 -) ac_f="$tmp/stdin";;
22382 *) # Look for the file first in the build tree, then in the source tree
22383 # (if the path is not absolute). The absolute path cannot be DOS-style,
22384 # because $ac_f cannot contain `:'.
22388 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22390 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22391 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22392 { (exit 1); exit 1; }; };;
22394 ac_file_inputs="$ac_file_inputs $ac_f"
22397 # Let's still pretend it is `configure' which instantiates (i.e., don't
22398 # use $as_me), people would be surprised to read:
22399 # /* config.h. Generated by config.status. */
22400 configure_input="Generated from "`IFS=:
22401 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22402 if test x"$ac_file" != x-; then
22403 configure_input="$ac_file. $configure_input"
22404 { echo "$as_me:$LINENO: creating $ac_file" >&5
22405 echo "$as_me: creating $ac_file" >&6;}
22409 *:-:* | *:-) cat >"$tmp/stdin";;
22414 ac_dir=`$as_dirname -- "$ac_file" ||
22415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22416 X"$ac_file" : 'X\(//\)[^/]' \| \
22417 X"$ac_file" : 'X\(//\)$' \| \
22418 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22424 /^X\(\/\/\)[^/].*/{
22439 -*) as_dir=./$as_dir;;
22441 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22445 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22446 *) as_qdir=$as_dir;;
22448 as_dirs="'$as_qdir' $as_dirs"
22449 as_dir=`$as_dirname -- "$as_dir" ||
22450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451 X"$as_dir" : 'X\(//\)[^/]' \| \
22452 X"$as_dir" : 'X\(//\)$' \| \
22453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22459 /^X\(\/\/\)[^/].*/{
22472 test -d "$as_dir" && break
22474 test -z "$as_dirs" || eval "mkdir $as_dirs"
22475 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22476 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22477 { (exit 1); exit 1; }; }; }
22481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22484 # A ".." for each directory in $ac_dir_suffix.
22485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22486 case $ac_top_builddir_sub in
22487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22491 ac_abs_top_builddir=$ac_pwd
22492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22493 # for backward compatibility:
22494 ac_top_builddir=$ac_top_build_prefix
22497 .) # We are building in place.
22499 ac_top_srcdir=$ac_top_builddir_sub
22500 ac_abs_top_srcdir=$ac_pwd ;;
22501 [\\/]* | ?:[\\/]* ) # Absolute name.
22502 ac_srcdir=$srcdir$ac_dir_suffix;
22503 ac_top_srcdir=$srcdir
22504 ac_abs_top_srcdir=$srcdir ;;
22505 *) # Relative name.
22506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22507 ac_top_srcdir=$ac_top_build_prefix$srcdir
22508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22520 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22521 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22525 cat >>$CONFIG_STATUS <<\_ACEOF
22526 # If the template does not know about datarootdir, expand it.
22527 # FIXME: This hack should be removed a few years after 2.60.
22528 ac_datarootdir_hack=; ac_datarootdir_seen=
22530 case `sed -n '/datarootdir/ {
22539 ' $ac_file_inputs` in
22540 *datarootdir*) ac_datarootdir_seen=yes;;
22541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22542 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22543 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22545 cat >>$CONFIG_STATUS <<_ACEOF
22546 ac_datarootdir_hack='
22547 s&@datadir@&$datadir&g
22548 s&@docdir@&$docdir&g
22549 s&@infodir@&$infodir&g
22550 s&@localedir@&$localedir&g
22551 s&@mandir@&$mandir&g
22552 s&\\\${datarootdir}&$datarootdir&g' ;;
22556 # Neutralize VPATH when `$srcdir' = `.'.
22557 # Shell code in configure.ac might set extrasub.
22558 # FIXME: do we really want to maintain this feature?
22559 cat >>$CONFIG_STATUS <<_ACEOF
22563 cat >>$CONFIG_STATUS <<\_ACEOF
22565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22566 s&@configure_input@&$configure_input&;t t
22567 s&@top_builddir@&$ac_top_builddir_sub&;t t
22568 s&@srcdir@&$ac_srcdir&;t t
22569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22570 s&@top_srcdir@&$ac_top_srcdir&;t t
22571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22572 s&@builddir@&$ac_builddir&;t t
22573 s&@abs_builddir@&$ac_abs_builddir&;t t
22574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22575 s&@INSTALL@&$ac_INSTALL&;t t
22576 $ac_datarootdir_hack
22577 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22579 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22580 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22581 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22582 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22583 which seems to be undefined. Please make sure it is defined." >&5
22584 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22585 which seems to be undefined. Please make sure it is defined." >&2;}
22589 -) cat "$tmp/out"; rm -f "$tmp/out";;
22590 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22599 # Transform confdefs.h into a sed script `conftest.defines', that
22600 # substitutes the proper values into config.h.in to produce config.h.
22601 rm -f conftest.defines conftest.tail
22602 # First, append a space to every undef/define line, to ease matching.
22603 echo 's/$/ /' >conftest.defines
22604 # Then, protect against being on the right side of a sed subst, or in
22605 # an unquoted here document, in config.status. If some macros were
22606 # called several times there might be several #defines for the same
22607 # symbol, which is useless. But do not sort them, since the last
22608 # AC_DEFINE must be honored.
22609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22610 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22611 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22612 # PARAMS is the parameter list in the macro definition--in most cases, it's
22613 # just an empty string.
22614 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22615 ac_dB='\\)[ (].*,\\1define\\2'
22623 s/^[ ]*#[ ]*define[ ][ ]*//
22628 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22629 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22630 ' >>conftest.defines
22632 # Remove the space that was appended to ease matching.
22633 # Then replace #undef with comments. This is necessary, for
22634 # example, in the case of _POSIX_SOURCE, which is predefined and required
22635 # on some systems where configure will not decide to define it.
22636 # (The regexp can be short, since the line contains either #define or #undef.)
22638 s,^[ #]*u.*,/* & */,' >>conftest.defines
22640 # Break up conftest.defines:
22641 ac_max_sed_lines=50
22643 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22644 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22645 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22647 ac_in='$ac_file_inputs'
22648 ac_out='"$tmp/out1"'
22649 ac_nxt='"$tmp/out2"'
22653 # Write a here document:
22654 cat >>$CONFIG_STATUS <<_ACEOF
22655 # First, check the format of the line:
22656 cat >"\$tmp/defines.sed" <<\\CEOF
22657 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22658 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22662 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22664 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22665 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22666 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22667 grep . conftest.tail >/dev/null || break
22668 rm -f conftest.defines
22669 mv conftest.tail conftest.defines
22671 rm -f conftest.defines conftest.tail
22673 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22674 cat >>$CONFIG_STATUS <<\_ACEOF
22675 if test x"$ac_file" != x-; then
22676 echo "/* $configure_input */" >"$tmp/config.h"
22677 cat "$ac_result" >>"$tmp/config.h"
22678 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22679 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22680 echo "$as_me: $ac_file is unchanged" >&6;}
22683 mv "$tmp/config.h" $ac_file
22686 echo "/* $configure_input */"
22692 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22693 echo "$as_me: executing $ac_file commands" >&6;}
22698 case $ac_file$ac_mode in
22699 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22700 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22701 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22702 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22703 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22704 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22705 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22706 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22707 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22708 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22709 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22710 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22711 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22712 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22713 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22714 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22715 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22716 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22717 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22718 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22719 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22720 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22721 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22723 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22724 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22730 { (exit 0); exit 0; }
22732 chmod +x $CONFIG_STATUS
22733 ac_clean_files=$ac_clean_files_save
22736 # configure is writing to config.log, and then calls config.status.
22737 # config.status does its own redirection, appending to config.log.
22738 # Unfortunately, on DOS this fails, as config.log is still kept open
22739 # by configure, so config.status won't be able to write to it; its
22740 # output is simply discarded. So we exec the FD to /dev/null,
22741 # effectively closing config.log, so it can be properly (re)opened and
22742 # appended to by config.status. When coming back to configure, we
22743 # need to make the FD available again.
22744 if test "$no_create" != yes; then
22746 ac_config_status_args=
22747 test "$silent" = yes &&
22748 ac_config_status_args="$ac_config_status_args --quiet"
22750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22753 # would make configure fail if this is the last instruction.
22754 $ac_cs_success || { (exit 1); exit 1; }
22758 # CONFIG_SUBDIRS section.
22760 if test "$no_recursion" != yes; then
22762 # Remove --cache-file and --srcdir arguments so they do not pile up.
22763 ac_sub_configure_args=
22765 eval "set x $ac_configure_args"
22769 if test -n "$ac_prev"; then
22774 -cache-file | --cache-file | --cache-fil | --cache-fi \
22775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22776 ac_prev=cache_file ;;
22777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22781 --config-cache | -C)
22783 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22785 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22787 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22789 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22793 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22795 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22799 # Always prepend --prefix to ensure using the same prefix
22800 # in subdir configurations.
22801 ac_arg="--prefix=$prefix"
22803 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22805 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22808 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22810 # Do not complain, so a configure script can configure whichever
22811 # parts of a large source tree are present.
22812 test -d "$srcdir/$ac_dir" || continue
22814 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22815 echo "$as_me:$LINENO: $ac_msg" >&5
22819 -*) as_dir=./$as_dir;;
22821 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22825 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22826 *) as_qdir=$as_dir;;
22828 as_dirs="'$as_qdir' $as_dirs"
22829 as_dir=`$as_dirname -- "$as_dir" ||
22830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22831 X"$as_dir" : 'X\(//\)[^/]' \| \
22832 X"$as_dir" : 'X\(//\)$' \| \
22833 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22839 /^X\(\/\/\)[^/].*/{
22852 test -d "$as_dir" && break
22854 test -z "$as_dirs" || eval "mkdir $as_dirs"
22855 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22856 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22857 { (exit 1); exit 1; }; }; }
22861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22864 # A ".." for each directory in $ac_dir_suffix.
22865 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22866 case $ac_top_builddir_sub in
22867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22871 ac_abs_top_builddir=$ac_pwd
22872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22873 # for backward compatibility:
22874 ac_top_builddir=$ac_top_build_prefix
22877 .) # We are building in place.
22879 ac_top_srcdir=$ac_top_builddir_sub
22880 ac_abs_top_srcdir=$ac_pwd ;;
22881 [\\/]* | ?:[\\/]* ) # Absolute name.
22882 ac_srcdir=$srcdir$ac_dir_suffix;
22883 ac_top_srcdir=$srcdir
22884 ac_abs_top_srcdir=$srcdir ;;
22885 *) # Relative name.
22886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22887 ac_top_srcdir=$ac_top_build_prefix$srcdir
22888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22895 # Check for guested configure; otherwise get Cygnus style configure.
22896 if test -f "$ac_srcdir/configure.gnu"; then
22897 ac_sub_configure=$ac_srcdir/configure.gnu
22898 elif test -f "$ac_srcdir/configure"; then
22899 ac_sub_configure=$ac_srcdir/configure
22900 elif test -f "$ac_srcdir/configure.in"; then
22901 # This should be Cygnus configure.
22902 ac_sub_configure=$ac_aux_dir/configure
22904 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22905 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22909 # The recursion is here.
22910 if test -n "$ac_sub_configure"; then
22911 # Make the cache file name correct relative to the subdirectory.
22912 case $cache_file in
22913 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22914 *) # Relative name.
22915 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22918 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22919 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22920 # The eval makes quoting arguments work.
22921 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22922 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22923 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22924 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22925 { (exit 1); exit 1; }; }