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
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
789 ENABLE_VISIBILITY_INLINES_HIDDEN
795 ac_precious_vars='build_alias
806 ac_subdirs_all='projects/llvm-gcc
810 projects/llvm-poolalloc
813 projects/llvm-stacker
821 # Initialize some variables set by options.
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1111 -site=* | --site=* | --sit=*)
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-polly Use polly if available (default is YES)
1395 --enable-libcpp Use libc++ if available (default is NO)
1396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1400 --enable-expensive-checks
1401 Compile with expensive debug checks enabled (default
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
1407 --enable-jit Enable Just In Time Compiling (default is YES)
1408 --enable-docs Build documents (default is YES)
1409 --enable-doxygen Build doxygen documentation (default is NO)
1410 --enable-threads Use threads if available (default is YES)
1411 --enable-pthreads Use pthreads if available (default is YES)
1412 --enable-pic Build LLVM with Position Independent Code (default
1414 --enable-shared Build a shared library and link tools against it
1416 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1417 Win32 DLL (default is NO)
1418 --enable-timestamps Enable embedding timestamp information in build
1420 --enable-targets Build specific host targets: all or
1421 target1,target2,... Valid targets are: host, x86,
1422 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423 xcore, msp430, ptx, nvptx, and cpp (default=all)
1424 --enable-bindings Build specific language bindings:
1425 all,auto,none,{binding-name} (default=auto)
1426 --enable-libffi Check for the presence of libffi (default is NO)
1427 --enable-ltdl-install install libltdl
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-optimize-option Select the compiler options to use for optimized
1434 --with-extra-options Specify additional options to compile LLVM with
1435 --with-extra-ld-options Specify additional options to link LLVM with
1436 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 --with-clang-srcdir Directory to the out-of-tree Clang source
1439 --with-clang-resource-dir
1440 Relative directory from the Clang binary for
1442 --with-c-include-dirs Colon separated list of directories clang will
1444 --with-gcc-toolchain Directory where gcc is installed.
1445 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1446 --with-binutils-include Specify path to binutils/include/ containing
1447 plugin-api.h file for gold plugin.
1448 --with-bug-report-url Specify the URL where bug reports should be
1449 submitted (default=http://llvm.org/bugs/)
1450 --with-internal-prefix Installation directory for internal files
1451 --with-tclinclude directory where tcl headers are
1452 --with-udis86=<path> Use udis86 external x86 disassembler library
1453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
1455 --with-intel-jitevents=<vtune-amplifier-dir>
1456 Specify location of run-time support library for
1458 (default=/opt/intel/vtune_amplifier_xe_2011)
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CXX C++ compiler command
1468 CXXFLAGS C++ compiler flags
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1474 Report bugs to <http://llvm.org/bugs/>.
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" || continue
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1502 .) # We are building in place.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1526 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1535 LLVM configure 3.2svn
1536 generated by GNU Autoconf 2.60
1538 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1539 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1543 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1547 cat >config.log <<_ACEOF
1548 This file contains any messages produced by compilers while
1549 running configure, to aid debugging if configure makes a mistake.
1551 It was created by LLVM $as_me 3.2svn, which was
1552 generated by GNU Autoconf 2.60. Invocation command line was
1564 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1574 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1575 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1576 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1577 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1578 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1579 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 test -z "$as_dir" && as_dir=.
1588 echo "PATH: $as_dir"
1604 # Keep a trace of the command line.
1605 # Strip out --no-create and --no-recursion so they do not pile up.
1606 # Strip out --silent because we don't want to record it for future runs.
1607 # Also quote any args containing shell meta-characters.
1608 # Make two passes to allow for proper duplicate-argument suppression.
1612 ac_must_keep_next=false
1618 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620 | -silent | --silent | --silen | --sile | --sil)
1623 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1629 if test $ac_must_keep_next = true; then
1630 ac_must_keep_next=false # Got value, back to normal.
1633 *=* | --config-cache | -C | -disable-* | --disable-* \
1634 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636 | -with-* | --with-* | -without-* | --without-* | --x)
1637 case "$ac_configure_args0 " in
1638 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 -* ) ac_must_keep_next=true ;;
1644 ac_configure_args="$ac_configure_args '$ac_arg'"
1649 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652 # When interrupted or exit'd, cleanup temporary files, and complete
1653 # config.log. We remove comments because anyway the quotes in there
1654 # would cause problems or look ugly.
1655 # WARNING: Use '\'' to represent an apostrophe within the trap.
1656 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1657 trap 'exit_status=$?
1658 # Save into config.log some information that might help in debugging.
1663 ## ---------------- ##
1664 ## Cache variables. ##
1665 ## ---------------- ##
1668 # The following way of writing the cache mishandles newlines in values,
1670 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671 eval ac_val=\$$ac_var
1675 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1676 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679 _ | IFS | as_nl) ;; #(
1680 *) $as_unset $ac_var ;;
1685 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686 *${as_nl}ac_space=\ *)
1688 "s/'\''/'\''\\\\'\'''\''/g;
1689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1700 ## ----------------- ##
1701 ## Output variables. ##
1702 ## ----------------- ##
1705 for ac_var in $ac_subst_vars
1707 eval ac_val=\$$ac_var
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 echo "$ac_var='\''$ac_val'\''"
1715 if test -n "$ac_subst_files"; then
1717 ## ------------------- ##
1718 ## File substitutions. ##
1719 ## ------------------- ##
1722 for ac_var in $ac_subst_files
1724 eval ac_val=\$$ac_var
1726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 echo "$ac_var='\''$ac_val'\''"
1733 if test -s confdefs.h; then
1743 test "$ac_signal" != 0 &&
1744 echo "$as_me: caught signal $ac_signal"
1745 echo "$as_me: exit $exit_status"
1747 rm -f core *.core core.conftest.* &&
1748 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751 for ac_signal in 1 2 13 15; do
1752 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1757 rm -f -r conftest* confdefs.h
1759 # Predefined preprocessor variables.
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_NAME "$PACKAGE_NAME"
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_STRING "$PACKAGE_STRING"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1786 # Let the site file select an alternate cache file if it wants to.
1787 # Prefer explicitly selected file to automatically selected ones.
1788 if test -n "$CONFIG_SITE"; then
1789 set x "$CONFIG_SITE"
1790 elif test "x$prefix" != xNONE; then
1791 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 set x "$ac_default_prefix/share/config.site" \
1794 "$ac_default_prefix/etc/config.site"
1799 if test -r "$ac_site_file"; then
1800 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1801 echo "$as_me: loading site script $ac_site_file" >&6;}
1802 sed 's/^/| /' "$ac_site_file" >&5
1807 if test -r "$cache_file"; then
1808 # Some versions of bash will fail to source /dev/null (special
1809 # files actually), so we avoid doing that.
1810 if test -f "$cache_file"; then
1811 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1812 echo "$as_me: loading cache $cache_file" >&6;}
1814 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1815 *) . "./$cache_file";;
1819 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1820 echo "$as_me: creating cache $cache_file" >&6;}
1824 # Check that the precious variables saved in the cache have kept the same
1826 ac_cache_corrupted=false
1827 for ac_var in $ac_precious_vars; do
1828 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1829 eval ac_new_set=\$ac_env_${ac_var}_set
1830 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1831 eval ac_new_val=\$ac_env_${ac_var}_value
1832 case $ac_old_set,$ac_new_set in
1834 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1836 ac_cache_corrupted=: ;;
1838 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1840 ac_cache_corrupted=: ;;
1843 if test "x$ac_old_val" != "x$ac_new_val"; then
1844 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1845 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1846 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1847 echo "$as_me: former value: $ac_old_val" >&2;}
1848 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1849 echo "$as_me: current value: $ac_new_val" >&2;}
1850 ac_cache_corrupted=:
1853 # Pass precious variables to config.status.
1854 if test "$ac_new_set" = set; then
1856 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1857 *) ac_arg=$ac_var=$ac_new_val ;;
1859 case " $ac_configure_args " in
1860 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1861 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1865 if $ac_cache_corrupted; then
1866 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1867 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1868 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1869 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1870 { (exit 1); exit 1; }; }
1898 ac_cpp='$CPP $CPPFLAGS'
1899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 cat >>confdefs.h <<\_ACEOF
1906 #define LLVM_VERSION_MAJOR 3
1910 cat >>confdefs.h <<\_ACEOF
1911 #define LLVM_VERSION_MINOR 2
1915 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1924 for ac_dir in autoconf "$srcdir"/autoconf; do
1925 if test -f "$ac_dir/install-sh"; then
1927 ac_install_sh="$ac_aux_dir/install-sh -c"
1929 elif test -f "$ac_dir/install.sh"; then
1931 ac_install_sh="$ac_aux_dir/install.sh -c"
1933 elif test -f "$ac_dir/shtool"; then
1935 ac_install_sh="$ac_aux_dir/shtool install -c"
1939 if test -z "$ac_aux_dir"; then
1940 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1941 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1942 { (exit 1); exit 1; }; }
1945 # These three variables are undocumented and unsupported,
1946 # and are intended to be withdrawn in a future Autoconf release.
1947 # They can cause serious problems if a builder's source tree is in a directory
1948 # whose full name contains unusual characters.
1949 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1950 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1951 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1955 if test ${srcdir} != "." ; then
1956 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1957 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1958 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1959 { (exit 1); exit 1; }; }
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968 if test -n "$ac_tool_prefix"; then
1969 for ac_prog in clang llvm-gcc gcc
1971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$CC"; then
1979 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test -n "$CC"; then
2000 { echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6; }
2003 { echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6; }
2008 test -n "$CC" && break
2011 if test -z "$CC"; then
2013 for ac_prog in clang llvm-gcc gcc
2015 # Extract the first word of "$ac_prog", so it can be a program name with args.
2016 set dummy $ac_prog; ac_word=$2
2017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 if test -n "$ac_ct_CC"; then
2023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2032 ac_cv_prog_ac_ct_CC="$ac_prog"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2043 if test -n "$ac_ct_CC"; then
2044 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2045 echo "${ECHO_T}$ac_ct_CC" >&6; }
2047 { echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6; }
2052 test -n "$ac_ct_CC" && break
2055 if test "x$ac_ct_CC" = x; then
2058 case $cross_compiling:$ac_tool_warned in
2060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2061 whose name does not start with the host triplet. If you think this
2062 configuration is useful to you, please write to autoconf@gnu.org." >&5
2063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2064 whose name does not start with the host triplet. If you think this
2065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2066 ac_tool_warned=yes ;;
2073 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }
2079 # Provide some information about the compiler.
2080 echo "$as_me:$LINENO: checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (ac_try="$ac_compiler --version >&5"
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2088 (eval "$ac_compiler --version >&5") 2>&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092 { (ac_try="$ac_compiler -v >&5"
2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 *) ac_try_echo=$ac_try;;
2097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098 (eval "$ac_compiler -v >&5") 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2102 { (ac_try="$ac_compiler -V >&5"
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108 (eval "$ac_compiler -V >&5") 2>&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2113 cat >conftest.$ac_ext <<_ACEOF
2116 cat confdefs.h >>conftest.$ac_ext
2117 cat >>conftest.$ac_ext <<_ACEOF
2118 /* end confdefs.h. */
2128 ac_clean_files_save=$ac_clean_files
2129 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2130 # Try to create an executable without -o first, disregard a.out.
2131 # It will help us diagnose broken compilers, and finding out an intuition
2133 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2134 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2135 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2137 # List of possible output files, starting from the most likely.
2138 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2139 # only as a last resort. b.out is created by i960 compilers.
2140 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2142 # The IRIX 6 linker writes into existing files which may not be
2143 # executable, retaining their permissions. Remove them first so a
2144 # subsequent execution test works.
2146 for ac_file in $ac_files
2149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2150 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2155 if { (ac_try="$ac_link_default"
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2161 (eval "$ac_link_default") 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; then
2165 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2166 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2167 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2168 # so that the user can short-circuit this test for compilers unknown to
2170 for ac_file in $ac_files
2172 test -f "$ac_file" || continue
2174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2177 # We found the default executable, but exeext='' is most
2181 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185 # We set ac_cv_exeext here because the later test for it is not
2186 # safe: cross compilers may not add the suffix if given an `-o'
2187 # argument, so we may need to know it at that point already.
2188 # Even if this section looks crufty: it has the advantage of
2195 test "$ac_cv_exeext" = no && ac_cv_exeext=
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2201 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&2;}
2205 { (exit 77); exit 77; }; }
2208 ac_exeext=$ac_cv_exeext
2209 { echo "$as_me:$LINENO: result: $ac_file" >&5
2210 echo "${ECHO_T}$ac_file" >&6; }
2212 # Check that the compiler produces executables we can run. If not, either
2213 # the compiler is broken, or we cross compile.
2214 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2216 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217 # If not cross compiling, check that we can run a simple program.
2218 if test "$cross_compiling" != yes; then
2219 if { ac_try='./$ac_file'
2220 { (case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2225 (eval "$ac_try") 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2231 if test "$cross_compiling" = maybe; then
2234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2244 { echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6; }
2247 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2248 ac_clean_files=$ac_clean_files_save
2249 # Check that the compiler produces executables we can run. If not, either
2250 # the compiler is broken, or we cross compile.
2251 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2253 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254 echo "${ECHO_T}$cross_compiling" >&6; }
2256 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2258 if { (ac_try="$ac_link"
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264 (eval "$ac_link") 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2270 # work properly (i.e., refer to `conftest.exe'), while it won't with
2272 for ac_file in conftest.exe conftest conftest.*; do
2273 test -f "$ac_file" || continue
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
2289 rm -f conftest$ac_cv_exeext
2290 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2296 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2298 if test "${ac_cv_objext+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 cat >conftest.$ac_ext <<_ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2316 rm -f conftest.o conftest.obj
2317 if { (ac_try="$ac_compile"
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323 (eval "$ac_compile") 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; then
2327 for ac_file in conftest.o conftest.obj conftest.*; do
2328 test -f "$ac_file" || continue;
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343 { (exit 1); exit 1; }; }
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6; }
2350 OBJEXT=$ac_cv_objext
2352 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 cat >conftest.$ac_ext <<_ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2375 rm -f conftest.$ac_objext
2376 if { (ac_try="$ac_compile"
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_compile") 2>conftest.er1
2384 grep -v '^ *+' conftest.er1 >conftest.err
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
2389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2390 { (case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_try") 2>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_try") 2>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2421 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2423 GCC=`test $ac_compiler_gnu = yes && echo yes`
2424 ac_test_CFLAGS=${CFLAGS+set}
2425 ac_save_CFLAGS=$CFLAGS
2426 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2427 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_cc_g+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 ac_save_c_werror_flag=$ac_c_werror_flag
2432 ac_c_werror_flag=yes
2435 cat >conftest.$ac_ext <<_ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2450 rm -f conftest.$ac_objext
2451 if { (ac_try="$ac_compile"
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_compile") 2>conftest.er1
2459 grep -v '^ *+' conftest.er1 >conftest.err
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2465 { (case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_try") 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_try") 2>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2490 cat >conftest.$ac_ext <<_ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2505 rm -f conftest.$ac_objext
2506 if { (ac_try="$ac_compile"
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_compile") 2>conftest.er1
2514 grep -v '^ *+' conftest.er1 >conftest.err
2516 cat conftest.err >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } &&
2519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2520 { (case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_try") 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_try") 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2544 ac_c_werror_flag=$ac_save_c_werror_flag
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>conftest.er1
2570 grep -v '^ *+' conftest.er1 >conftest.err
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2576 { (case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_try") 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_try") 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 ac_c_werror_flag=$ac_save_c_werror_flag
2612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2614 if test "$ac_test_CFLAGS" = set; then
2615 CFLAGS=$ac_save_CFLAGS
2616 elif test $ac_cv_prog_cc_g = yes; then
2617 if test "$GCC" = yes; then
2623 if test "$GCC" = yes; then
2629 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2630 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_cc_c89+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 ac_cv_prog_cc_c89=no
2636 cat >conftest.$ac_ext <<_ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2644 #include <sys/types.h>
2645 #include <sys/stat.h>
2646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2647 struct buf { int x; };
2648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2649 static char *e (p, i)
2655 static char *f (char * (*g) (char **, int), char **p, ...)
2660 s = g (p, va_arg (v,int));
2665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2666 function prototypes and stuff, but not '\xHH' hex character constants.
2667 These don't provoke an error unfortunately, instead are silently treated
2668 as 'x'. The following induces an error, until -std is added to get
2669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2670 array size at least. It's necessary to write '\x00'==0 to get something
2671 that's true only with -std. */
2672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2675 inside strings and character constants. */
2677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2679 int test (int i, double x);
2680 struct s1 {int (*f) (int a);};
2681 struct s2 {int (*f) (double a);};
2682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2688 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2696 CC="$ac_save_CC $ac_arg"
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2712 { (case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_try") 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_try") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_cv_prog_cc_c89=$ac_arg
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f core conftest.err conftest.$ac_objext
2740 test "x$ac_cv_prog_cc_c89" != "xno" && break
2742 rm -f conftest.$ac_ext
2747 case "x$ac_cv_prog_cc_c89" in
2749 { echo "$as_me:$LINENO: result: none needed" >&5
2750 echo "${ECHO_T}none needed" >&6; } ;;
2752 { echo "$as_me:$LINENO: result: unsupported" >&5
2753 echo "${ECHO_T}unsupported" >&6; } ;;
2755 CC="$CC $ac_cv_prog_cc_c89"
2756 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2757 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 ac_cpp='$CXXCPP $CPPFLAGS'
2769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2772 if test -z "$CXX"; then
2773 if test -n "$CCC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in clang++ llvm-g++ g++
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_CXX+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$CXX"; then
2787 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test -n "$CXX"; then
2808 { echo "$as_me:$LINENO: result: $CXX" >&5
2809 echo "${ECHO_T}$CXX" >&6; }
2811 { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2816 test -n "$CXX" && break
2819 if test -z "$CXX"; then
2821 for ac_prog in clang++ llvm-g++ g++
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 if test -n "$ac_ct_CXX"; then
2831 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CXX="$ac_prog"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2851 if test -n "$ac_ct_CXX"; then
2852 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2853 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2855 { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2860 test -n "$ac_ct_CXX" && break
2863 if test "x$ac_ct_CXX" = x; then
2866 case $cross_compiling:$ac_tool_warned in
2868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet. If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&5
2871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet. If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2874 ac_tool_warned=yes ;;
2882 # Provide some information about the compiler.
2883 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2884 ac_compiler=`set X $ac_compile; echo $2`
2885 { (ac_try="$ac_compiler --version >&5"
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compiler --version >&5") 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }
2895 { (ac_try="$ac_compiler -v >&5"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler -v >&5") 2>&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905 { (ac_try="$ac_compiler -V >&5"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compiler -V >&5") 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2918 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2954 { (case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_try") 2>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; } &&
2963 { ac_try='test -s conftest.$ac_objext'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_try") 2>&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2985 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2986 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2987 GXX=`test $ac_compiler_gnu = yes && echo yes`
2988 ac_test_CXXFLAGS=${CXXFLAGS+set}
2989 ac_save_CXXFLAGS=$CXXFLAGS
2990 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2991 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2992 if test "${ac_cv_prog_cxx_g+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2996 ac_cxx_werror_flag=yes
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
3023 grep -v '^ *+' conftest.er1 >conftest.err
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3029 { (case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_try") 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_cv_prog_cxx_g=yes
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3054 cat >conftest.$ac_ext <<_ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_prog_cxx_g=yes
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3176 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3177 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3178 if test "$ac_test_CXXFLAGS" = set; then
3179 CXXFLAGS=$ac_save_CXXFLAGS
3180 elif test $ac_cv_prog_cxx_g = yes; then
3181 if test "$GXX" = yes; then
3187 if test "$GXX" = yes; then
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3204 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3205 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3206 # On Suns, sometimes $CPP names a directory.
3207 if test -n "$CPP" && test -d "$CPP"; then
3210 if test -z "$CPP"; then
3211 if test "${ac_cv_prog_CPP+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 # Double quotes because CPP needs to be expanded
3215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3218 for ac_c_preproc_warn_flag in '' yes
3220 # Use a header file that comes with gcc, so configuring glibc
3221 # with a fresh cross-compiler works.
3222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223 # <limits.h> exists even on freestanding compilers.
3224 # On the NeXT, cc -E runs the code through the compiler's parser,
3225 # not just through cpp. "Syntax error" is here to catch this case.
3226 cat >conftest.$ac_ext <<_ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3233 # include <limits.h>
3235 # include <assert.h>
3239 if { (ac_try="$ac_cpp conftest.$ac_ext"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3247 grep -v '^ *+' conftest.er1 >conftest.err
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261 if test -z "$ac_cpp_err"; then
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 # Broken: fails on valid input.
3271 rm -f conftest.err conftest.$ac_ext
3273 # OK, works on sane cases. Now check whether nonexistent headers
3274 # can be detected and how.
3275 cat >conftest.$ac_ext <<_ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 #include <ac_nonexistent.h>
3283 if { (ac_try="$ac_cpp conftest.$ac_ext"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } >/dev/null; then
3296 if test -s conftest.err; then
3297 ac_cpp_err=$ac_c_preproc_warn_flag
3298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305 if test -z "$ac_cpp_err"; then
3306 # Broken: success on invalid input.
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 # Passes both tests.
3317 rm -f conftest.err conftest.$ac_ext
3320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321 rm -f conftest.err conftest.$ac_ext
3322 if $ac_preproc_ok; then
3334 { echo "$as_me:$LINENO: result: $CPP" >&5
3335 echo "${ECHO_T}$CPP" >&6; }
3337 for ac_c_preproc_warn_flag in '' yes
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3352 # include <limits.h>
3354 # include <assert.h>
3358 if { (ac_try="$ac_cpp conftest.$ac_ext"
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } >/dev/null; then
3371 if test -s conftest.err; then
3372 ac_cpp_err=$ac_c_preproc_warn_flag
3373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380 if test -z "$ac_cpp_err"; then
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3386 # Broken: fails on valid input.
3390 rm -f conftest.err conftest.$ac_ext
3392 # OK, works on sane cases. Now check whether nonexistent headers
3393 # can be detected and how.
3394 cat >conftest.$ac_ext <<_ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400 #include <ac_nonexistent.h>
3402 if { (ac_try="$ac_cpp conftest.$ac_ext"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424 if test -z "$ac_cpp_err"; then
3425 # Broken: success on invalid input.
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 # Passes both tests.
3436 rm -f conftest.err conftest.$ac_ext
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then
3444 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&5
3446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&2;}
3448 { (exit 1); exit 1; }; }
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 if test -d ${srcdir}/projects/llvm-gcc ; then
3461 subdirs="$subdirs projects/llvm-gcc"
3465 if test -d ${srcdir}/projects/test-suite ; then
3466 subdirs="$subdirs projects/test-suite"
3470 if test -d ${srcdir}/projects/llvm-test ; then
3471 subdirs="$subdirs projects/llvm-test"
3475 if test -d ${srcdir}/projects/poolalloc ; then
3476 subdirs="$subdirs projects/poolalloc"
3480 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3481 subdirs="$subdirs projects/llvm-poolalloc"
3485 for i in `ls ${srcdir}/projects`
3487 if test -d ${srcdir}/projects/${i} ; then
3489 sample) subdirs="$subdirs projects/sample"
3491 privbracket) subdirs="$subdirs projects/privbracket"
3493 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3495 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3497 llvm-java) subdirs="$subdirs projects/llvm-java"
3499 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3501 safecode) subdirs="$subdirs projects/safecode"
3503 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3512 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3513 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3519 # Check whether --enable-polly was given.
3520 if test "${enable_polly+set}" = set; then
3521 enableval=$enable_polly;
3526 case "$enableval" in
3531 default) ENABLE_POLLY=1
3533 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3534 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3535 { (exit 1); exit 1; }; } ;;
3539 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3542 subdirs="$subdirs tools/polly"
3547 # Make sure we can run config.sub.
3548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3549 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3550 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3551 { (exit 1); exit 1; }; }
3553 { echo "$as_me:$LINENO: checking build system type" >&5
3554 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3555 if test "${ac_cv_build+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 ac_build_alias=$build_alias
3559 test "x$ac_build_alias" = x &&
3560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3561 test "x$ac_build_alias" = x &&
3562 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3563 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3564 { (exit 1); exit 1; }; }
3565 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3566 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3567 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3568 { (exit 1); exit 1; }; }
3571 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3572 echo "${ECHO_T}$ac_cv_build" >&6; }
3573 case $ac_cv_build in
3575 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3576 echo "$as_me: error: invalid value of canonical build" >&2;}
3577 { (exit 1); exit 1; }; };;
3580 ac_save_IFS=$IFS; IFS='-'
3586 # Remember, the first character of IFS is used to create $*,
3587 # except with old shells:
3590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3593 { echo "$as_me:$LINENO: checking host system type" >&5
3594 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3595 if test "${ac_cv_host+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 if test "x$host_alias" = x; then
3599 ac_cv_host=$ac_cv_build
3601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3602 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3603 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3604 { (exit 1); exit 1; }; }
3608 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3609 echo "${ECHO_T}$ac_cv_host" >&6; }
3612 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3613 echo "$as_me: error: invalid value of canonical host" >&2;}
3614 { (exit 1); exit 1; }; };;
3617 ac_save_IFS=$IFS; IFS='-'
3623 # Remember, the first character of IFS is used to create $*,
3624 # except with old shells:
3627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3630 { echo "$as_me:$LINENO: checking target system type" >&5
3631 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3632 if test "${ac_cv_target+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 if test "x$target_alias" = x; then
3636 ac_cv_target=$ac_cv_host
3638 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3639 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3640 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3641 { (exit 1); exit 1; }; }
3645 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3646 echo "${ECHO_T}$ac_cv_target" >&6; }
3647 case $ac_cv_target in
3649 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3650 echo "$as_me: error: invalid value of canonical target" >&2;}
3651 { (exit 1); exit 1; }; };;
3653 target=$ac_cv_target
3654 ac_save_IFS=$IFS; IFS='-'
3660 # Remember, the first character of IFS is used to create $*,
3661 # except with old shells:
3664 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3667 # The aliases save the names the user supplied, while $host etc.
3668 # will get canonicalized.
3669 test -n "$target_alias" &&
3670 test "$program_prefix$program_suffix$program_transform_name" = \
3672 program_prefix=${target_alias}-
3674 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3675 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3676 if test "${llvm_cv_os_type+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="AIX"
3684 llvm_cv_platform_type="Unix" ;;
3686 llvm_cv_link_all_option="-Wl,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="IRIX"
3689 llvm_cv_platform_type="Unix" ;;
3691 llvm_cv_link_all_option="-Wl,--whole-archive"
3692 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693 llvm_cv_os_type="Cygwin"
3694 llvm_cv_platform_type="Unix" ;;
3696 llvm_cv_link_all_option="-Wl,-all_load"
3697 llvm_cv_no_link_all_option="-Wl,-noall_load"
3698 llvm_cv_os_type="Darwin"
3699 llvm_cv_platform_type="Unix" ;;
3701 llvm_cv_link_all_option="-Wl,-all_load"
3702 llvm_cv_no_link_all_option="-Wl,-noall_load"
3703 llvm_cv_os_type="Minix"
3704 llvm_cv_platform_type="Unix" ;;
3705 *-*-freebsd* | *-*-kfreebsd-gnu)
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="FreeBSD"
3709 llvm_cv_platform_type="Unix" ;;
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="OpenBSD"
3714 llvm_cv_platform_type="Unix" ;;
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="NetBSD"
3719 llvm_cv_platform_type="Unix" ;;
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="DragonFly"
3724 llvm_cv_platform_type="Unix" ;;
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="HP-UX"
3729 llvm_cv_platform_type="Unix" ;;
3731 llvm_cv_link_all_option="-Wl,--whole-archive"
3732 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733 llvm_cv_os_type="Interix"
3734 llvm_cv_platform_type="Unix" ;;
3736 llvm_cv_link_all_option="-Wl,--whole-archive"
3737 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738 llvm_cv_os_type="Linux"
3739 llvm_cv_platform_type="Unix" ;;
3741 llvm_cv_link_all_option="-Wl,--whole-archive"
3742 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743 llvm_cv_os_type="GNU"
3744 llvm_cv_platform_type="Unix" ;;
3746 llvm_cv_link_all_option="-Wl,-z,allextract"
3747 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3748 llvm_cv_os_type="SunOS"
3749 llvm_cv_platform_type="Unix" ;;
3751 llvm_cv_link_all_option="-Wl,-z,allextract"
3752 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3753 llvm_cv_os_type="AuroraUX"
3754 llvm_cv_platform_type="Unix" ;;
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="Win32"
3759 llvm_cv_platform_type="Win32" ;;
3761 llvm_cv_link_all_option="-Wl,--whole-archive"
3762 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763 llvm_cv_os_type="MingW"
3764 llvm_cv_platform_type="Win32" ;;
3766 llvm_cv_link_all_option="-Wl,--whole-archive"
3767 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768 llvm_cv_os_type="Haiku"
3769 llvm_cv_platform_type="Unix" ;;
3771 llvm_cv_link_all_option="-Wl,--whole-archive"
3772 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773 llvm_cv_os_type="Freestanding"
3774 llvm_cv_platform_type="Unix" ;;
3776 llvm_cv_link_all_option="-Wl,--whole-archive"
3777 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3778 llvm_cv_os_type="Freestanding"
3779 llvm_cv_platform_type="Unix" ;;
3781 llvm_cv_link_all_option=""
3782 llvm_cv_no_link_all_option=""
3783 llvm_cv_os_type="Unknown"
3784 llvm_cv_platform_type="Unknown" ;;
3787 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3790 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3791 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3792 if test "${llvm_cv_target_os_type+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 llvm_cv_target_os_type="AIX" ;;
3799 llvm_cv_target_os_type="IRIX" ;;
3801 llvm_cv_target_os_type="Cygwin" ;;
3803 llvm_cv_target_os_type="Darwin" ;;
3805 llvm_cv_target_os_type="Minix" ;;
3806 *-*-freebsd* | *-*-kfreebsd-gnu)
3807 llvm_cv_target_os_type="FreeBSD" ;;
3809 llvm_cv_target_os_type="OpenBSD" ;;
3811 llvm_cv_target_os_type="NetBSD" ;;
3813 llvm_cv_target_os_type="DragonFly" ;;
3815 llvm_cv_target_os_type="HP-UX" ;;
3817 llvm_cv_target_os_type="Interix" ;;
3819 llvm_cv_target_os_type="Linux" ;;
3821 llvm_cv_target_os_type="GNU" ;;
3823 llvm_cv_target_os_type="SunOS" ;;
3825 llvm_cv_target_os_type="AuroraUX" ;;
3827 llvm_cv_target_os_type="Win32" ;;
3829 llvm_cv_target_os_type="MingW" ;;
3831 llvm_cv_target_os_type="Haiku" ;;
3833 llvm_cv_target_os_type="RTEMS" ;;
3835 llvm_cv_target_os_type="NativeClient" ;;
3837 llvm_cv_target_os_type="Freestanding" ;;
3839 llvm_cv_target_os_type="Unknown" ;;
3842 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3843 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3845 if test "$llvm_cv_os_type" = "Unknown" ; then
3846 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3847 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3848 { (exit 1); exit 1; }; }
3853 HOST_OS=$llvm_cv_os_type
3855 TARGET_OS=$llvm_cv_target_os_type
3858 LINKALL=$llvm_cv_link_all_option
3860 NOLINKALL=$llvm_cv_no_link_all_option
3863 case $llvm_cv_platform_type in
3866 cat >>confdefs.h <<\_ACEOF
3867 #define LLVM_ON_UNIX 1
3877 cat >>confdefs.h <<\_ACEOF
3878 #define LLVM_ON_WIN32 1
3888 { echo "$as_me:$LINENO: checking target architecture" >&5
3889 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3890 if test "${llvm_cv_target_arch+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 i?86-*) llvm_cv_target_arch="x86" ;;
3895 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3896 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3897 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3898 arm*-*) llvm_cv_target_arch="ARM" ;;
3899 mips-*) llvm_cv_target_arch="Mips" ;;
3900 mipsel-*) llvm_cv_target_arch="Mips" ;;
3901 xcore-*) llvm_cv_target_arch="XCore" ;;
3902 msp430-*) llvm_cv_target_arch="MSP430" ;;
3903 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3904 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3905 ptx-*) llvm_cv_target_arch="PTX" ;;
3906 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3907 *) llvm_cv_target_arch="Unknown" ;;
3910 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3911 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3913 if test "$llvm_cv_target_arch" = "Unknown" ; then
3914 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3915 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3918 case "$llvm_cv_target_arch" in
3919 x86) LLVM_NATIVE_ARCH="X86" ;;
3920 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3921 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3924 ARCH=$llvm_cv_target_arch
3929 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3930 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3931 if test "${ac_cv_path_GREP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 # Extract the first word of "grep ggrep" to use in msg output
3935 if test -z "$GREP"; then
3936 set dummy grep ggrep; ac_prog_name=$2
3937 if test "${ac_cv_path_GREP+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 ac_path_GREP_found=false
3941 # Loop through the user's path and test for each of PROGNAME-LIST
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3946 test -z "$as_dir" && as_dir=.
3947 for ac_prog in grep ggrep; do
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3950 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3951 # Check for GNU ac_path_GREP and select it if it is found.
3952 # Check for GNU $ac_path_GREP
3953 case `"$ac_path_GREP" --version 2>&1` in
3955 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3958 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3961 cat "conftest.in" "conftest.in" >"conftest.tmp"
3962 mv "conftest.tmp" "conftest.in"
3963 cp "conftest.in" "conftest.nl"
3964 echo 'GREP' >> "conftest.nl"
3965 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3967 ac_count=`expr $ac_count + 1`
3968 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3969 # Best one so far, save it but keep looking for a better one
3970 ac_cv_path_GREP="$ac_path_GREP"
3971 ac_path_GREP_max=$ac_count
3973 # 10*(2^10) chars as input seems more than enough
3974 test $ac_count -gt 10 && break
3976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3980 $ac_path_GREP_found && break 3
3990 GREP="$ac_cv_path_GREP"
3991 if test -z "$GREP"; then
3992 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3993 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3994 { (exit 1); exit 1; }; }
3998 ac_cv_path_GREP=$GREP
4003 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4004 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4005 GREP="$ac_cv_path_GREP"
4008 { echo "$as_me:$LINENO: checking for egrep" >&5
4009 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4010 if test "${ac_cv_path_EGREP+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4014 then ac_cv_path_EGREP="$GREP -E"
4016 # Extract the first word of "egrep" to use in msg output
4017 if test -z "$EGREP"; then
4018 set dummy egrep; ac_prog_name=$2
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 ac_path_EGREP_found=false
4023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 test -z "$as_dir" && as_dir=.
4029 for ac_prog in egrep; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4032 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4033 # Check for GNU ac_path_EGREP and select it if it is found.
4034 # Check for GNU $ac_path_EGREP
4035 case `"$ac_path_EGREP" --version 2>&1` in
4037 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4040 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
4046 echo 'EGREP' >> "conftest.nl"
4047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049 ac_count=`expr $ac_count + 1`
4050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_EGREP="$ac_path_EGREP"
4053 ac_path_EGREP_max=$ac_count
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062 $ac_path_EGREP_found && break 3
4072 EGREP="$ac_cv_path_EGREP"
4073 if test -z "$EGREP"; then
4074 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4075 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4076 { (exit 1); exit 1; }; }
4080 ac_cv_path_EGREP=$EGREP
4086 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4087 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4088 EGREP="$ac_cv_path_EGREP"
4091 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4093 if test "${ac_cv_header_stdc+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4115 rm -f conftest.$ac_objext
4116 if { (ac_try="$ac_compile"
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122 (eval "$ac_compile") 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4130 { (case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_try") 2>&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; } &&
4139 { ac_try='test -s conftest.$ac_objext'
4140 { (case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_try") 2>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 ac_cv_header_stdc=yes
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 ac_cv_header_stdc=no
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 if test $ac_cv_header_stdc = yes; then
4160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "memchr" >/dev/null 2>&1; then
4174 ac_cv_header_stdc=no
4180 if test $ac_cv_header_stdc = yes; then
4181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192 $EGREP "free" >/dev/null 2>&1; then
4195 ac_cv_header_stdc=no
4201 if test $ac_cv_header_stdc = yes; then
4202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4203 if test "$cross_compiling" = yes; then
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4214 #if ((' ' & 0x0FF) == 0x020)
4215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4218 # define ISLOWER(c) \
4219 (('a' <= (c) && (c) <= 'i') \
4220 || ('j' <= (c) && (c) <= 'r') \
4221 || ('s' <= (c) && (c) <= 'z'))
4222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4230 for (i = 0; i < 256; i++)
4231 if (XOR (islower (i), ISLOWER (i))
4232 || toupper (i) != TOUPPER (i))
4237 rm -f conftest$ac_exeext
4238 if { (ac_try="$ac_link"
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_link") 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248 { (case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253 (eval "$ac_try") 2>&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4259 echo "$as_me: program exited with status $ac_status" >&5
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4264 ac_cv_header_stdc=no
4266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4272 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4273 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4274 if test $ac_cv_header_stdc = yes; then
4276 cat >>confdefs.h <<\_ACEOF
4277 #define STDC_HEADERS 1
4282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4292 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4293 inttypes.h stdint.h unistd.h
4295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307 $ac_includes_default
4309 #include <$ac_header>
4311 rm -f conftest.$ac_objext
4312 if { (ac_try="$ac_compile"
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_compile") 2>conftest.er1
4320 grep -v '^ *+' conftest.er1 >conftest.err
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_try") 2>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 eval "$as_ac_Header=yes"
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4350 eval "$as_ac_Header=no"
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 ac_res=`eval echo '${'$as_ac_Header'}'`
4356 { echo "$as_me:$LINENO: result: $ac_res" >&5
4357 echo "${ECHO_T}$ac_res" >&6; }
4358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4359 cat >>confdefs.h <<_ACEOF
4360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4368 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4369 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4370 if test "${ac_cv_c_bigendian+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 # See if sys/param.h defines the BYTE_ORDER macro.
4374 cat >conftest.$ac_ext <<_ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <sys/types.h>
4381 #include <sys/param.h>
4386 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4403 grep -v '^ *+' conftest.er1 >conftest.err
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409 { (case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_try") 2>&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_try") 2>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 # It does; now see whether it defined to BIG_ENDIAN or not.
4429 cat >conftest.$ac_ext <<_ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 #include <sys/types.h>
4436 #include <sys/param.h>
4441 #if BYTE_ORDER != BIG_ENDIAN
4449 rm -f conftest.$ac_objext
4450 if { (ac_try="$ac_compile"
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_compile") 2>conftest.er1
4458 grep -v '^ *+' conftest.er1 >conftest.err
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4464 { (case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469 (eval "$ac_try") 2>&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try='test -s conftest.$ac_objext'
4474 { (case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_try") 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_c_bigendian=yes
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_cv_c_bigendian=no
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 # It does not; compile a test program.
4497 if test "$cross_compiling" = yes; then
4498 # try to guess the endianness by grepping values into an object file
4499 ac_cv_c_bigendian=unknown
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4507 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4508 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4509 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4510 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4511 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4515 _ascii (); _ebcdic ();
4520 rm -f conftest.$ac_objext
4521 if { (ac_try="$ac_compile"
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_compile") 2>conftest.er1
4529 grep -v '^ *+' conftest.er1 >conftest.err
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4535 { (case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_try") 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_try") 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4555 ac_cv_c_bigendian=yes
4557 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4558 if test "$ac_cv_c_bigendian" = unknown; then
4559 ac_cv_c_bigendian=no
4561 # finding both strings is unlikely to happen, but who knows?
4562 ac_cv_c_bigendian=unknown
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 cat >conftest.$ac_ext <<_ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580 $ac_includes_default
4585 /* Are we little or big endian? From Harbison&Steele. */
4589 char c[sizeof (long int)];
4592 return u.c[sizeof (long int) - 1] == 1;
4598 rm -f conftest$ac_exeext
4599 if { (ac_try="$ac_link"
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_c_bigendian=no
4620 echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4625 ac_cv_c_bigendian=yes
4627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4636 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4637 case $ac_cv_c_bigendian in
4645 { { echo "$as_me:$LINENO: error: unknown endianness
4646 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4647 echo "$as_me: error: unknown endianness
4648 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4649 { (exit 1); exit 1; }; } ;;
4653 if test "$cross_compiling" = yes; then
4654 LLVM_CROSS_COMPILING=1
4657 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4658 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4659 if test "${ac_cv_build_exeext+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4663 ac_cv_build_exeext=.exe
4665 ac_build_prefix=${build_alias}-
4667 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4668 set dummy ${ac_build_prefix}gcc; ac_word=$2
4669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4671 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 if test -n "$BUILD_CC"; then
4675 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 BUILD_CC=$ac_cv_prog_BUILD_CC
4695 if test -n "$BUILD_CC"; then
4696 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4697 echo "${ECHO_T}$BUILD_CC" >&6; }
4699 { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4704 if test -z "$BUILD_CC"; then
4705 # Extract the first word of "gcc", so it can be a program name with args.
4706 set dummy gcc; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 if test -n "$BUILD_CC"; then
4713 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_BUILD_CC="gcc"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 BUILD_CC=$ac_cv_prog_BUILD_CC
4733 if test -n "$BUILD_CC"; then
4734 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735 echo "${ECHO_T}$BUILD_CC" >&6; }
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4742 if test -z "$BUILD_CC"; then
4743 # Extract the first word of "cc", so it can be a program name with args.
4744 set dummy cc; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 if test -n "$BUILD_CC"; then
4751 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4762 ac_prog_rejected=yes
4765 ac_cv_prog_BUILD_CC="cc"
4766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 if test $ac_prog_rejected = yes; then
4774 # We found a bogon in the path, so make sure we never use it.
4775 set dummy $ac_cv_prog_BUILD_CC
4777 if test $# != 0; then
4778 # We chose a different compiler from the bogus one.
4779 # However, it has the same basename, so the bogon will be chosen
4780 # first if we set BUILD_CC to just the basename; use the full file name.
4782 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4787 BUILD_CC=$ac_cv_prog_BUILD_CC
4788 if test -n "$BUILD_CC"; then
4789 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4790 echo "${ECHO_T}$BUILD_CC" >&6; }
4792 { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4799 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4800 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4801 { (exit 1); exit 1; }; }
4802 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4804 echo 'int main () { return 0; }' > conftest.$ac_ext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4807 (eval $ac_build_link) 2>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; then
4811 for file in conftest.*; do
4813 *.c | *.o | *.obj | *.dSYM) ;;
4814 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4818 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4819 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4820 { (exit 1); exit 1; }; }
4823 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4828 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4829 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4830 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4831 ac_build_exeext=$BUILD_EXEEXT
4833 ac_build_prefix=${build_alias}-
4834 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4835 set dummy ${ac_build_prefix}g++; ac_word=$2
4836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4838 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 if test -n "$BUILD_CXX"; then
4842 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4851 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4862 if test -n "$BUILD_CXX"; then
4863 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4864 echo "${ECHO_T}$BUILD_CXX" >&6; }
4866 { echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6; }
4871 if test -z "$BUILD_CXX"; then
4872 # Extract the first word of "g++", so it can be a program name with args.
4873 set dummy g++; ac_word=$2
4874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4876 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 if test -n "$BUILD_CXX"; then
4880 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_BUILD_CXX="g++"
4890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900 if test -n "$BUILD_CXX"; then
4901 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902 echo "${ECHO_T}$BUILD_CXX" >&6; }
4904 { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4909 if test -z "$BUILD_CXX"; then
4910 # Extract the first word of "c++", so it can be a program name with args.
4911 set dummy c++; ac_word=$2
4912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 if test -n "$BUILD_CXX"; then
4918 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4929 ac_prog_rejected=yes
4932 ac_cv_prog_BUILD_CXX="c++"
4933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 if test $ac_prog_rejected = yes; then
4941 # We found a bogon in the path, so make sure we never use it.
4942 set dummy $ac_cv_prog_BUILD_CXX
4944 if test $# != 0; then
4945 # We chose a different compiler from the bogus one.
4946 # However, it has the same basename, so the bogon will be chosen
4947 # first if we set BUILD_CXX to just the basename; use the full file name.
4949 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4954 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4955 if test -n "$BUILD_CXX"; then
4956 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4957 echo "${ECHO_T}$BUILD_CXX" >&6; }
4959 { echo "$as_me:$LINENO: result: no" >&5
4960 echo "${ECHO_T}no" >&6; }
4967 LLVM_CROSS_COMPILING=0
4971 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4982 # Check whether --enable-libcpp was given.
4983 if test "${enable_libcpp+set}" = set; then
4984 enableval=$enable_libcpp;
4989 case "$enableval" in
4990 yes) ENABLE_LIBCPP=1
4994 default) ENABLE_LIBCPP=0
4996 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4997 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4998 { (exit 1); exit 1; }; } ;;
5001 # Check whether --enable-optimized was given.
5002 if test "${enable_optimized+set}" = set; then
5003 enableval=$enable_optimized;
5008 if test ${enableval} = "no" ; then
5012 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5016 # Check whether --enable-profiling was given.
5017 if test "${enable_profiling+set}" = set; then
5018 enableval=$enable_profiling;
5023 if test ${enableval} = "no" ; then
5027 ENABLE_PROFILING=ENABLE_PROFILING=1
5031 # Check whether --enable-assertions was given.
5032 if test "${enable_assertions+set}" = set; then
5033 enableval=$enable_assertions;
5038 if test ${enableval} = "yes" ; then
5042 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5046 # Check whether --enable-expensive-checks was given.
5047 if test "${enable_expensive_checks+set}" = set; then
5048 enableval=$enable_expensive_checks;
5053 if test ${enableval} = "yes" ; then
5054 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5056 EXPENSIVE_CHECKS=yes
5059 ENABLE_EXPENSIVE_CHECKS=
5065 # Check whether --enable-debug-runtime was given.
5066 if test "${enable_debug_runtime+set}" = set; then
5067 enableval=$enable_debug_runtime;
5072 if test ${enableval} = "no" ; then
5076 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5080 # Check whether --enable-debug-symbols was given.
5081 if test "${enable_debug_symbols+set}" = set; then
5082 enableval=$enable_debug_symbols;
5087 if test ${enableval} = "no" ; then
5091 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5095 # Check whether --enable-jit was given.
5096 if test "${enable_jit+set}" = set; then
5097 enableval=$enable_jit;
5102 if test ${enableval} = "no"
5107 case "$llvm_cv_target_arch" in
5108 x86) TARGET_HAS_JIT=1
5110 Sparc) TARGET_HAS_JIT=0
5112 PowerPC) TARGET_HAS_JIT=1
5114 x86_64) TARGET_HAS_JIT=1
5116 ARM) TARGET_HAS_JIT=1
5118 Mips) TARGET_HAS_JIT=1
5120 XCore) TARGET_HAS_JIT=0
5122 MSP430) TARGET_HAS_JIT=0
5124 Hexagon) TARGET_HAS_JIT=0
5126 MBlaze) TARGET_HAS_JIT=0
5128 PTX) TARGET_HAS_JIT=0
5130 NVPTX) TARGET_HAS_JIT=0
5137 # Check whether --enable-docs was given.
5138 if test "${enable_docs+set}" = set; then
5139 enableval=$enable_docs;
5144 case "$enableval" in
5149 default) ENABLE_DOCS=1
5151 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5156 # Check whether --enable-doxygen was given.
5157 if test "${enable_doxygen+set}" = set; then
5158 enableval=$enable_doxygen;
5163 case "$enableval" in
5164 yes) ENABLE_DOXYGEN=1
5166 no) ENABLE_DOXYGEN=0
5168 default) ENABLE_DOXYGEN=0
5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5175 # Check whether --enable-threads was given.
5176 if test "${enable_threads+set}" = set; then
5177 enableval=$enable_threads;
5182 case "$enableval" in
5183 yes) LLVM_ENABLE_THREADS=1
5185 no) LLVM_ENABLE_THREADS=0
5187 default) LLVM_ENABLE_THREADS=1
5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5194 cat >>confdefs.h <<_ACEOF
5195 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5199 # Check whether --enable-pthreads was given.
5200 if test "${enable_pthreads+set}" = set; then
5201 enableval=$enable_pthreads;
5206 case "$enableval" in
5207 yes) ENABLE_PTHREADS=1
5209 no) ENABLE_PTHREADS=0
5211 default) ENABLE_PTHREADS=1
5213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5218 # Check whether --enable-pic was given.
5219 if test "${enable_pic+set}" = set; then
5220 enableval=$enable_pic;
5225 case "$enableval" in
5230 default) ENABLE_PIC=1
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5237 cat >>confdefs.h <<_ACEOF
5238 #define ENABLE_PIC $ENABLE_PIC
5242 # Check whether --enable-shared was given.
5243 if test "${enable_shared+set}" = set; then
5244 enableval=$enable_shared;
5249 case "$enableval" in
5250 yes) ENABLE_SHARED=1
5254 default) ENABLE_SHARED=0
5256 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5257 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5258 { (exit 1); exit 1; }; } ;;
5261 # Check whether --enable-embed-stdcxx was given.
5262 if test "${enable_embed_stdcxx+set}" = set; then
5263 enableval=$enable_embed_stdcxx;
5268 case "$enableval" in
5269 yes) ENABLE_EMBED_STDCXX=1
5271 no) ENABLE_EMBED_STDCXX=0
5273 default) ENABLE_EMBED_STDCXX=0
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5280 # Check whether --enable-timestamps was given.
5281 if test "${enable_timestamps+set}" = set; then
5282 enableval=$enable_timestamps;
5287 case "$enableval" in
5288 yes) ENABLE_TIMESTAMPS=1
5290 no) ENABLE_TIMESTAMPS=0
5292 default) ENABLE_TIMESTAMPS=1
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5299 cat >>confdefs.h <<_ACEOF
5300 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5305 # Check whether --enable-targets was given.
5306 if test "${enable_targets+set}" = set; then
5307 enableval=$enable_targets;
5312 if test "$enableval" = host-only ; then
5315 case "$enableval" in
5316 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
5317 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5319 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5320 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5321 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5322 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5323 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5324 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5325 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5326 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5327 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5328 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5329 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5330 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5331 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5332 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5333 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5334 host) case "$llvm_cv_target_arch" in
5335 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5336 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5338 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5339 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5340 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5342 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5343 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5344 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5345 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5346 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5347 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5348 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5349 echo "$as_me: error: Can not set target to build" >&2;}
5350 { (exit 1); exit 1; }; } ;;
5352 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5353 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5354 { (exit 1); exit 1; }; } ;;
5359 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5362 for a_target in $TARGETS_TO_BUILD; do
5363 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5365 cat >>confdefs.h <<_ACEOF
5366 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5369 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5370 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5371 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5372 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5373 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5374 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5376 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5377 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5401 cat >>confdefs.h <<_ACEOF
5402 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5406 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5416 LLVM_ENUM_TARGETS=""
5417 LLVM_ENUM_ASM_PRINTERS=""
5418 LLVM_ENUM_ASM_PARSERS=""
5419 LLVM_ENUM_DISASSEMBLERS=""
5420 for target_to_build in $TARGETS_TO_BUILD; do
5421 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5422 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5423 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5425 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5426 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5428 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5429 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5438 # Check whether --with-optimize-option was given.
5439 if test "${with_optimize_option+set}" = set; then
5440 withval=$with_optimize_option;
5445 { echo "$as_me:$LINENO: checking optimization flags" >&5
5446 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5449 case "$llvm_cv_os_type" in
5450 FreeBSD) optimize_option=-O2 ;;
5451 MingW) optimize_option=-O2 ;;
5452 *) optimize_option=-O3 ;;
5454 *) optimize_option="$withval" ;;
5456 OPTIMIZE_OPTION=$optimize_option
5458 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5459 echo "${ECHO_T}$optimize_option" >&6; }
5462 # Check whether --with-extra-options was given.
5463 if test "${with_extra_options+set}" = set; then
5464 withval=$with_extra_options;
5470 default) EXTRA_OPTIONS= ;;
5471 *) EXTRA_OPTIONS=$withval ;;
5473 EXTRA_OPTIONS=$EXTRA_OPTIONS
5477 # Check whether --with-extra-ld-options was given.
5478 if test "${with_extra_ld_options+set}" = set; then
5479 withval=$with_extra_ld_options;
5485 default) EXTRA_LD_OPTIONS= ;;
5486 *) EXTRA_LD_OPTIONS=$withval ;;
5488 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5491 # Check whether --enable-bindings was given.
5492 if test "${enable_bindings+set}" = set; then
5493 enableval=$enable_bindings;
5498 BINDINGS_TO_BUILD=""
5499 case "$enableval" in
5500 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5501 all ) BINDINGS_TO_BUILD="ocaml" ;;
5502 none | no) BINDINGS_TO_BUILD="" ;;
5503 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5504 case "$a_binding" in
5505 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5506 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5507 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5508 { (exit 1); exit 1; }; } ;;
5515 # Check whether --with-ocaml-libdir was given.
5516 if test "${with_ocaml_libdir+set}" = set; then
5517 withval=$with_ocaml_libdir;
5523 auto) with_ocaml_libdir="$withval" ;;
5524 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5525 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5526 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5527 { (exit 1); exit 1; }; } ;;
5531 # Check whether --with-clang-srcdir was given.
5532 if test "${with_clang_srcdir+set}" = set; then
5533 withval=$with_clang_srcdir;
5539 -) clang_src_root="" ;;
5540 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5541 *) clang_src_root="$ac_pwd/$withval" ;;
5543 CLANG_SRC_ROOT=$clang_src_root
5547 # Check whether --with-clang-resource-dir was given.
5548 if test "${with_clang_resource_dir+set}" = set; then
5549 withval=$with_clang_resource_dir;
5555 cat >>confdefs.h <<_ACEOF
5556 #define CLANG_RESOURCE_DIR "$withval"
5561 # Check whether --with-c-include-dirs was given.
5562 if test "${with_c_include_dirs+set}" = set; then
5563 withval=$with_c_include_dirs;
5569 cat >>confdefs.h <<_ACEOF
5570 #define C_INCLUDE_DIRS "$withval"
5574 # Clang normally uses the system c++ headers and libraries. With this option,
5575 # clang will use the ones provided by a gcc installation instead. This option should
5576 # be passed the same value that was used with --prefix when configuring gcc.
5578 # Check whether --with-gcc-toolchain was given.
5579 if test "${with_gcc_toolchain+set}" = set; then
5580 withval=$with_gcc_toolchain;
5586 cat >>confdefs.h <<_ACEOF
5587 #define GCC_INSTALL_PREFIX "$withval"
5592 # Check whether --with-default-sysroot was given.
5593 if test "${with_default_sysroot+set}" = set; then
5594 withval=$with_default_sysroot;
5600 cat >>confdefs.h <<_ACEOF
5601 #define DEFAULT_SYSROOT "$withval"
5606 # Check whether --with-binutils-include was given.
5607 if test "${with_binutils_include+set}" = set; then
5608 withval=$with_binutils_include;
5614 default) WITH_BINUTILS_INCDIR=default ;;
5615 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5616 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5617 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5618 { (exit 1); exit 1; }; } ;;
5620 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5621 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5623 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5624 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5625 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5626 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5627 { (exit 1); exit 1; }; };
5632 # Check whether --with-bug-report-url was given.
5633 if test "${with_bug_report_url+set}" = set; then
5634 withval=$with_bug_report_url;
5636 withval="http://llvm.org/bugs/"
5640 cat >>confdefs.h <<_ACEOF
5641 #define BUG_REPORT_URL "$withval"
5645 # Check whether --enable-libffi was given.
5646 if test "${enable_libffi+set}" = set; then
5647 enableval=$enable_libffi; case "$enableval" in
5648 yes) llvm_cv_enable_libffi="yes" ;;
5649 no) llvm_cv_enable_libffi="no" ;;
5650 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5651 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5652 { (exit 1); exit 1; }; } ;;
5655 llvm_cv_enable_libffi=no
5660 # Check whether --with-internal-prefix was given.
5661 if test "${with_internal_prefix+set}" = set; then
5662 withval=$with_internal_prefix;
5667 INTERNAL_PREFIX=$withval
5671 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5672 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5673 if test "${lt_cv_path_NM+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 if test -n "$NM"; then
5677 # Let the user override the test.
5680 lt_nm_to_check="${ac_tool_prefix}nm"
5681 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5682 lt_nm_to_check="$lt_nm_to_check nm"
5684 for lt_tmp_nm in $lt_nm_to_check; do
5685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5686 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5688 test -z "$ac_dir" && ac_dir=.
5689 tmp_nm="$ac_dir/$lt_tmp_nm"
5690 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5691 # Check to see if the nm accepts a BSD-compat flag.
5692 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5693 # nm: unknown option "B" ignored
5694 # Tru64's nm complains that /dev/null is an invalid object file
5695 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5696 */dev/null* | *'Invalid file or object type'*)
5697 lt_cv_path_NM="$tmp_nm -B"
5701 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5703 lt_cv_path_NM="$tmp_nm -p"
5707 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5708 continue # so that we can try to find one that supports BSD flags
5717 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5720 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5721 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5726 { echo "$as_me:$LINENO: checking for GNU make" >&5
5727 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5728 if test "${llvm_cv_gnu_make_command+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 llvm_cv_gnu_make_command=''
5732 for a in "$MAKE" make gmake gnumake ; do
5733 if test -z "$a" ; then continue ; fi ;
5734 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5736 llvm_cv_gnu_make_command=$a ;
5741 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5742 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5743 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5747 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5748 echo "${ECHO_T}\"Not found\"" >&6; };
5752 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5753 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5755 if test "$LN_S" = "ln -s"; then
5756 { echo "$as_me:$LINENO: result: yes" >&5
5757 echo "${ECHO_T}yes" >&6; }
5759 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5760 echo "${ECHO_T}no, using $LN_S" >&6; }
5763 # Extract the first word of "cmp", so it can be a program name with args.
5764 set dummy cmp; ac_word=$2
5765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5767 if test "${ac_cv_path_CMP+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5795 if test -n "$CMP"; then
5796 { echo "$as_me:$LINENO: result: $CMP" >&5
5797 echo "${ECHO_T}$CMP" >&6; }
5799 { echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6; }
5804 # Extract the first word of "cp", so it can be a program name with args.
5805 set dummy cp; ac_word=$2
5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808 if test "${ac_cv_path_CP+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5836 if test -n "$CP"; then
5837 { echo "$as_me:$LINENO: result: $CP" >&5
5838 echo "${ECHO_T}$CP" >&6; }
5840 { echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6; }
5845 # Extract the first word of "date", so it can be a program name with args.
5846 set dummy date; ac_word=$2
5847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5849 if test "${ac_cv_path_DATE+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5876 DATE=$ac_cv_path_DATE
5877 if test -n "$DATE"; then
5878 { echo "$as_me:$LINENO: result: $DATE" >&5
5879 echo "${ECHO_T}$DATE" >&6; }
5881 { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5886 # Extract the first word of "find", so it can be a program name with args.
5887 set dummy find; ac_word=$2
5888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5890 if test "${ac_cv_path_FIND+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5905 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5917 FIND=$ac_cv_path_FIND
5918 if test -n "$FIND"; then
5919 { echo "$as_me:$LINENO: result: $FIND" >&5
5920 echo "${ECHO_T}$FIND" >&6; }
5922 { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5927 # Extract the first word of "grep", so it can be a program name with args.
5928 set dummy grep; ac_word=$2
5929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5931 if test "${ac_cv_path_GREP+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5958 GREP=$ac_cv_path_GREP
5959 if test -n "$GREP"; then
5960 { echo "$as_me:$LINENO: result: $GREP" >&5
5961 echo "${ECHO_T}$GREP" >&6; }
5963 { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5968 # Extract the first word of "mkdir", so it can be a program name with args.
5969 set dummy mkdir; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_path_MKDIR+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5999 MKDIR=$ac_cv_path_MKDIR
6000 if test -n "$MKDIR"; then
6001 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6002 echo "${ECHO_T}$MKDIR" >&6; }
6004 { echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6; }
6009 # Extract the first word of "mv", so it can be a program name with args.
6010 set dummy mv; ac_word=$2
6011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6013 if test "${ac_cv_path_MV+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6041 if test -n "$MV"; then
6042 { echo "$as_me:$LINENO: result: $MV" >&5
6043 echo "${ECHO_T}$MV" >&6; }
6045 { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6050 if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_RANLIB+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 if test -n "$RANLIB"; then
6059 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 RANLIB=$ac_cv_prog_RANLIB
6079 if test -n "$RANLIB"; then
6080 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6081 echo "${ECHO_T}$RANLIB" >&6; }
6083 { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6089 if test -z "$ac_cv_prog_RANLIB"; then
6090 ac_ct_RANLIB=$RANLIB
6091 # Extract the first word of "ranlib", so it can be a program name with args.
6092 set dummy ranlib; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 if test -n "$ac_ct_RANLIB"; then
6099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_ac_ct_RANLIB="ranlib"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6119 if test -n "$ac_ct_RANLIB"; then
6120 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6121 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6123 { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6127 if test "x$ac_ct_RANLIB" = x; then
6130 case $cross_compiling:$ac_tool_warned in
6132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet. If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&5
6135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet. If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6138 ac_tool_warned=yes ;;
6140 RANLIB=$ac_ct_RANLIB
6143 RANLIB="$ac_cv_prog_RANLIB"
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ar; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_AR+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 if test -n "$AR"; then
6155 ac_cv_prog_AR="$AR" # Let the user override the test.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_AR="${ac_tool_prefix}ar"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 if test -n "$AR"; then
6176 { echo "$as_me:$LINENO: result: $AR" >&5
6177 echo "${ECHO_T}$AR" >&6; }
6179 { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6185 if test -z "$ac_cv_prog_AR"; then
6187 # Extract the first word of "ar", so it can be a program name with args.
6188 set dummy ar; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 if test -n "$ac_ct_AR"; then
6195 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_ac_ct_AR="ar"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6215 if test -n "$ac_ct_AR"; then
6216 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6217 echo "${ECHO_T}$ac_ct_AR" >&6; }
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6223 if test "x$ac_ct_AR" = x; then
6226 case $cross_compiling:$ac_tool_warned in
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet. If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet. If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234 ac_tool_warned=yes ;;
6242 # Extract the first word of "rm", so it can be a program name with args.
6243 set dummy rm; ac_word=$2
6244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6246 if test "${ac_cv_path_RM+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6274 if test -n "$RM"; then
6275 { echo "$as_me:$LINENO: result: $RM" >&5
6276 echo "${ECHO_T}$RM" >&6; }
6278 { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6283 # Extract the first word of "sed", so it can be a program name with args.
6284 set dummy sed; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_path_SED+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6315 if test -n "$SED"; then
6316 { echo "$as_me:$LINENO: result: $SED" >&5
6317 echo "${ECHO_T}$SED" >&6; }
6319 { echo "$as_me:$LINENO: result: no" >&5
6320 echo "${ECHO_T}no" >&6; }
6324 # Extract the first word of "tar", so it can be a program name with args.
6325 set dummy tar; ac_word=$2
6326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6328 if test "${ac_cv_path_TAR+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6343 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6356 if test -n "$TAR"; then
6357 { echo "$as_me:$LINENO: result: $TAR" >&5
6358 echo "${ECHO_T}$TAR" >&6; }
6360 { echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6; }
6365 # Extract the first word of "pwd", so it can be a program name with args.
6366 set dummy pwd; ac_word=$2
6367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369 if test "${ac_cv_path_BINPWD+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6396 BINPWD=$ac_cv_path_BINPWD
6397 if test -n "$BINPWD"; then
6398 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6399 echo "${ECHO_T}$BINPWD" >&6; }
6401 { echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6; }
6407 # Extract the first word of "Graphviz", so it can be a program name with args.
6408 set dummy Graphviz; ac_word=$2
6409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6411 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6438 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6439 if test -n "$GRAPHVIZ"; then
6440 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6441 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6443 { echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6; }
6448 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6450 cat >>confdefs.h <<\_ACEOF
6451 #define HAVE_GRAPHVIZ 1
6454 if test "$llvm_cv_os_type" = "MingW" ; then
6455 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6458 cat >>confdefs.h <<_ACEOF
6459 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6463 # Extract the first word of "dot", so it can be a program name with args.
6464 set dummy dot; ac_word=$2
6465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6467 if test "${ac_cv_path_DOT+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6495 if test -n "$DOT"; then
6496 { echo "$as_me:$LINENO: result: $DOT" >&5
6497 echo "${ECHO_T}$DOT" >&6; }
6499 { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6504 if test "$DOT" != "echo dot" ; then
6506 cat >>confdefs.h <<\_ACEOF
6510 if test "$llvm_cv_os_type" = "MingW" ; then
6511 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6514 cat >>confdefs.h <<_ACEOF
6515 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6519 # Extract the first word of "fdp", so it can be a program name with args.
6520 set dummy fdp; ac_word=$2
6521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523 if test "${ac_cv_path_FDP+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6551 if test -n "$FDP"; then
6552 { echo "$as_me:$LINENO: result: $FDP" >&5
6553 echo "${ECHO_T}$FDP" >&6; }
6555 { echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6; }
6560 if test "$FDP" != "echo fdp" ; then
6562 cat >>confdefs.h <<\_ACEOF
6566 if test "$llvm_cv_os_type" = "MingW" ; then
6567 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6570 cat >>confdefs.h <<_ACEOF
6571 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6575 # Extract the first word of "neato", so it can be a program name with args.
6576 set dummy neato; ac_word=$2
6577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579 if test "${ac_cv_path_NEATO+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6606 NEATO=$ac_cv_path_NEATO
6607 if test -n "$NEATO"; then
6608 { echo "$as_me:$LINENO: result: $NEATO" >&5
6609 echo "${ECHO_T}$NEATO" >&6; }
6611 { echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6; }
6616 if test "$NEATO" != "echo neato" ; then
6618 cat >>confdefs.h <<\_ACEOF
6619 #define HAVE_NEATO 1
6622 if test "$llvm_cv_os_type" = "MingW" ; then
6623 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6626 cat >>confdefs.h <<_ACEOF
6627 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6631 # Extract the first word of "twopi", so it can be a program name with args.
6632 set dummy twopi; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_path_TWOPI+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6662 TWOPI=$ac_cv_path_TWOPI
6663 if test -n "$TWOPI"; then
6664 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6665 echo "${ECHO_T}$TWOPI" >&6; }
6667 { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6672 if test "$TWOPI" != "echo twopi" ; then
6674 cat >>confdefs.h <<\_ACEOF
6675 #define HAVE_TWOPI 1
6678 if test "$llvm_cv_os_type" = "MingW" ; then
6679 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6682 cat >>confdefs.h <<_ACEOF
6683 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6687 # Extract the first word of "circo", so it can be a program name with args.
6688 set dummy circo; ac_word=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_path_CIRCO+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6718 CIRCO=$ac_cv_path_CIRCO
6719 if test -n "$CIRCO"; then
6720 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6721 echo "${ECHO_T}$CIRCO" >&6; }
6723 { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6728 if test "$CIRCO" != "echo circo" ; then
6730 cat >>confdefs.h <<\_ACEOF
6731 #define HAVE_CIRCO 1
6734 if test "$llvm_cv_os_type" = "MingW" ; then
6735 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6738 cat >>confdefs.h <<_ACEOF
6739 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6743 for ac_prog in gv gsview32
6745 # Extract the first word of "$ac_prog", so it can be a program name with args.
6746 set dummy $ac_prog; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_path_GV+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 if test -n "$GV"; then
6777 { echo "$as_me:$LINENO: result: $GV" >&5
6778 echo "${ECHO_T}$GV" >&6; }
6780 { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6785 test -n "$GV" && break
6787 test -n "$GV" || GV="echo gv"
6789 if test "$GV" != "echo gv" ; then
6791 cat >>confdefs.h <<\_ACEOF
6795 if test "$llvm_cv_os_type" = "MingW" ; then
6796 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6799 cat >>confdefs.h <<_ACEOF
6800 #define LLVM_PATH_GV "$GV${EXEEXT}"
6804 # Extract the first word of "dotty", so it can be a program name with args.
6805 set dummy dotty; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_DOTTY+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6835 DOTTY=$ac_cv_path_DOTTY
6836 if test -n "$DOTTY"; then
6837 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6838 echo "${ECHO_T}$DOTTY" >&6; }
6840 { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6845 if test "$DOTTY" != "echo dotty" ; then
6847 cat >>confdefs.h <<\_ACEOF
6848 #define HAVE_DOTTY 1
6851 if test "$llvm_cv_os_type" = "MingW" ; then
6852 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6855 cat >>confdefs.h <<_ACEOF
6856 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6860 # Extract the first word of "xdot.py", so it can be a program name with args.
6861 set dummy xdot.py; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6891 XDOT_PY=$ac_cv_path_XDOT_PY
6892 if test -n "$XDOT_PY"; then
6893 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6894 echo "${ECHO_T}$XDOT_PY" >&6; }
6896 { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6901 if test "$XDOT_PY" != "echo xdot.py" ; then
6903 cat >>confdefs.h <<\_ACEOF
6904 #define HAVE_XDOT_PY 1
6907 if test "$llvm_cv_os_type" = "MingW" ; then
6908 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6911 cat >>confdefs.h <<_ACEOF
6912 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6917 # Find a good install program. We prefer a C program (faster),
6918 # so one script is as good as another. But avoid the broken or
6919 # incompatible versions:
6920 # SysV /etc/install, /usr/sbin/install
6921 # SunOS /usr/etc/install
6922 # IRIX /sbin/install
6924 # AmigaOS /C/install, which installs bootblocks on floppy discs
6925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6928 # OS/2's system install, which has a completely different semantic
6929 # ./install, which can be erroneously created by make from ./install.sh.
6930 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6932 if test -z "$INSTALL"; then
6933 if test "${ac_cv_path_install+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 # Account for people who put trailing slashes in PATH elements.
6943 ./ | .// | /cC/* | \
6944 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6945 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6948 # OSF1 and SCO ODT 3.0 have their own names for install.
6949 # Don't use installbsd from OSF since it installs stuff as root
6951 for ac_prog in ginstall scoinst install; do
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6954 if test $ac_prog = install &&
6955 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6956 # AIX install. It has an incompatible calling convention.
6958 elif test $ac_prog = install &&
6959 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6960 # program-specific install script used by HP pwplus--don't use.
6963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6976 if test "${ac_cv_path_install+set}" = set; then
6977 INSTALL=$ac_cv_path_install
6979 # As a last resort, use the slow shell script. Don't cache a
6980 # value for INSTALL within a source directory, because that will
6981 # break other packages using the cache if that directory is
6982 # removed, or if the value is a relative name.
6983 INSTALL=$ac_install_sh
6986 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6987 echo "${ECHO_T}$INSTALL" >&6; }
6989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6990 # It thinks the first close brace ends the variable substitution.
6991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6998 [\\/$]* | ?:[\\/]* ) ;;
6999 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7002 # Extract the first word of "bzip2", so it can be a program name with args.
7003 set dummy bzip2; ac_word=$2
7004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006 if test "${ac_cv_path_BZIP2+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 BZIP2=$ac_cv_path_BZIP2
7033 if test -n "$BZIP2"; then
7034 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7035 echo "${ECHO_T}$BZIP2" >&6; }
7037 { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7042 # Extract the first word of "cat", so it can be a program name with args.
7043 set dummy cat; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_CAT+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 if test -n "$CAT"; then
7074 { echo "$as_me:$LINENO: result: $CAT" >&5
7075 echo "${ECHO_T}$CAT" >&6; }
7077 { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7082 # Extract the first word of "doxygen", so it can be a program name with args.
7083 set dummy doxygen; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 DOXYGEN=$ac_cv_path_DOXYGEN
7113 if test -n "$DOXYGEN"; then
7114 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7115 echo "${ECHO_T}$DOXYGEN" >&6; }
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7122 # Extract the first word of "groff", so it can be a program name with args.
7123 set dummy groff; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_GROFF+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 GROFF=$ac_cv_path_GROFF
7153 if test -n "$GROFF"; then
7154 { echo "$as_me:$LINENO: result: $GROFF" >&5
7155 echo "${ECHO_T}$GROFF" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7162 # Extract the first word of "gzip", so it can be a program name with args.
7163 set dummy gzip; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 GZIPBIN=$ac_cv_path_GZIPBIN
7193 if test -n "$GZIPBIN"; then
7194 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7195 echo "${ECHO_T}$GZIPBIN" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7202 # Extract the first word of "pod2html", so it can be a program name with args.
7203 set dummy pod2html; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_POD2HTML+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 POD2HTML=$ac_cv_path_POD2HTML
7233 if test -n "$POD2HTML"; then
7234 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7235 echo "${ECHO_T}$POD2HTML" >&6; }
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7242 # Extract the first word of "pod2man", so it can be a program name with args.
7243 set dummy pod2man; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_POD2MAN+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 POD2MAN=$ac_cv_path_POD2MAN
7273 if test -n "$POD2MAN"; then
7274 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7275 echo "${ECHO_T}$POD2MAN" >&6; }
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 # Extract the first word of "pdfroff", so it can be a program name with args.
7283 set dummy pdfroff; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_PDFROFF+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 PDFROFF=$ac_cv_path_PDFROFF
7313 if test -n "$PDFROFF"; then
7314 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7315 echo "${ECHO_T}$PDFROFF" >&6; }
7317 { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7322 # Extract the first word of "runtest", so it can be a program name with args.
7323 set dummy runtest; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_RUNTEST+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 RUNTEST=$ac_cv_path_RUNTEST
7353 if test -n "$RUNTEST"; then
7354 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7355 echo "${ECHO_T}$RUNTEST" >&6; }
7357 { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7364 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7365 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7367 # Check whether --with-tclinclude was given.
7368 if test "${with_tclinclude+set}" = set; then
7369 withval=$with_tclinclude; with_tclinclude=${withval}
7374 if test "${ac_cv_path_tclsh+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 if test x"${with_tclinclude}" != x ; then
7379 if test -f ${with_tclinclude}/tclsh ; then
7380 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7381 elif test -f ${with_tclinclude}/src/tclsh ; then
7382 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7384 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7385 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7386 { (exit 1); exit 1; }; }
7392 if test x"${ac_cv_path_tclsh}" = x ; then
7393 { echo "$as_me:$LINENO: result: none" >&5
7394 echo "${ECHO_T}none" >&6; }
7395 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7397 # Extract the first word of "$ac_prog", so it can be a program name with args.
7398 set dummy $ac_prog; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_path_TCLSH+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7416 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 TCLSH=$ac_cv_path_TCLSH
7428 if test -n "$TCLSH"; then
7429 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7430 echo "${ECHO_T}$TCLSH" >&6; }
7432 { echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6; }
7437 test -n "$TCLSH" && break
7440 if test x"${TCLSH}" = x ; then
7441 ac_cv_path_tclsh='';
7443 ac_cv_path_tclsh="${TCLSH}";
7446 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7447 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7448 TCLSH="${ac_cv_path_tclsh}"
7452 # Extract the first word of "zip", so it can be a program name with args.
7453 set dummy zip; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_ZIP+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 if test -n "$ZIP"; then
7484 { echo "$as_me:$LINENO: result: $ZIP" >&5
7485 echo "${ECHO_T}$ZIP" >&6; }
7487 { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7492 for ac_prog in ocamlc
7494 # Extract the first word of "$ac_prog", so it can be a program name with args.
7495 set dummy $ac_prog; ac_word=$2
7496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498 if test "${ac_cv_path_OCAMLC+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 OCAMLC=$ac_cv_path_OCAMLC
7525 if test -n "$OCAMLC"; then
7526 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7527 echo "${ECHO_T}$OCAMLC" >&6; }
7529 { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7534 test -n "$OCAMLC" && break
7537 for ac_prog in ocamlopt
7539 # Extract the first word of "$ac_prog", so it can be a program name with args.
7540 set dummy $ac_prog; ac_word=$2
7541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7543 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 OCAMLOPT=$ac_cv_path_OCAMLOPT
7570 if test -n "$OCAMLOPT"; then
7571 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7572 echo "${ECHO_T}$OCAMLOPT" >&6; }
7574 { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7579 test -n "$OCAMLOPT" && break
7582 for ac_prog in ocamldep
7584 # Extract the first word of "$ac_prog", so it can be a program name with args.
7585 set dummy $ac_prog; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 OCAMLDEP=$ac_cv_path_OCAMLDEP
7615 if test -n "$OCAMLDEP"; then
7616 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7617 echo "${ECHO_T}$OCAMLDEP" >&6; }
7619 { echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6; }
7624 test -n "$OCAMLDEP" && break
7627 for ac_prog in ocamldoc
7629 # Extract the first word of "$ac_prog", so it can be a program name with args.
7630 set dummy $ac_prog; ac_word=$2
7631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7648 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 OCAMLDOC=$ac_cv_path_OCAMLDOC
7660 if test -n "$OCAMLDOC"; then
7661 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7662 echo "${ECHO_T}$OCAMLDOC" >&6; }
7664 { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7669 test -n "$OCAMLDOC" && break
7672 for ac_prog in gas as
7674 # Extract the first word of "$ac_prog", so it can be a program name with args.
7675 set dummy $ac_prog; ac_word=$2
7676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7678 if test "${ac_cv_path_GAS+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7693 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 if test -n "$GAS"; then
7706 { echo "$as_me:$LINENO: result: $GAS" >&5
7707 echo "${ECHO_T}$GAS" >&6; }
7709 { echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6; }
7714 test -n "$GAS" && break
7718 { echo "$as_me:$LINENO: checking for linker version" >&5
7719 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7720 if test "${llvm_cv_link_version+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 version_string="$(ld -v 2>&1 | head -1)"
7727 if (echo "$version_string" | grep -q "ld64"); then
7728 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7730 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7734 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7735 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7737 cat >>confdefs.h <<_ACEOF
7738 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7743 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7744 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7745 if test "${llvm_cv_link_use_r+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 ac_cpp='$CPP $CPPFLAGS'
7750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755 CFLAGS="$CFLAGS -Wl,-R."
7756 cat >conftest.$ac_ext <<_ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7771 rm -f conftest.$ac_objext conftest$ac_exeext
7772 if { (ac_try="$ac_link"
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_link") 2>conftest.er1
7780 grep -v '^ *+' conftest.er1 >conftest.err
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7786 { (case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_try") 2>&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; } &&
7795 { ac_try='test -s conftest$ac_exeext'
7796 { (case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_try") 2>&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 llvm_cv_link_use_r=yes
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 llvm_cv_link_use_r=no
7813 rm -f core conftest.err conftest.$ac_objext \
7814 conftest$ac_exeext conftest.$ac_ext
7817 ac_cpp='$CPP $CPPFLAGS'
7818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7825 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7826 if test "$llvm_cv_link_use_r" = yes ; then
7828 cat >>confdefs.h <<\_ACEOF
7829 #define HAVE_LINK_R 1
7835 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7836 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7837 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (ac_try="$ac_link"
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_link") 2>conftest.er1
7872 grep -v '^ *+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_try") 2>&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 llvm_cv_link_use_export_dynamic=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 llvm_cv_link_use_export_dynamic=no
7905 rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7909 ac_cpp='$CPP $CPPFLAGS'
7910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7917 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7918 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_LINK_EXPORT_DYNAMIC 1
7927 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7928 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7929 if test "${llvm_cv_link_use_version_script+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 ac_cpp='$CPP $CPPFLAGS'
7934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940 # The following code is from the autoconf manual,
7941 # "11.13: Limitations of Usual Tools".
7942 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7943 # Use mktemp if possible; otherwise fall back on mkdir,
7944 # with $RANDOM to make collisions less likely.
7948 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7950 test -n "$tmp" && test -d "$tmp"
7952 tmp=$TMPDIR/foo$$-$RANDOM
7953 (umask 077 && mkdir "$tmp")
7956 echo "{" > "$tmp/export.map"
7957 echo " global: main;" >> "$tmp/export.map"
7958 echo " local: *;" >> "$tmp/export.map"
7959 echo "};" >> "$tmp/export.map"
7961 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7962 cat >conftest.$ac_ext <<_ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
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_link") 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_exeext'
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
8011 llvm_cv_link_use_version_script=yes
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 llvm_cv_link_use_version_script=no
8019 rm -f core conftest.err conftest.$ac_objext \
8020 conftest$ac_exeext conftest.$ac_ext
8021 rm "$tmp/export.map"
8025 ac_cpp='$CPP $CPPFLAGS'
8026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8033 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8034 if test "$llvm_cv_link_use_version_script" = yes ; then
8035 HAVE_LINK_VERSION_SCRIPT=1
8042 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8043 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8044 if test "${ac_cv_c_const+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 cat >conftest.$ac_ext <<_ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8057 /* FIXME: Include the comments suggested by Paul. */
8059 /* Ultrix mips cc rejects this. */
8060 typedef int charset[2];
8062 /* SunOS 4.1.1 cc rejects this. */
8063 char const *const *ccp;
8065 /* NEC SVR4.0.2 mips cc rejects this. */
8066 struct point {int x, y;};
8067 static struct point const zero = {0,0};
8068 /* AIX XL C 1.02.0.0 rejects this.
8069 It does not let you subtract one const X* pointer from another in
8070 an arm of an if-expression whose if-part is not a constant
8072 const char *g = "string";
8073 ccp = &g + (g ? g-g : 0);
8074 /* HPUX 7.0 cc rejects these. */
8077 ccp = (char const *const *) p;
8078 { /* SCO 3.2v4 cc rejects this. */
8080 char const *s = 0 ? (char *) 0 : (char const *) 0;
8085 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8087 const int *foo = &x[0];
8090 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8091 typedef const int *iptr;
8095 { /* AIX XL C 1.02.0.0 rejects this saying
8096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8097 struct s { int j; const int *ap[3]; };
8098 struct s *b; b->j = 5;
8100 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8104 return !x[0] && !zero.x;
8111 rm -f conftest.$ac_objext
8112 if { (ac_try="$ac_compile"
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_compile") 2>conftest.er1
8120 grep -v '^ *+' conftest.er1 >conftest.err
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8126 { (case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_try") 2>&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest.$ac_objext'
8136 { (case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_try") 2>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8156 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8157 if test $ac_cv_c_const = no; then
8159 cat >>confdefs.h <<\_ACEOF
8171 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8172 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8173 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8174 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8184 #include <sys/types.h>
8196 rm -f conftest.$ac_objext
8197 if { (ac_try="$ac_compile"
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_compile") 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211 { (case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_try") 2>&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest.$ac_objext'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_try") 2>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 eval "$as_ac_Header=yes"
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 eval "$as_ac_Header=no"
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240 ac_res=`eval echo '${'$as_ac_Header'}'`
8241 { echo "$as_me:$LINENO: result: $ac_res" >&5
8242 echo "${ECHO_T}$ac_res" >&6; }
8243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8244 cat >>confdefs.h <<_ACEOF
8245 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8248 ac_header_dirent=$ac_hdr; break
8252 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8253 if test $ac_header_dirent = dirent.h; then
8254 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8255 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8256 if test "${ac_cv_search_opendir+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 ac_func_search_save_LIBS=$LIBS
8260 cat >conftest.$ac_ext <<_ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8267 /* Override any GCC internal prototype to avoid an error.
8268 Use char because int might match the return type of a GCC
8269 builtin and then its argument prototype would still apply. */
8282 for ac_lib in '' dir; do
8283 if test -z "$ac_lib"; then
8284 ac_res="none required"
8287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (ac_try="$ac_link"
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_link") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest$ac_exeext'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_cv_search_opendir=$ac_res
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8331 rm -f core conftest.err conftest.$ac_objext \
8333 if test "${ac_cv_search_opendir+set}" = set; then
8337 if test "${ac_cv_search_opendir+set}" = set; then
8340 ac_cv_search_opendir=no
8343 LIBS=$ac_func_search_save_LIBS
8345 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8346 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8347 ac_res=$ac_cv_search_opendir
8348 if test "$ac_res" != no; then
8349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8354 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8355 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8356 if test "${ac_cv_search_opendir+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 ac_func_search_save_LIBS=$LIBS
8360 cat >conftest.$ac_ext <<_ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8367 /* Override any GCC internal prototype to avoid an error.
8368 Use char because int might match the return type of a GCC
8369 builtin and then its argument prototype would still apply. */
8382 for ac_lib in '' x; do
8383 if test -z "$ac_lib"; then
8384 ac_res="none required"
8387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8404 { (case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_try") 2>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_try") 2>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_cv_search_opendir=$ac_res
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8431 rm -f core conftest.err conftest.$ac_objext \
8433 if test "${ac_cv_search_opendir+set}" = set; then
8437 if test "${ac_cv_search_opendir+set}" = set; then
8440 ac_cv_search_opendir=no
8443 LIBS=$ac_func_search_save_LIBS
8445 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8446 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8447 ac_res=$ac_cv_search_opendir
8448 if test "$ac_res" != no; then
8449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8456 for ac_header in dlfcn.h
8458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 ac_res=`eval echo '${'$as_ac_Header'}'`
8466 { echo "$as_me:$LINENO: result: $ac_res" >&5
8467 echo "${ECHO_T}$ac_res" >&6; }
8469 # Is the header compilable?
8470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 $ac_includes_default
8479 #include <$ac_header>
8481 rm -f conftest.$ac_objext
8482 if { (ac_try="$ac_compile"
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_compile") 2>conftest.er1
8490 grep -v '^ *+' conftest.er1 >conftest.err
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496 { (case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_try") 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest.$ac_objext'
8506 { (case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_try") 2>&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_header_compiler=yes
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 ac_header_compiler=no
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8525 echo "${ECHO_T}$ac_header_compiler" >&6; }
8527 # Is the header present?
8528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8530 cat >conftest.$ac_ext <<_ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 #include <$ac_header>
8538 if { (ac_try="$ac_cpp conftest.$ac_ext"
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8546 grep -v '^ *+' conftest.er1 >conftest.err
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } >/dev/null; then
8551 if test -s conftest.err; then
8552 ac_cpp_err=$ac_c_preproc_warn_flag
8553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8560 if test -z "$ac_cpp_err"; then
8561 ac_header_preproc=yes
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 ac_header_preproc=no
8569 rm -f conftest.err conftest.$ac_ext
8570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8571 echo "${ECHO_T}$ac_header_preproc" >&6; }
8573 # So? What about this header?
8574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8580 ac_header_preproc=yes
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8596 ## ------------------------------------ ##
8597 ## Report this to http://llvm.org/bugs/ ##
8598 ## ------------------------------------ ##
8600 ) | sed "s/^/$as_me: WARNING: /" >&2
8603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 eval "$as_ac_Header=\$ac_header_preproc"
8610 ac_res=`eval echo '${'$as_ac_Header'}'`
8611 { echo "$as_me:$LINENO: result: $ac_res" >&5
8612 echo "${ECHO_T}$ac_res" >&6; }
8615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8616 cat >>confdefs.h <<_ACEOF
8617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8624 # Check whether --enable-ltdl-install was given.
8625 if test "${enable_ltdl_install+set}" = set; then
8626 enableval=$enable_ltdl_install;
8632 if test x"${enable_ltdl_install-no}" != xno; then
8634 INSTALL_LTDL_FALSE='#'
8636 INSTALL_LTDL_TRUE='#'
8642 if test x"${enable_ltdl_convenience-no}" != xno; then
8643 CONVENIENCE_LTDL_TRUE=
8644 CONVENIENCE_LTDL_FALSE='#'
8646 CONVENIENCE_LTDL_TRUE='#'
8647 CONVENIENCE_LTDL_FALSE=
8651 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8652 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8654 libname_spec='lib$name'
8662 shlibpath_overrides_runpath=unknown
8664 dynamic_linker="$host_os ld.so"
8665 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8666 if test "$GCC" = yes; then
8667 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8668 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8669 # if the path contains ";" then we assume it to be the separator
8670 # otherwise default to the standard path separator (i.e. ":") - it is
8671 # assumed that no part of a normal pathname contains ";" but that should
8672 # okay in the real world where ";" in dirpaths is itself problematic.
8673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8678 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8680 need_lib_prefix=unknown
8681 hardcode_into_libs=no
8683 # when you set need_version to no, make sure it does not cause -set_version
8684 # flags to be left without arguments
8685 need_version=unknown
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8691 shlibpath_var=LIBPATH
8693 # AIX 3 has no versioning support, so we append a major version to the name.
8694 soname_spec='${libname}${release}${shared_ext}$major'
8701 hardcode_into_libs=yes
8702 if test "$host_cpu" = ia64; then
8703 # AIX 5 supports IA64
8704 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8705 shlibpath_var=LD_LIBRARY_PATH
8707 # With GCC up to 2.95.x, collect2 would create an import file
8708 # for dependence libraries. The import file would start with
8709 # the line `#! .'. This would cause the generated library to
8710 # depend on `.', always an invalid library. This was fixed in
8711 # development snapshots of GCC prior to 3.0.
8713 aix4 | aix4.[01] | aix4.[01].*)
8714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8716 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8723 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8724 # soname into executable. Probably we can add versioning support to
8725 # collect2, so additional links can be useful in future.
8726 if test "$aix_use_runtimelinking" = yes; then
8727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8728 # instead of lib<name>.a to let people know that these are not
8729 # typical AIX shared libraries.
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8732 # We preserve .a as extension for shared libraries through AIX4.2
8733 # and later when we are not doing run time linking.
8734 library_names_spec='${libname}${release}.a $libname.a'
8735 soname_spec='${libname}${release}${shared_ext}$major'
8737 shlibpath_var=LIBPATH
8742 library_names_spec='$libname.ixlibrary $libname.a'
8743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8744 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'
8748 library_names_spec='${libname}${shared_ext}'
8749 dynamic_linker="$host_os ld.so"
8750 shlibpath_var=LIBRARY_PATH
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8759 shlibpath_var=LD_LIBRARY_PATH
8760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8762 # the default ld.so.conf also contains /usr/contrib/lib and
8763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8764 # libtool to hard-code these into programs
8767 cygwin* | mingw* | pw32*)
8768 version_type=windows
8773 case $GCC,$host_os in
8774 yes,cygwin* | yes,mingw* | yes,pw32*)
8775 library_names_spec='$libname.dll.a'
8776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8777 postinstall_cmds='base_file=`basename \${file}`~
8778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8779 dldir=$destdir/`dirname \$dlpath`~
8780 test -d \$dldir || mkdir -p \$dldir~
8781 $install_prog $dir/$dlname \$dldir/$dlname~
8782 chmod a+x \$dldir/$dlname'
8783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8784 dlpath=$dir/\$dldll~
8786 shlibpath_overrides_runpath=yes
8790 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8795 # MinGW DLLs use traditional 'lib' prefix
8796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8798 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8799 # It is most probably a Windows format PATH printed by
8800 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8801 # path with ; separators, and with drive letters. We can handle the
8802 # drive letters (cygwin fileutils understands them), so leave them,
8803 # especially as we might pass files found there to a mingw objdump,
8804 # which wouldn't understand a cygwinified path. Ahh.
8805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8811 # pw32 DLLs use 'pw' prefix rather than 'lib'
8812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8821 dynamic_linker='Win32 ld.exe'
8822 # FIXME: first we should search . and the directory the executable is in
8826 darwin* | rhapsody*)
8827 dynamic_linker="$host_os dyld"
8831 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8832 soname_spec='${libname}${release}${major}$shared_ext'
8833 shlibpath_overrides_runpath=yes
8834 shlibpath_var=DYLD_LIBRARY_PATH
8835 shrext_cmds='.dylib'
8836 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8837 if test "$GCC" = yes; then
8838 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"`
8840 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8850 soname_spec='${libname}${release}${shared_ext}$major'
8851 shlibpath_var=LD_LIBRARY_PATH
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 shlibpath_var=LD_LIBRARY_PATH
8865 shlibpath_overrides_runpath=no
8866 hardcode_into_libs=yes
8867 dynamic_linker='GNU ld.so'
8870 freebsd* | dragonfly*)
8871 # DragonFly does not have aout. When/if they implement a new
8872 # versioning mechanism, adjust this.
8873 if test -x /usr/bin/objformat; then
8874 objformat=`/usr/bin/objformat`
8877 freebsd[123].*) objformat=aout ;;
8881 version_type=freebsd-$objformat
8882 case $version_type in
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8893 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=yes
8898 freebsd3.[01]* | freebsdelf3.[01]*)
8899 shlibpath_overrides_runpath=yes
8900 hardcode_into_libs=yes
8902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8904 shlibpath_overrides_runpath=no
8905 hardcode_into_libs=yes
8907 freebsd*) # from 4.6 on
8908 shlibpath_overrides_runpath=yes
8909 hardcode_into_libs=yes
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8919 soname_spec='${libname}${release}${shared_ext}$major'
8920 shlibpath_var=LD_LIBRARY_PATH
8921 hardcode_into_libs=yes
8924 hpux9* | hpux10* | hpux11*)
8925 # Give a soname corresponding to the major version so that dld.sl refuses to
8926 # link against other versions.
8933 hardcode_into_libs=yes
8934 dynamic_linker="$host_os dld.so"
8935 shlibpath_var=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 if test "X$HPUX_IA64_MODE" = X32; then
8940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8948 hardcode_into_libs=yes
8949 dynamic_linker="$host_os dld.sl"
8950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8959 dynamic_linker="$host_os dld.sl"
8960 shlibpath_var=SHLIB_PATH
8961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8966 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8967 postinstall_cmds='chmod 555 $lib'
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 shlibpath_overrides_runpath=no
8979 hardcode_into_libs=yes
8982 irix5* | irix6* | nonstopux*)
8984 nonstopux*) version_type=nonstopux ;;
8986 if test "$lt_cv_prog_gnu_ld" = yes; then
8994 soname_spec='${libname}${release}${shared_ext}$major'
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8997 irix5* | nonstopux*)
9001 case $LD in # libtool.m4 will add one of these switches to LD
9002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9003 libsuff= shlibsuff= libmagic=32-bit;;
9004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9005 libsuff=32 shlibsuff=N32 libmagic=N32;;
9006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9008 *) libsuff= shlibsuff= libmagic=never-match;;
9012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9013 shlibpath_overrides_runpath=no
9014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9016 hardcode_into_libs=yes
9019 # No shared lib support for Linux oldld, aout, or coff.
9020 linux*oldld* | linux*aout* | linux*coff*)
9024 # This must be Linux ELF.
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=no
9034 # This implies no fast_install, which is unacceptable.
9035 # Some rework will be needed to allow for fast_install
9036 # before this can be enabled.
9037 hardcode_into_libs=yes
9039 # Append ld.so.conf contents to the search path
9040 if test -f /etc/ld.so.conf; then
9041 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' ' '`
9042 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9045 # We used to test for /lib/ld.so.1 and disable shared libraries on
9046 # powerpc, because MkLinux only supported shared libraries with the
9047 # GNU dynamic linker. Since this was broken with cross compilers,
9048 # most powerpc-linux boxes support dynamic linking these days and
9049 # people can always --disable-shared, the test was removed, and we
9050 # assume the GNU/Linux dynamic linker is in use.
9051 dynamic_linker='GNU/Linux ld.so'
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9063 dynamic_linker='GNU ld.so'
9070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9073 dynamic_linker='NetBSD (a.out) ld.so'
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 dynamic_linker='NetBSD ld.elf_so'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes
9081 hardcode_into_libs=yes
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=yes
9103 sys_lib_dlsearch_path_spec="/usr/lib"
9105 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9107 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9108 *) need_version=no ;;
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9115 openbsd2.[89] | openbsd2.[89].*)
9116 shlibpath_overrides_runpath=no
9119 shlibpath_overrides_runpath=yes
9123 shlibpath_overrides_runpath=yes
9128 libname_spec='$name'
9131 library_names_spec='$libname${shared_ext} $libname.a'
9132 dynamic_linker='OS/2 ld.exe'
9133 shlibpath_var=LIBPATH
9136 osf3* | osf4* | osf5*)
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=yes
9155 hardcode_into_libs=yes
9156 # ldd complains unless libraries are executable
9157 postinstall_cmds='chmod +x $lib'
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9164 shlibpath_var=LD_LIBRARY_PATH
9165 shlibpath_overrides_runpath=yes
9166 if test "$with_gnu_ld" = yes; then
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 case $host_vendor in
9179 shlibpath_overrides_runpath=no
9181 export_dynamic_flag_spec='${wl}-Blargedynsym'
9182 runpath_var=LD_RUN_PATH
9190 shlibpath_overrides_runpath=no
9191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9197 if test -d /usr/nec ;then
9199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9200 soname_spec='$libname${shared_ext}.$major'
9201 shlibpath_var=LD_LIBRARY_PATH
9205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9206 version_type=freebsd-elf
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 hardcode_into_libs=yes
9213 if test "$with_gnu_ld" = yes; then
9214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9215 shlibpath_overrides_runpath=no
9217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9218 shlibpath_overrides_runpath=yes
9221 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9225 sys_lib_dlsearch_path_spec='/usr/lib'
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 shlibpath_var=LD_LIBRARY_PATH
9239 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9240 echo "${ECHO_T}$dynamic_linker" >&6; }
9241 test "$dynamic_linker" = no && can_build_shared=no
9243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9244 if test "$GCC" = yes; then
9245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9249 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9250 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9251 if test "${libltdl_cv_shlibext+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 eval libltdl_cv_shlibext=$shrext_cmds
9259 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9260 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9261 if test -n "$libltdl_cv_shlibext"; then
9263 cat >>confdefs.h <<_ACEOF
9264 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9270 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9271 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9272 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 libltdl_cv_shlibpath_var="$shlibpath_var"
9277 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9278 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9279 if test -n "$libltdl_cv_shlibpath_var"; then
9281 cat >>confdefs.h <<_ACEOF
9282 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9288 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9289 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9290 if test "${libltdl_cv_sys_search_path+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9295 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9296 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9297 if test -n "$libltdl_cv_sys_search_path"; then
9299 for dir in $libltdl_cv_sys_search_path; do
9300 if test -z "$sys_search_path"; then
9301 sys_search_path="$dir"
9303 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9307 cat >>confdefs.h <<_ACEOF
9308 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9313 { echo "$as_me:$LINENO: checking for objdir" >&5
9314 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9315 if test "${libltdl_cv_objdir+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 libltdl_cv_objdir="$objdir"
9319 if test -n "$objdir"; then
9322 rm -f .libs 2>/dev/null
9323 mkdir .libs 2>/dev/null
9324 if test -d .libs; then
9325 libltdl_cv_objdir=.libs
9327 # MS-DOS does not allow filenames that begin with a dot.
9328 libltdl_cv_objdir=_libs
9330 rmdir .libs 2>/dev/null
9334 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9335 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9337 cat >>confdefs.h <<_ACEOF
9338 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9346 # Check for command to grab the raw symbol name followed by C symbol from nm.
9347 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9348 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9349 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 # These are sane defaults that work on at least a few old systems.
9354 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9356 # Character class describing NM global symbol codes.
9357 symcode='[BCDEGRST]'
9359 # Regexp to match symbols that can be accessed directly from C.
9360 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9362 # Transform an extracted symbol line into a proper C declaration
9363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9365 # Transform an extracted symbol line into symbol name and symbol address
9366 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'"
9368 # Define system-specific variables.
9373 cygwin* | mingw* | pw32*)
9374 symcode='[ABCDGISTW]'
9376 hpux*) # Its linker distinguishes data from code symbols
9377 if test "$host_cpu" = ia64; then
9378 symcode='[ABCDEGRST]'
9380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9381 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'"
9384 if test "$host_cpu" = ia64; then
9385 symcode='[ABCDGIRSTW]'
9386 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9387 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'"
9391 symcode='[BCDEGRST]'
9394 symcode='[BCDEGQRST]'
9405 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9413 # Handle CRLF in mingw tool chain
9417 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9421 # If we're using GNU nm, then use its standard symbol codes.
9422 case `$NM -V 2>&1` in
9423 *GNU* | *'with BFD'*)
9424 symcode='[ABCDGIRSTW]' ;;
9427 # Try without a prefix undercore, then with it.
9428 for ac_symprfx in "" "_"; do
9430 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9431 symxfrm="\\1 $ac_symprfx\\2 \\2"
9433 # Write the raw and C identifiers.
9434 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9436 # Check to see that the pipe works correctly.
9440 cat > conftest.$ac_ext <<EOF
9445 void nm_test_func(){}
9449 int main(){nm_test_var='a';nm_test_func();return(0);}
9452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453 (eval $ac_compile) 2>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; then
9457 # Now try to grab the symbols.
9459 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9460 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } && test -s "$nlist"; then
9464 # Try sorting and uniquifying the output.
9465 if sort "$nlist" | uniq > "$nlist"T; then
9466 mv -f "$nlist"T "$nlist"
9471 # Make sure that we snagged all the symbols we need.
9472 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9473 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9474 cat <<EOF > conftest.$ac_ext
9480 # Now generate the symbol file.
9481 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9483 cat <<EOF >> conftest.$ac_ext
9484 #if defined (__STDC__) && __STDC__
9485 # define lt_ptr_t void *
9487 # define lt_ptr_t char *
9491 /* The mapping between symbol names and symbols. */
9496 lt_preloaded_symbols[] =
9499 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9500 cat <<\EOF >> conftest.$ac_ext
9508 # Now try linking the two files.
9509 mv conftest.$ac_objext conftstm.$ac_objext
9510 lt_save_LIBS="$LIBS"
9511 lt_save_CFLAGS="$CFLAGS"
9512 LIBS="conftstm.$ac_objext"
9513 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9515 (eval $ac_link) 2>&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9521 LIBS="$lt_save_LIBS"
9522 CFLAGS="$lt_save_CFLAGS"
9524 echo "cannot find nm_test_func in $nlist" >&5
9527 echo "cannot find nm_test_var in $nlist" >&5
9530 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9533 echo "$progname: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9536 rm -f conftest* conftst*
9538 # Do not use the global_symbol_pipe unless it works.
9539 if test "$pipe_works" = yes; then
9542 lt_cv_sys_global_symbol_pipe=
9548 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9549 lt_cv_sys_global_symbol_to_cdecl=
9551 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9552 { echo "$as_me:$LINENO: result: failed" >&5
9553 echo "${ECHO_T}failed" >&6; }
9555 { echo "$as_me:$LINENO: result: ok" >&5
9556 echo "${ECHO_T}ok" >&6; }
9560 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9561 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9562 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9566 libltdl_cv_preloaded_symbols=yes
9568 libltdl_cv_preloaded_symbols=no
9572 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9573 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9574 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9576 cat >>confdefs.h <<\_ACEOF
9577 #define HAVE_PRELOADED_SYMBOLS 1
9585 ac_cpp='$CPP $CPPFLAGS'
9586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9591 { echo "$as_me:$LINENO: checking for shl_load" >&5
9592 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9593 if test "${ac_cv_func_shl_load+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 cat >conftest.$ac_ext <<_ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9604 #define shl_load innocuous_shl_load
9606 /* System header to define __stub macros and hopefully few prototypes,
9607 which can conflict with char shl_load (); below.
9608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9609 <limits.h> exists even on freestanding compilers. */
9612 # include <limits.h>
9614 # include <assert.h>
9619 /* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
9626 /* The GNU C library defines this for functions which it implements
9627 to always fail with ENOSYS. Some functions are actually named
9628 something starting with __ and the normal name is an alias. */
9629 #if defined __stub_shl_load || defined __stub___shl_load
9641 rm -f conftest.$ac_objext conftest$ac_exeext
9642 if { (ac_try="$ac_link"
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_link") 2>conftest.er1
9650 grep -v '^ *+' conftest.er1 >conftest.err
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; } &&
9665 { ac_try='test -s conftest$ac_exeext'
9666 { (case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_try") 2>&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_func_shl_load=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_cv_func_shl_load=no
9683 rm -f core conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9686 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9687 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9688 if test $ac_cv_func_shl_load = yes; then
9690 cat >>confdefs.h <<\_ACEOF
9691 #define HAVE_SHL_LOAD 1
9695 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9696 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9697 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 ac_check_lib_save_LIBS=$LIBS
9702 cat >conftest.$ac_ext <<_ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9709 /* Override any GCC internal prototype to avoid an error.
9710 Use char because int might match the return type of a GCC
9711 builtin and then its argument prototype would still apply. */
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_link") 2>conftest.er1
9733 grep -v '^ *+' conftest.er1 >conftest.err
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739 { (case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_try") 2>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_try") 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_lib_dld_shl_load=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_cv_lib_dld_shl_load=no
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9768 LIBS=$ac_check_lib_save_LIBS
9770 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9771 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9772 if test $ac_cv_lib_dld_shl_load = yes; then
9774 cat >>confdefs.h <<\_ACEOF
9775 #define HAVE_SHL_LOAD 1
9778 LIBADD_DL="$LIBADD_DL -ldld"
9780 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 ac_check_lib_save_LIBS=$LIBS
9787 cat >conftest.$ac_ext <<_ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9794 /* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_link") 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824 { (case "(($ac_try" in
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_try") 2>&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_try") 2>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_cv_lib_dl_dlopen=yes
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_cv_lib_dl_dlopen=no
9851 rm -f core conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_lib_save_LIBS
9855 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9857 if test $ac_cv_lib_dl_dlopen = yes; then
9859 cat >>confdefs.h <<\_ACEOF
9860 #define HAVE_LIBDL 1
9863 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9865 cat >conftest.$ac_ext <<_ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (ac_try="$ac_link"
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_link") 2>conftest.er1
9892 grep -v '^ *+' conftest.er1 >conftest.err
9894 cat conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } &&
9897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try='test -s conftest$ac_exeext'
9908 { (case "(($ac_try" in
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_try") 2>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9918 cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_LIBDL 1
9921 libltdl_cv_func_dlopen="yes"
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9927 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9928 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 ac_check_lib_save_LIBS=$LIBS
9933 cat >conftest.$ac_ext <<_ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9940 /* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_try") 2>&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest$ac_exeext'
9980 { (case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_try") 2>&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_cv_lib_svld_dlopen=yes
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_cv_lib_svld_dlopen=no
9997 rm -f core conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999 LIBS=$ac_check_lib_save_LIBS
10001 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10002 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10003 if test $ac_cv_lib_svld_dlopen = yes; then
10005 cat >>confdefs.h <<\_ACEOF
10006 #define HAVE_LIBDL 1
10009 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10011 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10012 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 ac_check_lib_save_LIBS=$LIBS
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10025 /* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10035 return dld_link ();
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10049 grep -v '^ *+' conftest.er1 >conftest.err
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10055 { (case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_try") 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; } &&
10064 { ac_try='test -s conftest$ac_exeext'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_lib_dld_dld_link=yes
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 ac_cv_lib_dld_dld_link=no
10082 rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10086 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10087 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10088 if test $ac_cv_lib_dld_dld_link = yes; then
10090 cat >>confdefs.h <<\_ACEOF
10094 LIBADD_DL="$LIBADD_DL -ldld"
10096 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10097 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10098 if test "${ac_cv_func__dyld_func_lookup+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 _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10109 #define _dyld_func_lookup innocuous__dyld_func_lookup
10111 /* System header to define __stub macros and hopefully few prototypes,
10112 which can conflict with char _dyld_func_lookup (); 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>
10122 #undef _dyld_func_lookup
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. */
10130 char _dyld_func_lookup ();
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__dyld_func_lookup || defined __stub____dyld_func_lookup
10141 return _dyld_func_lookup ();
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 ac_cv_func__dyld_func_lookup=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_cv_func__dyld_func_lookup=no
10188 rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10191 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10192 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10193 if test $ac_cv_func__dyld_func_lookup = yes; then
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_DYLD 1
10210 rm -f core conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext conftest.$ac_ext
10222 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10224 lt_save_LIBS="$LIBS"
10225 LIBS="$LIBS $LIBADD_DL"
10227 for ac_func in dlerror
10229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10243 #define $ac_func innocuous_$ac_func
10245 /* System header to define __stub macros and hopefully few prototypes,
10246 which can conflict with char $ac_func (); below.
10247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248 <limits.h> exists even on freestanding compilers. */
10251 # include <limits.h>
10253 # include <assert.h>
10258 /* Override any GCC internal prototype to avoid an error.
10259 Use char because int might match the return type of a GCC
10260 builtin and then its argument prototype would still apply. */
10265 /* The GNU C library defines this for functions which it implements
10266 to always fail with ENOSYS. Some functions are actually named
10267 something starting with __ and the normal name is an alias. */
10268 #if defined __stub_$ac_func || defined __stub___$ac_func
10275 return $ac_func ();
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281 if { (ac_try="$ac_link"
10282 case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_link") 2>conftest.er1
10289 grep -v '^ *+' conftest.er1 >conftest.err
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10295 { (case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_try") 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310 (eval "$ac_try") 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 eval "$as_ac_var=yes"
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 eval "$as_ac_var=no"
10322 rm -f core conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10325 ac_res=`eval echo '${'$as_ac_var'}'`
10326 { echo "$as_me:$LINENO: result: $ac_res" >&5
10327 echo "${ECHO_T}$ac_res" >&6; }
10328 if test `eval echo '${'$as_ac_var'}'` = yes; then
10329 cat >>confdefs.h <<_ACEOF
10330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10336 LIBS="$lt_save_LIBS"
10339 ac_cpp='$CPP $CPPFLAGS'
10340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10346 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10347 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10348 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 ac_cv_sys_symbol_underscore=no
10352 cat > conftest.$ac_ext <<EOF
10353 void nm_test_func(){}
10354 int main(){nm_test_func;return 0;}
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; then
10361 # Now try to grab the symbols.
10362 ac_nlist=conftest.nm
10363 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10364 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && test -s "$ac_nlist"; then
10368 # See whether the symbols have a leading underscore.
10369 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10370 ac_cv_sys_symbol_underscore=yes
10372 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10375 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10379 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10382 echo "configure: failed program was:" >&5
10388 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10389 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10392 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10393 if test x"$libltdl_cv_func_dlopen" = xyes ||
10394 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10395 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10396 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10397 if test "${libltdl_cv_need_uscore+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 libltdl_cv_need_uscore=unknown
10402 LIBS="$LIBS $LIBADD_DL"
10403 if test "$cross_compiling" = yes; then :
10404 libltdl_cv_need_uscore=cross
10406 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10407 lt_status=$lt_dlunknown
10408 cat > conftest.$ac_ext <<EOF
10409 #line 10409 "configure"
10410 #include "confdefs.h"
10419 # define LT_DLGLOBAL RTLD_GLOBAL
10422 # define LT_DLGLOBAL DL_GLOBAL
10424 # define LT_DLGLOBAL 0
10428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10429 find out it does not work in some platform. */
10430 #ifndef LT_DLLAZY_OR_NOW
10432 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10435 # define LT_DLLAZY_OR_NOW DL_LAZY
10438 # define LT_DLLAZY_OR_NOW RTLD_NOW
10441 # define LT_DLLAZY_OR_NOW DL_NOW
10443 # define LT_DLLAZY_OR_NOW 0
10451 extern "C" void exit (int);
10454 void fnord() { int i=42;}
10457 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10458 int status = $lt_dlunknown;
10462 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10463 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10464 /* dlclose (self); */
10472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10473 (eval $ac_link) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10477 (./conftest; exit; ) >&5 2>/dev/null
10479 case x$lt_status in
10480 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10481 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10482 x$lt_dlunknown|x*) ;;
10485 # compilation failed
10494 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10495 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10499 if test x"$libltdl_cv_need_uscore" = xyes; then
10501 cat >>confdefs.h <<\_ACEOF
10502 #define NEED_USCORE 1
10508 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10509 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10510 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 # PORTME does your system automatically load deplibs for dlopen?
10514 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10515 # For now, we just catch OSes we know something about -- in the
10516 # future, we'll try test this programmatically.
10517 libltdl_cv_sys_dlopen_deplibs=unknown
10519 aix3*|aix4.1.*|aix4.2.*)
10520 # Unknown whether this is true for these versions of AIX, but
10521 # we want this `case' here to explicitly catch those versions.
10522 libltdl_cv_sys_dlopen_deplibs=unknown
10525 libltdl_cv_sys_dlopen_deplibs=yes
10528 # Assuming the user has installed a libdl from somewhere, this is true
10529 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10530 libltdl_cv_sys_dlopen_deplibs=yes
10532 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10533 # GNU and its variants, using gnu ld.so (Glibc)
10534 libltdl_cv_sys_dlopen_deplibs=yes
10537 libltdl_cv_sys_dlopen_deplibs=yes
10540 libltdl_cv_sys_dlopen_deplibs=yes
10542 irix[12345]*|irix6.[01]*)
10543 # Catch all versions of IRIX before 6.2, and indicate that we don't
10544 # know how it worked for any of those versions.
10545 libltdl_cv_sys_dlopen_deplibs=unknown
10548 # The case above catches anything before 6.2, and it's known that
10549 # at 6.2 and later dlopen does load deplibs.
10550 libltdl_cv_sys_dlopen_deplibs=yes
10553 libltdl_cv_sys_dlopen_deplibs=yes
10556 libltdl_cv_sys_dlopen_deplibs=yes
10559 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10560 # it did *not* use an RPATH in a shared library to find objects the
10561 # library depends on, so we explicitly say `no'.
10562 libltdl_cv_sys_dlopen_deplibs=no
10564 osf5.0|osf5.0a|osf5.1)
10565 # dlopen *does* load deplibs and with the right loader patch applied
10566 # it even uses RPATH in a shared library to search for shared objects
10567 # that the library depends on, but there's no easy way to know if that
10568 # patch is installed. Since this is the case, all we can really
10569 # say is unknown -- it depends on the patch being installed. If
10570 # it is, this changes to `yes'. Without it, it would be `no'.
10571 libltdl_cv_sys_dlopen_deplibs=unknown
10574 # the two cases above should catch all versions of osf <= 5.1. Read
10575 # the comments above for what we know about them.
10576 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10577 # is used to find them so we can finally say `yes'.
10578 libltdl_cv_sys_dlopen_deplibs=yes
10581 libltdl_cv_sys_dlopen_deplibs=yes
10583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10584 libltdl_cv_sys_dlopen_deplibs=yes
10589 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10590 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10591 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10593 cat >>confdefs.h <<\_ACEOF
10594 #define LTDL_DLOPEN_DEPLIBS 1
10600 for ac_header in argz.h
10602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 ac_res=`eval echo '${'$as_ac_Header'}'`
10610 { echo "$as_me:$LINENO: result: $ac_res" >&5
10611 echo "${ECHO_T}$ac_res" >&6; }
10613 # Is the header compilable?
10614 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 $ac_includes_default
10623 #include <$ac_header>
10625 rm -f conftest.$ac_objext
10626 if { (ac_try="$ac_compile"
10627 case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_compile") 2>conftest.er1
10634 grep -v '^ *+' conftest.er1 >conftest.err
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10640 { (case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_try") 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest.$ac_objext'
10650 { (case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_try") 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 ac_header_compiler=yes
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_header_compiler=no
10667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10669 echo "${ECHO_T}$ac_header_compiler" >&6; }
10671 # Is the header present?
10672 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <$ac_header>
10682 if { (ac_try="$ac_cpp conftest.$ac_ext"
10683 case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10690 grep -v '^ *+' conftest.er1 >conftest.err
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } >/dev/null; then
10695 if test -s conftest.err; then
10696 ac_cpp_err=$ac_c_preproc_warn_flag
10697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10704 if test -z "$ac_cpp_err"; then
10705 ac_header_preproc=yes
10707 echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10710 ac_header_preproc=no
10713 rm -f conftest.err conftest.$ac_ext
10714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10715 echo "${ECHO_T}$ac_header_preproc" >&6; }
10717 # So? What about this header?
10718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10724 ac_header_preproc=yes
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10740 ## ------------------------------------ ##
10741 ## Report this to http://llvm.org/bugs/ ##
10742 ## ------------------------------------ ##
10744 ) | sed "s/^/$as_me: WARNING: /" >&2
10747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 eval "$as_ac_Header=\$ac_header_preproc"
10754 ac_res=`eval echo '${'$as_ac_Header'}'`
10755 { echo "$as_me:$LINENO: result: $ac_res" >&5
10756 echo "${ECHO_T}$ac_res" >&6; }
10759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10760 cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10769 { echo "$as_me:$LINENO: checking for error_t" >&5
10770 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10771 if test "${ac_cv_type_error_t+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 cat >conftest.$ac_ext <<_ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10784 typedef error_t ac__type_new_;
10788 if ((ac__type_new_ *) 0)
10790 if (sizeof (ac__type_new_))
10796 rm -f conftest.$ac_objext
10797 if { (ac_try="$ac_compile"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_compile") 2>conftest.er1
10805 grep -v '^ *+' conftest.er1 >conftest.err
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811 { (case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_try") 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest.$ac_objext'
10821 { (case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_try") 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_type_error_t=yes
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 ac_cv_type_error_t=no
10838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10840 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10841 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10842 if test $ac_cv_type_error_t = yes; then
10844 cat >>confdefs.h <<_ACEOF
10845 #define HAVE_ERROR_T 1
10851 cat >>confdefs.h <<\_ACEOF
10852 #define error_t int
10863 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 cat >conftest.$ac_ext <<_ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10879 #define $ac_func innocuous_$ac_func
10881 /* System header to define __stub macros and hopefully few prototypes,
10882 which can conflict with char $ac_func (); below.
10883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10884 <limits.h> exists even on freestanding compilers. */
10887 # include <limits.h>
10889 # include <assert.h>
10894 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10901 /* The GNU C library defines this for functions which it implements
10902 to always fail with ENOSYS. Some functions are actually named
10903 something starting with __ and the normal name is an alias. */
10904 #if defined __stub_$ac_func || defined __stub___$ac_func
10911 return $ac_func ();
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_link") 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest$ac_exeext'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 eval "$as_ac_var=yes"
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10955 eval "$as_ac_var=no"
10958 rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10961 ac_res=`eval echo '${'$as_ac_var'}'`
10962 { echo "$as_me:$LINENO: result: $ac_res" >&5
10963 echo "${ECHO_T}$ac_res" >&6; }
10964 if test `eval echo '${'$as_ac_var'}'` = yes; then
10965 cat >>confdefs.h <<_ACEOF
10966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10999 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11013 # Is the header compilable?
11014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 $ac_includes_default
11023 #include <$ac_header>
11025 rm -f conftest.$ac_objext
11026 if { (ac_try="$ac_compile"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_compile") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest.$ac_objext'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 ac_header_compiler=yes
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11064 ac_header_compiler=no
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11069 echo "${ECHO_T}$ac_header_compiler" >&6; }
11071 # Is the header present?
11072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 #include <$ac_header>
11082 if { (ac_try="$ac_cpp conftest.$ac_ext"
11083 case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11090 grep -v '^ *+' conftest.er1 >conftest.err
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } >/dev/null; then
11095 if test -s conftest.err; then
11096 ac_cpp_err=$ac_c_preproc_warn_flag
11097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11104 if test -z "$ac_cpp_err"; then
11105 ac_header_preproc=yes
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 ac_header_preproc=no
11113 rm -f conftest.err conftest.$ac_ext
11114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11115 echo "${ECHO_T}$ac_header_preproc" >&6; }
11117 # So? What about this header?
11118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11124 ac_header_preproc=yes
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11140 ## ------------------------------------ ##
11141 ## Report this to http://llvm.org/bugs/ ##
11142 ## ------------------------------------ ##
11144 ) | sed "s/^/$as_me: WARNING: /" >&2
11147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 eval "$as_ac_Header=\$ac_header_preproc"
11154 ac_res=`eval echo '${'$as_ac_Header'}'`
11155 { echo "$as_me:$LINENO: result: $ac_res" >&5
11156 echo "${ECHO_T}$ac_res" >&6; }
11159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11160 cat >>confdefs.h <<_ACEOF
11161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11172 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 ac_res=`eval echo '${'$as_ac_Header'}'`
11182 { echo "$as_me:$LINENO: result: $ac_res" >&5
11183 echo "${ECHO_T}$ac_res" >&6; }
11185 # Is the header compilable?
11186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11188 cat >conftest.$ac_ext <<_ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194 $ac_includes_default
11195 #include <$ac_header>
11197 rm -f conftest.$ac_objext
11198 if { (ac_try="$ac_compile"
11199 case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_compile") 2>conftest.er1
11206 grep -v '^ *+' conftest.er1 >conftest.err
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11212 { (case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_try") 2>&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; } &&
11221 { ac_try='test -s conftest.$ac_objext'
11222 { (case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_try") 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 ac_header_compiler=yes
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11236 ac_header_compiler=no
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11241 echo "${ECHO_T}$ac_header_compiler" >&6; }
11243 # Is the header present?
11244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 #include <$ac_header>
11254 if { (ac_try="$ac_cpp conftest.$ac_ext"
11255 case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11262 grep -v '^ *+' conftest.er1 >conftest.err
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } >/dev/null; then
11267 if test -s conftest.err; then
11268 ac_cpp_err=$ac_c_preproc_warn_flag
11269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11276 if test -z "$ac_cpp_err"; then
11277 ac_header_preproc=yes
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 ac_header_preproc=no
11285 rm -f conftest.err conftest.$ac_ext
11286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11287 echo "${ECHO_T}$ac_header_preproc" >&6; }
11289 # So? What about this header?
11290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11296 ac_header_preproc=yes
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11312 ## ------------------------------------ ##
11313 ## Report this to http://llvm.org/bugs/ ##
11314 ## ------------------------------------ ##
11316 ) | sed "s/^/$as_me: WARNING: /" >&2
11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 eval "$as_ac_Header=\$ac_header_preproc"
11326 ac_res=`eval echo '${'$as_ac_Header'}'`
11327 { echo "$as_me:$LINENO: result: $ac_res" >&5
11328 echo "${ECHO_T}$ac_res" >&6; }
11331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11332 cat >>confdefs.h <<_ACEOF
11333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11342 for ac_header in string.h strings.h
11344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 ac_res=`eval echo '${'$as_ac_Header'}'`
11352 { echo "$as_me:$LINENO: result: $ac_res" >&5
11353 echo "${ECHO_T}$ac_res" >&6; }
11355 # Is the header compilable?
11356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11358 cat >conftest.$ac_ext <<_ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11364 $ac_includes_default
11365 #include <$ac_header>
11367 rm -f conftest.$ac_objext
11368 if { (ac_try="$ac_compile"
11369 case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_compile") 2>conftest.er1
11376 grep -v '^ *+' conftest.er1 >conftest.err
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11382 { (case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_try") 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; } &&
11391 { ac_try='test -s conftest.$ac_objext'
11392 { (case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_try") 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 ac_header_compiler=yes
11403 echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11406 ac_header_compiler=no
11409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11411 echo "${ECHO_T}$ac_header_compiler" >&6; }
11413 # Is the header present?
11414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11416 cat >conftest.$ac_ext <<_ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 #include <$ac_header>
11424 if { (ac_try="$ac_cpp conftest.$ac_ext"
11425 case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11432 grep -v '^ *+' conftest.er1 >conftest.err
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11446 if test -z "$ac_cpp_err"; then
11447 ac_header_preproc=yes
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 ac_header_preproc=no
11455 rm -f conftest.err conftest.$ac_ext
11456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11457 echo "${ECHO_T}$ac_header_preproc" >&6; }
11459 # So? What about this header?
11460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11466 ac_header_preproc=yes
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11482 ## ------------------------------------ ##
11483 ## Report this to http://llvm.org/bugs/ ##
11484 ## ------------------------------------ ##
11486 ) | sed "s/^/$as_me: WARNING: /" >&2
11489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 eval "$as_ac_Header=\$ac_header_preproc"
11496 ac_res=`eval echo '${'$as_ac_Header'}'`
11497 { echo "$as_me:$LINENO: result: $ac_res" >&5
11498 echo "${ECHO_T}$ac_res" >&6; }
11501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11502 cat >>confdefs.h <<_ACEOF
11503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11513 for ac_func in strchr index
11515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 cat >conftest.$ac_ext <<_ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11529 #define $ac_func innocuous_$ac_func
11531 /* System header to define __stub macros and hopefully few prototypes,
11532 which can conflict with char $ac_func (); below.
11533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11534 <limits.h> exists even on freestanding compilers. */
11537 # include <limits.h>
11539 # include <assert.h>
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined __stub_$ac_func || defined __stub___$ac_func
11561 return $ac_func ();
11566 rm -f conftest.$ac_objext conftest$ac_exeext
11567 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11575 grep -v '^ *+' conftest.er1 >conftest.err
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11581 { (case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586 (eval "$ac_try") 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest$ac_exeext'
11591 { (case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_try") 2>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 eval "$as_ac_var=yes"
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 eval "$as_ac_var=no"
11608 rm -f core conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11611 ac_res=`eval echo '${'$as_ac_var'}'`
11612 { echo "$as_me:$LINENO: result: $ac_res" >&5
11613 echo "${ECHO_T}$ac_res" >&6; }
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615 cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11624 for ac_func in strrchr rindex
11626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 cat >conftest.$ac_ext <<_ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11640 #define $ac_func innocuous_$ac_func
11642 /* System header to define __stub macros and hopefully few prototypes,
11643 which can conflict with char $ac_func (); below.
11644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645 <limits.h> exists even on freestanding compilers. */
11648 # include <limits.h>
11650 # include <assert.h>
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11662 /* The GNU C library defines this for functions which it implements
11663 to always fail with ENOSYS. Some functions are actually named
11664 something starting with __ and the normal name is an alias. */
11665 #if defined __stub_$ac_func || defined __stub___$ac_func
11672 return $ac_func ();
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11686 grep -v '^ *+' conftest.er1 >conftest.err
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11692 { (case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_try") 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest$ac_exeext'
11702 { (case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707 (eval "$ac_try") 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 eval "$as_ac_var=yes"
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11716 eval "$as_ac_var=no"
11719 rm -f core conftest.err conftest.$ac_objext \
11720 conftest$ac_exeext conftest.$ac_ext
11722 ac_res=`eval echo '${'$as_ac_var'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_var'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11735 for ac_func in memcpy bcopy
11737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11751 #define $ac_func innocuous_$ac_func
11753 /* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char $ac_func (); below.
11755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 <limits.h> exists even on freestanding compilers. */
11759 # include <limits.h>
11761 # include <assert.h>
11766 /* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
11773 /* The GNU C library defines this for functions which it implements
11774 to always fail with ENOSYS. Some functions are actually named
11775 something starting with __ and the normal name is an alias. */
11776 #if defined __stub_$ac_func || defined __stub___$ac_func
11783 return $ac_func ();
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11797 grep -v '^ *+' conftest.er1 >conftest.err
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803 { (case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_try") 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 eval "$as_ac_var=yes"
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 eval "$as_ac_var=no"
11830 rm -f core conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext
11833 ac_res=`eval echo '${'$as_ac_var'}'`
11834 { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11836 if test `eval echo '${'$as_ac_var'}'` = yes; then
11837 cat >>confdefs.h <<_ACEOF
11838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11846 for ac_func in memmove strcmp
11848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 cat >conftest.$ac_ext <<_ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862 #define $ac_func innocuous_$ac_func
11864 /* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11870 # include <limits.h>
11872 # include <assert.h>
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11884 /* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
11887 #if defined __stub_$ac_func || defined __stub___$ac_func
11894 return $ac_func ();
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (ac_try="$ac_link"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_link") 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 eval "$as_ac_var=yes"
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 eval "$as_ac_var=no"
11941 rm -f core conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11944 ac_res=`eval echo '${'$as_ac_var'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947 if test `eval echo '${'$as_ac_var'}'` = yes; then
11948 cat >>confdefs.h <<_ACEOF
11949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11958 for ac_func in closedir opendir readdir
11960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 cat >conftest.$ac_ext <<_ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11974 #define $ac_func innocuous_$ac_func
11976 /* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char $ac_func (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
11982 # include <limits.h>
11984 # include <assert.h>
11989 /* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11996 /* The GNU C library defines this for functions which it implements
11997 to always fail with ENOSYS. Some functions are actually named
11998 something starting with __ and the normal name is an alias. */
11999 #if defined __stub_$ac_func || defined __stub___$ac_func
12006 return $ac_func ();
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (ac_try="$ac_link"
12013 case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_link") 2>conftest.er1
12020 grep -v '^ *+' conftest.er1 >conftest.err
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 eval "$as_ac_var=yes"
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 eval "$as_ac_var=no"
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12056 ac_res=`eval echo '${'$as_ac_var'}'`
12057 { echo "$as_me:$LINENO: result: $ac_res" >&5
12058 echo "${ECHO_T}$ac_res" >&6; }
12059 if test `eval echo '${'$as_ac_var'}'` = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12069 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12070 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12083 if test "$GCC" != "yes" && test "$ICC" != "yes"
12085 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12086 echo "$as_me: error: gcc|icc required but not found" >&2;}
12087 { (exit 1); exit 1; }; }
12090 if test "$GXX" != "yes" && test "$IXX" != "yes"
12092 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12093 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12094 { (exit 1); exit 1; }; }
12097 if test "$GCC" = "yes"
12099 cat >conftest.$ac_ext <<_ACEOF
12100 #if !defined(__GNUC__) || __GNUC__ < 3
12101 #error Unsupported GCC version
12105 rm -f conftest.$ac_objext
12106 if { (ac_try="$ac_compile"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_compile") 2>conftest.er1
12114 grep -v '^ *+' conftest.er1 >conftest.err
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12145 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12146 { (exit 1); exit 1; }; }
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152 if test -z "$llvm_cv_gnu_make_command"
12154 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12155 echo "$as_me: error: GNU Make required but not found" >&2;}
12156 { (exit 1); exit 1; }; }
12159 { echo "$as_me:$LINENO: result: ok" >&5
12160 echo "${ECHO_T}ok" >&6; }
12162 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12163 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12164 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12166 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12168 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12170 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12171 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12175 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12176 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12177 if test "${ac_cv_lib_m_sin+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 ac_check_lib_save_LIBS=$LIBS
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_lib_m_sin=yes
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12246 rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12250 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12251 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12252 if test $ac_cv_lib_m_sin = yes; then
12253 cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBM 1
12261 if test "$llvm_cv_os_type" = "MingW" ; then
12263 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12264 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12265 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 ac_check_lib_save_LIBS=$LIBS
12269 LIBS="-limagehlp $LIBS"
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (ac_try="$ac_link"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_link") 2>conftest.er1
12295 grep -v '^ *+' conftest.er1 >conftest.err
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest$ac_exeext'
12311 { (case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_try") 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_lib_imagehlp_main=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_cv_lib_imagehlp_main=no
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12332 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12333 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12334 if test $ac_cv_lib_imagehlp_main = yes; then
12335 cat >>confdefs.h <<_ACEOF
12336 #define HAVE_LIBIMAGEHLP 1
12339 LIBS="-limagehlp $LIBS"
12344 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12345 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12346 if test "${ac_cv_lib_psapi_main+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-lpsapi $LIBS"
12351 cat >conftest.$ac_ext <<_ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12367 rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (ac_try="$ac_link"
12369 case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_link") 2>conftest.er1
12376 grep -v '^ *+' conftest.er1 >conftest.err
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382 { (case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387 (eval "$ac_try") 2>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest$ac_exeext'
12392 { (case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_try") 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_lib_psapi_main=yes
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 ac_cv_lib_psapi_main=no
12409 rm -f core conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12413 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12414 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12415 if test $ac_cv_lib_psapi_main = yes; then
12416 cat >>confdefs.h <<_ACEOF
12417 #define HAVE_LIBPSAPI 1
12420 LIBS="-lpsapi $LIBS"
12426 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12427 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12428 if test "${ac_cv_search_dlopen+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 ac_func_search_save_LIBS=$LIBS
12432 cat >conftest.$ac_ext <<_ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12439 /* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12454 for ac_lib in '' dl; do
12455 if test -z "$ac_lib"; then
12456 ac_res="none required"
12459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12461 rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (ac_try="$ac_link"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_link") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476 { (case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481 (eval "$ac_try") 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_try") 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_search_dlopen=$ac_res
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12503 rm -f core conftest.err conftest.$ac_objext \
12505 if test "${ac_cv_search_dlopen+set}" = set; then
12509 if test "${ac_cv_search_dlopen+set}" = set; then
12512 ac_cv_search_dlopen=no
12514 rm conftest.$ac_ext
12515 LIBS=$ac_func_search_save_LIBS
12517 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12518 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12519 ac_res=$ac_cv_search_dlopen
12520 if test "$ac_res" != no; then
12521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12523 cat >>confdefs.h <<\_ACEOF
12524 #define HAVE_DLOPEN 1
12528 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12529 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12533 if test "$llvm_cv_enable_libffi" = "yes" ; then
12534 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12535 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12536 if test "${ac_cv_search_ffi_call+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 ac_func_search_save_LIBS=$LIBS
12540 cat >conftest.$ac_ext <<_ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12547 /* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12557 return ffi_call ();
12562 for ac_lib in '' ffi; do
12563 if test -z "$ac_lib"; then
12564 ac_res="none required"
12567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12569 rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (ac_try="$ac_link"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_link") 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584 { (case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_try") 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest$ac_exeext'
12594 { (case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_try") 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_cv_search_ffi_call=$ac_res
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12611 rm -f core conftest.err conftest.$ac_objext \
12613 if test "${ac_cv_search_ffi_call+set}" = set; then
12617 if test "${ac_cv_search_ffi_call+set}" = set; then
12620 ac_cv_search_ffi_call=no
12622 rm conftest.$ac_ext
12623 LIBS=$ac_func_search_save_LIBS
12625 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12626 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12627 ac_res=$ac_cv_search_ffi_call
12628 if test "$ac_res" != no; then
12629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12631 cat >>confdefs.h <<\_ACEOF
12632 #define HAVE_FFI_CALL 1
12636 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12637 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12638 { (exit 1); exit 1; }; }
12643 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12644 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12645 if test "${ac_cv_search_mallinfo+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 ac_func_search_save_LIBS=$LIBS
12649 cat >conftest.$ac_ext <<_ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12656 /* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12666 return mallinfo ();
12671 for ac_lib in '' malloc; do
12672 if test -z "$ac_lib"; then
12673 ac_res="none required"
12676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
12687 grep -v '^ *+' conftest.er1 >conftest.err
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12693 { (case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_try") 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest$ac_exeext'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 ac_cv_search_mallinfo=$ac_res
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12720 rm -f core conftest.err conftest.$ac_objext \
12722 if test "${ac_cv_search_mallinfo+set}" = set; then
12726 if test "${ac_cv_search_mallinfo+set}" = set; then
12729 ac_cv_search_mallinfo=no
12731 rm conftest.$ac_ext
12732 LIBS=$ac_func_search_save_LIBS
12734 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12735 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12736 ac_res=$ac_cv_search_mallinfo
12737 if test "$ac_res" != no; then
12738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12740 cat >>confdefs.h <<\_ACEOF
12741 #define HAVE_MALLINFO 1
12747 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12749 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12750 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12751 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-lpthread $LIBS"
12756 cat >conftest.$ac_ext <<_ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12769 char pthread_mutex_init ();
12773 return pthread_mutex_init ();
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_cv_lib_pthread_pthread_mutex_init=yes
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 ac_cv_lib_pthread_pthread_mutex_init=no
12820 rm -f core conftest.err conftest.$ac_objext \
12821 conftest$ac_exeext conftest.$ac_ext
12822 LIBS=$ac_check_lib_save_LIBS
12824 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12825 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12826 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12827 cat >>confdefs.h <<_ACEOF
12828 #define HAVE_LIBPTHREAD 1
12831 LIBS="-lpthread $LIBS"
12835 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12836 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12837 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 ac_func_search_save_LIBS=$LIBS
12841 cat >conftest.$ac_ext <<_ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12848 /* Override any GCC internal prototype to avoid an error.
12849 Use char because int might match the return type of a GCC
12850 builtin and then its argument prototype would still apply. */
12854 char pthread_mutex_lock ();
12858 return pthread_mutex_lock ();
12863 for ac_lib in '' pthread; do
12864 if test -z "$ac_lib"; then
12865 ac_res="none required"
12868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12870 rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (ac_try="$ac_link"
12872 case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_link") 2>conftest.er1
12879 grep -v '^ *+' conftest.er1 >conftest.err
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885 { (case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_try") 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest$ac_exeext'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_cv_search_pthread_mutex_lock=$ac_res
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12912 rm -f core conftest.err conftest.$ac_objext \
12914 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12918 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12921 ac_cv_search_pthread_mutex_lock=no
12923 rm conftest.$ac_ext
12924 LIBS=$ac_func_search_save_LIBS
12926 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12927 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12928 ac_res=$ac_cv_search_pthread_mutex_lock
12929 if test "$ac_res" != no; then
12930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12932 cat >>confdefs.h <<\_ACEOF
12933 #define HAVE_PTHREAD_MUTEX_LOCK 1
12938 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12939 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12940 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 ac_func_search_save_LIBS=$LIBS
12944 cat >conftest.$ac_ext <<_ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12957 char pthread_rwlock_init ();
12961 return pthread_rwlock_init ();
12966 for ac_lib in '' pthread; do
12967 if test -z "$ac_lib"; then
12968 ac_res="none required"
12971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (ac_try="$ac_link"
12975 case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_link") 2>conftest.er1
12982 grep -v '^ *+' conftest.er1 >conftest.err
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
12987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12988 { (case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_try") 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; } &&
12997 { ac_try='test -s conftest$ac_exeext'
12998 { (case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_try") 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 ac_cv_search_pthread_rwlock_init=$ac_res
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13015 rm -f core conftest.err conftest.$ac_objext \
13017 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13021 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13024 ac_cv_search_pthread_rwlock_init=no
13026 rm conftest.$ac_ext
13027 LIBS=$ac_func_search_save_LIBS
13029 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13030 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13031 ac_res=$ac_cv_search_pthread_rwlock_init
13032 if test "$ac_res" != no; then
13033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13035 cat >>confdefs.h <<\_ACEOF
13036 #define HAVE_PTHREAD_RWLOCK_INIT 1
13041 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13042 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13043 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 ac_func_search_save_LIBS=$LIBS
13047 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13060 char pthread_getspecific ();
13064 return pthread_getspecific ();
13069 for ac_lib in '' pthread; do
13070 if test -z "$ac_lib"; then
13071 ac_res="none required"
13074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13076 rm -f conftest.$ac_objext conftest$ac_exeext
13077 if { (ac_try="$ac_link"
13078 case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_link") 2>conftest.er1
13085 grep -v '^ *+' conftest.er1 >conftest.err
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } &&
13090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13091 { (case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_try") 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest$ac_exeext'
13101 { (case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_try") 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 ac_cv_search_pthread_getspecific=$ac_res
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13118 rm -f core conftest.err conftest.$ac_objext \
13120 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13124 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13127 ac_cv_search_pthread_getspecific=no
13129 rm conftest.$ac_ext
13130 LIBS=$ac_func_search_save_LIBS
13132 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13133 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13134 ac_res=$ac_cv_search_pthread_getspecific
13135 if test "$ac_res" != no; then
13136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13138 cat >>confdefs.h <<\_ACEOF
13139 #define HAVE_PTHREAD_GETSPECIFIC 1
13147 # Check whether --with-udis86 was given.
13148 if test "${with_udis86+set}" = set; then
13149 withval=$with_udis86;
13154 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13157 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13158 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13159 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 ac_check_lib_save_LIBS=$LIBS
13163 LIBS="-ludis86 $LIBS"
13164 cat >conftest.$ac_ext <<_ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13186 rm -f conftest.$ac_objext conftest$ac_exeext
13187 if { (ac_try="$ac_link"
13188 case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_link") 2>conftest.er1
13195 grep -v '^ *+' conftest.er1 >conftest.err
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } &&
13200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13201 { (case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_try") 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; } &&
13210 { ac_try='test -s conftest$ac_exeext'
13211 { (case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_try") 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_lib_udis86_ud_init=yes
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13225 ac_cv_lib_udis86_ud_init=no
13228 rm -f core conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13232 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13233 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13234 if test $ac_cv_lib_udis86_ud_init = yes; then
13235 cat >>confdefs.h <<_ACEOF
13236 #define HAVE_LIBUDIS86 1
13239 LIBS="-ludis86 $LIBS"
13243 echo "Error! You need to have libudis86 around."
13255 cat >>confdefs.h <<_ACEOF
13256 #define USE_UDIS86 $USE_UDIS86
13261 # Check whether --with-oprofile was given.
13262 if test "${with_oprofile+set}" = set; then
13263 withval=$with_oprofile;
13267 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13268 no) llvm_cv_oppath=
13271 *) llvm_cv_oppath="${withval}/lib/oprofile"
13272 CPPFLAGS="-I${withval}/include";;
13274 case $llvm_cv_os_type in
13276 if test -n "$llvm_cv_oppath" ; then
13277 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13278 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13279 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13280 if test "${ac_cv_search_bfd_init+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 ac_func_search_save_LIBS=$LIBS
13284 cat >conftest.$ac_ext <<_ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13301 return bfd_init ();
13306 for ac_lib in '' bfd; do
13307 if test -z "$ac_lib"; then
13308 ac_res="none required"
13311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (ac_try="$ac_link"
13315 case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_link") 2>conftest.er1
13322 grep -v '^ *+' conftest.er1 >conftest.err
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13328 { (case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_try") 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; } &&
13337 { ac_try='test -s conftest$ac_exeext'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
13347 ac_cv_search_bfd_init=$ac_res
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13355 rm -f core conftest.err conftest.$ac_objext \
13357 if test "${ac_cv_search_bfd_init+set}" = set; then
13361 if test "${ac_cv_search_bfd_init+set}" = set; then
13364 ac_cv_search_bfd_init=no
13366 rm conftest.$ac_ext
13367 LIBS=$ac_func_search_save_LIBS
13369 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13370 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13371 ac_res=$ac_cv_search_bfd_init
13372 if test "$ac_res" != no; then
13373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13377 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13378 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13379 if test "${ac_cv_search_op_open_agent+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 ac_func_search_save_LIBS=$LIBS
13383 cat >conftest.$ac_ext <<_ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13390 /* Override any GCC internal prototype to avoid an error.
13391 Use char because int might match the return type of a GCC
13392 builtin and then its argument prototype would still apply. */
13396 char op_open_agent ();
13400 return op_open_agent ();
13405 for ac_lib in '' opagent; do
13406 if test -z "$ac_lib"; then
13407 ac_res="none required"
13410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_cv_search_op_open_agent=$ac_res
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13454 rm -f core conftest.err conftest.$ac_objext \
13456 if test "${ac_cv_search_op_open_agent+set}" = set; then
13460 if test "${ac_cv_search_op_open_agent+set}" = set; then
13463 ac_cv_search_op_open_agent=no
13465 rm conftest.$ac_ext
13466 LIBS=$ac_func_search_save_LIBS
13468 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13469 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13470 ac_res=$ac_cv_search_op_open_agent
13471 if test "$ac_res" != no; then
13472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13476 echo "Error! You need to have libopagent around."
13481 if test "${ac_cv_header_opagent_h+set}" = set; then
13482 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13483 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13484 if test "${ac_cv_header_opagent_h+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13488 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13490 # Is the header compilable?
13491 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13492 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13499 $ac_includes_default
13500 #include <opagent.h>
13502 rm -f conftest.$ac_objext
13503 if { (ac_try="$ac_compile"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_compile") 2>conftest.er1
13511 grep -v '^ *+' conftest.er1 >conftest.err
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest.$ac_objext'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_header_compiler=yes
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 ac_header_compiler=no
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13546 echo "${ECHO_T}$ac_header_compiler" >&6; }
13548 # Is the header present?
13549 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13550 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13551 cat >conftest.$ac_ext <<_ACEOF
13554 cat confdefs.h >>conftest.$ac_ext
13555 cat >>conftest.$ac_ext <<_ACEOF
13556 /* end confdefs.h. */
13557 #include <opagent.h>
13559 if { (ac_try="$ac_cpp conftest.$ac_ext"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } >/dev/null; then
13572 if test -s conftest.err; then
13573 ac_cpp_err=$ac_c_preproc_warn_flag
13574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13581 if test -z "$ac_cpp_err"; then
13582 ac_header_preproc=yes
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_header_preproc=no
13590 rm -f conftest.err conftest.$ac_ext
13591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13592 echo "${ECHO_T}$ac_header_preproc" >&6; }
13594 # So? What about this header?
13595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13597 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13598 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13600 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13601 ac_header_preproc=yes
13604 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13605 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13607 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13609 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13610 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13611 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13612 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13613 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13614 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13615 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13617 ## ------------------------------------ ##
13618 ## Report this to http://llvm.org/bugs/ ##
13619 ## ------------------------------------ ##
13621 ) | sed "s/^/$as_me: WARNING: /" >&2
13624 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13625 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13626 if test "${ac_cv_header_opagent_h+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 ac_cv_header_opagent_h=$ac_header_preproc
13631 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13632 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13635 if test $ac_cv_header_opagent_h = yes; then
13639 echo "Error! You need to have opagent.h around."
13647 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13648 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13649 { (exit 1); exit 1; }; } ;;
13660 cat >>confdefs.h <<_ACEOF
13661 #define LLVM_USE_OPROFILE $USE_OPROFILE
13666 # Check whether --with-intel-jitevents was given.
13667 if test "${with_intel_jitevents+set}" = set; then
13668 withval=$with_intel_jitevents;
13669 case $llvm_cv_os_type in
13670 Linux|Win32|Cygwin|MingW) ;;
13672 { { echo "$as_me:$LINENO: error:
13673 Intel JIT API support is available on Linux and Windows only.\"" >&5
13674 echo "$as_me: error:
13675 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13676 { (exit 1); exit 1; }; } ;;
13679 USE_INTEL_JITEVENTS=1
13681 case "$llvm_cv_target_arch" in
13682 x86) llvm_intel_jitevents_archdir="lib32";;
13683 x86_64) llvm_intel_jitevents_archdir="lib64";;
13684 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13687 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13688 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13690 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13691 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13698 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13699 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13701 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13702 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13703 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 ac_func_search_save_LIBS=$LIBS
13707 cat >conftest.$ac_ext <<_ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13714 /* Override any GCC internal prototype to avoid an error.
13715 Use char because int might match the return type of a GCC
13716 builtin and then its argument prototype would still apply. */
13720 char iJIT_IsProfilingActive ();
13724 return iJIT_IsProfilingActive ();
13729 for ac_lib in '' jitprofiling; do
13730 if test -z "$ac_lib"; then
13731 ac_res="none required"
13734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13736 rm -f conftest.$ac_objext conftest$ac_exeext
13737 if { (ac_try="$ac_link"
13738 case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_link") 2>conftest.er1
13745 grep -v '^ *+' conftest.er1 >conftest.err
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13751 { (case "(($ac_try" in
13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_try") 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest$ac_exeext'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13778 rm -f core conftest.err conftest.$ac_objext \
13780 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13784 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13787 ac_cv_search_iJIT_IsProfilingActive=no
13789 rm conftest.$ac_ext
13790 LIBS=$ac_func_search_save_LIBS
13792 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13793 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13794 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13795 if test "$ac_res" != no; then
13796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13800 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13805 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13806 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13807 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13808 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13812 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13814 # Is the header compilable?
13815 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13816 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13817 cat >conftest.$ac_ext <<_ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13823 $ac_includes_default
13824 #include <jitprofiling.h>
13826 rm -f conftest.$ac_objext
13827 if { (ac_try="$ac_compile"
13828 case "(($ac_try" in
13829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830 *) ac_try_echo=$ac_try;;
13832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13833 (eval "$ac_compile") 2>conftest.er1
13835 grep -v '^ *+' conftest.er1 >conftest.err
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13841 { (case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_try") 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest.$ac_objext'
13851 { (case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_try") 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }; then
13860 ac_header_compiler=yes
13862 echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13865 ac_header_compiler=no
13868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13870 echo "${ECHO_T}$ac_header_compiler" >&6; }
13872 # Is the header present?
13873 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13874 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13875 cat >conftest.$ac_ext <<_ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13881 #include <jitprofiling.h>
13883 if { (ac_try="$ac_cpp conftest.$ac_ext"
13884 case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13891 grep -v '^ *+' conftest.er1 >conftest.err
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } >/dev/null; then
13896 if test -s conftest.err; then
13897 ac_cpp_err=$ac_c_preproc_warn_flag
13898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13905 if test -z "$ac_cpp_err"; then
13906 ac_header_preproc=yes
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13911 ac_header_preproc=no
13914 rm -f conftest.err conftest.$ac_ext
13915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13916 echo "${ECHO_T}$ac_header_preproc" >&6; }
13918 # So? What about this header?
13919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13921 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13922 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13924 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13925 ac_header_preproc=yes
13928 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13929 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13930 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13931 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13932 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13933 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13935 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13937 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13939 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13941 ## ------------------------------------ ##
13942 ## Report this to http://llvm.org/bugs/ ##
13943 ## ------------------------------------ ##
13945 ) | sed "s/^/$as_me: WARNING: /" >&2
13948 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13949 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13950 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 ac_cv_header_jitprofiling_h=$ac_header_preproc
13955 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13956 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13959 if test $ac_cv_header_jitprofiling_h = yes; then
13963 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13973 USE_INTEL_JITEVENTS=0
13979 cat >>confdefs.h <<_ACEOF
13980 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13990 ac_header_dirent=no
13991 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13992 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13993 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13994 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 cat >conftest.$ac_ext <<_ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h. */
14004 #include <sys/types.h>
14016 rm -f conftest.$ac_objext
14017 if { (ac_try="$ac_compile"
14018 case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_compile") 2>conftest.er1
14025 grep -v '^ *+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14031 { (case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_try") 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; } &&
14040 { ac_try='test -s conftest.$ac_objext'
14041 { (case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_try") 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 eval "$as_ac_Header=yes"
14052 echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14055 eval "$as_ac_Header=no"
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 ac_res=`eval echo '${'$as_ac_Header'}'`
14061 { echo "$as_me:$LINENO: result: $ac_res" >&5
14062 echo "${ECHO_T}$ac_res" >&6; }
14063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14064 cat >>confdefs.h <<_ACEOF
14065 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14068 ac_header_dirent=$ac_hdr; break
14072 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14073 if test $ac_header_dirent = dirent.h; then
14074 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14076 if test "${ac_cv_search_opendir+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 ac_func_search_save_LIBS=$LIBS
14080 cat >conftest.$ac_ext <<_ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14087 /* Override any GCC internal prototype to avoid an error.
14088 Use char because int might match the return type of a GCC
14089 builtin and then its argument prototype would still apply. */
14102 for ac_lib in '' dir; do
14103 if test -z "$ac_lib"; then
14104 ac_res="none required"
14107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14109 rm -f conftest.$ac_objext conftest$ac_exeext
14110 if { (ac_try="$ac_link"
14111 case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_link") 2>conftest.er1
14118 grep -v '^ *+' conftest.er1 >conftest.err
14120 cat conftest.err >&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
14123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14124 { (case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_try") 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; } &&
14133 { ac_try='test -s conftest$ac_exeext'
14134 { (case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_try") 2>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; }; then
14143 ac_cv_search_opendir=$ac_res
14145 echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14151 rm -f core conftest.err conftest.$ac_objext \
14153 if test "${ac_cv_search_opendir+set}" = set; then
14157 if test "${ac_cv_search_opendir+set}" = set; then
14160 ac_cv_search_opendir=no
14162 rm conftest.$ac_ext
14163 LIBS=$ac_func_search_save_LIBS
14165 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14166 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14167 ac_res=$ac_cv_search_opendir
14168 if test "$ac_res" != no; then
14169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14174 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14175 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14176 if test "${ac_cv_search_opendir+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 ac_func_search_save_LIBS=$LIBS
14180 cat >conftest.$ac_ext <<_ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14187 /* Override any GCC internal prototype to avoid an error.
14188 Use char because int might match the return type of a GCC
14189 builtin and then its argument prototype would still apply. */
14202 for ac_lib in '' x; do
14203 if test -z "$ac_lib"; then
14204 ac_res="none required"
14207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14209 rm -f conftest.$ac_objext conftest$ac_exeext
14210 if { (ac_try="$ac_link"
14211 case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_link") 2>conftest.er1
14218 grep -v '^ *+' conftest.er1 >conftest.err
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } &&
14223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14224 { (case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_try") 2>&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; } &&
14233 { ac_try='test -s conftest$ac_exeext'
14234 { (case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239 (eval "$ac_try") 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_cv_search_opendir=$ac_res
14245 echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14251 rm -f core conftest.err conftest.$ac_objext \
14253 if test "${ac_cv_search_opendir+set}" = set; then
14257 if test "${ac_cv_search_opendir+set}" = set; then
14260 ac_cv_search_opendir=no
14262 rm conftest.$ac_ext
14263 LIBS=$ac_func_search_save_LIBS
14265 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14266 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14267 ac_res=$ac_cv_search_opendir
14268 if test "$ac_res" != no; then
14269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14275 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14276 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14277 if test "${ac_cv_header_mmap_anon+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 ac_cpp='$CPP $CPPFLAGS'
14282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14286 cat >conftest.$ac_ext <<_ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14292 #include <sys/mman.h>
14293 #include <unistd.h>
14298 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14303 rm -f conftest.$ac_objext
14304 if { (ac_try="$ac_compile"
14305 case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_compile") 2>conftest.er1
14312 grep -v '^ *+' conftest.er1 >conftest.err
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
14317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_try") 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_cv_header_mmap_anon=yes
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 ac_cv_header_mmap_anon=no
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 ac_cpp='$CPP $CPPFLAGS'
14348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14354 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14355 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14356 if test "$ac_cv_header_mmap_anon" = yes; then
14358 cat >>confdefs.h <<\_ACEOF
14359 #define HAVE_MMAP_ANONYMOUS 1
14364 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14365 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14366 if test "${ac_cv_header_stat_broken+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 cat >conftest.$ac_ext <<_ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14375 #include <sys/types.h>
14376 #include <sys/stat.h>
14378 #if defined S_ISBLK && defined S_IFDIR
14379 # if S_ISBLK (S_IFDIR)
14384 #if defined S_ISBLK && defined S_IFCHR
14385 # if S_ISBLK (S_IFCHR)
14390 #if defined S_ISLNK && defined S_IFREG
14391 # if S_ISLNK (S_IFREG)
14396 #if defined S_ISSOCK && defined S_IFREG
14397 # if S_ISSOCK (S_IFREG)
14403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14404 $EGREP "You lose" >/dev/null 2>&1; then
14405 ac_cv_header_stat_broken=yes
14407 ac_cv_header_stat_broken=no
14412 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14413 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14414 if test $ac_cv_header_stat_broken = yes; then
14416 cat >>confdefs.h <<\_ACEOF
14417 #define STAT_MACROS_BROKEN 1
14422 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14423 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14424 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 cat >conftest.$ac_ext <<_ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 #include <sys/types.h>
14434 #include <sys/wait.h>
14435 #ifndef WEXITSTATUS
14436 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14439 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14447 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14452 rm -f conftest.$ac_objext
14453 if { (ac_try="$ac_compile"
14454 case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459 (eval "$ac_compile") 2>conftest.er1
14461 grep -v '^ *+' conftest.er1 >conftest.err
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14467 { (case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_try") 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
14477 { (case "(($ac_try" in
14478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479 *) ac_try_echo=$ac_try;;
14481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482 (eval "$ac_try") 2>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14486 ac_cv_header_sys_wait_h=yes
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_cv_header_sys_wait_h=no
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14497 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14498 if test $ac_cv_header_sys_wait_h = yes; then
14500 cat >>confdefs.h <<\_ACEOF
14501 #define HAVE_SYS_WAIT_H 1
14506 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14507 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14508 if test "${ac_cv_header_time+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #include <sys/types.h>
14518 #include <sys/time.h>
14524 if ((struct tm *) 0)
14530 rm -f conftest.$ac_objext
14531 if { (ac_try="$ac_compile"
14532 case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_compile") 2>conftest.er1
14539 grep -v '^ *+' conftest.er1 >conftest.err
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; } &&
14554 { ac_try='test -s conftest.$ac_objext'
14555 { (case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_try") 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }; then
14564 ac_cv_header_time=yes
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14569 ac_cv_header_time=no
14572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14574 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14575 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14576 if test $ac_cv_header_time = yes; then
14578 cat >>confdefs.h <<\_ACEOF
14579 #define TIME_WITH_SYS_TIME 1
14591 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 ac_res=`eval echo '${'$as_ac_Header'}'`
14601 { echo "$as_me:$LINENO: result: $ac_res" >&5
14602 echo "${ECHO_T}$ac_res" >&6; }
14604 # Is the header compilable?
14605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14607 cat >conftest.$ac_ext <<_ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 $ac_includes_default
14614 #include <$ac_header>
14616 rm -f conftest.$ac_objext
14617 if { (ac_try="$ac_compile"
14618 case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_compile") 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14631 { (case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_try") 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; } &&
14640 { ac_try='test -s conftest.$ac_objext'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14650 ac_header_compiler=yes
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14655 ac_header_compiler=no
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14660 echo "${ECHO_T}$ac_header_compiler" >&6; }
14662 # Is the header present?
14663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14665 cat >conftest.$ac_ext <<_ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14671 #include <$ac_header>
14673 if { (ac_try="$ac_cpp conftest.$ac_ext"
14674 case "(($ac_try" in
14675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14681 grep -v '^ *+' conftest.er1 >conftest.err
14683 cat conftest.err >&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } >/dev/null; then
14686 if test -s conftest.err; then
14687 ac_cpp_err=$ac_c_preproc_warn_flag
14688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14695 if test -z "$ac_cpp_err"; then
14696 ac_header_preproc=yes
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14701 ac_header_preproc=no
14704 rm -f conftest.err conftest.$ac_ext
14705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14706 echo "${ECHO_T}$ac_header_preproc" >&6; }
14708 # So? What about this header?
14709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14715 ac_header_preproc=yes
14718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14731 ## ------------------------------------ ##
14732 ## Report this to http://llvm.org/bugs/ ##
14733 ## ------------------------------------ ##
14735 ) | sed "s/^/$as_me: WARNING: /" >&2
14738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 eval "$as_ac_Header=\$ac_header_preproc"
14745 ac_res=`eval echo '${'$as_ac_Header'}'`
14746 { echo "$as_me:$LINENO: result: $ac_res" >&5
14747 echo "${ECHO_T}$ac_res" >&6; }
14750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14751 cat >>confdefs.h <<_ACEOF
14752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14765 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 ac_res=`eval echo '${'$as_ac_Header'}'`
14775 { echo "$as_me:$LINENO: result: $ac_res" >&5
14776 echo "${ECHO_T}$ac_res" >&6; }
14778 # Is the header compilable?
14779 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14781 cat >conftest.$ac_ext <<_ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 $ac_includes_default
14788 #include <$ac_header>
14790 rm -f conftest.$ac_objext
14791 if { (ac_try="$ac_compile"
14792 case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_compile") 2>conftest.er1
14799 grep -v '^ *+' conftest.er1 >conftest.err
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14805 { (case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_try") 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_try") 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 ac_header_compiler=yes
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 ac_header_compiler=no
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14834 echo "${ECHO_T}$ac_header_compiler" >&6; }
14836 # Is the header present?
14837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14839 cat >conftest.$ac_ext <<_ACEOF
14842 cat confdefs.h >>conftest.$ac_ext
14843 cat >>conftest.$ac_ext <<_ACEOF
14844 /* end confdefs.h. */
14845 #include <$ac_header>
14847 if { (ac_try="$ac_cpp conftest.$ac_ext"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14855 grep -v '^ *+' conftest.er1 >conftest.err
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } >/dev/null; then
14860 if test -s conftest.err; then
14861 ac_cpp_err=$ac_c_preproc_warn_flag
14862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14869 if test -z "$ac_cpp_err"; then
14870 ac_header_preproc=yes
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14875 ac_header_preproc=no
14878 rm -f conftest.err conftest.$ac_ext
14879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880 echo "${ECHO_T}$ac_header_preproc" >&6; }
14882 # So? What about this header?
14883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889 ac_header_preproc=yes
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14905 ## ------------------------------------ ##
14906 ## Report this to http://llvm.org/bugs/ ##
14907 ## ------------------------------------ ##
14909 ) | sed "s/^/$as_me: WARNING: /" >&2
14912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 eval "$as_ac_Header=\$ac_header_preproc"
14919 ac_res=`eval echo '${'$as_ac_Header'}'`
14920 { echo "$as_me:$LINENO: result: $ac_res" >&5
14921 echo "${ECHO_T}$ac_res" >&6; }
14924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14925 cat >>confdefs.h <<_ACEOF
14926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14935 for ac_header in utime.h windows.h
14937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 ac_res=`eval echo '${'$as_ac_Header'}'`
14945 { echo "$as_me:$LINENO: result: $ac_res" >&5
14946 echo "${ECHO_T}$ac_res" >&6; }
14948 # Is the header compilable?
14949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14951 cat >conftest.$ac_ext <<_ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14957 $ac_includes_default
14958 #include <$ac_header>
14960 rm -f conftest.$ac_objext
14961 if { (ac_try="$ac_compile"
14962 case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 (eval "$ac_compile") 2>conftest.er1
14969 grep -v '^ *+' conftest.er1 >conftest.err
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14975 { (case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_try") 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; } &&
14984 { ac_try='test -s conftest.$ac_objext'
14985 { (case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_try") 2>&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_header_compiler=yes
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14999 ac_header_compiler=no
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15004 echo "${ECHO_T}$ac_header_compiler" >&6; }
15006 # Is the header present?
15007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15009 cat >conftest.$ac_ext <<_ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 #include <$ac_header>
15017 if { (ac_try="$ac_cpp conftest.$ac_ext"
15018 case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15025 grep -v '^ *+' conftest.er1 >conftest.err
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } >/dev/null; then
15030 if test -s conftest.err; then
15031 ac_cpp_err=$ac_c_preproc_warn_flag
15032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15039 if test -z "$ac_cpp_err"; then
15040 ac_header_preproc=yes
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15045 ac_header_preproc=no
15048 rm -f conftest.err conftest.$ac_ext
15049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15050 echo "${ECHO_T}$ac_header_preproc" >&6; }
15052 # So? What about this header?
15053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15059 ac_header_preproc=yes
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15075 ## ------------------------------------ ##
15076 ## Report this to http://llvm.org/bugs/ ##
15077 ## ------------------------------------ ##
15079 ) | sed "s/^/$as_me: WARNING: /" >&2
15082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 eval "$as_ac_Header=\$ac_header_preproc"
15089 ac_res=`eval echo '${'$as_ac_Header'}'`
15090 { echo "$as_me:$LINENO: result: $ac_res" >&5
15091 echo "${ECHO_T}$ac_res" >&6; }
15094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15095 cat >>confdefs.h <<_ACEOF
15096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15108 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 ac_res=`eval echo '${'$as_ac_Header'}'`
15118 { echo "$as_me:$LINENO: result: $ac_res" >&5
15119 echo "${ECHO_T}$ac_res" >&6; }
15121 # Is the header compilable?
15122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130 $ac_includes_default
15131 #include <$ac_header>
15133 rm -f conftest.$ac_objext
15134 if { (ac_try="$ac_compile"
15135 case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_compile") 2>conftest.er1
15142 grep -v '^ *+' conftest.er1 >conftest.err
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; } &&
15157 { ac_try='test -s conftest.$ac_objext'
15158 { (case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_try") 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_header_compiler=yes
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15172 ac_header_compiler=no
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15177 echo "${ECHO_T}$ac_header_compiler" >&6; }
15179 # Is the header present?
15180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15182 cat >conftest.$ac_ext <<_ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15188 #include <$ac_header>
15190 if { (ac_try="$ac_cpp conftest.$ac_ext"
15191 case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15198 grep -v '^ *+' conftest.er1 >conftest.err
15200 cat conftest.err >&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } >/dev/null; then
15203 if test -s conftest.err; then
15204 ac_cpp_err=$ac_c_preproc_warn_flag
15205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15212 if test -z "$ac_cpp_err"; then
15213 ac_header_preproc=yes
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15218 ac_header_preproc=no
15221 rm -f conftest.err conftest.$ac_ext
15222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15223 echo "${ECHO_T}$ac_header_preproc" >&6; }
15225 # So? What about this header?
15226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15232 ac_header_preproc=yes
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15238 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15242 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15248 ## ------------------------------------ ##
15249 ## Report this to http://llvm.org/bugs/ ##
15250 ## ------------------------------------ ##
15252 ) | sed "s/^/$as_me: WARNING: /" >&2
15255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 eval "$as_ac_Header=\$ac_header_preproc"
15262 ac_res=`eval echo '${'$as_ac_Header'}'`
15263 { echo "$as_me:$LINENO: result: $ac_res" >&5
15264 echo "${ECHO_T}$ac_res" >&6; }
15267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15268 cat >>confdefs.h <<_ACEOF
15269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15280 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 ac_res=`eval echo '${'$as_ac_Header'}'`
15290 { echo "$as_me:$LINENO: result: $ac_res" >&5
15291 echo "${ECHO_T}$ac_res" >&6; }
15293 # Is the header compilable?
15294 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15302 $ac_includes_default
15303 #include <$ac_header>
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_compile") 2>conftest.er1
15314 grep -v '^ *+' conftest.er1 >conftest.err
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_try") 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest.$ac_objext'
15330 { (case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_try") 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 ac_header_compiler=yes
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_header_compiler=no
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349 echo "${ECHO_T}$ac_header_compiler" >&6; }
15351 # Is the header present?
15352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15354 cat >conftest.$ac_ext <<_ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 #include <$ac_header>
15362 if { (ac_try="$ac_cpp conftest.$ac_ext"
15363 case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15370 grep -v '^ *+' conftest.er1 >conftest.err
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } >/dev/null; then
15375 if test -s conftest.err; then
15376 ac_cpp_err=$ac_c_preproc_warn_flag
15377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15384 if test -z "$ac_cpp_err"; then
15385 ac_header_preproc=yes
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ac_header_preproc=no
15393 rm -f conftest.err conftest.$ac_ext
15394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15395 echo "${ECHO_T}$ac_header_preproc" >&6; }
15397 # So? What about this header?
15398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15404 ac_header_preproc=yes
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15420 ## ------------------------------------ ##
15421 ## Report this to http://llvm.org/bugs/ ##
15422 ## ------------------------------------ ##
15424 ) | sed "s/^/$as_me: WARNING: /" >&2
15427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 eval "$as_ac_Header=\$ac_header_preproc"
15434 ac_res=`eval echo '${'$as_ac_Header'}'`
15435 { echo "$as_me:$LINENO: result: $ac_res" >&5
15436 echo "${ECHO_T}$ac_res" >&6; }
15439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15440 cat >>confdefs.h <<_ACEOF
15441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15449 for ac_header in valgrind/valgrind.h
15451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 ac_res=`eval echo '${'$as_ac_Header'}'`
15459 { echo "$as_me:$LINENO: result: $ac_res" >&5
15460 echo "${ECHO_T}$ac_res" >&6; }
15462 # Is the header compilable?
15463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 $ac_includes_default
15472 #include <$ac_header>
15474 rm -f conftest.$ac_objext
15475 if { (ac_try="$ac_compile"
15476 case "(($ac_try" in
15477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478 *) ac_try_echo=$ac_try;;
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481 (eval "$ac_compile") 2>conftest.er1
15483 grep -v '^ *+' conftest.er1 >conftest.err
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15489 { (case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_try") 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
15499 { (case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_try") 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 ac_header_compiler=yes
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 ac_header_compiler=no
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6; }
15520 # Is the header present?
15521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <$ac_header>
15531 if { (ac_try="$ac_cpp conftest.$ac_ext"
15532 case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15539 grep -v '^ *+' conftest.er1 >conftest.err
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } >/dev/null; then
15544 if test -s conftest.err; then
15545 ac_cpp_err=$ac_c_preproc_warn_flag
15546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15553 if test -z "$ac_cpp_err"; then
15554 ac_header_preproc=yes
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 ac_header_preproc=no
15562 rm -f conftest.err conftest.$ac_ext
15563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15564 echo "${ECHO_T}$ac_header_preproc" >&6; }
15566 # So? What about this header?
15567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15573 ac_header_preproc=yes
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15589 ## ------------------------------------ ##
15590 ## Report this to http://llvm.org/bugs/ ##
15591 ## ------------------------------------ ##
15593 ) | sed "s/^/$as_me: WARNING: /" >&2
15596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 eval "$as_ac_Header=\$ac_header_preproc"
15603 ac_res=`eval echo '${'$as_ac_Header'}'`
15604 { echo "$as_me:$LINENO: result: $ac_res" >&5
15605 echo "${ECHO_T}$ac_res" >&6; }
15608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15618 for ac_header in fenv.h
15620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 ac_res=`eval echo '${'$as_ac_Header'}'`
15628 { echo "$as_me:$LINENO: result: $ac_res" >&5
15629 echo "${ECHO_T}$ac_res" >&6; }
15631 # Is the header compilable?
15632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15641 #include <$ac_header>
15643 rm -f conftest.$ac_objext
15644 if { (ac_try="$ac_compile"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_compile") 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15658 { (case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_try") 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest.$ac_objext'
15668 { (case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_try") 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 ac_header_compiler=yes
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 ac_header_compiler=no
15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15687 echo "${ECHO_T}$ac_header_compiler" >&6; }
15689 # Is the header present?
15690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15692 cat >conftest.$ac_ext <<_ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 #include <$ac_header>
15700 if { (ac_try="$ac_cpp conftest.$ac_ext"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15708 grep -v '^ *+' conftest.er1 >conftest.err
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } >/dev/null; then
15713 if test -s conftest.err; then
15714 ac_cpp_err=$ac_c_preproc_warn_flag
15715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15722 if test -z "$ac_cpp_err"; then
15723 ac_header_preproc=yes
15725 echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15728 ac_header_preproc=no
15731 rm -f conftest.err conftest.$ac_ext
15732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15733 echo "${ECHO_T}$ac_header_preproc" >&6; }
15735 # So? What about this header?
15736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15742 ac_header_preproc=yes
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15758 ## ------------------------------------ ##
15759 ## Report this to http://llvm.org/bugs/ ##
15760 ## ------------------------------------ ##
15762 ) | sed "s/^/$as_me: WARNING: /" >&2
15765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 eval "$as_ac_Header=\$ac_header_preproc"
15772 ac_res=`eval echo '${'$as_ac_Header'}'`
15773 { echo "$as_me:$LINENO: result: $ac_res" >&5
15774 echo "${ECHO_T}$ac_res" >&6; }
15777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15778 cat >>confdefs.h <<_ACEOF
15779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15786 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15788 for ac_header in pthread.h
15790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 ac_res=`eval echo '${'$as_ac_Header'}'`
15798 { echo "$as_me:$LINENO: result: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15801 # Is the header compilable?
15802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15804 cat >conftest.$ac_ext <<_ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 $ac_includes_default
15811 #include <$ac_header>
15813 rm -f conftest.$ac_objext
15814 if { (ac_try="$ac_compile"
15815 case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_compile") 2>conftest.er1
15822 grep -v '^ *+' conftest.er1 >conftest.err
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15828 { (case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_try") 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_try") 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_header_compiler=yes
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 ac_header_compiler=no
15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15857 echo "${ECHO_T}$ac_header_compiler" >&6; }
15859 # Is the header present?
15860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15862 cat >conftest.$ac_ext <<_ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15868 #include <$ac_header>
15870 if { (ac_try="$ac_cpp conftest.$ac_ext"
15871 case "(($ac_try" in
15872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873 *) ac_try_echo=$ac_try;;
15875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15878 grep -v '^ *+' conftest.er1 >conftest.err
15880 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } >/dev/null; then
15883 if test -s conftest.err; then
15884 ac_cpp_err=$ac_c_preproc_warn_flag
15885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15892 if test -z "$ac_cpp_err"; then
15893 ac_header_preproc=yes
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 ac_header_preproc=no
15901 rm -f conftest.err conftest.$ac_ext
15902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15903 echo "${ECHO_T}$ac_header_preproc" >&6; }
15905 # So? What about this header?
15906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15912 ac_header_preproc=yes
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15928 ## ------------------------------------ ##
15929 ## Report this to http://llvm.org/bugs/ ##
15930 ## ------------------------------------ ##
15932 ) | sed "s/^/$as_me: WARNING: /" >&2
15935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15938 echo $ECHO_N "(cached) $ECHO_C" >&6
15940 eval "$as_ac_Header=\$ac_header_preproc"
15942 ac_res=`eval echo '${'$as_ac_Header'}'`
15943 { echo "$as_me:$LINENO: result: $ac_res" >&5
15944 echo "${ECHO_T}$ac_res" >&6; }
15947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15948 cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15965 if test "$llvm_cv_enable_libffi" = "yes" ; then
15968 for ac_header in ffi.h ffi/ffi.h
15970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 ac_res=`eval echo '${'$as_ac_Header'}'`
15978 { echo "$as_me:$LINENO: result: $ac_res" >&5
15979 echo "${ECHO_T}$ac_res" >&6; }
15981 # Is the header compilable?
15982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15991 #include <$ac_header>
15993 rm -f conftest.$ac_objext
15994 if { (ac_try="$ac_compile"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_compile") 2>conftest.er1
16002 grep -v '^ *+' conftest.er1 >conftest.err
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
16007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16008 { (case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_try") 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try='test -s conftest.$ac_objext'
16018 { (case "(($ac_try" in
16019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020 *) ac_try_echo=$ac_try;;
16022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_try") 2>&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16027 ac_header_compiler=yes
16029 echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16032 ac_header_compiler=no
16035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16037 echo "${ECHO_T}$ac_header_compiler" >&6; }
16039 # Is the header present?
16040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16042 cat >conftest.$ac_ext <<_ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 #include <$ac_header>
16050 if { (ac_try="$ac_cpp conftest.$ac_ext"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } >/dev/null; then
16063 if test -s conftest.err; then
16064 ac_cpp_err=$ac_c_preproc_warn_flag
16065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16072 if test -z "$ac_cpp_err"; then
16073 ac_header_preproc=yes
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 ac_header_preproc=no
16081 rm -f conftest.err conftest.$ac_ext
16082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16083 echo "${ECHO_T}$ac_header_preproc" >&6; }
16085 # So? What about this header?
16086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16092 ac_header_preproc=yes
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16108 ## ------------------------------------ ##
16109 ## Report this to http://llvm.org/bugs/ ##
16110 ## ------------------------------------ ##
16112 ) | sed "s/^/$as_me: WARNING: /" >&2
16115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 eval "$as_ac_Header=\$ac_header_preproc"
16122 ac_res=`eval echo '${'$as_ac_Header'}'`
16123 { echo "$as_me:$LINENO: result: $ac_res" >&5
16124 echo "${ECHO_T}$ac_res" >&6; }
16127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16128 cat >>confdefs.h <<_ACEOF
16129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16139 for ac_header in CrashReporterClient.h
16141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 ac_res=`eval echo '${'$as_ac_Header'}'`
16149 { echo "$as_me:$LINENO: result: $ac_res" >&5
16150 echo "${ECHO_T}$ac_res" >&6; }
16152 # Is the header compilable?
16153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16155 cat >conftest.$ac_ext <<_ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 $ac_includes_default
16162 #include <$ac_header>
16164 rm -f conftest.$ac_objext
16165 if { (ac_try="$ac_compile"
16166 case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_compile") 2>conftest.er1
16173 grep -v '^ *+' conftest.er1 >conftest.err
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179 { (case "(($ac_try" in
16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181 *) ac_try_echo=$ac_try;;
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184 (eval "$ac_try") 2>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest.$ac_objext'
16189 { (case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_try") 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_header_compiler=yes
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 ac_header_compiler=no
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16208 echo "${ECHO_T}$ac_header_compiler" >&6; }
16210 # Is the header present?
16211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16219 #include <$ac_header>
16221 if { (ac_try="$ac_cpp conftest.$ac_ext"
16222 case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16229 grep -v '^ *+' conftest.er1 >conftest.err
16231 cat conftest.err >&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } >/dev/null; then
16234 if test -s conftest.err; then
16235 ac_cpp_err=$ac_c_preproc_warn_flag
16236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16243 if test -z "$ac_cpp_err"; then
16244 ac_header_preproc=yes
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16249 ac_header_preproc=no
16252 rm -f conftest.err conftest.$ac_ext
16253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254 echo "${ECHO_T}$ac_header_preproc" >&6; }
16256 # So? What about this header?
16257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263 ac_header_preproc=yes
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16279 ## ------------------------------------ ##
16280 ## Report this to http://llvm.org/bugs/ ##
16281 ## ------------------------------------ ##
16283 ) | sed "s/^/$as_me: WARNING: /" >&2
16286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 eval "$as_ac_Header=\$ac_header_preproc"
16293 ac_res=`eval echo '${'$as_ac_Header'}'`
16294 { echo "$as_me:$LINENO: result: $ac_res" >&5
16295 echo "${ECHO_T}$ac_res" >&6; }
16298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16299 cat >>confdefs.h <<_ACEOF
16300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16308 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16309 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16310 cat >conftest.$ac_ext <<_ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 extern const char *__crashreporter_info__;
16318 __crashreporter_info__ = "test";
16323 rm -f conftest.$ac_objext conftest$ac_exeext
16324 if { (ac_try="$ac_link"
16325 case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330 (eval "$ac_link") 2>conftest.er1
16332 grep -v '^ *+' conftest.er1 >conftest.err
16334 cat conftest.err >&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } &&
16337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16338 { (case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_try") 2>&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; } &&
16347 { ac_try='test -s conftest$ac_exeext'
16348 { (case "(($ac_try" in
16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350 *) ac_try_echo=$ac_try;;
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_try") 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 { echo "$as_me:$LINENO: result: yes" >&5
16358 echo "${ECHO_T}yes" >&6; }
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_CRASHREPORTER_INFO 1
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16368 { echo "$as_me:$LINENO: result: no" >&5
16369 echo "${ECHO_T}no" >&6; }
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_CRASHREPORTER_INFO 0
16377 rm -f core conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
16383 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16384 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16385 if test "${ac_cv_huge_val_sanity+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 ac_cpp='$CXXCPP $CPPFLAGS'
16391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16395 ac_save_CXXFLAGS=$CXXFLAGS
16396 CXXFLAGS="$CXXFLAGS -pedantic"
16397 if test "$cross_compiling" = yes; then
16398 ac_cv_huge_val_sanity=yes
16400 cat >conftest.$ac_ext <<_ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16410 double x = HUGE_VAL; return x != x;
16415 rm -f conftest$ac_exeext
16416 if { (ac_try="$ac_link"
16417 case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_link") 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16426 { (case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_try") 2>&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16435 ac_cv_huge_val_sanity=yes
16437 echo "$as_me: program exited with status $ac_status" >&5
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ( exit $ac_status )
16442 ac_cv_huge_val_sanity=no
16444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16448 CXXFLAGS=$ac_save_CXXFLAGS
16450 ac_cpp='$CPP $CPPFLAGS'
16451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16457 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16458 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16459 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16462 { echo "$as_me:$LINENO: checking for pid_t" >&5
16463 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16464 if test "${ac_cv_type_pid_t+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 cat >conftest.$ac_ext <<_ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 $ac_includes_default
16474 typedef pid_t ac__type_new_;
16478 if ((ac__type_new_ *) 0)
16480 if (sizeof (ac__type_new_))
16486 rm -f conftest.$ac_objext
16487 if { (ac_try="$ac_compile"
16488 case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_compile") 2>conftest.er1
16495 grep -v '^ *+' conftest.er1 >conftest.err
16497 cat conftest.err >&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } &&
16500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16501 { (case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_try") 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; } &&
16510 { ac_try='test -s conftest.$ac_objext'
16511 { (case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_try") 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_cv_type_pid_t=yes
16522 echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16525 ac_cv_type_pid_t=no
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16531 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16532 if test $ac_cv_type_pid_t = yes; then
16536 cat >>confdefs.h <<_ACEOF
16542 { echo "$as_me:$LINENO: checking for size_t" >&5
16543 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16544 if test "${ac_cv_type_size_t+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 cat >conftest.$ac_ext <<_ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 $ac_includes_default
16554 typedef size_t ac__type_new_;
16558 if ((ac__type_new_ *) 0)
16560 if (sizeof (ac__type_new_))
16566 rm -f conftest.$ac_objext
16567 if { (ac_try="$ac_compile"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_compile") 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581 { (case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } &&
16590 { ac_try='test -s conftest.$ac_objext'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 ac_cv_type_size_t=yes
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_cv_type_size_t=no
16608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16611 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16612 if test $ac_cv_type_size_t = yes; then
16616 cat >>confdefs.h <<_ACEOF
16617 #define size_t unsigned int
16623 cat >>confdefs.h <<_ACEOF
16624 #define RETSIGTYPE void
16627 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16628 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16629 if test "${ac_cv_struct_tm+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 cat >conftest.$ac_ext <<_ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 #include <sys/types.h>
16644 struct tm *tp; tp->tm_sec;
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_compile") 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16664 { (case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_try") 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; } &&
16673 { ac_try='test -s conftest.$ac_objext'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_struct_tm=time.h
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 ac_cv_struct_tm=sys/time.h
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16694 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16695 if test $ac_cv_struct_tm = sys/time.h; then
16697 cat >>confdefs.h <<\_ACEOF
16698 #define TM_IN_SYS_TIME 1
16703 { echo "$as_me:$LINENO: checking for int64_t" >&5
16704 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16705 if test "${ac_cv_type_int64_t+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 cat >conftest.$ac_ext <<_ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 $ac_includes_default
16715 typedef int64_t ac__type_new_;
16719 if ((ac__type_new_ *) 0)
16721 if (sizeof (ac__type_new_))
16727 rm -f conftest.$ac_objext
16728 if { (ac_try="$ac_compile"
16729 case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_compile") 2>conftest.er1
16736 grep -v '^ *+' conftest.er1 >conftest.err
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16742 { (case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_try") 2>&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest.$ac_objext'
16752 { (case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_try") 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16761 ac_cv_type_int64_t=yes
16763 echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16766 ac_cv_type_int64_t=no
16769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16772 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16773 if test $ac_cv_type_int64_t = yes; then
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_INT64_T 1
16781 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16782 echo "$as_me: error: Type int64_t required but not found" >&2;}
16783 { (exit 1); exit 1; }; }
16786 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16787 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16788 if test "${ac_cv_type_uint64_t+set}" = set; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 cat >conftest.$ac_ext <<_ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16797 $ac_includes_default
16798 typedef uint64_t ac__type_new_;
16802 if ((ac__type_new_ *) 0)
16804 if (sizeof (ac__type_new_))
16810 rm -f conftest.$ac_objext
16811 if { (ac_try="$ac_compile"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_compile") 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; } &&
16834 { ac_try='test -s conftest.$ac_objext'
16835 { (case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_try") 2>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_cv_type_uint64_t=yes
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16849 ac_cv_type_uint64_t=no
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16855 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16856 if test $ac_cv_type_uint64_t = yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_UINT64_T 1
16864 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16865 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16866 if test "${ac_cv_type_u_int64_t+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16869 cat >conftest.$ac_ext <<_ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 $ac_includes_default
16876 typedef u_int64_t ac__type_new_;
16880 if ((ac__type_new_ *) 0)
16882 if (sizeof (ac__type_new_))
16888 rm -f conftest.$ac_objext
16889 if { (ac_try="$ac_compile"
16890 case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_compile") 2>conftest.er1
16897 grep -v '^ *+' conftest.er1 >conftest.err
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903 { (case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_try") 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest.$ac_objext'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_cv_type_u_int64_t=yes
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 ac_cv_type_u_int64_t=no
16930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16932 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16933 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16934 if test $ac_cv_type_u_int64_t = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937 #define HAVE_U_INT64_T 1
16942 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16943 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16944 { (exit 1); exit 1; }; }
16958 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 cat >conftest.$ac_ext <<_ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16974 #define $ac_func innocuous_$ac_func
16976 /* System header to define __stub macros and hopefully few prototypes,
16977 which can conflict with char $ac_func (); below.
16978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16979 <limits.h> exists even on freestanding compilers. */
16982 # include <limits.h>
16984 # include <assert.h>
16989 /* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16996 /* The GNU C library defines this for functions which it implements
16997 to always fail with ENOSYS. Some functions are actually named
16998 something starting with __ and the normal name is an alias. */
16999 #if defined __stub_$ac_func || defined __stub___$ac_func
17006 return $ac_func ();
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
17020 grep -v '^ *+' conftest.er1 >conftest.err
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest$ac_exeext'
17036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 eval "$as_ac_var=yes"
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17050 eval "$as_ac_var=no"
17053 rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17056 ac_res=`eval echo '${'$as_ac_var'}'`
17057 { echo "$as_me:$LINENO: result: $ac_res" >&5
17058 echo "${ECHO_T}$ac_res" >&6; }
17059 if test `eval echo '${'$as_ac_var'}'` = yes; then
17060 cat >>confdefs.h <<_ACEOF
17061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17071 for ac_func in powf fmodf strtof round
17073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 cat >conftest.$ac_ext <<_ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h. */
17085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17087 #define $ac_func innocuous_$ac_func
17089 /* System header to define __stub macros and hopefully few prototypes,
17090 which can conflict with char $ac_func (); below.
17091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092 <limits.h> exists even on freestanding compilers. */
17095 # include <limits.h>
17097 # include <assert.h>
17102 /* Override any GCC internal prototype to avoid an error.
17103 Use char because int might match the return type of a GCC
17104 builtin and then its argument prototype would still apply. */
17109 /* The GNU C library defines this for functions which it implements
17110 to always fail with ENOSYS. Some functions are actually named
17111 something starting with __ and the normal name is an alias. */
17112 #if defined __stub_$ac_func || defined __stub___$ac_func
17119 return $ac_func ();
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (ac_try="$ac_link"
17126 case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_link") 2>conftest.er1
17133 grep -v '^ *+' conftest.er1 >conftest.err
17135 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
17138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17139 { (case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_try") 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest$ac_exeext'
17149 { (case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_try") 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 eval "$as_ac_var=yes"
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 eval "$as_ac_var=no"
17166 rm -f core conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17169 ac_res=`eval echo '${'$as_ac_var'}'`
17170 { echo "$as_me:$LINENO: result: $ac_res" >&5
17171 echo "${ECHO_T}$ac_res" >&6; }
17172 if test `eval echo '${'$as_ac_var'}'` = yes; then
17173 cat >>confdefs.h <<_ACEOF
17174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17185 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17193 cat >conftest.$ac_ext <<_ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17201 #define $ac_func innocuous_$ac_func
17203 /* System header to define __stub macros and hopefully few prototypes,
17204 which can conflict with char $ac_func (); below.
17205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17206 <limits.h> exists even on freestanding compilers. */
17209 # include <limits.h>
17211 # include <assert.h>
17216 /* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17223 /* The GNU C library defines this for functions which it implements
17224 to always fail with ENOSYS. Some functions are actually named
17225 something starting with __ and the normal name is an alias. */
17226 #if defined __stub_$ac_func || defined __stub___$ac_func
17233 return $ac_func ();
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (ac_try="$ac_link"
17240 case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_link") 2>conftest.er1
17247 grep -v '^ *+' conftest.er1 >conftest.err
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253 { (case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_try") 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest$ac_exeext'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 eval "$as_ac_var=yes"
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 eval "$as_ac_var=no"
17280 rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17283 ac_res=`eval echo '${'$as_ac_var'}'`
17284 { echo "$as_me:$LINENO: result: $ac_res" >&5
17285 echo "${ECHO_T}$ac_res" >&6; }
17286 if test `eval echo '${'$as_ac_var'}'` = yes; then
17287 cat >>confdefs.h <<_ACEOF
17288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17297 for ac_func in isatty mkdtemp mkstemp
17299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 cat >conftest.$ac_ext <<_ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17313 #define $ac_func innocuous_$ac_func
17315 /* System header to define __stub macros and hopefully few prototypes,
17316 which can conflict with char $ac_func (); below.
17317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318 <limits.h> exists even on freestanding compilers. */
17321 # include <limits.h>
17323 # include <assert.h>
17328 /* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17335 /* The GNU C library defines this for functions which it implements
17336 to always fail with ENOSYS. Some functions are actually named
17337 something starting with __ and the normal name is an alias. */
17338 #if defined __stub_$ac_func || defined __stub___$ac_func
17345 return $ac_func ();
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (ac_try="$ac_link"
17352 case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357 (eval "$ac_link") 2>conftest.er1
17359 grep -v '^ *+' conftest.er1 >conftest.err
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365 { (case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_try") 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest$ac_exeext'
17375 { (case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_try") 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 eval "$as_ac_var=yes"
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17389 eval "$as_ac_var=no"
17392 rm -f core conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
17395 ac_res=`eval echo '${'$as_ac_var'}'`
17396 { echo "$as_me:$LINENO: result: $ac_res" >&5
17397 echo "${ECHO_T}$ac_res" >&6; }
17398 if test `eval echo '${'$as_ac_var'}'` = yes; then
17399 cat >>confdefs.h <<_ACEOF
17400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17413 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 cat >conftest.$ac_ext <<_ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17429 #define $ac_func innocuous_$ac_func
17431 /* System header to define __stub macros and hopefully few prototypes,
17432 which can conflict with char $ac_func (); below.
17433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434 <limits.h> exists even on freestanding compilers. */
17437 # include <limits.h>
17439 # include <assert.h>
17444 /* Override any GCC internal prototype to avoid an error.
17445 Use char because int might match the return type of a GCC
17446 builtin and then its argument prototype would still apply. */
17451 /* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
17454 #if defined __stub_$ac_func || defined __stub___$ac_func
17461 return $ac_func ();
17466 rm -f conftest.$ac_objext conftest$ac_exeext
17467 if { (ac_try="$ac_link"
17468 case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>conftest.er1
17475 grep -v '^ *+' conftest.er1 >conftest.err
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17481 { (case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_try") 2>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; } &&
17490 { ac_try='test -s conftest$ac_exeext'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 eval "$as_ac_var=yes"
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 eval "$as_ac_var=no"
17508 rm -f core conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17511 ac_res=`eval echo '${'$as_ac_var'}'`
17512 { echo "$as_me:$LINENO: result: $ac_res" >&5
17513 echo "${ECHO_T}$ac_res" >&6; }
17514 if test `eval echo '${'$as_ac_var'}'` = yes; then
17515 cat >>confdefs.h <<_ACEOF
17516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17526 for ac_func in strerror strerror_r setenv arc4random
17528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 cat >conftest.$ac_ext <<_ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17542 #define $ac_func innocuous_$ac_func
17544 /* System header to define __stub macros and hopefully few prototypes,
17545 which can conflict with char $ac_func (); below.
17546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547 <limits.h> exists even on freestanding compilers. */
17550 # include <limits.h>
17552 # include <assert.h>
17557 /* Override any GCC internal prototype to avoid an error.
17558 Use char because int might match the return type of a GCC
17559 builtin and then its argument prototype would still apply. */
17564 /* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567 #if defined __stub_$ac_func || defined __stub___$ac_func
17574 return $ac_func ();
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest$ac_exeext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 eval "$as_ac_var=yes"
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 eval "$as_ac_var=no"
17621 rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17624 ac_res=`eval echo '${'$as_ac_var'}'`
17625 { echo "$as_me:$LINENO: result: $ac_res" >&5
17626 echo "${ECHO_T}$ac_res" >&6; }
17627 if test `eval echo '${'$as_ac_var'}'` = yes; then
17628 cat >>confdefs.h <<_ACEOF
17629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17639 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17645 echo $ECHO_N "(cached) $ECHO_C" >&6
17647 cat >conftest.$ac_ext <<_ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h. */
17653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17655 #define $ac_func innocuous_$ac_func
17657 /* System header to define __stub macros and hopefully few prototypes,
17658 which can conflict with char $ac_func (); below.
17659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17660 <limits.h> exists even on freestanding compilers. */
17663 # include <limits.h>
17665 # include <assert.h>
17670 /* Override any GCC internal prototype to avoid an error.
17671 Use char because int might match the return type of a GCC
17672 builtin and then its argument prototype would still apply. */
17677 /* The GNU C library defines this for functions which it implements
17678 to always fail with ENOSYS. Some functions are actually named
17679 something starting with __ and the normal name is an alias. */
17680 #if defined __stub_$ac_func || defined __stub___$ac_func
17687 return $ac_func ();
17692 rm -f conftest.$ac_objext conftest$ac_exeext
17693 if { (ac_try="$ac_link"
17694 case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699 (eval "$ac_link") 2>conftest.er1
17701 grep -v '^ *+' conftest.er1 >conftest.err
17703 cat conftest.err >&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } &&
17706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17707 { (case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_try") 2>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; } &&
17716 { ac_try='test -s conftest$ac_exeext'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 eval "$as_ac_var=yes"
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 eval "$as_ac_var=no"
17734 rm -f core conftest.err conftest.$ac_objext \
17735 conftest$ac_exeext conftest.$ac_ext
17737 ac_res=`eval echo '${'$as_ac_var'}'`
17738 { echo "$as_me:$LINENO: result: $ac_res" >&5
17739 echo "${ECHO_T}$ac_res" >&6; }
17740 if test `eval echo '${'$as_ac_var'}'` = yes; then
17741 cat >>confdefs.h <<_ACEOF
17742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17753 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17761 cat >conftest.$ac_ext <<_ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17769 #define $ac_func innocuous_$ac_func
17771 /* System header to define __stub macros and hopefully few prototypes,
17772 which can conflict with char $ac_func (); below.
17773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17774 <limits.h> exists even on freestanding compilers. */
17777 # include <limits.h>
17779 # include <assert.h>
17784 /* Override any GCC internal prototype to avoid an error.
17785 Use char because int might match the return type of a GCC
17786 builtin and then its argument prototype would still apply. */
17791 /* The GNU C library defines this for functions which it implements
17792 to always fail with ENOSYS. Some functions are actually named
17793 something starting with __ and the normal name is an alias. */
17794 #if defined __stub_$ac_func || defined __stub___$ac_func
17801 return $ac_func ();
17806 rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (ac_try="$ac_link"
17808 case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_link") 2>conftest.er1
17815 grep -v '^ *+' conftest.er1 >conftest.err
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821 { (case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_try") 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest$ac_exeext'
17831 { (case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_try") 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 eval "$as_ac_var=yes"
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 eval "$as_ac_var=no"
17848 rm -f core conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
17851 ac_res=`eval echo '${'$as_ac_var'}'`
17852 { echo "$as_me:$LINENO: result: $ac_res" >&5
17853 echo "${ECHO_T}$ac_res" >&6; }
17854 if test `eval echo '${'$as_ac_var'}'` = yes; then
17855 cat >>confdefs.h <<_ACEOF
17856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17862 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17863 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17864 if test "${llvm_cv_c_printf_a+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 ac_cpp='$CPP $CPPFLAGS'
17869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17873 if test "$cross_compiling" = yes; then
17874 llvmac_cv_c_printf_a=no
17876 cat >conftest.$ac_ext <<_ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17885 #include <stdlib.h>
17891 volatile double A, B;
17895 sprintf(Buffer, "%a", A);
17899 if (A != 0x1.999999999999ap-4)
17906 rm -f conftest$ac_exeext
17907 if { (ac_try="$ac_link"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_link") 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_try") 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 llvm_cv_c_printf_a=yes
17928 echo "$as_me: program exited with status $ac_status" >&5
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 ( exit $ac_status )
17933 llvmac_cv_c_printf_a=no
17935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17940 ac_cpp='$CPP $CPPFLAGS'
17941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17946 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17947 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17948 if test "$llvm_cv_c_printf_a" = "yes"; then
17950 cat >>confdefs.h <<\_ACEOF
17951 #define HAVE_PRINTF_A 1
17957 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17958 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17959 if test "${ac_cv_func_rand48+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 ac_cpp='$CXXCPP $CPPFLAGS'
17964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17968 cat >conftest.$ac_ext <<_ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17974 #include <stdlib.h>
17978 srand48(0);lrand48();drand48();
17983 rm -f conftest.$ac_objext
17984 if { (ac_try="$ac_compile"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_compile") 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17998 { (case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_try") 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest.$ac_objext'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_func_rand48=yes
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_cv_func_rand48=no
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 ac_cpp='$CPP $CPPFLAGS'
18028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18033 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18034 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18036 if test "$ac_cv_func_rand48" = "yes" ; then
18038 cat >>confdefs.h <<\_ACEOF
18039 #define HAVE_RAND48 1
18045 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18046 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18047 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 cat >conftest.$ac_ext <<_ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 $ac_includes_default
18061 char *p = (char *) strerror_s;
18069 rm -f conftest.$ac_objext
18070 if { (ac_try="$ac_compile"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_compile") 2>conftest.er1
18078 grep -v '^ *+' conftest.er1 >conftest.err
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } &&
18083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18084 { (case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_try") 2>&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; } &&
18093 { ac_try='test -s conftest.$ac_objext'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 ac_cv_have_decl_strerror_s=yes
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 ac_cv_have_decl_strerror_s=no
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18113 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18114 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18115 if test $ac_cv_have_decl_strerror_s = yes; then
18117 cat >>confdefs.h <<_ACEOF
18118 #define HAVE_DECL_STRERROR_S 1
18123 cat >>confdefs.h <<_ACEOF
18124 #define HAVE_DECL_STRERROR_S 0
18132 if test "$llvm_cv_os_type" = "MingW" ; then
18133 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18134 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18135 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 ac_check_lib_save_LIBS=$LIBS
18140 cat >conftest.$ac_ext <<_ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18162 rm -f conftest.$ac_objext conftest$ac_exeext
18163 if { (ac_try="$ac_link"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_link") 2>conftest.er1
18171 grep -v '^ *+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
18176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest$ac_exeext'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_cv_lib_gcc__alloca=yes
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ac_cv_lib_gcc__alloca=no
18204 rm -f core conftest.err conftest.$ac_objext \
18205 conftest$ac_exeext conftest.$ac_ext
18206 LIBS=$ac_check_lib_save_LIBS
18208 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18209 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18210 if test $ac_cv_lib_gcc__alloca = yes; then
18212 cat >>confdefs.h <<\_ACEOF
18213 #define HAVE__ALLOCA 1
18218 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18219 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18220 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 ac_check_lib_save_LIBS=$LIBS
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18242 return __alloca ();
18247 rm -f conftest.$ac_objext conftest$ac_exeext
18248 if { (ac_try="$ac_link"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_link") 2>conftest.er1
18256 grep -v '^ *+' conftest.er1 >conftest.err
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
18261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try='test -s conftest$ac_exeext'
18272 { (case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_try") 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_lib_gcc___alloca=yes
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18286 ac_cv_lib_gcc___alloca=no
18289 rm -f core conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18293 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18294 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18295 if test $ac_cv_lib_gcc___alloca = yes; then
18297 cat >>confdefs.h <<\_ACEOF
18298 #define HAVE___ALLOCA 1
18303 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18304 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18305 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 ac_check_lib_save_LIBS=$LIBS
18310 cat >conftest.$ac_ext <<_ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18327 return __chkstk ();
18332 rm -f conftest.$ac_objext conftest$ac_exeext
18333 if { (ac_try="$ac_link"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_link") 2>conftest.er1
18341 grep -v '^ *+' conftest.er1 >conftest.err
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } &&
18346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18347 { (case "(($ac_try" in
18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349 *) ac_try_echo=$ac_try;;
18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352 (eval "$ac_try") 2>&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; } &&
18356 { ac_try='test -s conftest$ac_exeext'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 ac_cv_lib_gcc___chkstk=yes
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18371 ac_cv_lib_gcc___chkstk=no
18374 rm -f core conftest.err conftest.$ac_objext \
18375 conftest$ac_exeext conftest.$ac_ext
18376 LIBS=$ac_check_lib_save_LIBS
18378 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18379 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18380 if test $ac_cv_lib_gcc___chkstk = yes; then
18382 cat >>confdefs.h <<\_ACEOF
18383 #define HAVE___CHKSTK 1
18388 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18389 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18390 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 ac_check_lib_save_LIBS=$LIBS
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 /* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18412 return ___chkstk ();
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (ac_try="$ac_link"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_link") 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18432 { (case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_try") 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest$ac_exeext'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_lib_gcc____chkstk=yes
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 ac_cv_lib_gcc____chkstk=no
18459 rm -f core conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
18461 LIBS=$ac_check_lib_save_LIBS
18463 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18464 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18465 if test $ac_cv_lib_gcc____chkstk = yes; then
18467 cat >>confdefs.h <<\_ACEOF
18468 #define HAVE____CHKSTK 1
18474 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18475 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18476 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 ac_check_lib_save_LIBS=$LIBS
18481 cat >conftest.$ac_ext <<_ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18488 /* Override any GCC internal prototype to avoid an error.
18489 Use char because int might match the return type of a GCC
18490 builtin and then its argument prototype would still apply. */
18498 return __ashldi3 ();
18503 rm -f conftest.$ac_objext conftest$ac_exeext
18504 if { (ac_try="$ac_link"
18505 case "(($ac_try" in
18506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510 (eval "$ac_link") 2>conftest.er1
18512 grep -v '^ *+' conftest.er1 >conftest.err
18514 cat conftest.err >&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } &&
18517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18518 { (case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_try") 2>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest$ac_exeext'
18528 { (case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_try") 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_cv_lib_gcc___ashldi3=yes
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 ac_cv_lib_gcc___ashldi3=no
18545 rm -f core conftest.err conftest.$ac_objext \
18546 conftest$ac_exeext conftest.$ac_ext
18547 LIBS=$ac_check_lib_save_LIBS
18549 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18550 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18551 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18553 cat >>confdefs.h <<\_ACEOF
18554 #define HAVE___ASHLDI3 1
18559 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18560 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18561 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 ac_check_lib_save_LIBS=$LIBS
18566 cat >conftest.$ac_ext <<_ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18573 /* Override any GCC internal prototype to avoid an error.
18574 Use char because int might match the return type of a GCC
18575 builtin and then its argument prototype would still apply. */
18583 return __ashrdi3 ();
18588 rm -f conftest.$ac_objext conftest$ac_exeext
18589 if { (ac_try="$ac_link"
18590 case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_link") 2>conftest.er1
18597 grep -v '^ *+' conftest.er1 >conftest.err
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18603 { (case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_try") 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest$ac_exeext'
18613 { (case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_try") 2>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; }; then
18622 ac_cv_lib_gcc___ashrdi3=yes
18624 echo "$as_me: failed program was:" >&5
18625 sed 's/^/| /' conftest.$ac_ext >&5
18627 ac_cv_lib_gcc___ashrdi3=no
18630 rm -f core conftest.err conftest.$ac_objext \
18631 conftest$ac_exeext conftest.$ac_ext
18632 LIBS=$ac_check_lib_save_LIBS
18634 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18635 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18636 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18638 cat >>confdefs.h <<\_ACEOF
18639 #define HAVE___ASHRDI3 1
18644 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18645 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18646 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18649 ac_check_lib_save_LIBS=$LIBS
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18658 /* Override any GCC internal prototype to avoid an error.
18659 Use char because int might match the return type of a GCC
18660 builtin and then its argument prototype would still apply. */
18668 return __divdi3 ();
18673 rm -f conftest.$ac_objext conftest$ac_exeext
18674 if { (ac_try="$ac_link"
18675 case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_link") 2>conftest.er1
18682 grep -v '^ *+' conftest.er1 >conftest.err
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } &&
18687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18688 { (case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_try") 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest$ac_exeext'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 ac_cv_lib_gcc___divdi3=yes
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 ac_cv_lib_gcc___divdi3=no
18715 rm -f core conftest.err conftest.$ac_objext \
18716 conftest$ac_exeext conftest.$ac_ext
18717 LIBS=$ac_check_lib_save_LIBS
18719 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18720 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18721 if test $ac_cv_lib_gcc___divdi3 = yes; then
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE___DIVDI3 1
18729 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18730 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18731 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 ac_check_lib_save_LIBS=$LIBS
18736 cat >conftest.$ac_ext <<_ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18753 return __fixdfdi ();
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (ac_try="$ac_link"
18760 case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_link") 2>conftest.er1
18767 grep -v '^ *+' conftest.er1 >conftest.err
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18773 { (case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_try") 2>&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; } &&
18782 { ac_try='test -s conftest$ac_exeext'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18792 ac_cv_lib_gcc___fixdfdi=yes
18794 echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18797 ac_cv_lib_gcc___fixdfdi=no
18800 rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18804 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18805 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18806 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE___FIXDFDI 1
18814 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18815 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18816 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 ac_check_lib_save_LIBS=$LIBS
18821 cat >conftest.$ac_ext <<_ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18838 return __fixsfdi ();
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (ac_try="$ac_link"
18845 case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850 (eval "$ac_link") 2>conftest.er1
18852 grep -v '^ *+' conftest.er1 >conftest.err
18854 cat conftest.err >&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } &&
18857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18858 { (case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_try") 2>&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; } &&
18867 { ac_try='test -s conftest$ac_exeext'
18868 { (case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_try") 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18877 ac_cv_lib_gcc___fixsfdi=yes
18879 echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18882 ac_cv_lib_gcc___fixsfdi=no
18885 rm -f core conftest.err conftest.$ac_objext \
18886 conftest$ac_exeext conftest.$ac_ext
18887 LIBS=$ac_check_lib_save_LIBS
18889 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18890 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18891 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18893 cat >>confdefs.h <<\_ACEOF
18894 #define HAVE___FIXSFDI 1
18899 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18900 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18901 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 ac_check_lib_save_LIBS=$LIBS
18906 cat >conftest.$ac_ext <<_ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18913 /* Override any GCC internal prototype to avoid an error.
18914 Use char because int might match the return type of a GCC
18915 builtin and then its argument prototype would still apply. */
18919 char __floatdidf ();
18923 return __floatdidf ();
18928 rm -f conftest.$ac_objext conftest$ac_exeext
18929 if { (ac_try="$ac_link"
18930 case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_link") 2>conftest.er1
18937 grep -v '^ *+' conftest.er1 >conftest.err
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18943 { (case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_try") 2>&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; } &&
18952 { ac_try='test -s conftest$ac_exeext'
18953 { (case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_try") 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_cv_lib_gcc___floatdidf=yes
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 ac_cv_lib_gcc___floatdidf=no
18970 rm -f core conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext conftest.$ac_ext
18972 LIBS=$ac_check_lib_save_LIBS
18974 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18975 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18976 if test $ac_cv_lib_gcc___floatdidf = yes; then
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE___FLOATDIDF 1
18984 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18985 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18986 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 ac_check_lib_save_LIBS=$LIBS
18991 cat >conftest.$ac_ext <<_ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18998 /* Override any GCC internal prototype to avoid an error.
18999 Use char because int might match the return type of a GCC
19000 builtin and then its argument prototype would still apply. */
19008 return __lshrdi3 ();
19013 rm -f conftest.$ac_objext conftest$ac_exeext
19014 if { (ac_try="$ac_link"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_link") 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest$ac_exeext'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 ac_cv_lib_gcc___lshrdi3=yes
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 ac_cv_lib_gcc___lshrdi3=no
19055 rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19057 LIBS=$ac_check_lib_save_LIBS
19059 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19060 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19061 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE___LSHRDI3 1
19069 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19070 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19071 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 ac_check_lib_save_LIBS=$LIBS
19076 cat >conftest.$ac_ext <<_ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19083 /* Override any GCC internal prototype to avoid an error.
19084 Use char because int might match the return type of a GCC
19085 builtin and then its argument prototype would still apply. */
19093 return __moddi3 ();
19098 rm -f conftest.$ac_objext conftest$ac_exeext
19099 if { (ac_try="$ac_link"
19100 case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_link") 2>conftest.er1
19107 grep -v '^ *+' conftest.er1 >conftest.err
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19113 { (case "(($ac_try" in
19114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115 *) ac_try_echo=$ac_try;;
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118 (eval "$ac_try") 2>&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; } &&
19122 { ac_try='test -s conftest$ac_exeext'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 ac_cv_lib_gcc___moddi3=yes
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19137 ac_cv_lib_gcc___moddi3=no
19140 rm -f core conftest.err conftest.$ac_objext \
19141 conftest$ac_exeext conftest.$ac_ext
19142 LIBS=$ac_check_lib_save_LIBS
19144 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19145 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19146 if test $ac_cv_lib_gcc___moddi3 = yes; then
19148 cat >>confdefs.h <<\_ACEOF
19149 #define HAVE___MODDI3 1
19154 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19155 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19156 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 ac_check_lib_save_LIBS=$LIBS
19161 cat >conftest.$ac_ext <<_ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19168 /* Override any GCC internal prototype to avoid an error.
19169 Use char because int might match the return type of a GCC
19170 builtin and then its argument prototype would still apply. */
19178 return __udivdi3 ();
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (ac_try="$ac_link"
19185 case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_link") 2>conftest.er1
19192 grep -v '^ *+' conftest.er1 >conftest.err
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19198 { (case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_try") 2>&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; } &&
19207 { ac_try='test -s conftest$ac_exeext'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19217 ac_cv_lib_gcc___udivdi3=yes
19219 echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19222 ac_cv_lib_gcc___udivdi3=no
19225 rm -f core conftest.err conftest.$ac_objext \
19226 conftest$ac_exeext conftest.$ac_ext
19227 LIBS=$ac_check_lib_save_LIBS
19229 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19230 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19231 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19233 cat >>confdefs.h <<\_ACEOF
19234 #define HAVE___UDIVDI3 1
19239 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19240 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19241 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 ac_check_lib_save_LIBS=$LIBS
19246 cat >conftest.$ac_ext <<_ACEOF
19249 cat confdefs.h >>conftest.$ac_ext
19250 cat >>conftest.$ac_ext <<_ACEOF
19251 /* end confdefs.h. */
19253 /* Override any GCC internal prototype to avoid an error.
19254 Use char because int might match the return type of a GCC
19255 builtin and then its argument prototype would still apply. */
19263 return __umoddi3 ();
19268 rm -f conftest.$ac_objext conftest$ac_exeext
19269 if { (ac_try="$ac_link"
19270 case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_link") 2>conftest.er1
19277 grep -v '^ *+' conftest.er1 >conftest.err
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283 { (case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_try") 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest$ac_exeext'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
19302 ac_cv_lib_gcc___umoddi3=yes
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 ac_cv_lib_gcc___umoddi3=no
19310 rm -f core conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
19312 LIBS=$ac_check_lib_save_LIBS
19314 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19315 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19316 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19318 cat >>confdefs.h <<\_ACEOF
19319 #define HAVE___UMODDI3 1
19325 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19326 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19327 if test "${ac_cv_lib_gcc___main+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19330 ac_check_lib_save_LIBS=$LIBS
19332 cat >conftest.$ac_ext <<_ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19339 /* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19354 rm -f conftest.$ac_objext conftest$ac_exeext
19355 if { (ac_try="$ac_link"
19356 case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_link") 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
19368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19369 { (case "(($ac_try" in
19370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371 *) ac_try_echo=$ac_try;;
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374 (eval "$ac_try") 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest$ac_exeext'
19379 { (case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_try") 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_lib_gcc___main=yes
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 ac_cv_lib_gcc___main=no
19396 rm -f core conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398 LIBS=$ac_check_lib_save_LIBS
19400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19401 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19402 if test $ac_cv_lib_gcc___main = yes; then
19404 cat >>confdefs.h <<\_ACEOF
19405 #define HAVE___MAIN 1
19410 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19411 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19412 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 ac_check_lib_save_LIBS=$LIBS
19417 cat >conftest.$ac_ext <<_ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19424 /* Override any GCC internal prototype to avoid an error.
19425 Use char because int might match the return type of a GCC
19426 builtin and then its argument prototype would still apply. */
19434 return __cmpdi2 ();
19439 rm -f conftest.$ac_objext conftest$ac_exeext
19440 if { (ac_try="$ac_link"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_link") 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19454 { (case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest$ac_exeext'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
19473 ac_cv_lib_gcc___cmpdi2=yes
19475 echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19478 ac_cv_lib_gcc___cmpdi2=no
19481 rm -f core conftest.err conftest.$ac_objext \
19482 conftest$ac_exeext conftest.$ac_ext
19483 LIBS=$ac_check_lib_save_LIBS
19485 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19486 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19487 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19489 cat >>confdefs.h <<\_ACEOF
19490 #define HAVE___CMPDI2 1
19497 if test "$llvm_cv_os_type" = "MingW" ; then
19498 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19499 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19500 cat >conftest.$ac_ext <<_ACEOF
19501 #include <windows.h>
19502 #include <imagehlp.h>
19503 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19504 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19506 rm -f conftest.$ac_objext
19507 if { (ac_try="$ac_compile"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_compile") 2>conftest.er1
19515 grep -v '^ *+' conftest.er1 >conftest.err
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } &&
19520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19521 { (case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_try") 2>&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; } &&
19530 { ac_try='test -s conftest.$ac_objext'
19531 { (case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_try") 2>&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19541 { echo "$as_me:$LINENO: result: yes" >&5
19542 echo "${ECHO_T}yes" >&6; }
19543 llvm_cv_win32_elmcb_pcstr="PCSTR"
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19550 { echo "$as_me:$LINENO: result: no" >&5
19551 echo "${ECHO_T}no" >&6; }
19552 llvm_cv_win32_elmcb_pcstr="PSTR"
19556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19558 cat >>confdefs.h <<_ACEOF
19559 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19565 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19566 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19567 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19571 ac_cpp='$CXXCPP $CPPFLAGS'
19572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19576 cat >conftest.$ac_ext <<_ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19591 rm -f conftest.$ac_objext
19592 if { (ac_try="$ac_compile"
19593 case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_compile") 2>conftest.er1
19600 grep -v '^ *+' conftest.er1 >conftest.err
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
19605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19606 { (case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_try") 2>&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_cv_func_isnan_in_math_h=yes
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_func_isnan_in_math_h=no
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635 ac_cpp='$CPP $CPPFLAGS'
19636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19641 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19642 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19645 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE_ISNAN_IN_MATH_H 1
19653 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19654 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19655 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 ac_cpp='$CXXCPP $CPPFLAGS'
19660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19664 cat >conftest.$ac_ext <<_ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_compile") 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest.$ac_objext'
19704 { (case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_try") 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 ac_cv_func_isnan_in_cmath=yes
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_func_isnan_in_cmath=no
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19723 ac_cpp='$CPP $CPPFLAGS'
19724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19729 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19730 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19732 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19734 cat >>confdefs.h <<\_ACEOF
19735 #define HAVE_ISNAN_IN_CMATH 1
19740 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19741 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19742 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 ac_cpp='$CXXCPP $CPPFLAGS'
19747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19751 cat >conftest.$ac_ext <<_ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19761 float f; std::isnan(f);
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_compile") 2>conftest.er1
19775 grep -v '^ *+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; } &&
19790 { ac_try='test -s conftest.$ac_objext'
19791 { (case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_try") 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_func_std_isnan_in_cmath=yes
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805 ac_cv_func_std_isnan_in_cmath=no
19808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19810 ac_cpp='$CPP $CPPFLAGS'
19811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19816 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19817 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19819 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_STD_ISNAN_IN_CMATH 1
19828 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19829 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19830 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 ac_cpp='$CXXCPP $CPPFLAGS'
19835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_compile") 2>conftest.er1
19863 grep -v '^ *+' conftest.er1 >conftest.err
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } &&
19868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19869 { (case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_try") 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_try") 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_cv_func_isinf_in_math_h=yes
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 ac_cv_func_isinf_in_math_h=no
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 ac_cpp='$CPP $CPPFLAGS'
19899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19904 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19905 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19907 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19909 cat >>confdefs.h <<\_ACEOF
19910 #define HAVE_ISINF_IN_MATH_H 1
19915 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19916 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19917 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 ac_cpp='$CXXCPP $CPPFLAGS'
19922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19926 cat >conftest.$ac_ext <<_ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_compile") 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19956 { (case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_try") 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest.$ac_objext'
19966 { (case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_try") 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_func_isinf_in_cmath=yes
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ac_cv_func_isinf_in_cmath=no
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 ac_cpp='$CPP $CPPFLAGS'
19986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19991 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19992 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19994 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19996 cat >>confdefs.h <<\_ACEOF
19997 #define HAVE_ISINF_IN_CMATH 1
20002 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20003 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20004 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 ac_cpp='$CXXCPP $CPPFLAGS'
20009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20023 float f; std::isinf(f);
20028 rm -f conftest.$ac_objext
20029 if { (ac_try="$ac_compile"
20030 case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_compile") 2>conftest.er1
20037 grep -v '^ *+' conftest.er1 >conftest.err
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20043 { (case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_try") 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest.$ac_objext'
20053 { (case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_try") 2>&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
20062 ac_cv_func_std_isinf_in_cmath=yes
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20067 ac_cv_func_std_isinf_in_cmath=no
20070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20072 ac_cpp='$CPP $CPPFLAGS'
20073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20078 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20079 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20081 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20083 cat >>confdefs.h <<\_ACEOF
20084 #define HAVE_STD_ISINF_IN_CMATH 1
20089 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20090 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20091 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 ac_cpp='$CXXCPP $CPPFLAGS'
20096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20100 cat >conftest.$ac_ext <<_ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106 #include <ieeefp.h>
20110 float f; finite(f);
20115 rm -f conftest.$ac_objext
20116 if { (ac_try="$ac_compile"
20117 case "(($ac_try" in
20118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119 *) ac_try_echo=$ac_try;;
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_compile") 2>conftest.er1
20124 grep -v '^ *+' conftest.er1 >conftest.err
20126 cat conftest.err >&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } &&
20129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20130 { (case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_try") 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; } &&
20139 { ac_try='test -s conftest.$ac_objext'
20140 { (case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_try") 2>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; }; then
20149 ac_cv_func_finite_in_ieeefp_h=yes
20151 echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20154 ac_cv_func_finite_in_ieeefp_h=no
20157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20159 ac_cpp='$CPP $CPPFLAGS'
20160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20165 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20166 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20168 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20170 cat >>confdefs.h <<\_ACEOF
20171 #define HAVE_FINITE_IN_IEEEFP_H 1
20178 if test "$llvm_cv_platform_type" = "Unix" ; then
20181 for ac_header in stdlib.h unistd.h
20183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 ac_res=`eval echo '${'$as_ac_Header'}'`
20191 { echo "$as_me:$LINENO: result: $ac_res" >&5
20192 echo "${ECHO_T}$ac_res" >&6; }
20194 # Is the header compilable?
20195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20197 cat >conftest.$ac_ext <<_ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 $ac_includes_default
20204 #include <$ac_header>
20206 rm -f conftest.$ac_objext
20207 if { (ac_try="$ac_compile"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_compile") 2>conftest.er1
20215 grep -v '^ *+' conftest.er1 >conftest.err
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } &&
20220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } &&
20230 { ac_try='test -s conftest.$ac_objext'
20231 { (case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_try") 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_header_compiler=yes
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 ac_header_compiler=no
20248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20250 echo "${ECHO_T}$ac_header_compiler" >&6; }
20252 # Is the header present?
20253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20255 cat >conftest.$ac_ext <<_ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20261 #include <$ac_header>
20263 if { (ac_try="$ac_cpp conftest.$ac_ext"
20264 case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20271 grep -v '^ *+' conftest.er1 >conftest.err
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } >/dev/null; then
20276 if test -s conftest.err; then
20277 ac_cpp_err=$ac_c_preproc_warn_flag
20278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20285 if test -z "$ac_cpp_err"; then
20286 ac_header_preproc=yes
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 ac_header_preproc=no
20294 rm -f conftest.err conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20296 echo "${ECHO_T}$ac_header_preproc" >&6; }
20298 # So? What about this header?
20299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20305 ac_header_preproc=yes
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20321 ## ------------------------------------ ##
20322 ## Report this to http://llvm.org/bugs/ ##
20323 ## ------------------------------------ ##
20325 ) | sed "s/^/$as_me: WARNING: /" >&2
20328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 eval "$as_ac_Header=\$ac_header_preproc"
20335 ac_res=`eval echo '${'$as_ac_Header'}'`
20336 { echo "$as_me:$LINENO: result: $ac_res" >&5
20337 echo "${ECHO_T}$ac_res" >&6; }
20340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20341 cat >>confdefs.h <<_ACEOF
20342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20350 for ac_func in getpagesize
20352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20358 cat >conftest.$ac_ext <<_ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20366 #define $ac_func innocuous_$ac_func
20368 /* System header to define __stub macros and hopefully few prototypes,
20369 which can conflict with char $ac_func (); below.
20370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20371 <limits.h> exists even on freestanding compilers. */
20374 # include <limits.h>
20376 # include <assert.h>
20381 /* Override any GCC internal prototype to avoid an error.
20382 Use char because int might match the return type of a GCC
20383 builtin and then its argument prototype would still apply. */
20388 /* The GNU C library defines this for functions which it implements
20389 to always fail with ENOSYS. Some functions are actually named
20390 something starting with __ and the normal name is an alias. */
20391 #if defined __stub_$ac_func || defined __stub___$ac_func
20398 return $ac_func ();
20403 rm -f conftest.$ac_objext conftest$ac_exeext
20404 if { (ac_try="$ac_link"
20405 case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_link") 2>conftest.er1
20412 grep -v '^ *+' conftest.er1 >conftest.err
20414 cat conftest.err >&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); } &&
20417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20418 { (case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_try") 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } &&
20427 { ac_try='test -s conftest$ac_exeext'
20428 { (case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_try") 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 eval "$as_ac_var=yes"
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 eval "$as_ac_var=no"
20445 rm -f core conftest.err conftest.$ac_objext \
20446 conftest$ac_exeext conftest.$ac_ext
20448 ac_res=`eval echo '${'$as_ac_var'}'`
20449 { echo "$as_me:$LINENO: result: $ac_res" >&5
20450 echo "${ECHO_T}$ac_res" >&6; }
20451 if test `eval echo '${'$as_ac_var'}'` = yes; then
20452 cat >>confdefs.h <<_ACEOF
20453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20459 { echo "$as_me:$LINENO: checking for working mmap" >&5
20460 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20461 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 if test "$cross_compiling" = yes; then
20465 ac_cv_func_mmap_fixed_mapped=no
20467 cat >conftest.$ac_ext <<_ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 $ac_includes_default
20474 /* malloc might have been renamed as rpl_malloc. */
20477 /* Thanks to Mike Haertel and Jim Avera for this test.
20478 Here is a matrix of mmap possibilities:
20479 mmap private not fixed
20480 mmap private fixed at somewhere currently unmapped
20481 mmap private fixed at somewhere already mapped
20482 mmap shared not fixed
20483 mmap shared fixed at somewhere currently unmapped
20484 mmap shared fixed at somewhere already mapped
20485 For private mappings, we should verify that changes cannot be read()
20486 back from the file, nor mmap's back from the file at a different
20487 address. (There have been systems where private was not correctly
20488 implemented like the infamous i386 svr4.0, and systems where the
20489 VM page cache was not coherent with the file system buffer cache
20490 like early versions of FreeBSD and possibly contemporary NetBSD.)
20491 For shared mappings, we should conversely verify that changes get
20492 propagated back to all the places they're supposed to be.
20494 Grep wants private fixed already mapped.
20495 The main things grep needs to know about mmap are:
20496 * does it exist and is it safe to write into the mmap'd area
20497 * how to use it (BSD variants) */
20500 #include <sys/mman.h>
20502 #if !STDC_HEADERS && !HAVE_STDLIB_H
20506 /* This mess was copied from the GNU getpagesize.h. */
20507 #if !HAVE_GETPAGESIZE
20508 /* Assume that all systems that can run configure have sys/param.h. */
20509 # if !HAVE_SYS_PARAM_H
20510 # define HAVE_SYS_PARAM_H 1
20513 # ifdef _SC_PAGESIZE
20514 # define getpagesize() sysconf(_SC_PAGESIZE)
20515 # else /* no _SC_PAGESIZE */
20516 # if HAVE_SYS_PARAM_H
20517 # include <sys/param.h>
20518 # ifdef EXEC_PAGESIZE
20519 # define getpagesize() EXEC_PAGESIZE
20520 # else /* no EXEC_PAGESIZE */
20522 # define getpagesize() NBPG * CLSIZE
20525 # endif /* no CLSIZE */
20526 # else /* no NBPG */
20528 # define getpagesize() NBPC
20529 # else /* no NBPC */
20531 # define getpagesize() PAGESIZE
20532 # endif /* PAGESIZE */
20533 # endif /* no NBPC */
20534 # endif /* no NBPG */
20535 # endif /* no EXEC_PAGESIZE */
20536 # else /* no HAVE_SYS_PARAM_H */
20537 # define getpagesize() 8192 /* punt totally */
20538 # endif /* no HAVE_SYS_PARAM_H */
20539 # endif /* no _SC_PAGESIZE */
20541 #endif /* no HAVE_GETPAGESIZE */
20546 char *data, *data2, *data3;
20550 pagesize = getpagesize ();
20552 /* First, make a file with some known garbage in it. */
20553 data = (char *) malloc (pagesize);
20556 for (i = 0; i < pagesize; ++i)
20557 *(data + i) = rand ();
20559 fd = creat ("conftest.mmap", 0600);
20562 if (write (fd, data, pagesize) != pagesize)
20566 /* Next, try to mmap the file at a fixed address which already has
20567 something else allocated at it. If we can, also make sure that
20568 we see the same garbage. */
20569 fd = open ("conftest.mmap", O_RDWR);
20572 data2 = (char *) malloc (2 * pagesize);
20575 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20576 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20577 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20579 for (i = 0; i < pagesize; ++i)
20580 if (*(data + i) != *(data2 + i))
20583 /* Finally, make sure that changes to the mapped area do not
20584 percolate back to the file as seen by read(). (This is a bug on
20585 some variants of i386 svr4.0.) */
20586 for (i = 0; i < pagesize; ++i)
20587 *(data2 + i) = *(data2 + i) + 1;
20588 data3 = (char *) malloc (pagesize);
20591 if (read (fd, data3, pagesize) != pagesize)
20593 for (i = 0; i < pagesize; ++i)
20594 if (*(data + i) != *(data3 + i))
20600 rm -f conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20611 { (case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_try") 2>&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20620 ac_cv_func_mmap_fixed_mapped=yes
20622 echo "$as_me: program exited with status $ac_status" >&5
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20626 ( exit $ac_status )
20627 ac_cv_func_mmap_fixed_mapped=no
20629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20634 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20635 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20636 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20638 cat >>confdefs.h <<\_ACEOF
20639 #define HAVE_MMAP 1
20643 rm -f conftest.mmap
20645 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20646 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20647 if test "${ac_cv_func_mmap_file+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 ac_cpp='$CPP $CPPFLAGS'
20652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20656 if test "$cross_compiling" = yes; then
20657 ac_cv_func_mmap_file=no
20659 cat >conftest.$ac_ext <<_ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20667 #include <sys/types.h>
20668 #include <sys/mman.h>
20676 fd = creat ("foo",0777);
20677 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20679 return (fd != (int) MAP_FAILED);
20684 rm -f conftest$ac_exeext
20685 if { (ac_try="$ac_link"
20686 case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_link") 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20695 { (case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_try") 2>&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; }; then
20704 ac_cv_func_mmap_file=yes
20706 echo "$as_me: program exited with status $ac_status" >&5
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20710 ( exit $ac_status )
20711 ac_cv_func_mmap_file=no
20713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20718 ac_cpp='$CPP $CPPFLAGS'
20719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20725 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20726 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20727 if test "$ac_cv_func_mmap_file" = yes; then
20729 cat >>confdefs.h <<\_ACEOF
20730 #define HAVE_MMAP_FILE
20737 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20738 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20739 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 if test "$llvm_cv_os_type" = "Interix" ; then
20743 ac_cv_need_dev_zero_for_mmap=yes
20745 ac_cv_need_dev_zero_for_mmap=no
20749 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20750 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20751 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20753 cat >>confdefs.h <<\_ACEOF
20754 #define NEED_DEV_ZERO_FOR_MMAP 1
20759 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20761 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20762 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20764 if test "$ac_cv_func_mmap_file" = "no"
20766 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20767 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20771 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20772 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20774 ac_cpp='$CXXCPP $CPPFLAGS'
20775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20786 volatile unsigned long val = 1;
20787 __sync_synchronize();
20788 __sync_val_compare_and_swap(&val, 1, 0);
20789 __sync_add_and_fetch(&val, 1);
20790 __sync_sub_and_fetch(&val, 1);
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (ac_try="$ac_link"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_link") 2>conftest.er1
20804 grep -v '^ *+' conftest.er1 >conftest.err
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } &&
20809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20810 { (case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_try") 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } &&
20819 { ac_try='test -s conftest$ac_exeext'
20820 { (case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_try") 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20830 ac_cpp='$CPP $CPPFLAGS'
20831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20835 { echo "$as_me:$LINENO: result: yes" >&5
20836 echo "${ECHO_T}yes" >&6; }
20838 cat >>confdefs.h <<\_ACEOF
20839 #define LLVM_HAS_ATOMICS 1
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 { echo "$as_me:$LINENO: result: no" >&5
20847 echo "${ECHO_T}no" >&6; }
20849 cat >>confdefs.h <<\_ACEOF
20850 #define LLVM_HAS_ATOMICS 0
20853 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20854 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20857 rm -f core conftest.err conftest.$ac_objext \
20858 conftest$ac_exeext conftest.$ac_ext
20861 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20862 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20863 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20864 if test "${llvm_cv_linux_mixed+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 ac_cpp='$CPP $CPPFLAGS'
20869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20873 cat >conftest.$ac_ext <<_ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20880 error: Not x86-64 even if uname says so!
20891 rm -f conftest.$ac_objext
20892 if { (ac_try="$ac_compile"
20893 case "(($ac_try" in
20894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895 *) ac_try_echo=$ac_try;;
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898 (eval "$ac_compile") 2>conftest.er1
20900 grep -v '^ *+' conftest.er1 >conftest.err
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } &&
20905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20906 { (case "(($ac_try" in
20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908 *) ac_try_echo=$ac_try;;
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911 (eval "$ac_try") 2>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; } &&
20915 { ac_try='test -s conftest.$ac_objext'
20916 { (case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_try") 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
20925 llvm_cv_linux_mixed=no
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20930 llvm_cv_linux_mixed=yes
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 ac_cpp='$CPP $CPPFLAGS'
20936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20942 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20943 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20945 if test "$llvm_cv_linux_mixed" = "yes"; then
20946 llvm_cv_target_arch="x86"
20952 for ac_func in __dso_handle
20954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 cat >conftest.$ac_ext <<_ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20968 #define $ac_func innocuous_$ac_func
20970 /* System header to define __stub macros and hopefully few prototypes,
20971 which can conflict with char $ac_func (); below.
20972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20973 <limits.h> exists even on freestanding compilers. */
20976 # include <limits.h>
20978 # include <assert.h>
20983 /* Override any GCC internal prototype to avoid an error.
20984 Use char because int might match the return type of a GCC
20985 builtin and then its argument prototype would still apply. */
20990 /* The GNU C library defines this for functions which it implements
20991 to always fail with ENOSYS. Some functions are actually named
20992 something starting with __ and the normal name is an alias. */
20993 #if defined __stub_$ac_func || defined __stub___$ac_func
21000 return $ac_func ();
21005 rm -f conftest.$ac_objext conftest$ac_exeext
21006 if { (ac_try="$ac_link"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_link") 2>conftest.er1
21014 grep -v '^ *+' conftest.er1 >conftest.err
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest$ac_exeext'
21030 { (case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_try") 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21039 eval "$as_ac_var=yes"
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 eval "$as_ac_var=no"
21047 rm -f core conftest.err conftest.$ac_objext \
21048 conftest$ac_exeext conftest.$ac_ext
21050 ac_res=`eval echo '${'$as_ac_var'}'`
21051 { echo "$as_me:$LINENO: result: $ac_res" >&5
21052 echo "${ECHO_T}$ac_res" >&6; }
21053 if test `eval echo '${'$as_ac_var'}'` = yes; then
21054 cat >>confdefs.h <<_ACEOF
21055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21062 SHLIBEXT=$libltdl_cv_shlibext
21065 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21068 if test "${prefix}" = "NONE" ; then
21069 prefix="/usr/local"
21071 eval LLVM_PREFIX="${prefix}";
21072 eval LLVM_BINDIR="${prefix}/bin";
21073 eval LLVM_LIBDIR="${prefix}/lib";
21074 eval LLVM_DATADIR="${prefix}/share/llvm";
21075 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21076 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21077 eval LLVM_INCLUDEDIR="${prefix}/include";
21078 eval LLVM_INFODIR="${prefix}/info";
21079 eval LLVM_MANDIR="${prefix}/man";
21080 LLVM_CONFIGTIME=`date`
21092 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21093 LLVM_CONFIGTIME="(timestamp not enabled)"
21097 cat >>confdefs.h <<_ACEOF
21098 #define LLVM_PREFIX "$LLVM_PREFIX"
21102 cat >>confdefs.h <<_ACEOF
21103 #define LLVM_BINDIR "$LLVM_BINDIR"
21107 cat >>confdefs.h <<_ACEOF
21108 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21112 cat >>confdefs.h <<_ACEOF
21113 #define LLVM_DATADIR "$LLVM_DATADIR"
21117 cat >>confdefs.h <<_ACEOF
21118 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21122 cat >>confdefs.h <<_ACEOF
21123 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21127 cat >>confdefs.h <<_ACEOF
21128 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21132 cat >>confdefs.h <<_ACEOF
21133 #define LLVM_INFODIR "$LLVM_INFODIR"
21137 cat >>confdefs.h <<_ACEOF
21138 #define LLVM_MANDIR "$LLVM_MANDIR"
21142 cat >>confdefs.h <<_ACEOF
21143 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21147 cat >>confdefs.h <<_ACEOF
21148 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21152 if test "$BINDINGS_TO_BUILD" = auto ; then
21153 BINDINGS_TO_BUILD=""
21154 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21155 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21158 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21164 binding_prereqs_failed=0
21165 for a_binding in $BINDINGS_TO_BUILD ; do
21166 case "$a_binding" in
21168 if test "x$OCAMLC" = x ; then
21169 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21170 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21171 binding_prereqs_failed=1
21173 if test "x$OCAMLDEP" = x ; then
21174 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21175 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21176 binding_prereqs_failed=1
21178 if test "x$OCAMLOPT" = x ; then
21179 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21180 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21182 if test "x$with_ocaml_libdir" != xauto ; then
21183 OCAML_LIBDIR=$with_ocaml_libdir
21186 ocaml_stdlib="`"$OCAMLC" -where`"
21187 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21189 # ocaml stdlib is beneath our prefix; use stdlib
21190 OCAML_LIBDIR=$ocaml_stdlib
21193 # ocaml stdlib is outside our prefix; use libdir/ocaml
21194 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21201 if test "$binding_prereqs_failed" = 1 ; then
21202 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21203 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21204 { (exit 1); exit 1; }; }
21207 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21208 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21209 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21213 ac_cpp='$CXXCPP $CPPFLAGS'
21214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21218 oldcxxflags="$CXXFLAGS"
21219 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21226 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21244 grep -v '^ *+' conftest.er1 >conftest.err
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21250 { (case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_try") 2>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
21260 { (case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_try") 2>&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
21269 llvm_cv_cxx_visibility_inlines_hidden=yes
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274 llvm_cv_cxx_visibility_inlines_hidden=no
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278 CXXFLAGS="$oldcxxflags"
21280 ac_cpp='$CPP $CPPFLAGS'
21281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21287 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21288 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21289 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21290 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21293 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21298 if test "$llvm_cv_link_use_r" = "yes" ; then
21305 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21306 RDYNAMIC="-Wl,-export-dynamic"
21313 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21320 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21322 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21324 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21326 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21328 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21331 ac_config_files="$ac_config_files Makefile.config"
21334 ac_config_files="$ac_config_files llvm.spec"
21337 ac_config_files="$ac_config_files docs/doxygen.cfg"
21340 if test "${clang_src_root}" = ""; then
21341 clang_src_root="$srcdir/tools/clang"
21343 if test -f ${clang_src_root}/README.txt; then
21344 configh="include/clang/Config/config.h"
21345 doxy="docs/doxygen.cfg"
21346 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21348 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21352 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21355 ac_config_commands="$ac_config_commands setup"
21357 ac_config_commands="$ac_config_commands Makefile"
21360 ac_config_commands="$ac_config_commands Makefile.common"
21363 ac_config_commands="$ac_config_commands examples/Makefile"
21366 ac_config_commands="$ac_config_commands lib/Makefile"
21369 ac_config_commands="$ac_config_commands runtime/Makefile"
21372 ac_config_commands="$ac_config_commands test/Makefile"
21375 ac_config_commands="$ac_config_commands test/Makefile.tests"
21378 ac_config_commands="$ac_config_commands unittests/Makefile"
21381 ac_config_commands="$ac_config_commands tools/Makefile"
21384 ac_config_commands="$ac_config_commands utils/Makefile"
21387 ac_config_commands="$ac_config_commands projects/Makefile"
21390 ac_config_commands="$ac_config_commands bindings/Makefile"
21393 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21397 cat >confcache <<\_ACEOF
21398 # This file is a shell script that caches the results of configure
21399 # tests run on this system so they can be shared between configure
21400 # scripts and configure runs, see configure's option --config-cache.
21401 # It is not useful on other systems. If it contains results you don't
21402 # want to keep, you may remove or edit it.
21404 # config.status only pays attention to the cache file if you give it
21405 # the --recheck option to rerun configure.
21407 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21408 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21409 # following values.
21413 # The following way of writing the cache mishandles newlines in values,
21414 # but we know of no workaround that is simple, portable, and efficient.
21415 # So, we kill variables containing newlines.
21416 # Ultrix sh set writes to stderr and can't be redirected directly,
21417 # and sets the high bit in the cache file unless we assign to the vars.
21419 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21420 eval ac_val=\$$ac_var
21424 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21425 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21428 _ | IFS | as_nl) ;; #(
21429 *) $as_unset $ac_var ;;
21435 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21436 *${as_nl}ac_space=\ *)
21437 # `set' does not quote correctly, so add quotes (double-quote
21438 # substitution turns \\\\ into \\, and sed turns \\ into \).
21441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21444 # `set' quotes correctly as required by POSIX, so do not add quotes.
21445 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21454 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21456 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21458 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21459 if test -w "$cache_file"; then
21460 test "x$cache_file" != "x/dev/null" &&
21461 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21462 echo "$as_me: updating cache $cache_file" >&6;}
21463 cat confcache >$cache_file
21465 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21466 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21472 # Let make expand exec_prefix.
21473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21475 DEFS=-DHAVE_CONFIG_H
21479 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21480 # 1. Remove the extension, and $U if already installed.
21481 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21482 ac_i=`echo "$ac_i" | sed "$ac_script"`
21483 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21484 # will be set to the directory where LIBOBJS objects are built.
21485 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21486 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21488 LIBOBJS=$ac_libobjs
21490 LTLIBOBJS=$ac_ltlibobjs
21493 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21494 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21495 Usually this means the macro was only invoked conditionally." >&5
21496 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21497 Usually this means the macro was only invoked conditionally." >&2;}
21498 { (exit 1); exit 1; }; }
21500 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21501 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21502 Usually this means the macro was only invoked conditionally." >&5
21503 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21504 Usually this means the macro was only invoked conditionally." >&2;}
21505 { (exit 1); exit 1; }; }
21508 : ${CONFIG_STATUS=./config.status}
21509 ac_clean_files_save=$ac_clean_files
21510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21511 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21513 cat >$CONFIG_STATUS <<_ACEOF
21515 # Generated by $as_me.
21516 # Run this file to recreate the current configuration.
21517 # Compiler output produced by configure, useful for debugging
21518 # configure, is in config.log if it exists.
21521 ac_cs_recheck=false
21523 SHELL=\${CONFIG_SHELL-$SHELL}
21526 cat >>$CONFIG_STATUS <<\_ACEOF
21527 ## --------------------- ##
21528 ## M4sh Initialization. ##
21529 ## --------------------- ##
21531 # Be Bourne compatible
21532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21535 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21536 # is contrary to our usage. Disable this feature.
21537 alias -g '${1+"$@"}'='"$@"'
21538 setopt NO_GLOB_SUBST
21540 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21542 BIN_SH=xpg4; export BIN_SH # for Tru64
21543 DUALCASE=1; export DUALCASE # for MKS sh
21547 # Avoid depending upon Character Ranges.
21548 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21549 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21550 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21551 as_cr_digits='0123456789'
21552 as_cr_alnum=$as_cr_Letters$as_cr_digits
21554 # The user is always right.
21555 if test "${PATH_SEPARATOR+set}" != set; then
21556 echo "#! /bin/sh" >conf$$.sh
21557 echo "exit 0" >>conf$$.sh
21559 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21567 # Support unset when possible.
21568 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21576 # We need space, tab and new line, in precisely that order. Quoting is
21577 # there to prevent editors from complaining about space-tab.
21578 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21579 # splitting by setting IFS to empty value.)
21584 # Find who we are. Look in the path if we contain no directory separator.
21586 *[\\/]* ) as_myself=$0 ;;
21587 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21588 for as_dir in $PATH
21591 test -z "$as_dir" && as_dir=.
21592 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21598 # We did not find ourselves, most probably we were run as `sh COMMAND'
21599 # in which case we are not to be found in the path.
21600 if test "x$as_myself" = x; then
21603 if test ! -f "$as_myself"; then
21604 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21605 { (exit 1); exit 1; }
21608 # Work around bugs in pre-3.0 UWIN ksh.
21609 for as_var in ENV MAIL MAILPATH
21610 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21618 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21619 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21620 LC_TELEPHONE LC_TIME
21622 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21623 eval $as_var=C; export $as_var
21625 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21629 # Required to use basename.
21630 if expr a : '\(a\)' >/dev/null 2>&1 &&
21631 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21637 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21638 as_basename=basename
21644 # Name of the executable.
21645 as_me=`$as_basename -- "$0" ||
21646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21647 X"$0" : 'X\(//\)$' \| \
21648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21650 sed '/^.*\/\([^/][^/]*\)\/*$/{
21669 as_lineno_1=$LINENO
21670 as_lineno_2=$LINENO
21671 test "x$as_lineno_1" != "x$as_lineno_2" &&
21672 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21674 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21675 # uniformly replaced by the line number. The first 'sed' inserts a
21676 # line-number line after each line using $LINENO; the second 'sed'
21677 # does the real work. The second script uses 'N' to pair each
21678 # line-number line with the line containing $LINENO, and appends
21679 # trailing '-' during substitution so that $LINENO is not a special
21680 # case at line end.
21681 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21682 # scripts with optimization help from Paolo Bonzini. Blame Lee
21683 # E. McMahon (1931-1989) for sed's syntax. :-)
21695 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21698 ' >$as_me.lineno &&
21699 chmod +x "$as_me.lineno" ||
21700 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21701 { (exit 1); exit 1; }; }
21703 # Don't try to exec as it changes $[0], causing all sort of problems
21704 # (the dirname of $[0] is not the place where we might find the
21705 # original and so on. Autoconf is especially sensitive to this).
21706 . "./$as_me.lineno"
21707 # Exit status is that of the last command.
21712 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21718 ECHO_C= ECHO_N= ECHO_T=
21719 case `echo -n x` in
21721 case `echo 'x\c'` in
21722 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21729 if expr a : '\(a\)' >/dev/null 2>&1 &&
21730 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21736 rm -f conf$$ conf$$.exe conf$$.file
21737 if test -d conf$$.dir; then
21738 rm -f conf$$.dir/conf$$.file
21744 if ln -s conf$$.file conf$$ 2>/dev/null; then
21746 # ... but there are two gotchas:
21747 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21748 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21749 # In both cases, we have to default to `cp -p'.
21750 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21752 elif ln conf$$.file conf$$ 2>/dev/null; then
21757 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21758 rmdir conf$$.dir 2>/dev/null
21760 if mkdir -p . 2>/dev/null; then
21763 test -d ./-p && rmdir ./-p
21767 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21768 # systems may use methods other than mode bits to determine executability.
21769 cat >conf$$.file <<_ASEOF
21773 chmod +x conf$$.file
21774 if test -x conf$$.file >/dev/null 2>&1; then
21775 as_executable_p="test -x"
21781 # Sed expression to map a string onto a valid CPP name.
21782 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21784 # Sed expression to map a string onto a valid variable name.
21785 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21790 # Save the log message, to keep $[0] and so on meaningful, and to
21791 # report actual input values of CONFIG_FILES etc. instead of their
21792 # values after options handling.
21794 This file was extended by LLVM $as_me 3.2svn, which was
21795 generated by GNU Autoconf 2.60. Invocation command line was
21797 CONFIG_FILES = $CONFIG_FILES
21798 CONFIG_HEADERS = $CONFIG_HEADERS
21799 CONFIG_LINKS = $CONFIG_LINKS
21800 CONFIG_COMMANDS = $CONFIG_COMMANDS
21803 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21808 cat >>$CONFIG_STATUS <<_ACEOF
21809 # Files that config.status was made for.
21810 config_files="$ac_config_files"
21811 config_headers="$ac_config_headers"
21812 config_commands="$ac_config_commands"
21816 cat >>$CONFIG_STATUS <<\_ACEOF
21818 \`$as_me' instantiates files from templates according to the
21819 current configuration.
21821 Usage: $0 [OPTIONS] [FILE]...
21823 -h, --help print this help, then exit
21824 -V, --version print version number, then exit
21825 -q, --quiet do not print progress messages
21826 -d, --debug don't remove temporary files
21827 --recheck update $as_me by reconfiguring in the same conditions
21828 --file=FILE[:TEMPLATE]
21829 instantiate the configuration file FILE
21830 --header=FILE[:TEMPLATE]
21831 instantiate the configuration header FILE
21833 Configuration files:
21836 Configuration headers:
21839 Configuration commands:
21842 Report bugs to <bug-autoconf@gnu.org>."
21845 cat >>$CONFIG_STATUS <<_ACEOF
21847 LLVM config.status 3.2svn
21848 configured by $0, generated by GNU Autoconf 2.60,
21849 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21851 Copyright (C) 2006 Free Software Foundation, Inc.
21852 This config.status script is free software; the Free Software Foundation
21853 gives unlimited permission to copy, distribute and modify it."
21860 cat >>$CONFIG_STATUS <<\_ACEOF
21861 # If no file are specified by the user, then we need to provide default
21862 # value. By we need to know if files were specified by the user.
21868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21869 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21880 # Handling of the options.
21881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21884 echo "$ac_cs_version"; exit ;;
21885 --debug | --debu | --deb | --de | --d | -d )
21887 --file | --fil | --fi | --f )
21889 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21890 ac_need_defaults=false;;
21891 --header | --heade | --head | --hea )
21893 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21894 ac_need_defaults=false;;
21896 # Conflict between --help and --header
21897 { echo "$as_me: error: ambiguous option: $1
21898 Try \`$0 --help' for more information." >&2
21899 { (exit 1); exit 1; }; };;
21900 --help | --hel | -h )
21901 echo "$ac_cs_usage"; exit ;;
21902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21906 # This is an error.
21907 -*) { echo "$as_me: error: unrecognized option: $1
21908 Try \`$0 --help' for more information." >&2
21909 { (exit 1); exit 1; }; } ;;
21911 *) ac_config_targets="$ac_config_targets $1"
21912 ac_need_defaults=false ;;
21918 ac_configure_extra_args=
21920 if $ac_cs_silent; then
21922 ac_configure_extra_args="$ac_configure_extra_args --silent"
21926 cat >>$CONFIG_STATUS <<_ACEOF
21927 if \$ac_cs_recheck; then
21928 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21929 CONFIG_SHELL=$SHELL
21930 export CONFIG_SHELL
21931 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21935 cat >>$CONFIG_STATUS <<\_ACEOF
21939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21940 ## Running $as_me. ##
21946 cat >>$CONFIG_STATUS <<_ACEOF
21950 llvm_src="${srcdir}"
21954 cat >>$CONFIG_STATUS <<\_ACEOF
21956 # Handling of arguments.
21957 for ac_config_target in $ac_config_targets
21959 case $ac_config_target in
21960 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21961 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21962 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21963 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21964 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21965 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21966 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21967 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21968 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21969 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21970 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21971 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21972 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21973 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21974 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21975 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21976 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21977 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21978 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21979 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21980 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21981 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21982 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21983 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21984 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21985 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21986 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21988 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21989 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21990 { (exit 1); exit 1; }; };;
21995 # If the user did not use the arguments to specify the items to instantiate,
21996 # then the envvar interface is used. Set only those that are not.
21997 # We use the long form for the default assignment because of an extremely
21998 # bizarre bug on SunOS 4.1.3.
21999 if $ac_need_defaults; then
22000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22005 # Have a temporary directory for convenience. Make it in the build tree
22006 # simply because there is no reason against having it here, and in addition,
22007 # creating and moving files from /tmp can sometimes cause problems.
22008 # Hook for its removal unless debugging.
22009 # Note that there is a small window in which the directory will not be cleaned:
22010 # after its creation but before its name has been assigned to `$tmp'.
22014 trap 'exit_status=$?
22015 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22017 trap '{ (exit 1); exit 1; }' 1 2 13 15
22019 # Create a (secure) tmp directory for tmp files.
22022 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22023 test -n "$tmp" && test -d "$tmp"
22026 tmp=./conf$$-$RANDOM
22027 (umask 077 && mkdir "$tmp")
22030 echo "$me: cannot create a temporary directory in ." >&2
22031 { (exit 1); exit 1; }
22035 # Set up the sed scripts for CONFIG_FILES section.
22038 # No need to generate the scripts if there are no CONFIG_FILES.
22039 # This happens for instance when ./config.status config.h
22040 if test -n "$CONFIG_FILES"; then
22047 for ac_last_try in false false false false false :; do
22048 cat >conf$$subs.sed <<_ACEOF
22049 SHELL!$SHELL$ac_delim
22050 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22051 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22052 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22053 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22054 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22055 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22056 exec_prefix!$exec_prefix$ac_delim
22057 prefix!$prefix$ac_delim
22058 program_transform_name!$program_transform_name$ac_delim
22059 bindir!$bindir$ac_delim
22060 sbindir!$sbindir$ac_delim
22061 libexecdir!$libexecdir$ac_delim
22062 datarootdir!$datarootdir$ac_delim
22063 datadir!$datadir$ac_delim
22064 sysconfdir!$sysconfdir$ac_delim
22065 sharedstatedir!$sharedstatedir$ac_delim
22066 localstatedir!$localstatedir$ac_delim
22067 includedir!$includedir$ac_delim
22068 oldincludedir!$oldincludedir$ac_delim
22069 docdir!$docdir$ac_delim
22070 infodir!$infodir$ac_delim
22071 htmldir!$htmldir$ac_delim
22072 dvidir!$dvidir$ac_delim
22073 pdfdir!$pdfdir$ac_delim
22074 psdir!$psdir$ac_delim
22075 libdir!$libdir$ac_delim
22076 localedir!$localedir$ac_delim
22077 mandir!$mandir$ac_delim
22078 DEFS!$DEFS$ac_delim
22079 ECHO_C!$ECHO_C$ac_delim
22080 ECHO_N!$ECHO_N$ac_delim
22081 ECHO_T!$ECHO_T$ac_delim
22082 LIBS!$LIBS$ac_delim
22083 build_alias!$build_alias$ac_delim
22084 host_alias!$host_alias$ac_delim
22085 target_alias!$target_alias$ac_delim
22086 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22088 CFLAGS!$CFLAGS$ac_delim
22089 LDFLAGS!$LDFLAGS$ac_delim
22090 CPPFLAGS!$CPPFLAGS$ac_delim
22091 ac_ct_CC!$ac_ct_CC$ac_delim
22092 EXEEXT!$EXEEXT$ac_delim
22093 OBJEXT!$OBJEXT$ac_delim
22095 CXXFLAGS!$CXXFLAGS$ac_delim
22096 ac_ct_CXX!$ac_ct_CXX$ac_delim
22098 subdirs!$subdirs$ac_delim
22099 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22100 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22101 build!$build$ac_delim
22102 build_cpu!$build_cpu$ac_delim
22103 build_vendor!$build_vendor$ac_delim
22104 build_os!$build_os$ac_delim
22105 host!$host$ac_delim
22106 host_cpu!$host_cpu$ac_delim
22107 host_vendor!$host_vendor$ac_delim
22108 host_os!$host_os$ac_delim
22109 target!$target$ac_delim
22110 target_cpu!$target_cpu$ac_delim
22111 target_vendor!$target_vendor$ac_delim
22112 target_os!$target_os$ac_delim
22114 HOST_OS!$HOST_OS$ac_delim
22115 TARGET_OS!$TARGET_OS$ac_delim
22116 LINKALL!$LINKALL$ac_delim
22117 NOLINKALL!$NOLINKALL$ac_delim
22118 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22119 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22120 ARCH!$ARCH$ac_delim
22121 ENDIAN!$ENDIAN$ac_delim
22122 GREP!$GREP$ac_delim
22123 EGREP!$EGREP$ac_delim
22124 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22125 BUILD_CC!$BUILD_CC$ac_delim
22126 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22127 BUILD_CXX!$BUILD_CXX$ac_delim
22128 CVSBUILD!$CVSBUILD$ac_delim
22129 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22130 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22131 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22132 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22133 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22134 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22135 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22136 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22138 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22139 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22140 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22141 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22142 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22143 ENABLE_PIC!$ENABLE_PIC$ac_delim
22144 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22145 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22148 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22150 elif $ac_last_try; then
22151 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22152 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22153 { (exit 1); exit 1; }; }
22155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22159 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22160 if test -n "$ac_eof"; then
22161 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22162 ac_eof=`expr $ac_eof + 1`
22165 cat >>$CONFIG_STATUS <<_ACEOF
22166 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22170 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22171 s/^/s,@/; s/!/@,|#_!!_#|/
22174 s/'"$ac_delim"'$/,g/; t
22176 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22177 ' >>$CONFIG_STATUS <conf$$subs.sed
22178 rm -f conf$$subs.sed
22179 cat >>$CONFIG_STATUS <<_ACEOF
22185 for ac_last_try in false false false false false :; do
22186 cat >conf$$subs.sed <<_ACEOF
22187 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22188 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22189 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22190 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22191 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22192 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22193 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22194 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22195 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22196 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22197 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22198 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22200 ifGNUmake!$ifGNUmake$ac_delim
22201 LN_S!$LN_S$ac_delim
22204 DATE!$DATE$ac_delim
22205 FIND!$FIND$ac_delim
22206 MKDIR!$MKDIR$ac_delim
22208 RANLIB!$RANLIB$ac_delim
22213 BINPWD!$BINPWD$ac_delim
22214 GRAPHVIZ!$GRAPHVIZ$ac_delim
22217 NEATO!$NEATO$ac_delim
22218 TWOPI!$TWOPI$ac_delim
22219 CIRCO!$CIRCO$ac_delim
22221 DOTTY!$DOTTY$ac_delim
22222 XDOT_PY!$XDOT_PY$ac_delim
22223 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22224 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22225 INSTALL_DATA!$INSTALL_DATA$ac_delim
22226 BZIP2!$BZIP2$ac_delim
22228 DOXYGEN!$DOXYGEN$ac_delim
22229 GROFF!$GROFF$ac_delim
22230 GZIPBIN!$GZIPBIN$ac_delim
22231 POD2HTML!$POD2HTML$ac_delim
22232 POD2MAN!$POD2MAN$ac_delim
22233 PDFROFF!$PDFROFF$ac_delim
22234 RUNTEST!$RUNTEST$ac_delim
22235 TCLSH!$TCLSH$ac_delim
22237 OCAMLC!$OCAMLC$ac_delim
22238 OCAMLOPT!$OCAMLOPT$ac_delim
22239 OCAMLDEP!$OCAMLDEP$ac_delim
22240 OCAMLDOC!$OCAMLDOC$ac_delim
22242 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22243 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22244 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22245 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22246 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22247 LIBADD_DL!$LIBADD_DL$ac_delim
22248 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22249 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22250 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22251 USE_UDIS86!$USE_UDIS86$ac_delim
22252 USE_OPROFILE!$USE_OPROFILE$ac_delim
22253 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22254 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22255 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22256 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22257 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22258 MMAP_FILE!$MMAP_FILE$ac_delim
22259 SHLIBEXT!$SHLIBEXT$ac_delim
22260 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22261 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22262 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22263 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22264 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22265 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22266 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22267 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22268 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22269 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22270 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22271 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22272 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22273 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22274 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22275 RPATH!$RPATH$ac_delim
22276 RDYNAMIC!$RDYNAMIC$ac_delim
22277 LIBOBJS!$LIBOBJS$ac_delim
22278 LTLIBOBJS!$LTLIBOBJS$ac_delim
22281 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22283 elif $ac_last_try; then
22284 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22285 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22286 { (exit 1); exit 1; }; }
22288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22292 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22293 if test -n "$ac_eof"; then
22294 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22295 ac_eof=`expr $ac_eof + 1`
22298 cat >>$CONFIG_STATUS <<_ACEOF
22299 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22300 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22303 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22304 s/^/s,@/; s/!/@,|#_!!_#|/
22307 s/'"$ac_delim"'$/,g/; t
22309 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22310 ' >>$CONFIG_STATUS <conf$$subs.sed
22311 rm -f conf$$subs.sed
22312 cat >>$CONFIG_STATUS <<_ACEOF
22319 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22320 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22321 # trailing colons and then remove the whole line if VPATH becomes empty
22322 # (actually we leave an empty line to preserve line numbers).
22323 if test "x$srcdir" = x.; then
22324 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22325 s/:*\$(srcdir):*/:/
22326 s/:*\${srcdir}:*/:/
22328 s/^\([^=]*=[ ]*\):*/\1/
22334 cat >>$CONFIG_STATUS <<\_ACEOF
22335 fi # test -n "$CONFIG_FILES"
22338 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22341 :[FHLC]) ac_mode=$ac_tag; continue;;
22343 case $ac_mode$ac_tag in
22345 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22346 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22347 { (exit 1); exit 1; }; };;
22348 :[FH]-) ac_tag=-:-;;
22349 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22366 -) ac_f="$tmp/stdin";;
22367 *) # Look for the file first in the build tree, then in the source tree
22368 # (if the path is not absolute). The absolute path cannot be DOS-style,
22369 # because $ac_f cannot contain `:'.
22373 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22375 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22376 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22377 { (exit 1); exit 1; }; };;
22379 ac_file_inputs="$ac_file_inputs $ac_f"
22382 # Let's still pretend it is `configure' which instantiates (i.e., don't
22383 # use $as_me), people would be surprised to read:
22384 # /* config.h. Generated by config.status. */
22385 configure_input="Generated from "`IFS=:
22386 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22387 if test x"$ac_file" != x-; then
22388 configure_input="$ac_file. $configure_input"
22389 { echo "$as_me:$LINENO: creating $ac_file" >&5
22390 echo "$as_me: creating $ac_file" >&6;}
22394 *:-:* | *:-) cat >"$tmp/stdin";;
22399 ac_dir=`$as_dirname -- "$ac_file" ||
22400 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22401 X"$ac_file" : 'X\(//\)[^/]' \| \
22402 X"$ac_file" : 'X\(//\)$' \| \
22403 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22409 /^X\(\/\/\)[^/].*/{
22424 -*) as_dir=./$as_dir;;
22426 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22430 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22431 *) as_qdir=$as_dir;;
22433 as_dirs="'$as_qdir' $as_dirs"
22434 as_dir=`$as_dirname -- "$as_dir" ||
22435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22436 X"$as_dir" : 'X\(//\)[^/]' \| \
22437 X"$as_dir" : 'X\(//\)$' \| \
22438 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22444 /^X\(\/\/\)[^/].*/{
22457 test -d "$as_dir" && break
22459 test -z "$as_dirs" || eval "mkdir $as_dirs"
22460 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22461 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22462 { (exit 1); exit 1; }; }; }
22466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22469 # A ".." for each directory in $ac_dir_suffix.
22470 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22471 case $ac_top_builddir_sub in
22472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22476 ac_abs_top_builddir=$ac_pwd
22477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22478 # for backward compatibility:
22479 ac_top_builddir=$ac_top_build_prefix
22482 .) # We are building in place.
22484 ac_top_srcdir=$ac_top_builddir_sub
22485 ac_abs_top_srcdir=$ac_pwd ;;
22486 [\\/]* | ?:[\\/]* ) # Absolute name.
22487 ac_srcdir=$srcdir$ac_dir_suffix;
22488 ac_top_srcdir=$srcdir
22489 ac_abs_top_srcdir=$srcdir ;;
22490 *) # Relative name.
22491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22492 ac_top_srcdir=$ac_top_build_prefix$srcdir
22493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22505 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22506 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22510 cat >>$CONFIG_STATUS <<\_ACEOF
22511 # If the template does not know about datarootdir, expand it.
22512 # FIXME: This hack should be removed a few years after 2.60.
22513 ac_datarootdir_hack=; ac_datarootdir_seen=
22515 case `sed -n '/datarootdir/ {
22524 ' $ac_file_inputs` in
22525 *datarootdir*) ac_datarootdir_seen=yes;;
22526 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22527 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22528 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22530 cat >>$CONFIG_STATUS <<_ACEOF
22531 ac_datarootdir_hack='
22532 s&@datadir@&$datadir&g
22533 s&@docdir@&$docdir&g
22534 s&@infodir@&$infodir&g
22535 s&@localedir@&$localedir&g
22536 s&@mandir@&$mandir&g
22537 s&\\\${datarootdir}&$datarootdir&g' ;;
22541 # Neutralize VPATH when `$srcdir' = `.'.
22542 # Shell code in configure.ac might set extrasub.
22543 # FIXME: do we really want to maintain this feature?
22544 cat >>$CONFIG_STATUS <<_ACEOF
22548 cat >>$CONFIG_STATUS <<\_ACEOF
22550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22551 s&@configure_input@&$configure_input&;t t
22552 s&@top_builddir@&$ac_top_builddir_sub&;t t
22553 s&@srcdir@&$ac_srcdir&;t t
22554 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22555 s&@top_srcdir@&$ac_top_srcdir&;t t
22556 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22557 s&@builddir@&$ac_builddir&;t t
22558 s&@abs_builddir@&$ac_abs_builddir&;t t
22559 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22560 s&@INSTALL@&$ac_INSTALL&;t t
22561 $ac_datarootdir_hack
22562 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22564 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22565 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22566 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22567 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22568 which seems to be undefined. Please make sure it is defined." >&5
22569 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22570 which seems to be undefined. Please make sure it is defined." >&2;}
22574 -) cat "$tmp/out"; rm -f "$tmp/out";;
22575 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22584 # Transform confdefs.h into a sed script `conftest.defines', that
22585 # substitutes the proper values into config.h.in to produce config.h.
22586 rm -f conftest.defines conftest.tail
22587 # First, append a space to every undef/define line, to ease matching.
22588 echo 's/$/ /' >conftest.defines
22589 # Then, protect against being on the right side of a sed subst, or in
22590 # an unquoted here document, in config.status. If some macros were
22591 # called several times there might be several #defines for the same
22592 # symbol, which is useless. But do not sort them, since the last
22593 # AC_DEFINE must be honored.
22594 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22595 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22596 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22597 # PARAMS is the parameter list in the macro definition--in most cases, it's
22598 # just an empty string.
22599 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22600 ac_dB='\\)[ (].*,\\1define\\2'
22608 s/^[ ]*#[ ]*define[ ][ ]*//
22613 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22614 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22615 ' >>conftest.defines
22617 # Remove the space that was appended to ease matching.
22618 # Then replace #undef with comments. This is necessary, for
22619 # example, in the case of _POSIX_SOURCE, which is predefined and required
22620 # on some systems where configure will not decide to define it.
22621 # (The regexp can be short, since the line contains either #define or #undef.)
22623 s,^[ #]*u.*,/* & */,' >>conftest.defines
22625 # Break up conftest.defines:
22626 ac_max_sed_lines=50
22628 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22629 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22630 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22632 ac_in='$ac_file_inputs'
22633 ac_out='"$tmp/out1"'
22634 ac_nxt='"$tmp/out2"'
22638 # Write a here document:
22639 cat >>$CONFIG_STATUS <<_ACEOF
22640 # First, check the format of the line:
22641 cat >"\$tmp/defines.sed" <<\\CEOF
22642 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22643 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22647 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22649 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22650 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22651 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22652 grep . conftest.tail >/dev/null || break
22653 rm -f conftest.defines
22654 mv conftest.tail conftest.defines
22656 rm -f conftest.defines conftest.tail
22658 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22659 cat >>$CONFIG_STATUS <<\_ACEOF
22660 if test x"$ac_file" != x-; then
22661 echo "/* $configure_input */" >"$tmp/config.h"
22662 cat "$ac_result" >>"$tmp/config.h"
22663 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22664 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22665 echo "$as_me: $ac_file is unchanged" >&6;}
22668 mv "$tmp/config.h" $ac_file
22671 echo "/* $configure_input */"
22677 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22678 echo "$as_me: executing $ac_file commands" >&6;}
22683 case $ac_file$ac_mode in
22684 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22685 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22686 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22687 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22688 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22689 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22690 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22691 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22692 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22693 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22694 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22695 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22696 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22697 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22698 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22699 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22700 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22701 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22702 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22703 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22704 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22705 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22706 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22707 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22708 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22709 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22715 { (exit 0); exit 0; }
22717 chmod +x $CONFIG_STATUS
22718 ac_clean_files=$ac_clean_files_save
22721 # configure is writing to config.log, and then calls config.status.
22722 # config.status does its own redirection, appending to config.log.
22723 # Unfortunately, on DOS this fails, as config.log is still kept open
22724 # by configure, so config.status won't be able to write to it; its
22725 # output is simply discarded. So we exec the FD to /dev/null,
22726 # effectively closing config.log, so it can be properly (re)opened and
22727 # appended to by config.status. When coming back to configure, we
22728 # need to make the FD available again.
22729 if test "$no_create" != yes; then
22731 ac_config_status_args=
22732 test "$silent" = yes &&
22733 ac_config_status_args="$ac_config_status_args --quiet"
22735 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22737 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22738 # would make configure fail if this is the last instruction.
22739 $ac_cs_success || { (exit 1); exit 1; }
22743 # CONFIG_SUBDIRS section.
22745 if test "$no_recursion" != yes; then
22747 # Remove --cache-file and --srcdir arguments so they do not pile up.
22748 ac_sub_configure_args=
22750 eval "set x $ac_configure_args"
22754 if test -n "$ac_prev"; then
22759 -cache-file | --cache-file | --cache-fil | --cache-fi \
22760 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22761 ac_prev=cache_file ;;
22762 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22763 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22766 --config-cache | -C)
22768 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22770 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22772 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22774 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22778 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22780 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22784 # Always prepend --prefix to ensure using the same prefix
22785 # in subdir configurations.
22786 ac_arg="--prefix=$prefix"
22788 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22790 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22793 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22795 # Do not complain, so a configure script can configure whichever
22796 # parts of a large source tree are present.
22797 test -d "$srcdir/$ac_dir" || continue
22799 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22800 echo "$as_me:$LINENO: $ac_msg" >&5
22804 -*) as_dir=./$as_dir;;
22806 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22810 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22811 *) as_qdir=$as_dir;;
22813 as_dirs="'$as_qdir' $as_dirs"
22814 as_dir=`$as_dirname -- "$as_dir" ||
22815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22816 X"$as_dir" : 'X\(//\)[^/]' \| \
22817 X"$as_dir" : 'X\(//\)$' \| \
22818 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22824 /^X\(\/\/\)[^/].*/{
22837 test -d "$as_dir" && break
22839 test -z "$as_dirs" || eval "mkdir $as_dirs"
22840 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22841 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22842 { (exit 1); exit 1; }; }; }
22846 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22849 # A ".." for each directory in $ac_dir_suffix.
22850 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22851 case $ac_top_builddir_sub in
22852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22856 ac_abs_top_builddir=$ac_pwd
22857 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22858 # for backward compatibility:
22859 ac_top_builddir=$ac_top_build_prefix
22862 .) # We are building in place.
22864 ac_top_srcdir=$ac_top_builddir_sub
22865 ac_abs_top_srcdir=$ac_pwd ;;
22866 [\\/]* | ?:[\\/]* ) # Absolute name.
22867 ac_srcdir=$srcdir$ac_dir_suffix;
22868 ac_top_srcdir=$srcdir
22869 ac_abs_top_srcdir=$srcdir ;;
22870 *) # Relative name.
22871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22872 ac_top_srcdir=$ac_top_build_prefix$srcdir
22873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22875 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22880 # Check for guested configure; otherwise get Cygnus style configure.
22881 if test -f "$ac_srcdir/configure.gnu"; then
22882 ac_sub_configure=$ac_srcdir/configure.gnu
22883 elif test -f "$ac_srcdir/configure"; then
22884 ac_sub_configure=$ac_srcdir/configure
22885 elif test -f "$ac_srcdir/configure.in"; then
22886 # This should be Cygnus configure.
22887 ac_sub_configure=$ac_aux_dir/configure
22889 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22890 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22894 # The recursion is here.
22895 if test -n "$ac_sub_configure"; then
22896 # Make the cache file name correct relative to the subdirectory.
22897 case $cache_file in
22898 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22899 *) # Relative name.
22900 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22903 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22904 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22905 # The eval makes quoting arguments work.
22906 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22907 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22908 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22909 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22910 { (exit 1); exit 1; }; }