2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
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.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
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.1svn 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.1svn:";;
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, cbe, 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-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
1447 --with-bug-report-url Specify the URL where bug reports should be
1448 submitted (default=http://llvm.org/bugs/)
1449 --with-internal-prefix Installation directory for internal files
1450 --with-tclinclude directory where tcl headers are
1451 --with-udis86=<path> Use udis86 external x86 disassembler library
1452 --with-oprofile=<prefix>
1453 Tell OProfile >= 0.9.4 how to symbolize JIT output
1454 --with-intel-jitevents=<vtune-amplifier-dir>
1455 Specify location of run-time support library for
1457 (default=/opt/intel/vtune_amplifier_xe_2011)
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1473 Report bugs to <http://llvm.org/bugs/>.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" || continue
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1501 .) # We are building in place.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1534 LLVM configure 3.1svn
1535 generated by GNU Autoconf 2.60
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1542 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1550 It was created by LLVM $as_me 3.1svn, which was
1551 generated by GNU Autoconf 2.60. Invocation command line was
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1572 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1576 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 echo "PATH: $as_dir"
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_must_keep_next=false
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628 if test $ac_must_keep_next = true; then
1629 ac_must_keep_next=false # Got value, back to normal.
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 -* ) ac_must_keep_next=true ;;
1643 ac_configure_args="$ac_configure_args '$ac_arg'"
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log. We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1667 # The following way of writing the cache mishandles newlines in values,
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678 _ | IFS | as_nl) ;; #(
1679 *) $as_unset $ac_var ;;
1684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
1687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1704 for ac_var in $ac_subst_vars
1706 eval ac_val=\$$ac_var
1708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 echo "$ac_var='\''$ac_val'\''"
1714 if test -n "$ac_subst_files"; then
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1721 for ac_var in $ac_subst_files
1723 eval ac_val=\$$ac_var
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 echo "$ac_var='\''$ac_val'\''"
1732 if test -s confdefs.h; then
1742 test "$ac_signal" != 0 &&
1743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
1746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750 for ac_signal in 1 2 13 15; do
1751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1758 # Predefined preprocessor variables.
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788 set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
1798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801 sed 's/^/| /' "$ac_site_file" >&5
1806 if test -r "$cache_file"; then
1807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
1818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1823 # Check that the precious variables saved in the cache have kept the same
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
1829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
1831 case $ac_old_set,$ac_new_set in
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
1843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846 echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848 echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856 *) ac_arg=$ac_var=$ac_new_val ;;
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864 if $ac_cache_corrupted; then
1865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904 cat >>confdefs.h <<\_ACEOF
1905 #define LLVM_VERSION_MAJOR 3
1909 cat >>confdefs.h <<\_ACEOF
1910 #define LLVM_VERSION_MINOR 1
1914 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1923 for ac_dir in autoconf "$srcdir"/autoconf; do
1924 if test -f "$ac_dir/install-sh"; then
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1928 elif test -f "$ac_dir/install.sh"; then
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1932 elif test -f "$ac_dir/shtool"; then
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1938 if test -z "$ac_aux_dir"; then
1939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941 { (exit 1); exit 1; }; }
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1954 if test ${srcdir} != "." ; then
1955 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1956 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958 { (exit 1); exit 1; }; }
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 if test -n "$ac_tool_prefix"; then
1968 for ac_prog in clang llvm-gcc gcc
1970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 if test -n "$CC"; then
1999 { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2002 { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2007 test -n "$CC" && break
2010 if test -z "$CC"; then
2012 for ac_prog in clang llvm-gcc gcc
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$ac_ct_CC"; then
2022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2031 ac_cv_prog_ac_ct_CC="$ac_prog"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042 if test -n "$ac_ct_CC"; then
2043 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044 echo "${ECHO_T}$ac_ct_CC" >&6; }
2046 { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2051 test -n "$ac_ct_CC" && break
2054 if test "x$ac_ct_CC" = x; then
2057 case $cross_compiling:$ac_tool_warned in
2059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet. If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&5
2062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2063 whose name does not start with the host triplet. If you think this
2064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2065 ac_tool_warned=yes ;;
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO: checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (ac_try="$ac_compiler --version >&5"
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087 (eval "$ac_compiler --version >&5") 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091 { (ac_try="$ac_compiler -v >&5"
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler -v >&5") 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101 { (ac_try="$ac_compiler -V >&5"
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107 (eval "$ac_compiler -V >&5") 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2112 cat >conftest.$ac_ext <<_ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h. */
2127 ac_clean_files_save=$ac_clean_files
2128 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2129 # Try to create an executable without -o first, disregard a.out.
2130 # It will help us diagnose broken compilers, and finding out an intuition
2132 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2133 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2134 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2136 # List of possible output files, starting from the most likely.
2137 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2138 # only as a last resort. b.out is created by i960 compilers.
2139 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2141 # The IRIX 6 linker writes into existing files which may not be
2142 # executable, retaining their permissions. Remove them first so a
2143 # subsequent execution test works.
2145 for ac_file in $ac_files
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2149 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2154 if { (ac_try="$ac_link_default"
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160 (eval "$ac_link_default") 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
2164 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2167 # so that the user can short-circuit this test for compilers unknown to
2169 for ac_file in $ac_files
2171 test -f "$ac_file" || continue
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2176 # We found the default executable, but exeext='' is most
2180 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2182 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # We set ac_cv_exeext here because the later test for it is not
2185 # safe: cross compilers may not add the suffix if given an `-o'
2186 # argument, so we may need to know it at that point already.
2187 # Even if this section looks crufty: it has the advantage of
2194 test "$ac_cv_exeext" = no && ac_cv_exeext=
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2200 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&2;}
2204 { (exit 77); exit 77; }; }
2207 ac_exeext=$ac_cv_exeext
2208 { echo "$as_me:$LINENO: result: $ac_file" >&5
2209 echo "${ECHO_T}$ac_file" >&6; }
2211 # Check that the compiler produces executables we can run. If not, either
2212 # the compiler is broken, or we cross compile.
2213 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216 # If not cross compiling, check that we can run a simple program.
2217 if test "$cross_compiling" != yes; then
2218 if { ac_try='./$ac_file'
2219 { (case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_try") 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2230 if test "$cross_compiling" = maybe; then
2233 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6; }
2246 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247 ac_clean_files=$ac_clean_files_save
2248 # Check that the compiler produces executables we can run. If not, either
2249 # the compiler is broken, or we cross compile.
2250 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2252 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253 echo "${ECHO_T}$cross_compiling" >&6; }
2255 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2257 if { (ac_try="$ac_link"
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263 (eval "$ac_link") 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }
2288 rm -f conftest$ac_cv_exeext
2289 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2292 rm -f conftest.$ac_ext
2293 EXEEXT=$ac_cv_exeext
2295 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2297 if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 rm -f conftest.o conftest.obj
2316 if { (ac_try="$ac_compile"
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322 (eval "$ac_compile") 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 for ac_file in conftest.o conftest.obj conftest.*; do
2327 test -f "$ac_file" || continue;
2329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348 echo "${ECHO_T}$ac_cv_objext" >&6; }
2349 OBJEXT=$ac_cv_objext
2351 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2353 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 cat >conftest.$ac_ext <<_ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2374 rm -f conftest.$ac_objext
2375 if { (ac_try="$ac_compile"
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_compile") 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389 { (case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_try") 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_try") 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2422 GCC=`test $ac_compiler_gnu = yes && echo yes`
2423 ac_test_CFLAGS=${CFLAGS+set}
2424 ac_save_CFLAGS=$CFLAGS
2425 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_cc_g+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 ac_save_c_werror_flag=$ac_c_werror_flag
2431 ac_c_werror_flag=yes
2434 cat >conftest.$ac_ext <<_ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2449 rm -f conftest.$ac_objext
2450 if { (ac_try="$ac_compile"
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compile") 2>conftest.er1
2458 grep -v '^ *+' conftest.er1 >conftest.err
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_try") 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_try") 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2489 cat >conftest.$ac_ext <<_ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2504 rm -f conftest.$ac_objext
2505 if { (ac_try="$ac_compile"
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_compile") 2>conftest.er1
2513 grep -v '^ *+' conftest.er1 >conftest.err
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_try") 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2543 ac_c_werror_flag=$ac_save_c_werror_flag
2545 cat >conftest.$ac_ext <<_ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2569 grep -v '^ *+' conftest.er1 >conftest.err
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575 { (case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_try") 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_try") 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ac_c_werror_flag=$ac_save_c_werror_flag
2611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2613 if test "$ac_test_CFLAGS" = set; then
2614 CFLAGS=$ac_save_CFLAGS
2615 elif test $ac_cv_prog_cc_g = yes; then
2616 if test "$GCC" = yes; then
2622 if test "$GCC" = yes; then
2628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_cc_c89+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 ac_cv_prog_cc_c89=no
2635 cat >conftest.$ac_ext <<_ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2643 #include <sys/types.h>
2644 #include <sys/stat.h>
2645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2646 struct buf { int x; };
2647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648 static char *e (p, i)
2654 static char *f (char * (*g) (char **, int), char **p, ...)
2659 s = g (p, va_arg (v,int));
2664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2665 function prototypes and stuff, but not '\xHH' hex character constants.
2666 These don't provoke an error unfortunately, instead are silently treated
2667 as 'x'. The following induces an error, until -std is added to get
2668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2669 array size at least. It's necessary to write '\x00'==0 to get something
2670 that's true only with -std. */
2671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674 inside strings and character constants. */
2676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2678 int test (int i, double x);
2679 struct s1 {int (*f) (int a);};
2680 struct s2 {int (*f) (double a);};
2681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711 { (case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_try") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2730 ac_cv_prog_cc_c89=$ac_arg
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2738 rm -f core conftest.err conftest.$ac_objext
2739 test "x$ac_cv_prog_cc_c89" != "xno" && break
2741 rm -f conftest.$ac_ext
2746 case "x$ac_cv_prog_cc_c89" in
2748 { echo "$as_me:$LINENO: result: none needed" >&5
2749 echo "${ECHO_T}none needed" >&6; } ;;
2751 { echo "$as_me:$LINENO: result: unsupported" >&5
2752 echo "${ECHO_T}unsupported" >&6; } ;;
2754 CC="$CC $ac_cv_prog_cc_c89"
2755 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 ac_cpp='$CXXCPP $CPPFLAGS'
2768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771 if test -z "$CXX"; then
2772 if test -n "$CCC"; then
2775 if test -n "$ac_tool_prefix"; then
2776 for ac_prog in clang++ llvm-g++ g++
2778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_CXX+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 if test -n "$CXX"; then
2786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 if test -n "$CXX"; then
2807 { echo "$as_me:$LINENO: result: $CXX" >&5
2808 echo "${ECHO_T}$CXX" >&6; }
2810 { echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6; }
2815 test -n "$CXX" && break
2818 if test -z "$CXX"; then
2820 for ac_prog in clang++ llvm-g++ g++
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 if test -n "$ac_ct_CXX"; then
2830 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CXX="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850 if test -n "$ac_ct_CXX"; then
2851 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2854 { echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6; }
2859 test -n "$ac_ct_CXX" && break
2862 if test "x$ac_ct_CXX" = x; then
2865 case $cross_compiling:$ac_tool_warned in
2867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet. If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&5
2870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871 whose name does not start with the host triplet. If you think this
2872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873 ac_tool_warned=yes ;;
2881 # Provide some information about the compiler.
2882 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2883 ac_compiler=`set X $ac_compile; echo $2`
2884 { (ac_try="$ac_compiler --version >&5"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler --version >&5") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894 { (ac_try="$ac_compiler -v >&5"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compiler -v >&5") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904 { (ac_try="$ac_compiler -V >&5"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compiler -V >&5") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2915 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2917 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2953 { (case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_try") 2>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2984 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2985 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2986 GXX=`test $ac_compiler_gnu = yes && echo yes`
2987 ac_test_CXXFLAGS=${CXXFLAGS+set}
2988 ac_save_CXXFLAGS=$CXXFLAGS
2989 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2990 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2991 if test "${ac_cv_prog_cxx_g+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2995 ac_cxx_werror_flag=yes
2998 cat >conftest.$ac_ext <<_ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_try") 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 ac_cv_prog_cxx_g=yes
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_prog_cxx_g=yes
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3175 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3176 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3177 if test "$ac_test_CXXFLAGS" = set; then
3178 CXXFLAGS=$ac_save_CXXFLAGS
3179 elif test $ac_cv_prog_cxx_g = yes; then
3180 if test "$GXX" = yes; then
3186 if test "$GXX" = yes; then
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3205 # On Suns, sometimes $CPP names a directory.
3206 if test -n "$CPP" && test -d "$CPP"; then
3209 if test -z "$CPP"; then
3210 if test "${ac_cv_prog_CPP+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 # Double quotes because CPP needs to be expanded
3214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3217 for ac_c_preproc_warn_flag in '' yes
3219 # Use a header file that comes with gcc, so configuring glibc
3220 # with a fresh cross-compiler works.
3221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222 # <limits.h> exists even on freestanding compilers.
3223 # On the NeXT, cc -E runs the code through the compiler's parser,
3224 # not just through cpp. "Syntax error" is here to catch this case.
3225 cat >conftest.$ac_ext <<_ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3232 # include <limits.h>
3234 # include <assert.h>
3238 if { (ac_try="$ac_cpp conftest.$ac_ext"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3246 grep -v '^ *+' conftest.er1 >conftest.err
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } >/dev/null; then
3251 if test -s conftest.err; then
3252 ac_cpp_err=$ac_c_preproc_warn_flag
3253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3260 if test -z "$ac_cpp_err"; then
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 # Broken: fails on valid input.
3270 rm -f conftest.err conftest.$ac_ext
3272 # OK, works on sane cases. Now check whether nonexistent headers
3273 # can be detected and how.
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280 #include <ac_nonexistent.h>
3282 if { (ac_try="$ac_cpp conftest.$ac_ext"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3290 grep -v '^ *+' conftest.er1 >conftest.err
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } >/dev/null; then
3295 if test -s conftest.err; then
3296 ac_cpp_err=$ac_c_preproc_warn_flag
3297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3304 if test -z "$ac_cpp_err"; then
3305 # Broken: success on invalid input.
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 # Passes both tests.
3316 rm -f conftest.err conftest.$ac_ext
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3333 { echo "$as_me:$LINENO: result: $CPP" >&5
3334 echo "${ECHO_T}$CPP" >&6; }
3336 for ac_c_preproc_warn_flag in '' yes
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
3340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
3342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3351 # include <limits.h>
3353 # include <assert.h>
3357 if { (ac_try="$ac_cpp conftest.$ac_ext"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } >/dev/null; then
3370 if test -s conftest.err; then
3371 ac_cpp_err=$ac_c_preproc_warn_flag
3372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3379 if test -z "$ac_cpp_err"; then
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 # Broken: fails on valid input.
3389 rm -f conftest.err conftest.$ac_ext
3391 # OK, works on sane cases. Now check whether nonexistent headers
3392 # can be detected and how.
3393 cat >conftest.$ac_ext <<_ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 #include <ac_nonexistent.h>
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423 if test -z "$ac_cpp_err"; then
3424 # Broken: success on invalid input.
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 # Passes both tests.
3435 rm -f conftest.err conftest.$ac_ext
3438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439 rm -f conftest.err conftest.$ac_ext
3440 if $ac_preproc_ok; then
3443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444 See \`config.log' for more details." >&5
3445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&2;}
3447 { (exit 1); exit 1; }; }
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 if test -d ${srcdir}/projects/llvm-gcc ; then
3460 subdirs="$subdirs projects/llvm-gcc"
3464 if test -d ${srcdir}/projects/test-suite ; then
3465 subdirs="$subdirs projects/test-suite"
3469 if test -d ${srcdir}/projects/llvm-test ; then
3470 subdirs="$subdirs projects/llvm-test"
3474 if test -d ${srcdir}/projects/poolalloc ; then
3475 subdirs="$subdirs projects/poolalloc"
3479 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3480 subdirs="$subdirs projects/llvm-poolalloc"
3484 for i in `ls ${srcdir}/projects`
3486 if test -d ${srcdir}/projects/${i} ; then
3488 sample) subdirs="$subdirs projects/sample"
3490 privbracket) subdirs="$subdirs projects/privbracket"
3492 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3494 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3496 llvm-java) subdirs="$subdirs projects/llvm-java"
3498 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3500 safecode) subdirs="$subdirs projects/safecode"
3502 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3511 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3512 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3518 # Check whether --enable-polly was given.
3519 if test "${enable_polly+set}" = set; then
3520 enableval=$enable_polly;
3525 case "$enableval" in
3530 default) ENABLE_POLLY=1
3532 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3533 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3534 { (exit 1); exit 1; }; } ;;
3538 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3541 subdirs="$subdirs tools/polly"
3546 # Make sure we can run config.sub.
3547 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550 { (exit 1); exit 1; }; }
3552 { echo "$as_me:$LINENO: checking build system type" >&5
3553 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554 if test "${ac_cv_build+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_build_alias=$build_alias
3558 test "x$ac_build_alias" = x &&
3559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560 test "x$ac_build_alias" = x &&
3561 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563 { (exit 1); exit 1; }; }
3564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567 { (exit 1); exit 1; }; }
3570 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571 echo "${ECHO_T}$ac_cv_build" >&6; }
3572 case $ac_cv_build in
3574 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575 echo "$as_me: error: invalid value of canonical build" >&2;}
3576 { (exit 1); exit 1; }; };;
3579 ac_save_IFS=$IFS; IFS='-'
3585 # Remember, the first character of IFS is used to create $*,
3586 # except with old shells:
3589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3592 { echo "$as_me:$LINENO: checking host system type" >&5
3593 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594 if test "${ac_cv_host+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 if test "x$host_alias" = x; then
3598 ac_cv_host=$ac_cv_build
3600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603 { (exit 1); exit 1; }; }
3607 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608 echo "${ECHO_T}$ac_cv_host" >&6; }
3611 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612 echo "$as_me: error: invalid value of canonical host" >&2;}
3613 { (exit 1); exit 1; }; };;
3616 ac_save_IFS=$IFS; IFS='-'
3622 # Remember, the first character of IFS is used to create $*,
3623 # except with old shells:
3626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3629 { echo "$as_me:$LINENO: checking target system type" >&5
3630 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3631 if test "${ac_cv_target+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 if test "x$target_alias" = x; then
3635 ac_cv_target=$ac_cv_host
3637 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3638 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3639 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3640 { (exit 1); exit 1; }; }
3644 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3645 echo "${ECHO_T}$ac_cv_target" >&6; }
3646 case $ac_cv_target in
3648 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3649 echo "$as_me: error: invalid value of canonical target" >&2;}
3650 { (exit 1); exit 1; }; };;
3652 target=$ac_cv_target
3653 ac_save_IFS=$IFS; IFS='-'
3659 # Remember, the first character of IFS is used to create $*,
3660 # except with old shells:
3663 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3666 # The aliases save the names the user supplied, while $host etc.
3667 # will get canonicalized.
3668 test -n "$target_alias" &&
3669 test "$program_prefix$program_suffix$program_transform_name" = \
3671 program_prefix=${target_alias}-
3673 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3674 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3675 if test "${llvm_cv_os_type+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="AIX"
3683 llvm_cv_platform_type="Unix" ;;
3685 llvm_cv_link_all_option="-Wl,--whole-archive"
3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687 llvm_cv_os_type="IRIX"
3688 llvm_cv_platform_type="Unix" ;;
3690 llvm_cv_link_all_option="-Wl,--whole-archive"
3691 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692 llvm_cv_os_type="Cygwin"
3693 llvm_cv_platform_type="Unix" ;;
3695 llvm_cv_link_all_option="-Wl,-all_load"
3696 llvm_cv_no_link_all_option="-Wl,-noall_load"
3697 llvm_cv_os_type="Darwin"
3698 llvm_cv_platform_type="Unix" ;;
3700 llvm_cv_link_all_option="-Wl,-all_load"
3701 llvm_cv_no_link_all_option="-Wl,-noall_load"
3702 llvm_cv_os_type="Minix"
3703 llvm_cv_platform_type="Unix" ;;
3704 *-*-freebsd* | *-*-kfreebsd-gnu)
3705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="FreeBSD"
3708 llvm_cv_platform_type="Unix" ;;
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="OpenBSD"
3713 llvm_cv_platform_type="Unix" ;;
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="NetBSD"
3718 llvm_cv_platform_type="Unix" ;;
3720 llvm_cv_link_all_option="-Wl,--whole-archive"
3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722 llvm_cv_os_type="DragonFly"
3723 llvm_cv_platform_type="Unix" ;;
3725 llvm_cv_link_all_option="-Wl,--whole-archive"
3726 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727 llvm_cv_os_type="HP-UX"
3728 llvm_cv_platform_type="Unix" ;;
3730 llvm_cv_link_all_option="-Wl,--whole-archive"
3731 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732 llvm_cv_os_type="Interix"
3733 llvm_cv_platform_type="Unix" ;;
3735 llvm_cv_link_all_option="-Wl,--whole-archive"
3736 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737 llvm_cv_os_type="Linux"
3738 llvm_cv_platform_type="Unix" ;;
3740 llvm_cv_link_all_option="-Wl,--whole-archive"
3741 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3742 llvm_cv_os_type="GNU"
3743 llvm_cv_platform_type="Unix" ;;
3745 llvm_cv_link_all_option="-Wl,-z,allextract"
3746 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3747 llvm_cv_os_type="SunOS"
3748 llvm_cv_platform_type="Unix" ;;
3750 llvm_cv_link_all_option="-Wl,-z,allextract"
3751 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3752 llvm_cv_os_type="AuroraUX"
3753 llvm_cv_platform_type="Unix" ;;
3755 llvm_cv_link_all_option="-Wl,--whole-archive"
3756 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757 llvm_cv_os_type="Win32"
3758 llvm_cv_platform_type="Win32" ;;
3760 llvm_cv_link_all_option="-Wl,--whole-archive"
3761 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762 llvm_cv_os_type="MingW"
3763 llvm_cv_platform_type="Win32" ;;
3765 llvm_cv_link_all_option="-Wl,--whole-archive"
3766 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767 llvm_cv_os_type="Haiku"
3768 llvm_cv_platform_type="Unix" ;;
3770 llvm_cv_link_all_option="-Wl,--whole-archive"
3771 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772 llvm_cv_os_type="Freestanding"
3773 llvm_cv_platform_type="Unix" ;;
3775 llvm_cv_link_all_option="-Wl,--whole-archive"
3776 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3777 llvm_cv_os_type="Freestanding"
3778 llvm_cv_platform_type="Unix" ;;
3780 llvm_cv_link_all_option=""
3781 llvm_cv_no_link_all_option=""
3782 llvm_cv_os_type="Unknown"
3783 llvm_cv_platform_type="Unknown" ;;
3786 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3787 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3789 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3790 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3791 if test "${llvm_cv_target_os_type+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 llvm_cv_target_os_type="AIX" ;;
3798 llvm_cv_target_os_type="IRIX" ;;
3800 llvm_cv_target_os_type="Cygwin" ;;
3802 llvm_cv_target_os_type="Darwin" ;;
3804 llvm_cv_target_os_type="Minix" ;;
3806 llvm_cv_target_os_type="FreeBSD" ;;
3808 llvm_cv_target_os_type="OpenBSD" ;;
3810 llvm_cv_target_os_type="NetBSD" ;;
3812 llvm_cv_target_os_type="DragonFly" ;;
3814 llvm_cv_target_os_type="HP-UX" ;;
3816 llvm_cv_target_os_type="Interix" ;;
3818 llvm_cv_target_os_type="Linux" ;;
3820 llvm_cv_target_os_type="SunOS" ;;
3822 llvm_cv_target_os_type="AuroraUX" ;;
3824 llvm_cv_target_os_type="Win32" ;;
3826 llvm_cv_target_os_type="MingW" ;;
3828 llvm_cv_target_os_type="Haiku" ;;
3830 llvm_cv_target_os_type="RTEMS" ;;
3832 llvm_cv_target_os_type="NativeClient" ;;
3834 llvm_cv_target_os_type="Freestanding" ;;
3836 llvm_cv_target_os_type="Unknown" ;;
3839 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3840 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3842 if test "$llvm_cv_os_type" = "Unknown" ; then
3843 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3844 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3845 { (exit 1); exit 1; }; }
3850 HOST_OS=$llvm_cv_os_type
3852 TARGET_OS=$llvm_cv_target_os_type
3855 LINKALL=$llvm_cv_link_all_option
3857 NOLINKALL=$llvm_cv_no_link_all_option
3860 case $llvm_cv_platform_type in
3863 cat >>confdefs.h <<\_ACEOF
3864 #define LLVM_ON_UNIX 1
3874 cat >>confdefs.h <<\_ACEOF
3875 #define LLVM_ON_WIN32 1
3885 { echo "$as_me:$LINENO: checking target architecture" >&5
3886 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3887 if test "${llvm_cv_target_arch+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 i?86-*) llvm_cv_target_arch="x86" ;;
3892 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3893 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3894 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3895 arm*-*) llvm_cv_target_arch="ARM" ;;
3896 mips-*) llvm_cv_target_arch="Mips" ;;
3897 mipsel-*) llvm_cv_target_arch="Mips" ;;
3898 xcore-*) llvm_cv_target_arch="XCore" ;;
3899 msp430-*) llvm_cv_target_arch="MSP430" ;;
3900 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3901 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3902 ptx-*) llvm_cv_target_arch="PTX" ;;
3903 *) llvm_cv_target_arch="Unknown" ;;
3906 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3907 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3909 if test "$llvm_cv_target_arch" = "Unknown" ; then
3910 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3911 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3914 case "$llvm_cv_target_arch" in
3915 x86) LLVM_NATIVE_ARCH="X86" ;;
3916 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3917 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3920 ARCH=$llvm_cv_target_arch
3925 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3926 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3927 if test "${ac_cv_path_GREP+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 # Extract the first word of "grep ggrep" to use in msg output
3931 if test -z "$GREP"; then
3932 set dummy grep ggrep; ac_prog_name=$2
3933 if test "${ac_cv_path_GREP+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 ac_path_GREP_found=false
3937 # Loop through the user's path and test for each of PROGNAME-LIST
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3942 test -z "$as_dir" && as_dir=.
3943 for ac_prog in grep ggrep; do
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3946 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3947 # Check for GNU ac_path_GREP and select it if it is found.
3948 # Check for GNU $ac_path_GREP
3949 case `"$ac_path_GREP" --version 2>&1` in
3951 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3954 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3957 cat "conftest.in" "conftest.in" >"conftest.tmp"
3958 mv "conftest.tmp" "conftest.in"
3959 cp "conftest.in" "conftest.nl"
3960 echo 'GREP' >> "conftest.nl"
3961 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3963 ac_count=`expr $ac_count + 1`
3964 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3965 # Best one so far, save it but keep looking for a better one
3966 ac_cv_path_GREP="$ac_path_GREP"
3967 ac_path_GREP_max=$ac_count
3969 # 10*(2^10) chars as input seems more than enough
3970 test $ac_count -gt 10 && break
3972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3976 $ac_path_GREP_found && break 3
3986 GREP="$ac_cv_path_GREP"
3987 if test -z "$GREP"; then
3988 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3989 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3990 { (exit 1); exit 1; }; }
3994 ac_cv_path_GREP=$GREP
3999 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4000 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4001 GREP="$ac_cv_path_GREP"
4004 { echo "$as_me:$LINENO: checking for egrep" >&5
4005 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4006 if test "${ac_cv_path_EGREP+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4010 then ac_cv_path_EGREP="$GREP -E"
4012 # Extract the first word of "egrep" to use in msg output
4013 if test -z "$EGREP"; then
4014 set dummy egrep; ac_prog_name=$2
4015 if test "${ac_cv_path_EGREP+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 ac_path_EGREP_found=false
4019 # Loop through the user's path and test for each of PROGNAME-LIST
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024 test -z "$as_dir" && as_dir=.
4025 for ac_prog in egrep; do
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4028 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4029 # Check for GNU ac_path_EGREP and select it if it is found.
4030 # Check for GNU $ac_path_EGREP
4031 case `"$ac_path_EGREP" --version 2>&1` in
4033 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4036 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4039 cat "conftest.in" "conftest.in" >"conftest.tmp"
4040 mv "conftest.tmp" "conftest.in"
4041 cp "conftest.in" "conftest.nl"
4042 echo 'EGREP' >> "conftest.nl"
4043 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045 ac_count=`expr $ac_count + 1`
4046 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4047 # Best one so far, save it but keep looking for a better one
4048 ac_cv_path_EGREP="$ac_path_EGREP"
4049 ac_path_EGREP_max=$ac_count
4051 # 10*(2^10) chars as input seems more than enough
4052 test $ac_count -gt 10 && break
4054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4058 $ac_path_EGREP_found && break 3
4068 EGREP="$ac_cv_path_EGREP"
4069 if test -z "$EGREP"; then
4070 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4071 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4072 { (exit 1); exit 1; }; }
4076 ac_cv_path_EGREP=$EGREP
4082 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4083 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4084 EGREP="$ac_cv_path_EGREP"
4087 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4088 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4089 if test "${ac_cv_header_stdc+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 ac_cv_header_stdc=yes
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 ac_cv_header_stdc=no
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 if test $ac_cv_header_stdc = yes; then
4156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167 $EGREP "memchr" >/dev/null 2>&1; then
4170 ac_cv_header_stdc=no
4176 if test $ac_cv_header_stdc = yes; then
4177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4178 cat >conftest.$ac_ext <<_ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 $EGREP "free" >/dev/null 2>&1; then
4191 ac_cv_header_stdc=no
4197 if test $ac_cv_header_stdc = yes; then
4198 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4199 if test "$cross_compiling" = yes; then
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4210 #if ((' ' & 0x0FF) == 0x020)
4211 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4212 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4214 # define ISLOWER(c) \
4215 (('a' <= (c) && (c) <= 'i') \
4216 || ('j' <= (c) && (c) <= 'r') \
4217 || ('s' <= (c) && (c) <= 'z'))
4218 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4221 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4226 for (i = 0; i < 256; i++)
4227 if (XOR (islower (i), ISLOWER (i))
4228 || toupper (i) != TOUPPER (i))
4233 rm -f conftest$ac_exeext
4234 if { (ac_try="$ac_link"
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_link") 2>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4244 { (case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_try") 2>&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4255 echo "$as_me: program exited with status $ac_status" >&5
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4260 ac_cv_header_stdc=no
4262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4268 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4269 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4270 if test $ac_cv_header_stdc = yes; then
4272 cat >>confdefs.h <<\_ACEOF
4273 #define STDC_HEADERS 1
4278 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4288 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4289 inttypes.h stdint.h unistd.h
4291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4305 #include <$ac_header>
4307 rm -f conftest.$ac_objext
4308 if { (ac_try="$ac_compile"
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_compile") 2>conftest.er1
4316 grep -v '^ *+' conftest.er1 >conftest.err
4318 cat conftest.err >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } &&
4321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4322 { (case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_try") 2>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 eval "$as_ac_Header=yes"
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 eval "$as_ac_Header=no"
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_res=`eval echo '${'$as_ac_Header'}'`
4352 { echo "$as_me:$LINENO: result: $ac_res" >&5
4353 echo "${ECHO_T}$ac_res" >&6; }
4354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4355 cat >>confdefs.h <<_ACEOF
4356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4364 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4365 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4366 if test "${ac_cv_c_bigendian+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 # See if sys/param.h defines the BYTE_ORDER macro.
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 #include <sys/types.h>
4377 #include <sys/param.h>
4382 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4390 rm -f conftest.$ac_objext
4391 if { (ac_try="$ac_compile"
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_compile") 2>conftest.er1
4399 grep -v '^ *+' conftest.er1 >conftest.err
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4405 { (case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_try") 2>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; } &&
4414 { ac_try='test -s conftest.$ac_objext'
4415 { (case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_try") 2>&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 # It does; now see whether it defined to BIG_ENDIAN or not.
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 #include <sys/types.h>
4432 #include <sys/param.h>
4437 #if BYTE_ORDER != BIG_ENDIAN
4445 rm -f conftest.$ac_objext
4446 if { (ac_try="$ac_compile"
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_compile") 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4460 { (case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_try") 2>&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_try") 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_cv_c_bigendian=yes
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 ac_cv_c_bigendian=no
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 # It does not; compile a test program.
4493 if test "$cross_compiling" = yes; then
4494 # try to guess the endianness by grepping values into an object file
4495 ac_cv_c_bigendian=unknown
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4503 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4504 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4505 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4506 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4507 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4511 _ascii (); _ebcdic ();
4516 rm -f conftest.$ac_objext
4517 if { (ac_try="$ac_compile"
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523 (eval "$ac_compile") 2>conftest.er1
4525 grep -v '^ *+' conftest.er1 >conftest.err
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4531 { (case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536 (eval "$ac_try") 2>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_try") 2>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4551 ac_cv_c_bigendian=yes
4553 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4554 if test "$ac_cv_c_bigendian" = unknown; then
4555 ac_cv_c_bigendian=no
4557 # finding both strings is unlikely to happen, but who knows?
4558 ac_cv_c_bigendian=unknown
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 cat >conftest.$ac_ext <<_ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576 $ac_includes_default
4581 /* Are we little or big endian? From Harbison&Steele. */
4585 char c[sizeof (long int)];
4588 return u.c[sizeof (long int) - 1] == 1;
4594 rm -f conftest$ac_exeext
4595 if { (ac_try="$ac_link"
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_link") 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4605 { (case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_cv_c_bigendian=no
4616 echo "$as_me: program exited with status $ac_status" >&5
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4621 ac_cv_c_bigendian=yes
4623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4632 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4633 case $ac_cv_c_bigendian in
4641 { { echo "$as_me:$LINENO: error: unknown endianness
4642 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4643 echo "$as_me: error: unknown endianness
4644 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4645 { (exit 1); exit 1; }; } ;;
4649 if test "$cross_compiling" = yes; then
4650 LLVM_CROSS_COMPILING=1
4653 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4654 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4655 if test "${ac_cv_build_exeext+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4659 ac_cv_build_exeext=.exe
4661 ac_build_prefix=${build_alias}-
4663 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4664 set dummy ${ac_build_prefix}gcc; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 if test -n "$BUILD_CC"; then
4671 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 BUILD_CC=$ac_cv_prog_BUILD_CC
4691 if test -n "$BUILD_CC"; then
4692 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4693 echo "${ECHO_T}$BUILD_CC" >&6; }
4695 { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4700 if test -z "$BUILD_CC"; then
4701 # Extract the first word of "gcc", so it can be a program name with args.
4702 set dummy gcc; ac_word=$2
4703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 if test -n "$BUILD_CC"; then
4709 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4718 ac_cv_prog_BUILD_CC="gcc"
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 BUILD_CC=$ac_cv_prog_BUILD_CC
4729 if test -n "$BUILD_CC"; then
4730 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4731 echo "${ECHO_T}$BUILD_CC" >&6; }
4733 { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4738 if test -z "$BUILD_CC"; then
4739 # Extract the first word of "cc", so it can be a program name with args.
4740 set dummy cc; ac_word=$2
4741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4743 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 if test -n "$BUILD_CC"; then
4747 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4758 ac_prog_rejected=yes
4761 ac_cv_prog_BUILD_CC="cc"
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 if test $ac_prog_rejected = yes; then
4770 # We found a bogon in the path, so make sure we never use it.
4771 set dummy $ac_cv_prog_BUILD_CC
4773 if test $# != 0; then
4774 # We chose a different compiler from the bogus one.
4775 # However, it has the same basename, so the bogon will be chosen
4776 # first if we set BUILD_CC to just the basename; use the full file name.
4778 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4783 BUILD_CC=$ac_cv_prog_BUILD_CC
4784 if test -n "$BUILD_CC"; then
4785 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4786 echo "${ECHO_T}$BUILD_CC" >&6; }
4788 { echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6; }
4795 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4796 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4797 { (exit 1); exit 1; }; }
4798 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4800 echo 'int main () { return 0; }' > conftest.$ac_ext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4803 (eval $ac_build_link) 2>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; then
4807 for file in conftest.*; do
4809 *.c | *.o | *.obj | *.dSYM) ;;
4810 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4814 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4815 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4816 { (exit 1); exit 1; }; }
4819 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4824 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4825 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4826 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4827 ac_build_exeext=$BUILD_EXEEXT
4829 ac_build_prefix=${build_alias}-
4830 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4831 set dummy ${ac_build_prefix}g++; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 if test -n "$BUILD_CXX"; then
4838 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4858 if test -n "$BUILD_CXX"; then
4859 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4860 echo "${ECHO_T}$BUILD_CXX" >&6; }
4862 { echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6; }
4867 if test -z "$BUILD_CXX"; then
4868 # Extract the first word of "g++", so it can be a program name with args.
4869 set dummy g++; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 if test -n "$BUILD_CXX"; then
4876 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_BUILD_CXX="g++"
4886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4896 if test -n "$BUILD_CXX"; then
4897 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4898 echo "${ECHO_T}$BUILD_CXX" >&6; }
4900 { echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6; }
4905 if test -z "$BUILD_CXX"; then
4906 # Extract the first word of "c++", so it can be a program name with args.
4907 set dummy c++; ac_word=$2
4908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4910 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 if test -n "$BUILD_CXX"; then
4914 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4925 ac_prog_rejected=yes
4928 ac_cv_prog_BUILD_CXX="c++"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 if test $ac_prog_rejected = yes; then
4937 # We found a bogon in the path, so make sure we never use it.
4938 set dummy $ac_cv_prog_BUILD_CXX
4940 if test $# != 0; then
4941 # We chose a different compiler from the bogus one.
4942 # However, it has the same basename, so the bogon will be chosen
4943 # first if we set BUILD_CXX to just the basename; use the full file name.
4945 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4950 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4951 if test -n "$BUILD_CXX"; then
4952 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4953 echo "${ECHO_T}$BUILD_CXX" >&6; }
4955 { echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6; }
4963 LLVM_CROSS_COMPILING=0
4967 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4978 # Check whether --enable-libcpp was given.
4979 if test "${enable_libcpp+set}" = set; then
4980 enableval=$enable_libcpp;
4985 case "$enableval" in
4986 yes) ENABLE_LIBCPP=1
4990 default) ENABLE_LIBCPP=0
4992 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4993 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4994 { (exit 1); exit 1; }; } ;;
4997 # Check whether --enable-optimized was given.
4998 if test "${enable_optimized+set}" = set; then
4999 enableval=$enable_optimized;
5004 if test ${enableval} = "no" ; then
5008 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5012 # Check whether --enable-profiling was given.
5013 if test "${enable_profiling+set}" = set; then
5014 enableval=$enable_profiling;
5019 if test ${enableval} = "no" ; then
5023 ENABLE_PROFILING=ENABLE_PROFILING=1
5027 # Check whether --enable-assertions was given.
5028 if test "${enable_assertions+set}" = set; then
5029 enableval=$enable_assertions;
5034 if test ${enableval} = "yes" ; then
5038 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5042 # Check whether --enable-expensive-checks was given.
5043 if test "${enable_expensive_checks+set}" = set; then
5044 enableval=$enable_expensive_checks;
5049 if test ${enableval} = "yes" ; then
5050 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5052 EXPENSIVE_CHECKS=yes
5055 ENABLE_EXPENSIVE_CHECKS=
5061 # Check whether --enable-debug-runtime was given.
5062 if test "${enable_debug_runtime+set}" = set; then
5063 enableval=$enable_debug_runtime;
5068 if test ${enableval} = "no" ; then
5072 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5076 # Check whether --enable-debug-symbols was given.
5077 if test "${enable_debug_symbols+set}" = set; then
5078 enableval=$enable_debug_symbols;
5083 if test ${enableval} = "no" ; then
5087 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5091 # Check whether --enable-jit was given.
5092 if test "${enable_jit+set}" = set; then
5093 enableval=$enable_jit;
5098 if test ${enableval} = "no"
5103 case "$llvm_cv_target_arch" in
5104 x86) TARGET_HAS_JIT=1
5106 Sparc) TARGET_HAS_JIT=0
5108 PowerPC) TARGET_HAS_JIT=1
5110 x86_64) TARGET_HAS_JIT=1
5112 ARM) TARGET_HAS_JIT=1
5114 Mips) TARGET_HAS_JIT=1
5116 XCore) TARGET_HAS_JIT=0
5118 MSP430) TARGET_HAS_JIT=0
5120 Hexagon) TARGET_HAS_JIT=0
5122 MBlaze) TARGET_HAS_JIT=0
5124 PTX) TARGET_HAS_JIT=0
5131 # Check whether --enable-docs was given.
5132 if test "${enable_docs+set}" = set; then
5133 enableval=$enable_docs;
5138 case "$enableval" in
5143 default) ENABLE_DOCS=1
5145 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5147 { (exit 1); exit 1; }; } ;;
5150 # Check whether --enable-doxygen was given.
5151 if test "${enable_doxygen+set}" = set; then
5152 enableval=$enable_doxygen;
5157 case "$enableval" in
5158 yes) ENABLE_DOXYGEN=1
5160 no) ENABLE_DOXYGEN=0
5162 default) ENABLE_DOXYGEN=0
5164 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5165 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5166 { (exit 1); exit 1; }; } ;;
5169 # Check whether --enable-threads was given.
5170 if test "${enable_threads+set}" = set; then
5171 enableval=$enable_threads;
5176 case "$enableval" in
5177 yes) LLVM_ENABLE_THREADS=1
5179 no) LLVM_ENABLE_THREADS=0
5181 default) LLVM_ENABLE_THREADS=1
5183 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5185 { (exit 1); exit 1; }; } ;;
5188 cat >>confdefs.h <<_ACEOF
5189 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5193 # Check whether --enable-pthreads was given.
5194 if test "${enable_pthreads+set}" = set; then
5195 enableval=$enable_pthreads;
5200 case "$enableval" in
5201 yes) ENABLE_PTHREADS=1
5203 no) ENABLE_PTHREADS=0
5205 default) ENABLE_PTHREADS=1
5207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
5212 # Check whether --enable-pic was given.
5213 if test "${enable_pic+set}" = set; then
5214 enableval=$enable_pic;
5219 case "$enableval" in
5224 default) ENABLE_PIC=1
5226 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5227 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5228 { (exit 1); exit 1; }; } ;;
5231 cat >>confdefs.h <<_ACEOF
5232 #define ENABLE_PIC $ENABLE_PIC
5236 # Check whether --enable-shared was given.
5237 if test "${enable_shared+set}" = set; then
5238 enableval=$enable_shared;
5243 case "$enableval" in
5244 yes) ENABLE_SHARED=1
5248 default) ENABLE_SHARED=0
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5255 # Check whether --enable-embed-stdcxx was given.
5256 if test "${enable_embed_stdcxx+set}" = set; then
5257 enableval=$enable_embed_stdcxx;
5262 case "$enableval" in
5263 yes) ENABLE_EMBED_STDCXX=1
5265 no) ENABLE_EMBED_STDCXX=0
5267 default) ENABLE_EMBED_STDCXX=0
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 # Check whether --enable-timestamps was given.
5275 if test "${enable_timestamps+set}" = set; then
5276 enableval=$enable_timestamps;
5281 case "$enableval" in
5282 yes) ENABLE_TIMESTAMPS=1
5284 no) ENABLE_TIMESTAMPS=0
5286 default) ENABLE_TIMESTAMPS=1
5288 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5289 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5290 { (exit 1); exit 1; }; } ;;
5293 cat >>confdefs.h <<_ACEOF
5294 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5299 # Check whether --enable-targets was given.
5300 if test "${enable_targets+set}" = set; then
5301 enableval=$enable_targets;
5306 if test "$enableval" = host-only ; then
5309 case "$enableval" in
5310 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX Hexagon" ;;
5311 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5313 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5314 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5315 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5316 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5317 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5318 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5319 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5320 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5321 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5322 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5323 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5324 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5325 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5326 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5327 host) case "$llvm_cv_target_arch" in
5328 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5331 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5332 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5333 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5335 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5336 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5338 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5339 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5340 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5341 echo "$as_me: error: Can not set target to build" >&2;}
5342 { (exit 1); exit 1; }; } ;;
5344 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5345 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5346 { (exit 1); exit 1; }; } ;;
5351 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5354 for a_target in $TARGETS_TO_BUILD; do
5355 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5357 cat >>confdefs.h <<_ACEOF
5358 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5361 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5362 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5363 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5364 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5365 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5366 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5369 cat >>confdefs.h <<_ACEOF
5370 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5374 cat >>confdefs.h <<_ACEOF
5375 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5384 cat >>confdefs.h <<_ACEOF
5385 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5388 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5398 LLVM_ENUM_TARGETS=""
5399 LLVM_ENUM_ASM_PRINTERS=""
5400 LLVM_ENUM_ASM_PARSERS=""
5401 LLVM_ENUM_DISASSEMBLERS=""
5402 for target_to_build in $TARGETS_TO_BUILD; do
5403 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5404 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5405 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5407 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5408 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5410 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5411 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5420 # Check whether --with-optimize-option was given.
5421 if test "${with_optimize_option+set}" = set; then
5422 withval=$with_optimize_option;
5427 { echo "$as_me:$LINENO: checking optimization flags" >&5
5428 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5431 case "$llvm_cv_os_type" in
5432 FreeBSD) optimize_option=-O2 ;;
5433 MingW) optimize_option=-O2 ;;
5434 *) optimize_option=-O3 ;;
5436 *) optimize_option="$withval" ;;
5438 OPTIMIZE_OPTION=$optimize_option
5440 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5441 echo "${ECHO_T}$optimize_option" >&6; }
5444 # Check whether --with-extra-options was given.
5445 if test "${with_extra_options+set}" = set; then
5446 withval=$with_extra_options;
5452 default) EXTRA_OPTIONS= ;;
5453 *) EXTRA_OPTIONS=$withval ;;
5455 EXTRA_OPTIONS=$EXTRA_OPTIONS
5459 # Check whether --with-extra-ld-options was given.
5460 if test "${with_extra_ld_options+set}" = set; then
5461 withval=$with_extra_ld_options;
5467 default) EXTRA_LD_OPTIONS= ;;
5468 *) EXTRA_LD_OPTIONS=$withval ;;
5470 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5473 # Check whether --enable-bindings was given.
5474 if test "${enable_bindings+set}" = set; then
5475 enableval=$enable_bindings;
5480 BINDINGS_TO_BUILD=""
5481 case "$enableval" in
5482 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5483 all ) BINDINGS_TO_BUILD="ocaml" ;;
5484 none | no) BINDINGS_TO_BUILD="" ;;
5485 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5486 case "$a_binding" in
5487 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5488 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5489 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5490 { (exit 1); exit 1; }; } ;;
5497 # Check whether --with-ocaml-libdir was given.
5498 if test "${with_ocaml_libdir+set}" = set; then
5499 withval=$with_ocaml_libdir;
5505 auto) with_ocaml_libdir="$withval" ;;
5506 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5507 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5508 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5509 { (exit 1); exit 1; }; } ;;
5513 # Check whether --with-clang-srcdir was given.
5514 if test "${with_clang_srcdir+set}" = set; then
5515 withval=$with_clang_srcdir;
5521 -) clang_src_root="" ;;
5522 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5523 *) clang_src_root="$ac_pwd/$withval" ;;
5525 CLANG_SRC_ROOT=$clang_src_root
5529 # Check whether --with-clang-resource-dir was given.
5530 if test "${with_clang_resource_dir+set}" = set; then
5531 withval=$with_clang_resource_dir;
5537 cat >>confdefs.h <<_ACEOF
5538 #define CLANG_RESOURCE_DIR "$withval"
5543 # Check whether --with-c-include-dirs was given.
5544 if test "${with_c_include_dirs+set}" = set; then
5545 withval=$with_c_include_dirs;
5551 cat >>confdefs.h <<_ACEOF
5552 #define C_INCLUDE_DIRS "$withval"
5556 # Clang normally uses the system c++ headers and libraries. With this option,
5557 # clang will use the ones provided by a gcc installation instead. This option should
5558 # be passed the same value that was used with --prefix when configuring gcc.
5560 # Check whether --with-gcc-toolchain was given.
5561 if test "${with_gcc_toolchain+set}" = set; then
5562 withval=$with_gcc_toolchain;
5568 cat >>confdefs.h <<_ACEOF
5569 #define GCC_INSTALL_PREFIX "$withval"
5574 # Check whether --with-binutils-include was given.
5575 if test "${with_binutils_include+set}" = set; then
5576 withval=$with_binutils_include;
5582 default) WITH_BINUTILS_INCDIR=default ;;
5583 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5584 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5585 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5586 { (exit 1); exit 1; }; } ;;
5588 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5589 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5591 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5592 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5593 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5594 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5595 { (exit 1); exit 1; }; };
5600 # Check whether --with-bug-report-url was given.
5601 if test "${with_bug_report_url+set}" = set; then
5602 withval=$with_bug_report_url;
5604 withval="http://llvm.org/bugs/"
5608 cat >>confdefs.h <<_ACEOF
5609 #define BUG_REPORT_URL "$withval"
5613 # Check whether --enable-libffi was given.
5614 if test "${enable_libffi+set}" = set; then
5615 enableval=$enable_libffi; case "$enableval" in
5616 yes) llvm_cv_enable_libffi="yes" ;;
5617 no) llvm_cv_enable_libffi="no" ;;
5618 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5619 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5620 { (exit 1); exit 1; }; } ;;
5623 llvm_cv_enable_libffi=no
5628 # Check whether --with-internal-prefix was given.
5629 if test "${with_internal_prefix+set}" = set; then
5630 withval=$with_internal_prefix;
5635 INTERNAL_PREFIX=$withval
5639 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5640 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5641 if test "${lt_cv_path_NM+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 if test -n "$NM"; then
5645 # Let the user override the test.
5648 lt_nm_to_check="${ac_tool_prefix}nm"
5649 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5650 lt_nm_to_check="$lt_nm_to_check nm"
5652 for lt_tmp_nm in $lt_nm_to_check; do
5653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5654 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5656 test -z "$ac_dir" && ac_dir=.
5657 tmp_nm="$ac_dir/$lt_tmp_nm"
5658 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5659 # Check to see if the nm accepts a BSD-compat flag.
5660 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5661 # nm: unknown option "B" ignored
5662 # Tru64's nm complains that /dev/null is an invalid object file
5663 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5664 */dev/null* | *'Invalid file or object type'*)
5665 lt_cv_path_NM="$tmp_nm -B"
5669 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5671 lt_cv_path_NM="$tmp_nm -p"
5675 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5676 continue # so that we can try to find one that supports BSD flags
5685 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5688 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5689 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5694 { echo "$as_me:$LINENO: checking for GNU make" >&5
5695 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5696 if test "${llvm_cv_gnu_make_command+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 llvm_cv_gnu_make_command=''
5700 for a in "$MAKE" make gmake gnumake ; do
5701 if test -z "$a" ; then continue ; fi ;
5702 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5704 llvm_cv_gnu_make_command=$a ;
5709 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5710 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5711 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5715 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5716 echo "${ECHO_T}\"Not found\"" >&6; };
5720 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5721 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5723 if test "$LN_S" = "ln -s"; then
5724 { echo "$as_me:$LINENO: result: yes" >&5
5725 echo "${ECHO_T}yes" >&6; }
5727 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5728 echo "${ECHO_T}no, using $LN_S" >&6; }
5731 # Extract the first word of "cmp", so it can be a program name with args.
5732 set dummy cmp; ac_word=$2
5733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5735 if test "${ac_cv_path_CMP+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5763 if test -n "$CMP"; then
5764 { echo "$as_me:$LINENO: result: $CMP" >&5
5765 echo "${ECHO_T}$CMP" >&6; }
5767 { echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6; }
5772 # Extract the first word of "cp", so it can be a program name with args.
5773 set dummy cp; ac_word=$2
5774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5776 if test "${ac_cv_path_CP+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5791 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5804 if test -n "$CP"; then
5805 { echo "$as_me:$LINENO: result: $CP" >&5
5806 echo "${ECHO_T}$CP" >&6; }
5808 { echo "$as_me:$LINENO: result: no" >&5
5809 echo "${ECHO_T}no" >&6; }
5813 # Extract the first word of "date", so it can be a program name with args.
5814 set dummy date; ac_word=$2
5815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817 if test "${ac_cv_path_DATE+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5844 DATE=$ac_cv_path_DATE
5845 if test -n "$DATE"; then
5846 { echo "$as_me:$LINENO: result: $DATE" >&5
5847 echo "${ECHO_T}$DATE" >&6; }
5849 { echo "$as_me:$LINENO: result: no" >&5
5850 echo "${ECHO_T}no" >&6; }
5854 # Extract the first word of "find", so it can be a program name with args.
5855 set dummy find; ac_word=$2
5856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858 if test "${ac_cv_path_FIND+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5885 FIND=$ac_cv_path_FIND
5886 if test -n "$FIND"; then
5887 { echo "$as_me:$LINENO: result: $FIND" >&5
5888 echo "${ECHO_T}$FIND" >&6; }
5890 { echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6; }
5895 # Extract the first word of "grep", so it can be a program name with args.
5896 set dummy grep; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_path_GREP+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5926 GREP=$ac_cv_path_GREP
5927 if test -n "$GREP"; then
5928 { echo "$as_me:$LINENO: result: $GREP" >&5
5929 echo "${ECHO_T}$GREP" >&6; }
5931 { echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6; }
5936 # Extract the first word of "mkdir", so it can be a program name with args.
5937 set dummy mkdir; ac_word=$2
5938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5940 if test "${ac_cv_path_MKDIR+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5955 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5967 MKDIR=$ac_cv_path_MKDIR
5968 if test -n "$MKDIR"; then
5969 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5970 echo "${ECHO_T}$MKDIR" >&6; }
5972 { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5977 # Extract the first word of "mv", so it can be a program name with args.
5978 set dummy mv; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_path_MV+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6009 if test -n "$MV"; then
6010 { echo "$as_me:$LINENO: result: $MV" >&5
6011 echo "${ECHO_T}$MV" >&6; }
6013 { echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6; }
6018 if test -n "$ac_tool_prefix"; then
6019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6020 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6023 if test "${ac_cv_prog_RANLIB+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 if test -n "$RANLIB"; then
6027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 RANLIB=$ac_cv_prog_RANLIB
6047 if test -n "$RANLIB"; then
6048 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6049 echo "${ECHO_T}$RANLIB" >&6; }
6051 { echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6; }
6057 if test -z "$ac_cv_prog_RANLIB"; then
6058 ac_ct_RANLIB=$RANLIB
6059 # Extract the first word of "ranlib", so it can be a program name with args.
6060 set dummy ranlib; ac_word=$2
6061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6063 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 if test -n "$ac_ct_RANLIB"; then
6067 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_prog_ac_ct_RANLIB="ranlib"
6077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6087 if test -n "$ac_ct_RANLIB"; then
6088 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6089 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6091 { echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6; }
6095 if test "x$ac_ct_RANLIB" = x; then
6098 case $cross_compiling:$ac_tool_warned in
6100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6101 whose name does not start with the host triplet. If you think this
6102 configuration is useful to you, please write to autoconf@gnu.org." >&5
6103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6104 whose name does not start with the host triplet. If you think this
6105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6106 ac_tool_warned=yes ;;
6108 RANLIB=$ac_ct_RANLIB
6111 RANLIB="$ac_cv_prog_RANLIB"
6114 if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6116 set dummy ${ac_tool_prefix}ar; ac_word=$2
6117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6119 if test "${ac_cv_prog_AR+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 if test -n "$AR"; then
6123 ac_cv_prog_AR="$AR" # Let the user override the test.
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_AR="${ac_tool_prefix}ar"
6133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 if test -n "$AR"; then
6144 { echo "$as_me:$LINENO: result: $AR" >&5
6145 echo "${ECHO_T}$AR" >&6; }
6147 { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6153 if test -z "$ac_cv_prog_AR"; then
6155 # Extract the first word of "ar", so it can be a program name with args.
6156 set dummy ar; ac_word=$2
6157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6159 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 if test -n "$ac_ct_AR"; then
6163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6172 ac_cv_prog_ac_ct_AR="ar"
6173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6183 if test -n "$ac_ct_AR"; then
6184 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6185 echo "${ECHO_T}$ac_ct_AR" >&6; }
6187 { echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6; }
6191 if test "x$ac_ct_AR" = x; then
6194 case $cross_compiling:$ac_tool_warned in
6196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6197 whose name does not start with the host triplet. If you think this
6198 configuration is useful to you, please write to autoconf@gnu.org." >&5
6199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6200 whose name does not start with the host triplet. If you think this
6201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6202 ac_tool_warned=yes ;;
6210 # Extract the first word of "rm", so it can be a program name with args.
6211 set dummy rm; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_path_RM+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6242 if test -n "$RM"; then
6243 { echo "$as_me:$LINENO: result: $RM" >&5
6244 echo "${ECHO_T}$RM" >&6; }
6246 { echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6; }
6251 # Extract the first word of "sed", so it can be a program name with args.
6252 set dummy sed; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_path_SED+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6283 if test -n "$SED"; then
6284 { echo "$as_me:$LINENO: result: $SED" >&5
6285 echo "${ECHO_T}$SED" >&6; }
6287 { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6292 # Extract the first word of "tar", so it can be a program name with args.
6293 set dummy tar; ac_word=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_path_TAR+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6324 if test -n "$TAR"; then
6325 { echo "$as_me:$LINENO: result: $TAR" >&5
6326 echo "${ECHO_T}$TAR" >&6; }
6328 { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6333 # Extract the first word of "pwd", so it can be a program name with args.
6334 set dummy pwd; ac_word=$2
6335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337 if test "${ac_cv_path_BINPWD+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6352 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6364 BINPWD=$ac_cv_path_BINPWD
6365 if test -n "$BINPWD"; then
6366 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6367 echo "${ECHO_T}$BINPWD" >&6; }
6369 { echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6; }
6375 # Extract the first word of "Graphviz", so it can be a program name with args.
6376 set dummy Graphviz; ac_word=$2
6377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6379 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6406 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6407 if test -n "$GRAPHVIZ"; then
6408 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6409 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6411 { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6416 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6418 cat >>confdefs.h <<\_ACEOF
6419 #define HAVE_GRAPHVIZ 1
6422 if test "$llvm_cv_os_type" = "MingW" ; then
6423 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6426 cat >>confdefs.h <<_ACEOF
6427 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6431 # Extract the first word of "dot", so it can be a program name with args.
6432 set dummy dot; ac_word=$2
6433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435 if test "${ac_cv_path_DOT+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6463 if test -n "$DOT"; then
6464 { echo "$as_me:$LINENO: result: $DOT" >&5
6465 echo "${ECHO_T}$DOT" >&6; }
6467 { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6472 if test "$DOT" != "echo dot" ; then
6474 cat >>confdefs.h <<\_ACEOF
6478 if test "$llvm_cv_os_type" = "MingW" ; then
6479 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6482 cat >>confdefs.h <<_ACEOF
6483 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6487 # Extract the first word of "fdp", so it can be a program name with args.
6488 set dummy fdp; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_path_FDP+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6519 if test -n "$FDP"; then
6520 { echo "$as_me:$LINENO: result: $FDP" >&5
6521 echo "${ECHO_T}$FDP" >&6; }
6523 { echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6; }
6528 if test "$FDP" != "echo fdp" ; then
6530 cat >>confdefs.h <<\_ACEOF
6534 if test "$llvm_cv_os_type" = "MingW" ; then
6535 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6538 cat >>confdefs.h <<_ACEOF
6539 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6543 # Extract the first word of "neato", so it can be a program name with args.
6544 set dummy neato; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_path_NEATO+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6562 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6574 NEATO=$ac_cv_path_NEATO
6575 if test -n "$NEATO"; then
6576 { echo "$as_me:$LINENO: result: $NEATO" >&5
6577 echo "${ECHO_T}$NEATO" >&6; }
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6584 if test "$NEATO" != "echo neato" ; then
6586 cat >>confdefs.h <<\_ACEOF
6587 #define HAVE_NEATO 1
6590 if test "$llvm_cv_os_type" = "MingW" ; then
6591 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6594 cat >>confdefs.h <<_ACEOF
6595 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6599 # Extract the first word of "twopi", so it can be a program name with args.
6600 set dummy twopi; ac_word=$2
6601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603 if test "${ac_cv_path_TWOPI+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6630 TWOPI=$ac_cv_path_TWOPI
6631 if test -n "$TWOPI"; then
6632 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6633 echo "${ECHO_T}$TWOPI" >&6; }
6635 { echo "$as_me:$LINENO: result: no" >&5
6636 echo "${ECHO_T}no" >&6; }
6640 if test "$TWOPI" != "echo twopi" ; then
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_TWOPI 1
6646 if test "$llvm_cv_os_type" = "MingW" ; then
6647 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6650 cat >>confdefs.h <<_ACEOF
6651 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6655 # Extract the first word of "circo", so it can be a program name with args.
6656 set dummy circo; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_CIRCO+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6686 CIRCO=$ac_cv_path_CIRCO
6687 if test -n "$CIRCO"; then
6688 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6689 echo "${ECHO_T}$CIRCO" >&6; }
6691 { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6696 if test "$CIRCO" != "echo circo" ; then
6698 cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_CIRCO 1
6702 if test "$llvm_cv_os_type" = "MingW" ; then
6703 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6706 cat >>confdefs.h <<_ACEOF
6707 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6711 for ac_prog in gv gsview32
6713 # Extract the first word of "$ac_prog", so it can be a program name with args.
6714 set dummy $ac_prog; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_path_GV+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 if test -n "$GV"; then
6745 { echo "$as_me:$LINENO: result: $GV" >&5
6746 echo "${ECHO_T}$GV" >&6; }
6748 { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6753 test -n "$GV" && break
6755 test -n "$GV" || GV="echo gv"
6757 if test "$GV" != "echo gv" ; then
6759 cat >>confdefs.h <<\_ACEOF
6763 if test "$llvm_cv_os_type" = "MingW" ; then
6764 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6767 cat >>confdefs.h <<_ACEOF
6768 #define LLVM_PATH_GV "$GV${EXEEXT}"
6772 # Extract the first word of "dotty", so it can be a program name with args.
6773 set dummy dotty; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_DOTTY+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6803 DOTTY=$ac_cv_path_DOTTY
6804 if test -n "$DOTTY"; then
6805 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6806 echo "${ECHO_T}$DOTTY" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 if test "$DOTTY" != "echo dotty" ; then
6815 cat >>confdefs.h <<\_ACEOF
6816 #define HAVE_DOTTY 1
6819 if test "$llvm_cv_os_type" = "MingW" ; then
6820 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6823 cat >>confdefs.h <<_ACEOF
6824 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6828 # Extract the first word of "xdot.py", so it can be a program name with args.
6829 set dummy xdot.py; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6859 XDOT_PY=$ac_cv_path_XDOT_PY
6860 if test -n "$XDOT_PY"; then
6861 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6862 echo "${ECHO_T}$XDOT_PY" >&6; }
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6869 if test "$XDOT_PY" != "echo xdot.py" ; then
6871 cat >>confdefs.h <<\_ACEOF
6872 #define HAVE_XDOT_PY 1
6875 if test "$llvm_cv_os_type" = "MingW" ; then
6876 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6879 cat >>confdefs.h <<_ACEOF
6880 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6885 # Find a good install program. We prefer a C program (faster),
6886 # so one script is as good as another. But avoid the broken or
6887 # incompatible versions:
6888 # SysV /etc/install, /usr/sbin/install
6889 # SunOS /usr/etc/install
6890 # IRIX /sbin/install
6892 # AmigaOS /C/install, which installs bootblocks on floppy discs
6893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6896 # OS/2's system install, which has a completely different semantic
6897 # ./install, which can be erroneously created by make from ./install.sh.
6898 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6899 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6900 if test -z "$INSTALL"; then
6901 if test "${ac_cv_path_install+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 # Account for people who put trailing slashes in PATH elements.
6911 ./ | .// | /cC/* | \
6912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6913 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6916 # OSF1 and SCO ODT 3.0 have their own names for install.
6917 # Don't use installbsd from OSF since it installs stuff as root
6919 for ac_prog in ginstall scoinst install; do
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6922 if test $ac_prog = install &&
6923 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6924 # AIX install. It has an incompatible calling convention.
6926 elif test $ac_prog = install &&
6927 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6928 # program-specific install script used by HP pwplus--don't use.
6931 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6944 if test "${ac_cv_path_install+set}" = set; then
6945 INSTALL=$ac_cv_path_install
6947 # As a last resort, use the slow shell script. Don't cache a
6948 # value for INSTALL within a source directory, because that will
6949 # break other packages using the cache if that directory is
6950 # removed, or if the value is a relative name.
6951 INSTALL=$ac_install_sh
6954 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6955 echo "${ECHO_T}$INSTALL" >&6; }
6957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6958 # It thinks the first close brace ends the variable substitution.
6959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6966 [\\/$]* | ?:[\\/]* ) ;;
6967 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6970 # Extract the first word of "bzip2", so it can be a program name with args.
6971 set dummy bzip2; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_BZIP2+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 BZIP2=$ac_cv_path_BZIP2
7001 if test -n "$BZIP2"; then
7002 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7003 echo "${ECHO_T}$BZIP2" >&6; }
7005 { echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6; }
7010 # Extract the first word of "cat", so it can be a program name with args.
7011 set dummy cat; ac_word=$2
7012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7014 if test "${ac_cv_path_CAT+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 if test -n "$CAT"; then
7042 { echo "$as_me:$LINENO: result: $CAT" >&5
7043 echo "${ECHO_T}$CAT" >&6; }
7045 { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7050 # Extract the first word of "doxygen", so it can be a program name with args.
7051 set dummy doxygen; ac_word=$2
7052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 DOXYGEN=$ac_cv_path_DOXYGEN
7081 if test -n "$DOXYGEN"; then
7082 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7083 echo "${ECHO_T}$DOXYGEN" >&6; }
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7090 # Extract the first word of "groff", so it can be a program name with args.
7091 set dummy groff; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_path_GROFF+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 GROFF=$ac_cv_path_GROFF
7121 if test -n "$GROFF"; then
7122 { echo "$as_me:$LINENO: result: $GROFF" >&5
7123 echo "${ECHO_T}$GROFF" >&6; }
7125 { echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6; }
7130 # Extract the first word of "gzip", so it can be a program name with args.
7131 set dummy gzip; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 GZIPBIN=$ac_cv_path_GZIPBIN
7161 if test -n "$GZIPBIN"; then
7162 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7163 echo "${ECHO_T}$GZIPBIN" >&6; }
7165 { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7170 # Extract the first word of "pod2html", so it can be a program name with args.
7171 set dummy pod2html; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_path_POD2HTML+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 POD2HTML=$ac_cv_path_POD2HTML
7201 if test -n "$POD2HTML"; then
7202 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7203 echo "${ECHO_T}$POD2HTML" >&6; }
7205 { echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6; }
7210 # Extract the first word of "pod2man", so it can be a program name with args.
7211 set dummy pod2man; ac_word=$2
7212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214 if test "${ac_cv_path_POD2MAN+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7229 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 POD2MAN=$ac_cv_path_POD2MAN
7241 if test -n "$POD2MAN"; then
7242 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7243 echo "${ECHO_T}$POD2MAN" >&6; }
7245 { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7250 # Extract the first word of "pdfroff", so it can be a program name with args.
7251 set dummy pdfroff; ac_word=$2
7252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7254 if test "${ac_cv_path_PDFROFF+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7269 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 PDFROFF=$ac_cv_path_PDFROFF
7281 if test -n "$PDFROFF"; then
7282 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7283 echo "${ECHO_T}$PDFROFF" >&6; }
7285 { echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6; }
7290 # Extract the first word of "runtest", so it can be a program name with args.
7291 set dummy runtest; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_path_RUNTEST+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 RUNTEST=$ac_cv_path_RUNTEST
7321 if test -n "$RUNTEST"; then
7322 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7323 echo "${ECHO_T}$RUNTEST" >&6; }
7325 { echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6; }
7332 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7333 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7335 # Check whether --with-tclinclude was given.
7336 if test "${with_tclinclude+set}" = set; then
7337 withval=$with_tclinclude; with_tclinclude=${withval}
7342 if test "${ac_cv_path_tclsh+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 if test x"${with_tclinclude}" != x ; then
7347 if test -f ${with_tclinclude}/tclsh ; then
7348 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7349 elif test -f ${with_tclinclude}/src/tclsh ; then
7350 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7352 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7353 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7354 { (exit 1); exit 1; }; }
7360 if test x"${ac_cv_path_tclsh}" = x ; then
7361 { echo "$as_me:$LINENO: result: none" >&5
7362 echo "${ECHO_T}none" >&6; }
7363 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
7365 # Extract the first word of "$ac_prog", so it can be a program name with args.
7366 set dummy $ac_prog; ac_word=$2
7367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369 if test "${ac_cv_path_TCLSH+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 TCLSH=$ac_cv_path_TCLSH
7396 if test -n "$TCLSH"; then
7397 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7398 echo "${ECHO_T}$TCLSH" >&6; }
7400 { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7405 test -n "$TCLSH" && break
7408 if test x"${TCLSH}" = x ; then
7409 ac_cv_path_tclsh='';
7411 ac_cv_path_tclsh="${TCLSH}";
7414 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7415 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7416 TCLSH="${ac_cv_path_tclsh}"
7420 # Extract the first word of "zip", so it can be a program name with args.
7421 set dummy zip; ac_word=$2
7422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7424 if test "${ac_cv_path_ZIP+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 if test -n "$ZIP"; then
7452 { echo "$as_me:$LINENO: result: $ZIP" >&5
7453 echo "${ECHO_T}$ZIP" >&6; }
7455 { echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6; }
7460 for ac_prog in ocamlc
7462 # Extract the first word of "$ac_prog", so it can be a program name with args.
7463 set dummy $ac_prog; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_OCAMLC+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 OCAMLC=$ac_cv_path_OCAMLC
7493 if test -n "$OCAMLC"; then
7494 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7495 echo "${ECHO_T}$OCAMLC" >&6; }
7497 { echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6; }
7502 test -n "$OCAMLC" && break
7505 for ac_prog in ocamlopt
7507 # Extract the first word of "$ac_prog", so it can be a program name with args.
7508 set dummy $ac_prog; ac_word=$2
7509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 OCAMLOPT=$ac_cv_path_OCAMLOPT
7538 if test -n "$OCAMLOPT"; then
7539 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7540 echo "${ECHO_T}$OCAMLOPT" >&6; }
7542 { echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6; }
7547 test -n "$OCAMLOPT" && break
7550 for ac_prog in ocamldep
7552 # Extract the first word of "$ac_prog", so it can be a program name with args.
7553 set dummy $ac_prog; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 OCAMLDEP=$ac_cv_path_OCAMLDEP
7583 if test -n "$OCAMLDEP"; then
7584 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7585 echo "${ECHO_T}$OCAMLDEP" >&6; }
7587 { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7592 test -n "$OCAMLDEP" && break
7595 for ac_prog in ocamldoc
7597 # Extract the first word of "$ac_prog", so it can be a program name with args.
7598 set dummy $ac_prog; ac_word=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 OCAMLDOC=$ac_cv_path_OCAMLDOC
7628 if test -n "$OCAMLDOC"; then
7629 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7630 echo "${ECHO_T}$OCAMLDOC" >&6; }
7632 { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7637 test -n "$OCAMLDOC" && break
7640 for ac_prog in gas as
7642 # Extract the first word of "$ac_prog", so it can be a program name with args.
7643 set dummy $ac_prog; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_GAS+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 if test -n "$GAS"; then
7674 { echo "$as_me:$LINENO: result: $GAS" >&5
7675 echo "${ECHO_T}$GAS" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7682 test -n "$GAS" && break
7686 { echo "$as_me:$LINENO: checking for linker version" >&5
7687 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7688 if test "${llvm_cv_link_version+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 version_string="$(ld -v 2>&1 | head -1)"
7695 if (echo "$version_string" | grep -q "ld64"); then
7696 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7698 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7702 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7703 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7705 cat >>confdefs.h <<_ACEOF
7706 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7711 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7712 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7713 if test "${llvm_cv_link_use_r+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 ac_cpp='$CPP $CPPFLAGS'
7718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723 CFLAGS="$CFLAGS -Wl,-R."
7724 cat >conftest.$ac_ext <<_ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (ac_try="$ac_link"
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_link") 2>conftest.er1
7748 grep -v '^ *+' conftest.er1 >conftest.err
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7754 { (case "(($ac_try" in
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_try") 2>&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest$ac_exeext'
7764 { (case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_try") 2>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 llvm_cv_link_use_r=yes
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 llvm_cv_link_use_r=no
7781 rm -f core conftest.err conftest.$ac_objext \
7782 conftest$ac_exeext conftest.$ac_ext
7785 ac_cpp='$CPP $CPPFLAGS'
7786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7792 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7793 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7794 if test "$llvm_cv_link_use_r" = yes ; then
7796 cat >>confdefs.h <<\_ACEOF
7797 #define HAVE_LINK_R 1
7803 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7804 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7805 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 ac_cpp='$CPP $CPPFLAGS'
7810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7815 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7816 cat >conftest.$ac_ext <<_ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (ac_try="$ac_link"
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_link") 2>conftest.er1
7840 grep -v '^ *+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7846 { (case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_try") 2>&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; } &&
7855 { ac_try='test -s conftest$ac_exeext'
7856 { (case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_try") 2>&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7865 llvm_cv_link_use_export_dynamic=yes
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 llvm_cv_link_use_export_dynamic=no
7873 rm -f core conftest.err conftest.$ac_objext \
7874 conftest$ac_exeext conftest.$ac_ext
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7885 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7886 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7888 cat >>confdefs.h <<\_ACEOF
7889 #define HAVE_LINK_EXPORT_DYNAMIC 1
7895 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7896 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7897 if test "${llvm_cv_link_use_version_script+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7908 # The following code is from the autoconf manual,
7909 # "11.13: Limitations of Usual Tools".
7910 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7911 # Use mktemp if possible; otherwise fall back on mkdir,
7912 # with $RANDOM to make collisions less likely.
7916 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7918 test -n "$tmp" && test -d "$tmp"
7920 tmp=$TMPDIR/foo$$-$RANDOM
7921 (umask 077 && mkdir "$tmp")
7924 echo "{" > "$tmp/export.map"
7925 echo " global: main;" >> "$tmp/export.map"
7926 echo " local: *;" >> "$tmp/export.map"
7927 echo "};" >> "$tmp/export.map"
7929 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7945 rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_link") 2>conftest.er1
7954 grep -v '^ *+' conftest.er1 >conftest.err
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7960 { (case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_try") 2>&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_try") 2>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 llvm_cv_link_use_version_script=yes
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7984 llvm_cv_link_use_version_script=no
7987 rm -f core conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7989 rm "$tmp/export.map"
7993 ac_cpp='$CPP $CPPFLAGS'
7994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8001 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8002 if test "$llvm_cv_link_use_version_script" = yes ; then
8003 HAVE_LINK_VERSION_SCRIPT=1
8010 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8011 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8012 if test "${ac_cv_c_const+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8025 /* FIXME: Include the comments suggested by Paul. */
8027 /* Ultrix mips cc rejects this. */
8028 typedef int charset[2];
8030 /* SunOS 4.1.1 cc rejects this. */
8031 char const *const *ccp;
8033 /* NEC SVR4.0.2 mips cc rejects this. */
8034 struct point {int x, y;};
8035 static struct point const zero = {0,0};
8036 /* AIX XL C 1.02.0.0 rejects this.
8037 It does not let you subtract one const X* pointer from another in
8038 an arm of an if-expression whose if-part is not a constant
8040 const char *g = "string";
8041 ccp = &g + (g ? g-g : 0);
8042 /* HPUX 7.0 cc rejects these. */
8045 ccp = (char const *const *) p;
8046 { /* SCO 3.2v4 cc rejects this. */
8048 char const *s = 0 ? (char *) 0 : (char const *) 0;
8053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8055 const int *foo = &x[0];
8058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8059 typedef const int *iptr;
8063 { /* AIX XL C 1.02.0.0 rejects this saying
8064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8065 struct s { int j; const int *ap[3]; };
8066 struct s *b; b->j = 5;
8068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8072 return !x[0] && !zero.x;
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8088 grep -v '^ *+' conftest.er1 >conftest.err
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8094 { (case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_try") 2>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_try") 2>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8124 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8125 if test $ac_cv_c_const = no; then
8127 cat >>confdefs.h <<\_ACEOF
8139 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8140 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8141 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8142 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 #include <sys/types.h>
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 eval "$as_ac_Header=yes"
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 eval "$as_ac_Header=no"
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 ac_res=`eval echo '${'$as_ac_Header'}'`
8209 { echo "$as_me:$LINENO: result: $ac_res" >&5
8210 echo "${ECHO_T}$ac_res" >&6; }
8211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212 cat >>confdefs.h <<_ACEOF
8213 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8216 ac_header_dirent=$ac_hdr; break
8220 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8221 if test $ac_header_dirent = dirent.h; then
8222 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8223 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8224 if test "${ac_cv_search_opendir+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 ac_func_search_save_LIBS=$LIBS
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8235 /* Override any GCC internal prototype to avoid an error.
8236 Use char because int might match the return type of a GCC
8237 builtin and then its argument prototype would still apply. */
8250 for ac_lib in '' dir; do
8251 if test -z "$ac_lib"; then
8252 ac_res="none required"
8255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (ac_try="$ac_link"
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_link") 2>conftest.er1
8266 grep -v '^ *+' conftest.er1 >conftest.err
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8272 { (case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_try") 2>&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try='test -s conftest$ac_exeext'
8282 { (case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_try") 2>&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
8291 ac_cv_search_opendir=$ac_res
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8299 rm -f core conftest.err conftest.$ac_objext \
8301 if test "${ac_cv_search_opendir+set}" = set; then
8305 if test "${ac_cv_search_opendir+set}" = set; then
8308 ac_cv_search_opendir=no
8311 LIBS=$ac_func_search_save_LIBS
8313 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8314 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8315 ac_res=$ac_cv_search_opendir
8316 if test "$ac_res" != no; then
8317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8322 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8323 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8324 if test "${ac_cv_search_opendir+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 ac_func_search_save_LIBS=$LIBS
8328 cat >conftest.$ac_ext <<_ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8335 /* Override any GCC internal prototype to avoid an error.
8336 Use char because int might match the return type of a GCC
8337 builtin and then its argument prototype would still apply. */
8350 for ac_lib in '' x; do
8351 if test -z "$ac_lib"; then
8352 ac_res="none required"
8355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (ac_try="$ac_link"
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_link") 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_try") 2>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_cv_search_opendir=$ac_res
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8399 rm -f core conftest.err conftest.$ac_objext \
8401 if test "${ac_cv_search_opendir+set}" = set; then
8405 if test "${ac_cv_search_opendir+set}" = set; then
8408 ac_cv_search_opendir=no
8411 LIBS=$ac_func_search_save_LIBS
8413 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8414 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8415 ac_res=$ac_cv_search_opendir
8416 if test "$ac_res" != no; then
8417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8424 for ac_header in dlfcn.h
8426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 ac_res=`eval echo '${'$as_ac_Header'}'`
8434 { echo "$as_me:$LINENO: result: $ac_res" >&5
8435 echo "${ECHO_T}$ac_res" >&6; }
8437 # Is the header compilable?
8438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 #include <$ac_header>
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_compile") 2>conftest.er1
8458 grep -v '^ *+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8464 { (case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_try") 2>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_try") 2>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_header_compiler=yes
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 ac_header_compiler=no
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8493 echo "${ECHO_T}$ac_header_compiler" >&6; }
8495 # Is the header present?
8496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8504 #include <$ac_header>
8506 if { (ac_try="$ac_cpp conftest.$ac_ext"
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8514 grep -v '^ *+' conftest.er1 >conftest.err
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } >/dev/null; then
8519 if test -s conftest.err; then
8520 ac_cpp_err=$ac_c_preproc_warn_flag
8521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8528 if test -z "$ac_cpp_err"; then
8529 ac_header_preproc=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_header_preproc=no
8537 rm -f conftest.err conftest.$ac_ext
8538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8539 echo "${ECHO_T}$ac_header_preproc" >&6; }
8541 # So? What about this header?
8542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8548 ac_header_preproc=yes
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8564 ## ------------------------------------ ##
8565 ## Report this to http://llvm.org/bugs/ ##
8566 ## ------------------------------------ ##
8568 ) | sed "s/^/$as_me: WARNING: /" >&2
8571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 eval "$as_ac_Header=\$ac_header_preproc"
8578 ac_res=`eval echo '${'$as_ac_Header'}'`
8579 { echo "$as_me:$LINENO: result: $ac_res" >&5
8580 echo "${ECHO_T}$ac_res" >&6; }
8583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8584 cat >>confdefs.h <<_ACEOF
8585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8592 # Check whether --enable-ltdl-install was given.
8593 if test "${enable_ltdl_install+set}" = set; then
8594 enableval=$enable_ltdl_install;
8600 if test x"${enable_ltdl_install-no}" != xno; then
8602 INSTALL_LTDL_FALSE='#'
8604 INSTALL_LTDL_TRUE='#'
8610 if test x"${enable_ltdl_convenience-no}" != xno; then
8611 CONVENIENCE_LTDL_TRUE=
8612 CONVENIENCE_LTDL_FALSE='#'
8614 CONVENIENCE_LTDL_TRUE='#'
8615 CONVENIENCE_LTDL_FALSE=
8619 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8620 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8622 libname_spec='lib$name'
8630 shlibpath_overrides_runpath=unknown
8632 dynamic_linker="$host_os ld.so"
8633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8634 if test "$GCC" = yes; then
8635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8637 # if the path contains ";" then we assume it to be the separator
8638 # otherwise default to the standard path separator (i.e. ":") - it is
8639 # assumed that no part of a normal pathname contains ";" but that should
8640 # okay in the real world where ";" in dirpaths is itself problematic.
8641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8648 need_lib_prefix=unknown
8649 hardcode_into_libs=no
8651 # when you set need_version to no, make sure it does not cause -set_version
8652 # flags to be left without arguments
8653 need_version=unknown
8658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8659 shlibpath_var=LIBPATH
8661 # AIX 3 has no versioning support, so we append a major version to the name.
8662 soname_spec='${libname}${release}${shared_ext}$major'
8669 hardcode_into_libs=yes
8670 if test "$host_cpu" = ia64; then
8671 # AIX 5 supports IA64
8672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8673 shlibpath_var=LD_LIBRARY_PATH
8675 # With GCC up to 2.95.x, collect2 would create an import file
8676 # for dependence libraries. The import file would start with
8677 # the line `#! .'. This would cause the generated library to
8678 # depend on `.', always an invalid library. This was fixed in
8679 # development snapshots of GCC prior to 3.0.
8681 aix4 | aix4.[01] | aix4.[01].*)
8682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8692 # soname into executable. Probably we can add versioning support to
8693 # collect2, so additional links can be useful in future.
8694 if test "$aix_use_runtimelinking" = yes; then
8695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8696 # instead of lib<name>.a to let people know that these are not
8697 # typical AIX shared libraries.
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8700 # We preserve .a as extension for shared libraries through AIX4.2
8701 # and later when we are not doing run time linking.
8702 library_names_spec='${libname}${release}.a $libname.a'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8705 shlibpath_var=LIBPATH
8710 library_names_spec='$libname.ixlibrary $libname.a'
8711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8712 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'
8716 library_names_spec='${libname}${shared_ext}'
8717 dynamic_linker="$host_os ld.so"
8718 shlibpath_var=LIBRARY_PATH
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8725 soname_spec='${libname}${release}${shared_ext}$major'
8726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8730 # the default ld.so.conf also contains /usr/contrib/lib and
8731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8732 # libtool to hard-code these into programs
8735 cygwin* | mingw* | pw32*)
8736 version_type=windows
8741 case $GCC,$host_os in
8742 yes,cygwin* | yes,mingw* | yes,pw32*)
8743 library_names_spec='$libname.dll.a'
8744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8745 postinstall_cmds='base_file=`basename \${file}`~
8746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8747 dldir=$destdir/`dirname \$dlpath`~
8748 test -d \$dldir || mkdir -p \$dldir~
8749 $install_prog $dir/$dlname \$dldir/$dlname~
8750 chmod a+x \$dldir/$dlname'
8751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8752 dlpath=$dir/\$dldll~
8754 shlibpath_overrides_runpath=yes
8758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8763 # MinGW DLLs use traditional 'lib' prefix
8764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8767 # It is most probably a Windows format PATH printed by
8768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8769 # path with ; separators, and with drive letters. We can handle the
8770 # drive letters (cygwin fileutils understands them), so leave them,
8771 # especially as we might pass files found there to a mingw objdump,
8772 # which wouldn't understand a cygwinified path. Ahh.
8773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8779 # pw32 DLLs use 'pw' prefix rather than 'lib'
8780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8789 dynamic_linker='Win32 ld.exe'
8790 # FIXME: first we should search . and the directory the executable is in
8794 darwin* | rhapsody*)
8795 dynamic_linker="$host_os dyld"
8799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8800 soname_spec='${libname}${release}${major}$shared_ext'
8801 shlibpath_overrides_runpath=yes
8802 shlibpath_var=DYLD_LIBRARY_PATH
8803 shrext_cmds='.dylib'
8804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8805 if test "$GCC" = yes; then
8806 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"`
8808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 shlibpath_var=LD_LIBRARY_PATH
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 shlibpath_var=LD_LIBRARY_PATH
8833 shlibpath_overrides_runpath=no
8834 hardcode_into_libs=yes
8835 dynamic_linker='GNU ld.so'
8838 freebsd* | dragonfly*)
8839 # DragonFly does not have aout. When/if they implement a new
8840 # versioning mechanism, adjust this.
8841 if test -x /usr/bin/objformat; then
8842 objformat=`/usr/bin/objformat`
8845 freebsd[123].*) objformat=aout ;;
8849 version_type=freebsd-$objformat
8850 case $version_type in
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8861 shlibpath_var=LD_LIBRARY_PATH
8864 shlibpath_overrides_runpath=yes
8866 freebsd3.[01]* | freebsdelf3.[01]*)
8867 shlibpath_overrides_runpath=yes
8868 hardcode_into_libs=yes
8870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8872 shlibpath_overrides_runpath=no
8873 hardcode_into_libs=yes
8875 freebsd*) # from 4.6 on
8876 shlibpath_overrides_runpath=yes
8877 hardcode_into_libs=yes
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 hardcode_into_libs=yes
8892 hpux9* | hpux10* | hpux11*)
8893 # Give a soname corresponding to the major version so that dld.sl refuses to
8894 # link against other versions.
8901 hardcode_into_libs=yes
8902 dynamic_linker="$host_os dld.so"
8903 shlibpath_var=LD_LIBRARY_PATH
8904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 if test "X$HPUX_IA64_MODE" = X32; then
8908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8916 hardcode_into_libs=yes
8917 dynamic_linker="$host_os dld.sl"
8918 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8927 dynamic_linker="$host_os dld.sl"
8928 shlibpath_var=SHLIB_PATH
8929 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8934 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8935 postinstall_cmds='chmod 555 $lib'
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=no
8947 hardcode_into_libs=yes
8950 irix5* | irix6* | nonstopux*)
8952 nonstopux*) version_type=nonstopux ;;
8954 if test "$lt_cv_prog_gnu_ld" = yes; then
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8965 irix5* | nonstopux*)
8969 case $LD in # libtool.m4 will add one of these switches to LD
8970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8971 libsuff= shlibsuff= libmagic=32-bit;;
8972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8973 libsuff=32 shlibsuff=N32 libmagic=N32;;
8974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8976 *) libsuff= shlibsuff= libmagic=never-match;;
8980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8981 shlibpath_overrides_runpath=no
8982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8984 hardcode_into_libs=yes
8987 # No shared lib support for Linux oldld, aout, or coff.
8988 linux*oldld* | linux*aout* | linux*coff*)
8992 # This must be Linux ELF.
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=no
9002 # This implies no fast_install, which is unacceptable.
9003 # Some rework will be needed to allow for fast_install
9004 # before this can be enabled.
9005 hardcode_into_libs=yes
9007 # Append ld.so.conf contents to the search path
9008 if test -f /etc/ld.so.conf; then
9009 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' ' '`
9010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9013 # We used to test for /lib/ld.so.1 and disable shared libraries on
9014 # powerpc, because MkLinux only supported shared libraries with the
9015 # GNU dynamic linker. Since this was broken with cross compilers,
9016 # most powerpc-linux boxes support dynamic linking these days and
9017 # people can always --disable-shared, the test was removed, and we
9018 # assume the GNU/Linux dynamic linker is in use.
9019 dynamic_linker='GNU/Linux ld.so'
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=no
9030 hardcode_into_libs=yes
9031 dynamic_linker='GNU ld.so'
9038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9041 dynamic_linker='NetBSD (a.out) ld.so'
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 dynamic_linker='NetBSD ld.elf_so'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 hardcode_into_libs=yes
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9071 sys_lib_dlsearch_path_spec="/usr/lib"
9073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9076 *) need_version=no ;;
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9083 openbsd2.[89] | openbsd2.[89].*)
9084 shlibpath_overrides_runpath=no
9087 shlibpath_overrides_runpath=yes
9091 shlibpath_overrides_runpath=yes
9096 libname_spec='$name'
9099 library_names_spec='$libname${shared_ext} $libname.a'
9100 dynamic_linker='OS/2 ld.exe'
9101 shlibpath_var=LIBPATH
9104 osf3* | osf4* | osf5*)
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=yes
9123 hardcode_into_libs=yes
9124 # ldd complains unless libraries are executable
9125 postinstall_cmds='chmod +x $lib'
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=yes
9134 if test "$with_gnu_ld" = yes; then
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 case $host_vendor in
9147 shlibpath_overrides_runpath=no
9149 export_dynamic_flag_spec='${wl}-Blargedynsym'
9150 runpath_var=LD_RUN_PATH
9158 shlibpath_overrides_runpath=no
9159 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9165 if test -d /usr/nec ;then
9167 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9168 soname_spec='$libname${shared_ext}.$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9174 version_type=freebsd-elf
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 hardcode_into_libs=yes
9181 if test "$with_gnu_ld" = yes; then
9182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9183 shlibpath_overrides_runpath=no
9185 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9186 shlibpath_overrides_runpath=yes
9189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9193 sys_lib_dlsearch_path_spec='/usr/lib'
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9207 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9208 echo "${ECHO_T}$dynamic_linker" >&6; }
9209 test "$dynamic_linker" = no && can_build_shared=no
9211 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9212 if test "$GCC" = yes; then
9213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9217 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9218 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9219 if test "${libltdl_cv_shlibext+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 eval libltdl_cv_shlibext=$shrext_cmds
9227 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9228 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9229 if test -n "$libltdl_cv_shlibext"; then
9231 cat >>confdefs.h <<_ACEOF
9232 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9238 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9239 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9240 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 libltdl_cv_shlibpath_var="$shlibpath_var"
9245 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9246 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9247 if test -n "$libltdl_cv_shlibpath_var"; then
9249 cat >>confdefs.h <<_ACEOF
9250 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9256 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9257 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9258 if test "${libltdl_cv_sys_search_path+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9263 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9264 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9265 if test -n "$libltdl_cv_sys_search_path"; then
9267 for dir in $libltdl_cv_sys_search_path; do
9268 if test -z "$sys_search_path"; then
9269 sys_search_path="$dir"
9271 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9275 cat >>confdefs.h <<_ACEOF
9276 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9281 { echo "$as_me:$LINENO: checking for objdir" >&5
9282 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9283 if test "${libltdl_cv_objdir+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 libltdl_cv_objdir="$objdir"
9287 if test -n "$objdir"; then
9290 rm -f .libs 2>/dev/null
9291 mkdir .libs 2>/dev/null
9292 if test -d .libs; then
9293 libltdl_cv_objdir=.libs
9295 # MS-DOS does not allow filenames that begin with a dot.
9296 libltdl_cv_objdir=_libs
9298 rmdir .libs 2>/dev/null
9302 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9303 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9305 cat >>confdefs.h <<_ACEOF
9306 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9314 # Check for command to grab the raw symbol name followed by C symbol from nm.
9315 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9316 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9317 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 # These are sane defaults that work on at least a few old systems.
9322 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9324 # Character class describing NM global symbol codes.
9325 symcode='[BCDEGRST]'
9327 # Regexp to match symbols that can be accessed directly from C.
9328 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9330 # Transform an extracted symbol line into a proper C declaration
9331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9333 # Transform an extracted symbol line into symbol name and symbol address
9334 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'"
9336 # Define system-specific variables.
9341 cygwin* | mingw* | pw32*)
9342 symcode='[ABCDGISTW]'
9344 hpux*) # Its linker distinguishes data from code symbols
9345 if test "$host_cpu" = ia64; then
9346 symcode='[ABCDEGRST]'
9348 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9349 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'"
9352 if test "$host_cpu" = ia64; then
9353 symcode='[ABCDGIRSTW]'
9354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9355 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'"
9359 symcode='[BCDEGRST]'
9362 symcode='[BCDEGQRST]'
9373 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9381 # Handle CRLF in mingw tool chain
9385 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9389 # If we're using GNU nm, then use its standard symbol codes.
9390 case `$NM -V 2>&1` in
9391 *GNU* | *'with BFD'*)
9392 symcode='[ABCDGIRSTW]' ;;
9395 # Try without a prefix undercore, then with it.
9396 for ac_symprfx in "" "_"; do
9398 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9399 symxfrm="\\1 $ac_symprfx\\2 \\2"
9401 # Write the raw and C identifiers.
9402 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9404 # Check to see that the pipe works correctly.
9408 cat > conftest.$ac_ext <<EOF
9413 void nm_test_func(){}
9417 int main(){nm_test_var='a';nm_test_func();return(0);}
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; then
9425 # Now try to grab the symbols.
9427 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9428 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } && test -s "$nlist"; then
9432 # Try sorting and uniquifying the output.
9433 if sort "$nlist" | uniq > "$nlist"T; then
9434 mv -f "$nlist"T "$nlist"
9439 # Make sure that we snagged all the symbols we need.
9440 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9441 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9442 cat <<EOF > conftest.$ac_ext
9448 # Now generate the symbol file.
9449 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9451 cat <<EOF >> conftest.$ac_ext
9452 #if defined (__STDC__) && __STDC__
9453 # define lt_ptr_t void *
9455 # define lt_ptr_t char *
9459 /* The mapping between symbol names and symbols. */
9464 lt_preloaded_symbols[] =
9467 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9468 cat <<\EOF >> conftest.$ac_ext
9476 # Now try linking the two files.
9477 mv conftest.$ac_objext conftstm.$ac_objext
9478 lt_save_LIBS="$LIBS"
9479 lt_save_CFLAGS="$CFLAGS"
9480 LIBS="conftstm.$ac_objext"
9481 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9489 LIBS="$lt_save_LIBS"
9490 CFLAGS="$lt_save_CFLAGS"
9492 echo "cannot find nm_test_func in $nlist" >&5
9495 echo "cannot find nm_test_var in $nlist" >&5
9498 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9501 echo "$progname: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9504 rm -f conftest* conftst*
9506 # Do not use the global_symbol_pipe unless it works.
9507 if test "$pipe_works" = yes; then
9510 lt_cv_sys_global_symbol_pipe=
9516 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9517 lt_cv_sys_global_symbol_to_cdecl=
9519 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9520 { echo "$as_me:$LINENO: result: failed" >&5
9521 echo "${ECHO_T}failed" >&6; }
9523 { echo "$as_me:$LINENO: result: ok" >&5
9524 echo "${ECHO_T}ok" >&6; }
9528 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9529 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9530 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9534 libltdl_cv_preloaded_symbols=yes
9536 libltdl_cv_preloaded_symbols=no
9540 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9541 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9542 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9544 cat >>confdefs.h <<\_ACEOF
9545 #define HAVE_PRELOADED_SYMBOLS 1
9553 ac_cpp='$CPP $CPPFLAGS'
9554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9559 { echo "$as_me:$LINENO: checking for shl_load" >&5
9560 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9561 if test "${ac_cv_func_shl_load+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 cat >conftest.$ac_ext <<_ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9572 #define shl_load innocuous_shl_load
9574 /* System header to define __stub macros and hopefully few prototypes,
9575 which can conflict with char shl_load (); below.
9576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577 <limits.h> exists even on freestanding compilers. */
9580 # include <limits.h>
9582 # include <assert.h>
9587 /* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
9594 /* The GNU C library defines this for functions which it implements
9595 to always fail with ENOSYS. Some functions are actually named
9596 something starting with __ and the normal name is an alias. */
9597 #if defined __stub_shl_load || defined __stub___shl_load
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1 >conftest.err
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9624 { (case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_try") 2>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; } &&
9633 { ac_try='test -s conftest$ac_exeext'
9634 { (case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_try") 2>&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 ac_cv_func_shl_load=yes
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9648 ac_cv_func_shl_load=no
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9654 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9655 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9656 if test $ac_cv_func_shl_load = yes; then
9658 cat >>confdefs.h <<\_ACEOF
9659 #define HAVE_SHL_LOAD 1
9663 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9664 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9665 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_check_lib_save_LIBS=$LIBS
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707 { (case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_try") 2>&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest$ac_exeext'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_lib_dld_shl_load=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_lib_dld_shl_load=no
9734 rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736 LIBS=$ac_check_lib_save_LIBS
9738 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9739 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9740 if test $ac_cv_lib_dld_shl_load = yes; then
9742 cat >>confdefs.h <<\_ACEOF
9743 #define HAVE_SHL_LOAD 1
9746 LIBADD_DL="$LIBADD_DL -ldld"
9748 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 ac_check_lib_save_LIBS=$LIBS
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9762 /* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (ac_try="$ac_link"
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_link") 2>conftest.er1
9786 grep -v '^ *+' conftest.er1 >conftest.err
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9792 { (case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_try") 2>&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_try") 2>&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_cv_lib_dl_dlopen=yes
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_cv_lib_dl_dlopen=no
9819 rm -f core conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9824 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9825 if test $ac_cv_lib_dl_dlopen = yes; then
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_LIBDL 1
9831 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9833 cat >conftest.$ac_ext <<_ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (ac_try="$ac_link"
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_link") 2>conftest.er1
9860 grep -v '^ *+' conftest.er1 >conftest.err
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
9865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9866 { (case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_try") 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9886 cat >>confdefs.h <<\_ACEOF
9887 #define HAVE_LIBDL 1
9889 libltdl_cv_func_dlopen="yes"
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9894 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9895 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9896 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 ac_check_lib_save_LIBS=$LIBS
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (ac_try="$ac_link"
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_link") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_try") 2>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_lib_svld_dlopen=yes
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_cv_lib_svld_dlopen=no
9965 rm -f core conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9969 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9970 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9971 if test $ac_cv_lib_svld_dlopen = yes; then
9973 cat >>confdefs.h <<\_ACEOF
9974 #define HAVE_LIBDL 1
9977 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9979 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9980 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9981 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 ac_check_lib_save_LIBS=$LIBS
9986 cat >conftest.$ac_ext <<_ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9993 /* Override any GCC internal prototype to avoid an error.
9994 Use char because int might match the return type of a GCC
9995 builtin and then its argument prototype would still apply. */
10003 return dld_link ();
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (ac_try="$ac_link"
10010 case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015 (eval "$ac_link") 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023 { (case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_try") 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_try") 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_lib_dld_dld_link=yes
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_cv_lib_dld_dld_link=no
10050 rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 LIBS=$ac_check_lib_save_LIBS
10054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10055 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10056 if test $ac_cv_lib_dld_dld_link = yes; then
10058 cat >>confdefs.h <<\_ACEOF
10062 LIBADD_DL="$LIBADD_DL -ldld"
10064 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10065 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10066 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10077 #define _dyld_func_lookup innocuous__dyld_func_lookup
10079 /* System header to define __stub macros and hopefully few prototypes,
10080 which can conflict with char _dyld_func_lookup (); below.
10081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10082 <limits.h> exists even on freestanding compilers. */
10085 # include <limits.h>
10087 # include <assert.h>
10090 #undef _dyld_func_lookup
10092 /* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
10098 char _dyld_func_lookup ();
10099 /* The GNU C library defines this for functions which it implements
10100 to always fail with ENOSYS. Some functions are actually named
10101 something starting with __ and the normal name is an alias. */
10102 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10109 return _dyld_func_lookup ();
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10129 { (case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_try") 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest$ac_exeext'
10139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_cv_func__dyld_func_lookup=yes
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_cv_func__dyld_func_lookup=no
10156 rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10159 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10160 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10161 if test $ac_cv_func__dyld_func_lookup = yes; then
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_DYLD 1
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10190 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10192 lt_save_LIBS="$LIBS"
10193 LIBS="$LIBS $LIBADD_DL"
10195 for ac_func in dlerror
10197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10211 #define $ac_func innocuous_$ac_func
10213 /* System header to define __stub macros and hopefully few prototypes,
10214 which can conflict with char $ac_func (); below.
10215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10216 <limits.h> exists even on freestanding compilers. */
10219 # include <limits.h>
10221 # include <assert.h>
10226 /* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10233 /* The GNU C library defines this for functions which it implements
10234 to always fail with ENOSYS. Some functions are actually named
10235 something starting with __ and the normal name is an alias. */
10236 #if defined __stub_$ac_func || defined __stub___$ac_func
10243 return $ac_func ();
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (ac_try="$ac_link"
10250 case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_link") 2>conftest.er1
10257 grep -v '^ *+' conftest.er1 >conftest.err
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10263 { (case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_try") 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest$ac_exeext'
10273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 eval "$as_ac_var=yes"
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 eval "$as_ac_var=no"
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10293 ac_res=`eval echo '${'$as_ac_var'}'`
10294 { echo "$as_me:$LINENO: result: $ac_res" >&5
10295 echo "${ECHO_T}$ac_res" >&6; }
10296 if test `eval echo '${'$as_ac_var'}'` = yes; then
10297 cat >>confdefs.h <<_ACEOF
10298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10304 LIBS="$lt_save_LIBS"
10307 ac_cpp='$CPP $CPPFLAGS'
10308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10314 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10315 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10316 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 ac_cv_sys_symbol_underscore=no
10320 cat > conftest.$ac_ext <<EOF
10321 void nm_test_func(){}
10322 int main(){nm_test_func;return 0;}
10324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325 (eval $ac_compile) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; then
10329 # Now try to grab the symbols.
10330 ac_nlist=conftest.nm
10331 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10332 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } && test -s "$ac_nlist"; then
10336 # See whether the symbols have a leading underscore.
10337 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10338 ac_cv_sys_symbol_underscore=yes
10340 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10343 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10347 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10350 echo "configure: failed program was:" >&5
10356 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10357 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10360 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10361 if test x"$libltdl_cv_func_dlopen" = xyes ||
10362 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10363 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10364 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10365 if test "${libltdl_cv_need_uscore+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 libltdl_cv_need_uscore=unknown
10370 LIBS="$LIBS $LIBADD_DL"
10371 if test "$cross_compiling" = yes; then :
10372 libltdl_cv_need_uscore=cross
10374 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10375 lt_status=$lt_dlunknown
10376 cat > conftest.$ac_ext <<EOF
10377 #line 10377 "configure"
10378 #include "confdefs.h"
10387 # define LT_DLGLOBAL RTLD_GLOBAL
10390 # define LT_DLGLOBAL DL_GLOBAL
10392 # define LT_DLGLOBAL 0
10396 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10397 find out it does not work in some platform. */
10398 #ifndef LT_DLLAZY_OR_NOW
10400 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10403 # define LT_DLLAZY_OR_NOW DL_LAZY
10406 # define LT_DLLAZY_OR_NOW RTLD_NOW
10409 # define LT_DLLAZY_OR_NOW DL_NOW
10411 # define LT_DLLAZY_OR_NOW 0
10419 extern "C" void exit (int);
10422 void fnord() { int i=42;}
10425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10426 int status = $lt_dlunknown;
10430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10431 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10432 /* dlclose (self); */
10440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441 (eval $ac_link) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10445 (./conftest; exit; ) >&5 2>/dev/null
10447 case x$lt_status in
10448 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10449 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10450 x$lt_dlunknown|x*) ;;
10453 # compilation failed
10462 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10463 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10467 if test x"$libltdl_cv_need_uscore" = xyes; then
10469 cat >>confdefs.h <<\_ACEOF
10470 #define NEED_USCORE 1
10476 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10477 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10478 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 # PORTME does your system automatically load deplibs for dlopen?
10482 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10483 # For now, we just catch OSes we know something about -- in the
10484 # future, we'll try test this programmatically.
10485 libltdl_cv_sys_dlopen_deplibs=unknown
10487 aix3*|aix4.1.*|aix4.2.*)
10488 # Unknown whether this is true for these versions of AIX, but
10489 # we want this `case' here to explicitly catch those versions.
10490 libltdl_cv_sys_dlopen_deplibs=unknown
10493 libltdl_cv_sys_dlopen_deplibs=yes
10496 # Assuming the user has installed a libdl from somewhere, this is true
10497 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10498 libltdl_cv_sys_dlopen_deplibs=yes
10500 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10501 # GNU and its variants, using gnu ld.so (Glibc)
10502 libltdl_cv_sys_dlopen_deplibs=yes
10505 libltdl_cv_sys_dlopen_deplibs=yes
10508 libltdl_cv_sys_dlopen_deplibs=yes
10510 irix[12345]*|irix6.[01]*)
10511 # Catch all versions of IRIX before 6.2, and indicate that we don't
10512 # know how it worked for any of those versions.
10513 libltdl_cv_sys_dlopen_deplibs=unknown
10516 # The case above catches anything before 6.2, and it's known that
10517 # at 6.2 and later dlopen does load deplibs.
10518 libltdl_cv_sys_dlopen_deplibs=yes
10521 libltdl_cv_sys_dlopen_deplibs=yes
10524 libltdl_cv_sys_dlopen_deplibs=yes
10527 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10528 # it did *not* use an RPATH in a shared library to find objects the
10529 # library depends on, so we explicitly say `no'.
10530 libltdl_cv_sys_dlopen_deplibs=no
10532 osf5.0|osf5.0a|osf5.1)
10533 # dlopen *does* load deplibs and with the right loader patch applied
10534 # it even uses RPATH in a shared library to search for shared objects
10535 # that the library depends on, but there's no easy way to know if that
10536 # patch is installed. Since this is the case, all we can really
10537 # say is unknown -- it depends on the patch being installed. If
10538 # it is, this changes to `yes'. Without it, it would be `no'.
10539 libltdl_cv_sys_dlopen_deplibs=unknown
10542 # the two cases above should catch all versions of osf <= 5.1. Read
10543 # the comments above for what we know about them.
10544 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10545 # is used to find them so we can finally say `yes'.
10546 libltdl_cv_sys_dlopen_deplibs=yes
10549 libltdl_cv_sys_dlopen_deplibs=yes
10551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10552 libltdl_cv_sys_dlopen_deplibs=yes
10557 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10558 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10559 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10561 cat >>confdefs.h <<\_ACEOF
10562 #define LTDL_DLOPEN_DEPLIBS 1
10568 for ac_header in argz.h
10570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 ac_res=`eval echo '${'$as_ac_Header'}'`
10578 { echo "$as_me:$LINENO: result: $ac_res" >&5
10579 echo "${ECHO_T}$ac_res" >&6; }
10581 # Is the header compilable?
10582 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 $ac_includes_default
10591 #include <$ac_header>
10593 rm -f conftest.$ac_objext
10594 if { (ac_try="$ac_compile"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_compile") 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_try") 2>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_header_compiler=yes
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 ac_header_compiler=no
10635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10637 echo "${ECHO_T}$ac_header_compiler" >&6; }
10639 # Is the header present?
10640 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10642 cat >conftest.$ac_ext <<_ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648 #include <$ac_header>
10650 if { (ac_try="$ac_cpp conftest.$ac_ext"
10651 case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10658 grep -v '^ *+' conftest.er1 >conftest.err
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } >/dev/null; then
10663 if test -s conftest.err; then
10664 ac_cpp_err=$ac_c_preproc_warn_flag
10665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10672 if test -z "$ac_cpp_err"; then
10673 ac_header_preproc=yes
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 ac_header_preproc=no
10681 rm -f conftest.err conftest.$ac_ext
10682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10683 echo "${ECHO_T}$ac_header_preproc" >&6; }
10685 # So? What about this header?
10686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10692 ac_header_preproc=yes
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10708 ## ------------------------------------ ##
10709 ## Report this to http://llvm.org/bugs/ ##
10710 ## ------------------------------------ ##
10712 ) | sed "s/^/$as_me: WARNING: /" >&2
10715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 eval "$as_ac_Header=\$ac_header_preproc"
10722 ac_res=`eval echo '${'$as_ac_Header'}'`
10723 { echo "$as_me:$LINENO: result: $ac_res" >&5
10724 echo "${ECHO_T}$ac_res" >&6; }
10727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10728 cat >>confdefs.h <<_ACEOF
10729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10737 { echo "$as_me:$LINENO: checking for error_t" >&5
10738 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10739 if test "${ac_cv_type_error_t+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 cat >conftest.$ac_ext <<_ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10752 typedef error_t ac__type_new_;
10756 if ((ac__type_new_ *) 0)
10758 if (sizeof (ac__type_new_))
10764 rm -f conftest.$ac_objext
10765 if { (ac_try="$ac_compile"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_compile") 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_cv_type_error_t=yes
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_cv_type_error_t=no
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10809 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10810 if test $ac_cv_type_error_t = yes; then
10812 cat >>confdefs.h <<_ACEOF
10813 #define HAVE_ERROR_T 1
10819 cat >>confdefs.h <<\_ACEOF
10820 #define error_t int
10831 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10847 #define $ac_func innocuous_$ac_func
10849 /* System header to define __stub macros and hopefully few prototypes,
10850 which can conflict with char $ac_func (); below.
10851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10852 <limits.h> exists even on freestanding compilers. */
10855 # include <limits.h>
10857 # include <assert.h>
10862 /* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
10869 /* The GNU C library defines this for functions which it implements
10870 to always fail with ENOSYS. Some functions are actually named
10871 something starting with __ and the normal name is an alias. */
10872 #if defined __stub_$ac_func || defined __stub___$ac_func
10879 return $ac_func ();
10884 rm -f conftest.$ac_objext conftest$ac_exeext
10885 if { (ac_try="$ac_link"
10886 case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_link") 2>conftest.er1
10893 grep -v '^ *+' conftest.er1 >conftest.err
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest$ac_exeext'
10909 { (case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 eval "$as_ac_var=yes"
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 eval "$as_ac_var=no"
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10929 ac_res=`eval echo '${'$as_ac_var'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931 echo "${ECHO_T}$ac_res" >&6; }
10932 if test `eval echo '${'$as_ac_var'}'` = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10967 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 ac_res=`eval echo '${'$as_ac_Header'}'`
10978 { echo "$as_me:$LINENO: result: $ac_res" >&5
10979 echo "${ECHO_T}$ac_res" >&6; }
10981 # Is the header compilable?
10982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10984 cat >conftest.$ac_ext <<_ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 $ac_includes_default
10991 #include <$ac_header>
10993 rm -f conftest.$ac_objext
10994 if { (ac_try="$ac_compile"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_try") 2>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_try") 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_header_compiler=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_header_compiler=no
11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11037 echo "${ECHO_T}$ac_header_compiler" >&6; }
11039 # Is the header present?
11040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 #include <$ac_header>
11050 if { (ac_try="$ac_cpp conftest.$ac_ext"
11051 case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11058 grep -v '^ *+' conftest.er1 >conftest.err
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } >/dev/null; then
11063 if test -s conftest.err; then
11064 ac_cpp_err=$ac_c_preproc_warn_flag
11065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11072 if test -z "$ac_cpp_err"; then
11073 ac_header_preproc=yes
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 ac_header_preproc=no
11081 rm -f conftest.err conftest.$ac_ext
11082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11083 echo "${ECHO_T}$ac_header_preproc" >&6; }
11085 # So? What about this header?
11086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11092 ac_header_preproc=yes
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11108 ## ------------------------------------ ##
11109 ## Report this to http://llvm.org/bugs/ ##
11110 ## ------------------------------------ ##
11112 ) | sed "s/^/$as_me: WARNING: /" >&2
11115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 eval "$as_ac_Header=\$ac_header_preproc"
11122 ac_res=`eval echo '${'$as_ac_Header'}'`
11123 { echo "$as_me:$LINENO: result: $ac_res" >&5
11124 echo "${ECHO_T}$ac_res" >&6; }
11127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11128 cat >>confdefs.h <<_ACEOF
11129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11140 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 ac_res=`eval echo '${'$as_ac_Header'}'`
11150 { echo "$as_me:$LINENO: result: $ac_res" >&5
11151 echo "${ECHO_T}$ac_res" >&6; }
11153 # Is the header compilable?
11154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11156 cat >conftest.$ac_ext <<_ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11162 $ac_includes_default
11163 #include <$ac_header>
11165 rm -f conftest.$ac_objext
11166 if { (ac_try="$ac_compile"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_compile") 2>conftest.er1
11174 grep -v '^ *+' conftest.er1 >conftest.err
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11180 { (case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_try") 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_try") 2>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 ac_header_compiler=yes
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 ac_header_compiler=no
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11209 echo "${ECHO_T}$ac_header_compiler" >&6; }
11211 # Is the header present?
11212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11214 cat >conftest.$ac_ext <<_ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 #include <$ac_header>
11222 if { (ac_try="$ac_cpp conftest.$ac_ext"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11230 grep -v '^ *+' conftest.er1 >conftest.err
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } >/dev/null; then
11235 if test -s conftest.err; then
11236 ac_cpp_err=$ac_c_preproc_warn_flag
11237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11244 if test -z "$ac_cpp_err"; then
11245 ac_header_preproc=yes
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 ac_header_preproc=no
11253 rm -f conftest.err conftest.$ac_ext
11254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11255 echo "${ECHO_T}$ac_header_preproc" >&6; }
11257 # So? What about this header?
11258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11264 ac_header_preproc=yes
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11280 ## ------------------------------------ ##
11281 ## Report this to http://llvm.org/bugs/ ##
11282 ## ------------------------------------ ##
11284 ) | sed "s/^/$as_me: WARNING: /" >&2
11287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 eval "$as_ac_Header=\$ac_header_preproc"
11294 ac_res=`eval echo '${'$as_ac_Header'}'`
11295 { echo "$as_me:$LINENO: result: $ac_res" >&5
11296 echo "${ECHO_T}$ac_res" >&6; }
11299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11300 cat >>confdefs.h <<_ACEOF
11301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11310 for ac_header in string.h strings.h
11312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 ac_res=`eval echo '${'$as_ac_Header'}'`
11320 { echo "$as_me:$LINENO: result: $ac_res" >&5
11321 echo "${ECHO_T}$ac_res" >&6; }
11323 # Is the header compilable?
11324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 $ac_includes_default
11333 #include <$ac_header>
11335 rm -f conftest.$ac_objext
11336 if { (ac_try="$ac_compile"
11337 case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_compile") 2>conftest.er1
11344 grep -v '^ *+' conftest.er1 >conftest.err
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_header_compiler=yes
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11414 if test -z "$ac_cpp_err"; then
11415 ac_header_preproc=yes
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_header_preproc=no
11423 rm -f conftest.err conftest.$ac_ext
11424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425 echo "${ECHO_T}$ac_header_preproc" >&6; }
11427 # So? What about this header?
11428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434 ac_header_preproc=yes
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11450 ## ------------------------------------ ##
11451 ## Report this to http://llvm.org/bugs/ ##
11452 ## ------------------------------------ ##
11454 ) | sed "s/^/$as_me: WARNING: /" >&2
11457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 eval "$as_ac_Header=\$ac_header_preproc"
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11481 for ac_func in strchr index
11483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11497 #define $ac_func innocuous_$ac_func
11499 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char $ac_func (); below.
11501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502 <limits.h> exists even on freestanding compilers. */
11505 # include <limits.h>
11507 # include <assert.h>
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11519 /* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522 #if defined __stub_$ac_func || defined __stub___$ac_func
11529 return $ac_func ();
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (ac_try="$ac_link"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_link") 2>conftest.er1
11543 grep -v '^ *+' conftest.er1 >conftest.err
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11549 { (case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_try") 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; } &&
11558 { ac_try='test -s conftest$ac_exeext'
11559 { (case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_try") 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 eval "$as_ac_var=yes"
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 eval "$as_ac_var=no"
11576 rm -f core conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11579 ac_res=`eval echo '${'$as_ac_var'}'`
11580 { echo "$as_me:$LINENO: result: $ac_res" >&5
11581 echo "${ECHO_T}$ac_res" >&6; }
11582 if test `eval echo '${'$as_ac_var'}'` = yes; then
11583 cat >>confdefs.h <<_ACEOF
11584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11592 for ac_func in strrchr rindex
11594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 cat >conftest.$ac_ext <<_ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11608 #define $ac_func innocuous_$ac_func
11610 /* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11616 # include <limits.h>
11618 # include <assert.h>
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11630 /* The GNU C library defines this for functions which it implements
11631 to always fail with ENOSYS. Some functions are actually named
11632 something starting with __ and the normal name is an alias. */
11633 #if defined __stub_$ac_func || defined __stub___$ac_func
11640 return $ac_func ();
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (ac_try="$ac_link"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660 { (case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_try") 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest$ac_exeext'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 eval "$as_ac_var=yes"
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 eval "$as_ac_var=no"
11687 rm -f core conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11690 ac_res=`eval echo '${'$as_ac_var'}'`
11691 { echo "$as_me:$LINENO: result: $ac_res" >&5
11692 echo "${ECHO_T}$ac_res" >&6; }
11693 if test `eval echo '${'$as_ac_var'}'` = yes; then
11694 cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11703 for ac_func in memcpy bcopy
11705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11719 #define $ac_func innocuous_$ac_func
11721 /* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11727 # include <limits.h>
11729 # include <assert.h>
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11741 /* The GNU C library defines this for functions which it implements
11742 to always fail with ENOSYS. Some functions are actually named
11743 something starting with __ and the normal name is an alias. */
11744 #if defined __stub_$ac_func || defined __stub___$ac_func
11751 return $ac_func ();
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (ac_try="$ac_link"
11758 case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_link") 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771 { (case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_try") 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_try") 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 eval "$as_ac_var=no"
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11801 ac_res=`eval echo '${'$as_ac_var'}'`
11802 { echo "$as_me:$LINENO: result: $ac_res" >&5
11803 echo "${ECHO_T}$ac_res" >&6; }
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11814 for ac_func in memmove strcmp
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830 #define $ac_func innocuous_$ac_func
11832 /* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11838 # include <limits.h>
11840 # include <assert.h>
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined __stub_$ac_func || defined __stub___$ac_func
11862 return $ac_func ();
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 eval "$as_ac_var=yes"
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 eval "$as_ac_var=no"
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11912 ac_res=`eval echo '${'$as_ac_var'}'`
11913 { echo "$as_me:$LINENO: result: $ac_res" >&5
11914 echo "${ECHO_T}$ac_res" >&6; }
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11926 for ac_func in closedir opendir readdir
11928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11942 #define $ac_func innocuous_$ac_func
11944 /* System header to define __stub macros and hopefully few prototypes,
11945 which can conflict with char $ac_func (); below.
11946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11947 <limits.h> exists even on freestanding compilers. */
11950 # include <limits.h>
11952 # include <assert.h>
11957 /* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11964 /* The GNU C library defines this for functions which it implements
11965 to always fail with ENOSYS. Some functions are actually named
11966 something starting with __ and the normal name is an alias. */
11967 #if defined __stub_$ac_func || defined __stub___$ac_func
11974 return $ac_func ();
11979 rm -f conftest.$ac_objext conftest$ac_exeext
11980 if { (ac_try="$ac_link"
11981 case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_link") 2>conftest.er1
11988 grep -v '^ *+' conftest.er1 >conftest.err
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11994 { (case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_try") 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; } &&
12003 { ac_try='test -s conftest$ac_exeext'
12004 { (case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_try") 2>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 eval "$as_ac_var=yes"
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12018 eval "$as_ac_var=no"
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12024 ac_res=`eval echo '${'$as_ac_var'}'`
12025 { echo "$as_me:$LINENO: result: $ac_res" >&5
12026 echo "${ECHO_T}$ac_res" >&6; }
12027 if test `eval echo '${'$as_ac_var'}'` = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12037 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12038 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12051 if test "$GCC" != "yes" && test "$ICC" != "yes"
12053 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12054 echo "$as_me: error: gcc|icc required but not found" >&2;}
12055 { (exit 1); exit 1; }; }
12058 if test "$GXX" != "yes" && test "$IXX" != "yes"
12060 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12061 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12062 { (exit 1); exit 1; }; }
12065 if test "$GCC" = "yes"
12067 cat >conftest.$ac_ext <<_ACEOF
12068 #if !defined(__GNUC__) || __GNUC__ < 3
12069 #error Unsupported GCC version
12073 rm -f conftest.$ac_objext
12074 if { (ac_try="$ac_compile"
12075 case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_compile") 2>conftest.er1
12082 grep -v '^ *+' conftest.er1 >conftest.err
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest.$ac_objext'
12098 { (case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_try") 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12113 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12114 { (exit 1); exit 1; }; }
12117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12120 if test -z "$llvm_cv_gnu_make_command"
12122 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12123 echo "$as_me: error: GNU Make required but not found" >&2;}
12124 { (exit 1); exit 1; }; }
12127 { echo "$as_me:$LINENO: result: ok" >&5
12128 echo "${ECHO_T}ok" >&6; }
12130 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12131 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12132 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12134 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12136 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12138 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12139 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12143 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12144 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12145 if test "${ac_cv_lib_m_sin+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 ac_check_lib_save_LIBS=$LIBS
12150 cat >conftest.$ac_ext <<_ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_link") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest$ac_exeext'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_cv_lib_m_sin=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12214 rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12216 LIBS=$ac_check_lib_save_LIBS
12218 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12219 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12220 if test $ac_cv_lib_m_sin = yes; then
12221 cat >>confdefs.h <<_ACEOF
12222 #define HAVE_LIBM 1
12229 if test "$llvm_cv_os_type" = "MingW" ; then
12231 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12232 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12233 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 ac_check_lib_save_LIBS=$LIBS
12237 LIBS="-limagehlp $LIBS"
12238 cat >conftest.$ac_ext <<_ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12254 rm -f conftest.$ac_objext conftest$ac_exeext
12255 if { (ac_try="$ac_link"
12256 case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_link") 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12269 { (case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_try") 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest$ac_exeext'
12279 { (case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_try") 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_cv_lib_imagehlp_main=yes
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ac_cv_lib_imagehlp_main=no
12296 rm -f core conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12300 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12301 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12302 if test $ac_cv_lib_imagehlp_main = yes; then
12303 cat >>confdefs.h <<_ACEOF
12304 #define HAVE_LIBIMAGEHLP 1
12307 LIBS="-limagehlp $LIBS"
12312 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12313 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12314 if test "${ac_cv_lib_psapi_main+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-lpsapi $LIBS"
12319 cat >conftest.$ac_ext <<_ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (ac_try="$ac_link"
12337 case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342 (eval "$ac_link") 2>conftest.er1
12344 grep -v '^ *+' conftest.er1 >conftest.err
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12350 { (case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_try") 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest$ac_exeext'
12360 { (case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_try") 2>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12369 ac_cv_lib_psapi_main=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 ac_cv_lib_psapi_main=no
12377 rm -f core conftest.err conftest.$ac_objext \
12378 conftest$ac_exeext conftest.$ac_ext
12379 LIBS=$ac_check_lib_save_LIBS
12381 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12382 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12383 if test $ac_cv_lib_psapi_main = yes; then
12384 cat >>confdefs.h <<_ACEOF
12385 #define HAVE_LIBPSAPI 1
12388 LIBS="-lpsapi $LIBS"
12394 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12395 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12396 if test "${ac_cv_search_dlopen+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 ac_func_search_save_LIBS=$LIBS
12400 cat >conftest.$ac_ext <<_ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12407 /* Override any GCC internal prototype to avoid an error.
12408 Use char because int might match the return type of a GCC
12409 builtin and then its argument prototype would still apply. */
12422 for ac_lib in '' dl; do
12423 if test -z "$ac_lib"; then
12424 ac_res="none required"
12427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12429 rm -f conftest.$ac_objext conftest$ac_exeext
12430 if { (ac_try="$ac_link"
12431 case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_link") 2>conftest.er1
12438 grep -v '^ *+' conftest.er1 >conftest.err
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } &&
12443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12444 { (case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449 (eval "$ac_try") 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try='test -s conftest$ac_exeext'
12454 { (case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_try") 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 ac_cv_search_dlopen=$ac_res
12465 echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12471 rm -f core conftest.err conftest.$ac_objext \
12473 if test "${ac_cv_search_dlopen+set}" = set; then
12477 if test "${ac_cv_search_dlopen+set}" = set; then
12480 ac_cv_search_dlopen=no
12482 rm conftest.$ac_ext
12483 LIBS=$ac_func_search_save_LIBS
12485 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12486 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12487 ac_res=$ac_cv_search_dlopen
12488 if test "$ac_res" != no; then
12489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12491 cat >>confdefs.h <<\_ACEOF
12492 #define HAVE_DLOPEN 1
12496 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12497 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12501 if test "$llvm_cv_enable_libffi" = "yes" ; then
12502 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12503 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12504 if test "${ac_cv_search_ffi_call+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 ac_func_search_save_LIBS=$LIBS
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12515 /* Override any GCC internal prototype to avoid an error.
12516 Use char because int might match the return type of a GCC
12517 builtin and then its argument prototype would still apply. */
12525 return ffi_call ();
12530 for ac_lib in '' ffi; do
12531 if test -z "$ac_lib"; then
12532 ac_res="none required"
12535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (ac_try="$ac_link"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>conftest.er1
12546 grep -v '^ *+' conftest.er1 >conftest.err
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12552 { (case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try='test -s conftest$ac_exeext'
12562 { (case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567 (eval "$ac_try") 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 ac_cv_search_ffi_call=$ac_res
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12579 rm -f core conftest.err conftest.$ac_objext \
12581 if test "${ac_cv_search_ffi_call+set}" = set; then
12585 if test "${ac_cv_search_ffi_call+set}" = set; then
12588 ac_cv_search_ffi_call=no
12590 rm conftest.$ac_ext
12591 LIBS=$ac_func_search_save_LIBS
12593 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12594 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12595 ac_res=$ac_cv_search_ffi_call
12596 if test "$ac_res" != no; then
12597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12599 cat >>confdefs.h <<\_ACEOF
12600 #define HAVE_FFI_CALL 1
12604 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12605 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12606 { (exit 1); exit 1; }; }
12611 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12612 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12613 if test "${ac_cv_search_mallinfo+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 ac_func_search_save_LIBS=$LIBS
12617 cat >conftest.$ac_ext <<_ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12624 /* Override any GCC internal prototype to avoid an error.
12625 Use char because int might match the return type of a GCC
12626 builtin and then its argument prototype would still apply. */
12634 return mallinfo ();
12639 for ac_lib in '' malloc; do
12640 if test -z "$ac_lib"; then
12641 ac_res="none required"
12644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (ac_try="$ac_link"
12648 case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_link") 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12661 { (case "(($ac_try" in
12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663 *) ac_try_echo=$ac_try;;
12665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12666 (eval "$ac_try") 2>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } &&
12670 { ac_try='test -s conftest$ac_exeext'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12680 ac_cv_search_mallinfo=$ac_res
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12688 rm -f core conftest.err conftest.$ac_objext \
12690 if test "${ac_cv_search_mallinfo+set}" = set; then
12694 if test "${ac_cv_search_mallinfo+set}" = set; then
12697 ac_cv_search_mallinfo=no
12699 rm conftest.$ac_ext
12700 LIBS=$ac_func_search_save_LIBS
12702 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12703 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12704 ac_res=$ac_cv_search_mallinfo
12705 if test "$ac_res" != no; then
12706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12708 cat >>confdefs.h <<\_ACEOF
12709 #define HAVE_MALLINFO 1
12715 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12717 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12718 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12719 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lpthread $LIBS"
12724 cat >conftest.$ac_ext <<_ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12737 char pthread_mutex_init ();
12741 return pthread_mutex_init ();
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (ac_try="$ac_link"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_link") 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12761 { (case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_try") 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest$ac_exeext'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
12780 ac_cv_lib_pthread_pthread_mutex_init=yes
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 ac_cv_lib_pthread_pthread_mutex_init=no
12788 rm -f core conftest.err conftest.$ac_objext \
12789 conftest$ac_exeext conftest.$ac_ext
12790 LIBS=$ac_check_lib_save_LIBS
12792 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12793 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12794 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12795 cat >>confdefs.h <<_ACEOF
12796 #define HAVE_LIBPTHREAD 1
12799 LIBS="-lpthread $LIBS"
12803 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12804 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12805 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 ac_func_search_save_LIBS=$LIBS
12809 cat >conftest.$ac_ext <<_ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12822 char pthread_mutex_lock ();
12826 return pthread_mutex_lock ();
12831 for ac_lib in '' pthread; do
12832 if test -z "$ac_lib"; then
12833 ac_res="none required"
12836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1 >conftest.err
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest$ac_exeext'
12863 { (case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_try") 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 ac_cv_search_pthread_mutex_lock=$ac_res
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12880 rm -f core conftest.err conftest.$ac_objext \
12882 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12886 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12889 ac_cv_search_pthread_mutex_lock=no
12891 rm conftest.$ac_ext
12892 LIBS=$ac_func_search_save_LIBS
12894 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12895 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12896 ac_res=$ac_cv_search_pthread_mutex_lock
12897 if test "$ac_res" != no; then
12898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12900 cat >>confdefs.h <<\_ACEOF
12901 #define HAVE_PTHREAD_MUTEX_LOCK 1
12906 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12907 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12908 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 ac_func_search_save_LIBS=$LIBS
12912 cat >conftest.$ac_ext <<_ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h. */
12919 /* Override any GCC internal prototype to avoid an error.
12920 Use char because int might match the return type of a GCC
12921 builtin and then its argument prototype would still apply. */
12925 char pthread_rwlock_init ();
12929 return pthread_rwlock_init ();
12934 for ac_lib in '' pthread; do
12935 if test -z "$ac_lib"; then
12936 ac_res="none required"
12939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (ac_try="$ac_link"
12943 case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_link") 2>conftest.er1
12950 grep -v '^ *+' conftest.er1 >conftest.err
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12956 { (case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_try") 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest$ac_exeext'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_try") 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_cv_search_pthread_rwlock_init=$ac_res
12977 echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12983 rm -f core conftest.err conftest.$ac_objext \
12985 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12989 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12992 ac_cv_search_pthread_rwlock_init=no
12994 rm conftest.$ac_ext
12995 LIBS=$ac_func_search_save_LIBS
12997 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12998 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12999 ac_res=$ac_cv_search_pthread_rwlock_init
13000 if test "$ac_res" != no; then
13001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13003 cat >>confdefs.h <<\_ACEOF
13004 #define HAVE_PTHREAD_RWLOCK_INIT 1
13009 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13010 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13011 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 ac_func_search_save_LIBS=$LIBS
13015 cat >conftest.$ac_ext <<_ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13022 /* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13028 char pthread_getspecific ();
13032 return pthread_getspecific ();
13037 for ac_lib in '' pthread; do
13038 if test -z "$ac_lib"; then
13039 ac_res="none required"
13042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (ac_try="$ac_link"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_link") 2>conftest.er1
13053 grep -v '^ *+' conftest.er1 >conftest.err
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13059 { (case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_try") 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } &&
13068 { ac_try='test -s conftest$ac_exeext'
13069 { (case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 ac_cv_search_pthread_getspecific=$ac_res
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13086 rm -f core conftest.err conftest.$ac_objext \
13088 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13092 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13095 ac_cv_search_pthread_getspecific=no
13097 rm conftest.$ac_ext
13098 LIBS=$ac_func_search_save_LIBS
13100 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13101 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13102 ac_res=$ac_cv_search_pthread_getspecific
13103 if test "$ac_res" != no; then
13104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_PTHREAD_GETSPECIFIC 1
13115 # Check whether --with-udis86 was given.
13116 if test "${with_udis86+set}" = set; then
13117 withval=$with_udis86;
13122 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13125 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13126 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13127 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 ac_check_lib_save_LIBS=$LIBS
13131 LIBS="-ludis86 $LIBS"
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13139 /* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13154 rm -f conftest.$ac_objext conftest$ac_exeext
13155 if { (ac_try="$ac_link"
13156 case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_link") 2>conftest.er1
13163 grep -v '^ *+' conftest.er1 >conftest.err
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
13168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest$ac_exeext'
13179 { (case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_try") 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 ac_cv_lib_udis86_ud_init=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_cv_lib_udis86_ud_init=no
13196 rm -f core conftest.err conftest.$ac_objext \
13197 conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13200 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13201 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13202 if test $ac_cv_lib_udis86_ud_init = yes; then
13203 cat >>confdefs.h <<_ACEOF
13204 #define HAVE_LIBUDIS86 1
13207 LIBS="-ludis86 $LIBS"
13211 echo "Error! You need to have libudis86 around."
13223 cat >>confdefs.h <<_ACEOF
13224 #define USE_UDIS86 $USE_UDIS86
13229 # Check whether --with-oprofile was given.
13230 if test "${with_oprofile+set}" = set; then
13231 withval=$with_oprofile;
13235 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13236 no) llvm_cv_oppath=
13239 *) llvm_cv_oppath="${withval}/lib/oprofile"
13240 CPPFLAGS="-I${withval}/include";;
13242 case $llvm_cv_os_type in
13244 if test -n "$llvm_cv_oppath" ; then
13245 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13246 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13247 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13248 if test "${ac_cv_search_bfd_init+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 ac_func_search_save_LIBS=$LIBS
13252 cat >conftest.$ac_ext <<_ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13259 /* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13269 return bfd_init ();
13274 for ac_lib in '' bfd; do
13275 if test -z "$ac_lib"; then
13276 ac_res="none required"
13279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13281 rm -f conftest.$ac_objext conftest$ac_exeext
13282 if { (ac_try="$ac_link"
13283 case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_link") 2>conftest.er1
13290 grep -v '^ *+' conftest.er1 >conftest.err
13292 cat conftest.err >&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
13295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13296 { (case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_try") 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; } &&
13305 { ac_try='test -s conftest$ac_exeext'
13306 { (case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_try") 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 ac_cv_search_bfd_init=$ac_res
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13323 rm -f core conftest.err conftest.$ac_objext \
13325 if test "${ac_cv_search_bfd_init+set}" = set; then
13329 if test "${ac_cv_search_bfd_init+set}" = set; then
13332 ac_cv_search_bfd_init=no
13334 rm conftest.$ac_ext
13335 LIBS=$ac_func_search_save_LIBS
13337 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13338 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13339 ac_res=$ac_cv_search_bfd_init
13340 if test "$ac_res" != no; then
13341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13345 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13346 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13347 if test "${ac_cv_search_op_open_agent+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 ac_func_search_save_LIBS=$LIBS
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13358 /* Override any GCC internal prototype to avoid an error.
13359 Use char because int might match the return type of a GCC
13360 builtin and then its argument prototype would still apply. */
13364 char op_open_agent ();
13368 return op_open_agent ();
13373 for ac_lib in '' opagent; do
13374 if test -z "$ac_lib"; then
13375 ac_res="none required"
13378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (ac_try="$ac_link"
13382 case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_link") 2>conftest.er1
13389 grep -v '^ *+' conftest.er1 >conftest.err
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13395 { (case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_try") 2>&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; } &&
13404 { ac_try='test -s conftest$ac_exeext'
13405 { (case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_try") 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
13414 ac_cv_search_op_open_agent=$ac_res
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13422 rm -f core conftest.err conftest.$ac_objext \
13424 if test "${ac_cv_search_op_open_agent+set}" = set; then
13428 if test "${ac_cv_search_op_open_agent+set}" = set; then
13431 ac_cv_search_op_open_agent=no
13433 rm conftest.$ac_ext
13434 LIBS=$ac_func_search_save_LIBS
13436 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13437 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13438 ac_res=$ac_cv_search_op_open_agent
13439 if test "$ac_res" != no; then
13440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13444 echo "Error! You need to have libopagent around."
13449 if test "${ac_cv_header_opagent_h+set}" = set; then
13450 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13451 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13452 if test "${ac_cv_header_opagent_h+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13456 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13458 # Is the header compilable?
13459 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13460 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 $ac_includes_default
13468 #include <opagent.h>
13470 rm -f conftest.$ac_objext
13471 if { (ac_try="$ac_compile"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_compile") 2>conftest.er1
13479 grep -v '^ *+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13485 { (case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_try") 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; } &&
13494 { ac_try='test -s conftest.$ac_objext'
13495 { (case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_try") 2>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13504 ac_header_compiler=yes
13506 echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13509 ac_header_compiler=no
13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13514 echo "${ECHO_T}$ac_header_compiler" >&6; }
13516 # Is the header present?
13517 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13518 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13519 cat >conftest.$ac_ext <<_ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 #include <opagent.h>
13527 if { (ac_try="$ac_cpp conftest.$ac_ext"
13528 case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13535 grep -v '^ *+' conftest.er1 >conftest.err
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } >/dev/null; then
13540 if test -s conftest.err; then
13541 ac_cpp_err=$ac_c_preproc_warn_flag
13542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13549 if test -z "$ac_cpp_err"; then
13550 ac_header_preproc=yes
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13555 ac_header_preproc=no
13558 rm -f conftest.err conftest.$ac_ext
13559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13560 echo "${ECHO_T}$ac_header_preproc" >&6; }
13562 # So? What about this header?
13563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13565 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13566 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13568 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13569 ac_header_preproc=yes
13572 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13573 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13575 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13577 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13579 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13580 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13581 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13582 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13583 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13585 ## ------------------------------------ ##
13586 ## Report this to http://llvm.org/bugs/ ##
13587 ## ------------------------------------ ##
13589 ) | sed "s/^/$as_me: WARNING: /" >&2
13592 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13593 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13594 if test "${ac_cv_header_opagent_h+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 ac_cv_header_opagent_h=$ac_header_preproc
13599 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13600 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13603 if test $ac_cv_header_opagent_h = yes; then
13607 echo "Error! You need to have opagent.h around."
13615 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13616 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13617 { (exit 1); exit 1; }; } ;;
13628 cat >>confdefs.h <<_ACEOF
13629 #define LLVM_USE_OPROFILE $USE_OPROFILE
13634 # Check whether --with-intel-jitevents was given.
13635 if test "${with_intel_jitevents+set}" = set; then
13636 withval=$with_intel_jitevents;
13637 case $llvm_cv_os_type in
13638 Linux|Win32|Cygwin|MingW) ;;
13640 { { echo "$as_me:$LINENO: error:
13641 Intel JIT API support is available on Linux and Windows only.\"" >&5
13642 echo "$as_me: error:
13643 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13644 { (exit 1); exit 1; }; } ;;
13647 USE_INTEL_JITEVENTS=1
13649 case "$llvm_cv_target_arch" in
13650 x86) llvm_intel_jitevents_archdir="lib32";;
13651 x86_64) llvm_intel_jitevents_archdir="lib64";;
13652 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13655 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13656 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13658 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13659 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13666 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13667 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13669 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13670 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13671 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 ac_func_search_save_LIBS=$LIBS
13675 cat >conftest.$ac_ext <<_ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13682 /* Override any GCC internal prototype to avoid an error.
13683 Use char because int might match the return type of a GCC
13684 builtin and then its argument prototype would still apply. */
13688 char iJIT_IsProfilingActive ();
13692 return iJIT_IsProfilingActive ();
13697 for ac_lib in '' jitprofiling; do
13698 if test -z "$ac_lib"; then
13699 ac_res="none required"
13702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13704 rm -f conftest.$ac_objext conftest$ac_exeext
13705 if { (ac_try="$ac_link"
13706 case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_link") 2>conftest.er1
13713 grep -v '^ *+' conftest.er1 >conftest.err
13715 cat conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13719 { (case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_try") 2>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } &&
13728 { ac_try='test -s conftest$ac_exeext'
13729 { (case "(($ac_try" in
13730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731 *) ac_try_echo=$ac_try;;
13733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734 (eval "$ac_try") 2>&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13746 rm -f core conftest.err conftest.$ac_objext \
13748 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13752 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13755 ac_cv_search_iJIT_IsProfilingActive=no
13757 rm conftest.$ac_ext
13758 LIBS=$ac_func_search_save_LIBS
13760 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13761 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13762 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13763 if test "$ac_res" != no; then
13764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13768 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13773 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13774 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13775 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13776 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13780 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13782 # Is the header compilable?
13783 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13784 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13785 cat >conftest.$ac_ext <<_ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 $ac_includes_default
13792 #include <jitprofiling.h>
13794 rm -f conftest.$ac_objext
13795 if { (ac_try="$ac_compile"
13796 case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_compile") 2>conftest.er1
13803 grep -v '^ *+' conftest.er1 >conftest.err
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest.$ac_objext'
13819 { (case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_header_compiler=yes
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13833 ac_header_compiler=no
13836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13838 echo "${ECHO_T}$ac_header_compiler" >&6; }
13840 # Is the header present?
13841 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13842 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13843 cat >conftest.$ac_ext <<_ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13849 #include <jitprofiling.h>
13851 if { (ac_try="$ac_cpp conftest.$ac_ext"
13852 case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13859 grep -v '^ *+' conftest.er1 >conftest.err
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } >/dev/null; then
13864 if test -s conftest.err; then
13865 ac_cpp_err=$ac_c_preproc_warn_flag
13866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13873 if test -z "$ac_cpp_err"; then
13874 ac_header_preproc=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_header_preproc=no
13882 rm -f conftest.err conftest.$ac_ext
13883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884 echo "${ECHO_T}$ac_header_preproc" >&6; }
13886 # So? What about this header?
13887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13889 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13890 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13892 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13893 ac_header_preproc=yes
13896 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13897 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13899 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13900 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13901 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13903 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13904 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13905 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13907 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13909 ## ------------------------------------ ##
13910 ## Report this to http://llvm.org/bugs/ ##
13911 ## ------------------------------------ ##
13913 ) | sed "s/^/$as_me: WARNING: /" >&2
13916 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13917 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13918 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 ac_cv_header_jitprofiling_h=$ac_header_preproc
13923 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13924 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13927 if test $ac_cv_header_jitprofiling_h = yes; then
13931 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13941 USE_INTEL_JITEVENTS=0
13947 cat >>confdefs.h <<_ACEOF
13948 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13958 ac_header_dirent=no
13959 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13960 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13961 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13962 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 cat >conftest.$ac_ext <<_ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 #include <sys/types.h>
13984 rm -f conftest.$ac_objext
13985 if { (ac_try="$ac_compile"
13986 case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_compile") 2>conftest.er1
13993 grep -v '^ *+' conftest.er1 >conftest.err
13995 cat conftest.err >&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } &&
13998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13999 { (case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_try") 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest.$ac_objext'
14009 { (case "(($ac_try" in
14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011 *) ac_try_echo=$ac_try;;
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014 (eval "$ac_try") 2>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 eval "$as_ac_Header=yes"
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 eval "$as_ac_Header=no"
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 ac_res=`eval echo '${'$as_ac_Header'}'`
14029 { echo "$as_me:$LINENO: result: $ac_res" >&5
14030 echo "${ECHO_T}$ac_res" >&6; }
14031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14032 cat >>confdefs.h <<_ACEOF
14033 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14036 ac_header_dirent=$ac_hdr; break
14040 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14041 if test $ac_header_dirent = dirent.h; then
14042 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14043 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14044 if test "${ac_cv_search_opendir+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 ac_func_search_save_LIBS=$LIBS
14048 cat >conftest.$ac_ext <<_ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14055 /* Override any GCC internal prototype to avoid an error.
14056 Use char because int might match the return type of a GCC
14057 builtin and then its argument prototype would still apply. */
14070 for ac_lib in '' dir; do
14071 if test -z "$ac_lib"; then
14072 ac_res="none required"
14075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14077 rm -f conftest.$ac_objext conftest$ac_exeext
14078 if { (ac_try="$ac_link"
14079 case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_link") 2>conftest.er1
14086 grep -v '^ *+' conftest.er1 >conftest.err
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14092 { (case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_try") 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; } &&
14101 { ac_try='test -s conftest$ac_exeext'
14102 { (case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_try") 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
14111 ac_cv_search_opendir=$ac_res
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14119 rm -f core conftest.err conftest.$ac_objext \
14121 if test "${ac_cv_search_opendir+set}" = set; then
14125 if test "${ac_cv_search_opendir+set}" = set; then
14128 ac_cv_search_opendir=no
14130 rm conftest.$ac_ext
14131 LIBS=$ac_func_search_save_LIBS
14133 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14134 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14135 ac_res=$ac_cv_search_opendir
14136 if test "$ac_res" != no; then
14137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14142 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14143 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14144 if test "${ac_cv_search_opendir+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 ac_func_search_save_LIBS=$LIBS
14148 cat >conftest.$ac_ext <<_ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14155 /* Override any GCC internal prototype to avoid an error.
14156 Use char because int might match the return type of a GCC
14157 builtin and then its argument prototype would still apply. */
14170 for ac_lib in '' x; do
14171 if test -z "$ac_lib"; then
14172 ac_res="none required"
14175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14177 rm -f conftest.$ac_objext conftest$ac_exeext
14178 if { (ac_try="$ac_link"
14179 case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184 (eval "$ac_link") 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14192 { (case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_try") 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try='test -s conftest$ac_exeext'
14202 { (case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_try") 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14211 ac_cv_search_opendir=$ac_res
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14219 rm -f core conftest.err conftest.$ac_objext \
14221 if test "${ac_cv_search_opendir+set}" = set; then
14225 if test "${ac_cv_search_opendir+set}" = set; then
14228 ac_cv_search_opendir=no
14230 rm conftest.$ac_ext
14231 LIBS=$ac_func_search_save_LIBS
14233 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14234 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14235 ac_res=$ac_cv_search_opendir
14236 if test "$ac_res" != no; then
14237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14243 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14244 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14245 if test "${ac_cv_header_mmap_anon+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 ac_cpp='$CPP $CPPFLAGS'
14250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14254 cat >conftest.$ac_ext <<_ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 #include <sys/mman.h>
14261 #include <unistd.h>
14266 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14271 rm -f conftest.$ac_objext
14272 if { (ac_try="$ac_compile"
14273 case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278 (eval "$ac_compile") 2>conftest.er1
14280 grep -v '^ *+' conftest.er1 >conftest.err
14282 cat conftest.err >&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } &&
14285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14286 { (case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_try") 2>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; } &&
14295 { ac_try='test -s conftest.$ac_objext'
14296 { (case "(($ac_try" in
14297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301 (eval "$ac_try") 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 ac_cv_header_mmap_anon=yes
14307 echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14310 ac_cv_header_mmap_anon=no
14313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 ac_cpp='$CPP $CPPFLAGS'
14316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14322 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14323 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14324 if test "$ac_cv_header_mmap_anon" = yes; then
14326 cat >>confdefs.h <<\_ACEOF
14327 #define HAVE_MMAP_ANONYMOUS 1
14332 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14333 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14334 if test "${ac_cv_header_stat_broken+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <sys/types.h>
14344 #include <sys/stat.h>
14346 #if defined S_ISBLK && defined S_IFDIR
14347 # if S_ISBLK (S_IFDIR)
14352 #if defined S_ISBLK && defined S_IFCHR
14353 # if S_ISBLK (S_IFCHR)
14358 #if defined S_ISLNK && defined S_IFREG
14359 # if S_ISLNK (S_IFREG)
14364 #if defined S_ISSOCK && defined S_IFREG
14365 # if S_ISSOCK (S_IFREG)
14371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14372 $EGREP "You lose" >/dev/null 2>&1; then
14373 ac_cv_header_stat_broken=yes
14375 ac_cv_header_stat_broken=no
14380 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14381 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14382 if test $ac_cv_header_stat_broken = yes; then
14384 cat >>confdefs.h <<\_ACEOF
14385 #define STAT_MACROS_BROKEN 1
14390 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14391 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14392 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 cat >conftest.$ac_ext <<_ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 #include <sys/types.h>
14402 #include <sys/wait.h>
14403 #ifndef WEXITSTATUS
14404 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14407 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14415 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest.$ac_objext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_header_sys_wait_h=yes
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_cv_header_sys_wait_h=no
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14465 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14466 if test $ac_cv_header_sys_wait_h = yes; then
14468 cat >>confdefs.h <<\_ACEOF
14469 #define HAVE_SYS_WAIT_H 1
14474 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14475 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14476 if test "${ac_cv_header_time+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 cat >conftest.$ac_ext <<_ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 #include <sys/types.h>
14486 #include <sys/time.h>
14492 if ((struct tm *) 0)
14498 rm -f conftest.$ac_objext
14499 if { (ac_try="$ac_compile"
14500 case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_compile") 2>conftest.er1
14507 grep -v '^ *+' conftest.er1 >conftest.err
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14513 { (case "(($ac_try" in
14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518 (eval "$ac_try") 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
14523 { (case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_try") 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_cv_header_time=yes
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14537 ac_cv_header_time=no
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14543 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14544 if test $ac_cv_header_time = yes; then
14546 cat >>confdefs.h <<\_ACEOF
14547 #define TIME_WITH_SYS_TIME 1
14559 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 ac_res=`eval echo '${'$as_ac_Header'}'`
14569 { echo "$as_me:$LINENO: result: $ac_res" >&5
14570 echo "${ECHO_T}$ac_res" >&6; }
14572 # Is the header compilable?
14573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14581 $ac_includes_default
14582 #include <$ac_header>
14584 rm -f conftest.$ac_objext
14585 if { (ac_try="$ac_compile"
14586 case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_compile") 2>conftest.er1
14593 grep -v '^ *+' conftest.er1 >conftest.err
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
14598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14599 { (case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_try") 2>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; } &&
14608 { ac_try='test -s conftest.$ac_objext'
14609 { (case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_try") 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 ac_header_compiler=yes
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 ac_header_compiler=no
14626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14628 echo "${ECHO_T}$ac_header_compiler" >&6; }
14630 # Is the header present?
14631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14633 cat >conftest.$ac_ext <<_ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 #include <$ac_header>
14641 if { (ac_try="$ac_cpp conftest.$ac_ext"
14642 case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14649 grep -v '^ *+' conftest.er1 >conftest.err
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } >/dev/null; then
14654 if test -s conftest.err; then
14655 ac_cpp_err=$ac_c_preproc_warn_flag
14656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14663 if test -z "$ac_cpp_err"; then
14664 ac_header_preproc=yes
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 ac_header_preproc=no
14672 rm -f conftest.err conftest.$ac_ext
14673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14674 echo "${ECHO_T}$ac_header_preproc" >&6; }
14676 # So? What about this header?
14677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14683 ac_header_preproc=yes
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14699 ## ------------------------------------ ##
14700 ## Report this to http://llvm.org/bugs/ ##
14701 ## ------------------------------------ ##
14703 ) | sed "s/^/$as_me: WARNING: /" >&2
14706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 eval "$as_ac_Header=\$ac_header_preproc"
14713 ac_res=`eval echo '${'$as_ac_Header'}'`
14714 { echo "$as_me:$LINENO: result: $ac_res" >&5
14715 echo "${ECHO_T}$ac_res" >&6; }
14718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14719 cat >>confdefs.h <<_ACEOF
14720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14733 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 ac_res=`eval echo '${'$as_ac_Header'}'`
14743 { echo "$as_me:$LINENO: result: $ac_res" >&5
14744 echo "${ECHO_T}$ac_res" >&6; }
14746 # Is the header compilable?
14747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 $ac_includes_default
14756 #include <$ac_header>
14758 rm -f conftest.$ac_objext
14759 if { (ac_try="$ac_compile"
14760 case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_compile") 2>conftest.er1
14767 grep -v '^ *+' conftest.er1 >conftest.err
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } &&
14772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14773 { (case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_try") 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (case "(($ac_try" in
14784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785 *) ac_try_echo=$ac_try;;
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788 (eval "$ac_try") 2>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 ac_header_compiler=yes
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14797 ac_header_compiler=no
14800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14802 echo "${ECHO_T}$ac_header_compiler" >&6; }
14804 # Is the header present?
14805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14807 cat >conftest.$ac_ext <<_ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 #include <$ac_header>
14815 if { (ac_try="$ac_cpp conftest.$ac_ext"
14816 case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14823 grep -v '^ *+' conftest.er1 >conftest.err
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } >/dev/null; then
14828 if test -s conftest.err; then
14829 ac_cpp_err=$ac_c_preproc_warn_flag
14830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14837 if test -z "$ac_cpp_err"; then
14838 ac_header_preproc=yes
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 ac_header_preproc=no
14846 rm -f conftest.err conftest.$ac_ext
14847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14848 echo "${ECHO_T}$ac_header_preproc" >&6; }
14850 # So? What about this header?
14851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14857 ac_header_preproc=yes
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14873 ## ------------------------------------ ##
14874 ## Report this to http://llvm.org/bugs/ ##
14875 ## ------------------------------------ ##
14877 ) | sed "s/^/$as_me: WARNING: /" >&2
14880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 eval "$as_ac_Header=\$ac_header_preproc"
14887 ac_res=`eval echo '${'$as_ac_Header'}'`
14888 { echo "$as_me:$LINENO: result: $ac_res" >&5
14889 echo "${ECHO_T}$ac_res" >&6; }
14892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14893 cat >>confdefs.h <<_ACEOF
14894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14903 for ac_header in utime.h windows.h
14905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 ac_res=`eval echo '${'$as_ac_Header'}'`
14913 { echo "$as_me:$LINENO: result: $ac_res" >&5
14914 echo "${ECHO_T}$ac_res" >&6; }
14916 # Is the header compilable?
14917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14919 cat >conftest.$ac_ext <<_ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 $ac_includes_default
14926 #include <$ac_header>
14928 rm -f conftest.$ac_objext
14929 if { (ac_try="$ac_compile"
14930 case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_compile") 2>conftest.er1
14937 grep -v '^ *+' conftest.er1 >conftest.err
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14943 { (case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_try") 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; } &&
14952 { ac_try='test -s conftest.$ac_objext'
14953 { (case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_try") 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_header_compiler=yes
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14967 ac_header_compiler=no
14970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14972 echo "${ECHO_T}$ac_header_compiler" >&6; }
14974 # Is the header present?
14975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14977 cat >conftest.$ac_ext <<_ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 #include <$ac_header>
14985 if { (ac_try="$ac_cpp conftest.$ac_ext"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } >/dev/null; then
14998 if test -s conftest.err; then
14999 ac_cpp_err=$ac_c_preproc_warn_flag
15000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15007 if test -z "$ac_cpp_err"; then
15008 ac_header_preproc=yes
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 ac_header_preproc=no
15016 rm -f conftest.err conftest.$ac_ext
15017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15018 echo "${ECHO_T}$ac_header_preproc" >&6; }
15020 # So? What about this header?
15021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15027 ac_header_preproc=yes
15030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15043 ## ------------------------------------ ##
15044 ## Report this to http://llvm.org/bugs/ ##
15045 ## ------------------------------------ ##
15047 ) | sed "s/^/$as_me: WARNING: /" >&2
15050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 eval "$as_ac_Header=\$ac_header_preproc"
15057 ac_res=`eval echo '${'$as_ac_Header'}'`
15058 { echo "$as_me:$LINENO: result: $ac_res" >&5
15059 echo "${ECHO_T}$ac_res" >&6; }
15062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15063 cat >>confdefs.h <<_ACEOF
15064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15076 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 ac_res=`eval echo '${'$as_ac_Header'}'`
15086 { echo "$as_me:$LINENO: result: $ac_res" >&5
15087 echo "${ECHO_T}$ac_res" >&6; }
15089 # Is the header compilable?
15090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15092 cat >conftest.$ac_ext <<_ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 $ac_includes_default
15099 #include <$ac_header>
15101 rm -f conftest.$ac_objext
15102 if { (ac_try="$ac_compile"
15103 case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_compile") 2>conftest.er1
15110 grep -v '^ *+' conftest.er1 >conftest.err
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15116 { (case "(($ac_try" in
15117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118 *) ac_try_echo=$ac_try;;
15120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15121 (eval "$ac_try") 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; } &&
15125 { ac_try='test -s conftest.$ac_objext'
15126 { (case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_try") 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 ac_header_compiler=yes
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_header_compiler=no
15143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15145 echo "${ECHO_T}$ac_header_compiler" >&6; }
15147 # Is the header present?
15148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15150 cat >conftest.$ac_ext <<_ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 #include <$ac_header>
15158 if { (ac_try="$ac_cpp conftest.$ac_ext"
15159 case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15166 grep -v '^ *+' conftest.er1 >conftest.err
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } >/dev/null; then
15171 if test -s conftest.err; then
15172 ac_cpp_err=$ac_c_preproc_warn_flag
15173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15180 if test -z "$ac_cpp_err"; then
15181 ac_header_preproc=yes
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 ac_header_preproc=no
15189 rm -f conftest.err conftest.$ac_ext
15190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15191 echo "${ECHO_T}$ac_header_preproc" >&6; }
15193 # So? What about this header?
15194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15200 ac_header_preproc=yes
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15216 ## ------------------------------------ ##
15217 ## Report this to http://llvm.org/bugs/ ##
15218 ## ------------------------------------ ##
15220 ) | sed "s/^/$as_me: WARNING: /" >&2
15223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 eval "$as_ac_Header=\$ac_header_preproc"
15230 ac_res=`eval echo '${'$as_ac_Header'}'`
15231 { echo "$as_me:$LINENO: result: $ac_res" >&5
15232 echo "${ECHO_T}$ac_res" >&6; }
15235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15236 cat >>confdefs.h <<_ACEOF
15237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15248 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 ac_res=`eval echo '${'$as_ac_Header'}'`
15258 { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15261 # Is the header compilable?
15262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15264 cat >conftest.$ac_ext <<_ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 $ac_includes_default
15271 #include <$ac_header>
15273 rm -f conftest.$ac_objext
15274 if { (ac_try="$ac_compile"
15275 case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_compile") 2>conftest.er1
15282 grep -v '^ *+' conftest.er1 >conftest.err
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15288 { (case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_try") 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; } &&
15297 { ac_try='test -s conftest.$ac_objext'
15298 { (case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_try") 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_header_compiler=yes
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 ac_header_compiler=no
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15317 echo "${ECHO_T}$ac_header_compiler" >&6; }
15319 # Is the header present?
15320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15322 cat >conftest.$ac_ext <<_ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 #include <$ac_header>
15330 if { (ac_try="$ac_cpp conftest.$ac_ext"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15338 grep -v '^ *+' conftest.er1 >conftest.err
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } >/dev/null; then
15343 if test -s conftest.err; then
15344 ac_cpp_err=$ac_c_preproc_warn_flag
15345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15352 if test -z "$ac_cpp_err"; then
15353 ac_header_preproc=yes
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15358 ac_header_preproc=no
15361 rm -f conftest.err conftest.$ac_ext
15362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15363 echo "${ECHO_T}$ac_header_preproc" >&6; }
15365 # So? What about this header?
15366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15372 ac_header_preproc=yes
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15388 ## ------------------------------------ ##
15389 ## Report this to http://llvm.org/bugs/ ##
15390 ## ------------------------------------ ##
15392 ) | sed "s/^/$as_me: WARNING: /" >&2
15395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 eval "$as_ac_Header=\$ac_header_preproc"
15402 ac_res=`eval echo '${'$as_ac_Header'}'`
15403 { echo "$as_me:$LINENO: result: $ac_res" >&5
15404 echo "${ECHO_T}$ac_res" >&6; }
15407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15408 cat >>confdefs.h <<_ACEOF
15409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15417 for ac_header in valgrind/valgrind.h
15419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 ac_res=`eval echo '${'$as_ac_Header'}'`
15427 { echo "$as_me:$LINENO: result: $ac_res" >&5
15428 echo "${ECHO_T}$ac_res" >&6; }
15430 # Is the header compilable?
15431 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15433 cat >conftest.$ac_ext <<_ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 $ac_includes_default
15440 #include <$ac_header>
15442 rm -f conftest.$ac_objext
15443 if { (ac_try="$ac_compile"
15444 case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_compile") 2>conftest.er1
15451 grep -v '^ *+' conftest.er1 >conftest.err
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15457 { (case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_try") 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_try") 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_header_compiler=yes
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15481 ac_header_compiler=no
15484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15486 echo "${ECHO_T}$ac_header_compiler" >&6; }
15488 # Is the header present?
15489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15491 cat >conftest.$ac_ext <<_ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15497 #include <$ac_header>
15499 if { (ac_try="$ac_cpp conftest.$ac_ext"
15500 case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15507 grep -v '^ *+' conftest.er1 >conftest.err
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } >/dev/null; then
15512 if test -s conftest.err; then
15513 ac_cpp_err=$ac_c_preproc_warn_flag
15514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15521 if test -z "$ac_cpp_err"; then
15522 ac_header_preproc=yes
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ac_header_preproc=no
15530 rm -f conftest.err conftest.$ac_ext
15531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15532 echo "${ECHO_T}$ac_header_preproc" >&6; }
15534 # So? What about this header?
15535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15541 ac_header_preproc=yes
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15557 ## ------------------------------------ ##
15558 ## Report this to http://llvm.org/bugs/ ##
15559 ## ------------------------------------ ##
15561 ) | sed "s/^/$as_me: WARNING: /" >&2
15564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 eval "$as_ac_Header=\$ac_header_preproc"
15571 ac_res=`eval echo '${'$as_ac_Header'}'`
15572 { echo "$as_me:$LINENO: result: $ac_res" >&5
15573 echo "${ECHO_T}$ac_res" >&6; }
15576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15577 cat >>confdefs.h <<_ACEOF
15578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15586 for ac_header in fenv.h
15588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 ac_res=`eval echo '${'$as_ac_Header'}'`
15596 { echo "$as_me:$LINENO: result: $ac_res" >&5
15597 echo "${ECHO_T}$ac_res" >&6; }
15599 # Is the header compilable?
15600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15602 cat >conftest.$ac_ext <<_ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 $ac_includes_default
15609 #include <$ac_header>
15611 rm -f conftest.$ac_objext
15612 if { (ac_try="$ac_compile"
15613 case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_compile") 2>conftest.er1
15620 grep -v '^ *+' conftest.er1 >conftest.err
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626 { (case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_try") 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest.$ac_objext'
15636 { (case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_header_compiler=yes
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15650 ac_header_compiler=no
15653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15655 echo "${ECHO_T}$ac_header_compiler" >&6; }
15657 # Is the header present?
15658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15660 cat >conftest.$ac_ext <<_ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 #include <$ac_header>
15668 if { (ac_try="$ac_cpp conftest.$ac_ext"
15669 case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15676 grep -v '^ *+' conftest.er1 >conftest.err
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } >/dev/null; then
15681 if test -s conftest.err; then
15682 ac_cpp_err=$ac_c_preproc_warn_flag
15683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15690 if test -z "$ac_cpp_err"; then
15691 ac_header_preproc=yes
15693 echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15696 ac_header_preproc=no
15699 rm -f conftest.err conftest.$ac_ext
15700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15701 echo "${ECHO_T}$ac_header_preproc" >&6; }
15703 # So? What about this header?
15704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15710 ac_header_preproc=yes
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15726 ## ------------------------------------ ##
15727 ## Report this to http://llvm.org/bugs/ ##
15728 ## ------------------------------------ ##
15730 ) | sed "s/^/$as_me: WARNING: /" >&2
15733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 eval "$as_ac_Header=\$ac_header_preproc"
15740 ac_res=`eval echo '${'$as_ac_Header'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742 echo "${ECHO_T}$ac_res" >&6; }
15745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15746 cat >>confdefs.h <<_ACEOF
15747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15754 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15756 for ac_header in pthread.h
15758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 ac_res=`eval echo '${'$as_ac_Header'}'`
15766 { echo "$as_me:$LINENO: result: $ac_res" >&5
15767 echo "${ECHO_T}$ac_res" >&6; }
15769 # Is the header compilable?
15770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15772 cat >conftest.$ac_ext <<_ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 $ac_includes_default
15779 #include <$ac_header>
15781 rm -f conftest.$ac_objext
15782 if { (ac_try="$ac_compile"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_compile") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15796 { (case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_try") 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_try") 2>&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_header_compiler=yes
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_compiler=no
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825 echo "${ECHO_T}$ac_header_compiler" >&6; }
15827 # Is the header present?
15828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 #include <$ac_header>
15838 if { (ac_try="$ac_cpp conftest.$ac_ext"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } >/dev/null; then
15851 if test -s conftest.err; then
15852 ac_cpp_err=$ac_c_preproc_warn_flag
15853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15860 if test -z "$ac_cpp_err"; then
15861 ac_header_preproc=yes
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_header_preproc=no
15869 rm -f conftest.err conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15871 echo "${ECHO_T}$ac_header_preproc" >&6; }
15873 # So? What about this header?
15874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15880 ac_header_preproc=yes
15883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15896 ## ------------------------------------ ##
15897 ## Report this to http://llvm.org/bugs/ ##
15898 ## ------------------------------------ ##
15900 ) | sed "s/^/$as_me: WARNING: /" >&2
15903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 eval "$as_ac_Header=\$ac_header_preproc"
15910 ac_res=`eval echo '${'$as_ac_Header'}'`
15911 { echo "$as_me:$LINENO: result: $ac_res" >&5
15912 echo "${ECHO_T}$ac_res" >&6; }
15915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15933 if test "$llvm_cv_enable_libffi" = "yes" ; then
15936 for ac_header in ffi.h ffi/ffi.h
15938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 ac_res=`eval echo '${'$as_ac_Header'}'`
15946 { echo "$as_me:$LINENO: result: $ac_res" >&5
15947 echo "${ECHO_T}$ac_res" >&6; }
15949 # Is the header compilable?
15950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15952 cat >conftest.$ac_ext <<_ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15958 $ac_includes_default
15959 #include <$ac_header>
15961 rm -f conftest.$ac_objext
15962 if { (ac_try="$ac_compile"
15963 case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_compile") 2>conftest.er1
15970 grep -v '^ *+' conftest.er1 >conftest.err
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15976 { (case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_try") 2>&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; } &&
15985 { ac_try='test -s conftest.$ac_objext'
15986 { (case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_try") 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_header_compiler=yes
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 ac_header_compiler=no
16003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16005 echo "${ECHO_T}$ac_header_compiler" >&6; }
16007 # Is the header present?
16008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16010 cat >conftest.$ac_ext <<_ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 #include <$ac_header>
16018 if { (ac_try="$ac_cpp conftest.$ac_ext"
16019 case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16026 grep -v '^ *+' conftest.er1 >conftest.err
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } >/dev/null; then
16031 if test -s conftest.err; then
16032 ac_cpp_err=$ac_c_preproc_warn_flag
16033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16040 if test -z "$ac_cpp_err"; then
16041 ac_header_preproc=yes
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16046 ac_header_preproc=no
16049 rm -f conftest.err conftest.$ac_ext
16050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16051 echo "${ECHO_T}$ac_header_preproc" >&6; }
16053 # So? What about this header?
16054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16060 ac_header_preproc=yes
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16076 ## ------------------------------------ ##
16077 ## Report this to http://llvm.org/bugs/ ##
16078 ## ------------------------------------ ##
16080 ) | sed "s/^/$as_me: WARNING: /" >&2
16083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 eval "$as_ac_Header=\$ac_header_preproc"
16090 ac_res=`eval echo '${'$as_ac_Header'}'`
16091 { echo "$as_me:$LINENO: result: $ac_res" >&5
16092 echo "${ECHO_T}$ac_res" >&6; }
16095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16107 for ac_header in CrashReporterClient.h
16109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 ac_res=`eval echo '${'$as_ac_Header'}'`
16117 { echo "$as_me:$LINENO: result: $ac_res" >&5
16118 echo "${ECHO_T}$ac_res" >&6; }
16120 # Is the header compilable?
16121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 $ac_includes_default
16130 #include <$ac_header>
16132 rm -f conftest.$ac_objext
16133 if { (ac_try="$ac_compile"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_compile") 2>conftest.er1
16141 grep -v '^ *+' conftest.er1 >conftest.err
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
16146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16147 { (case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_try") 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest.$ac_objext'
16157 { (case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_try") 2>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_header_compiler=yes
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_header_compiler=no
16174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16176 echo "${ECHO_T}$ac_header_compiler" >&6; }
16178 # Is the header present?
16179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16181 cat >conftest.$ac_ext <<_ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 #include <$ac_header>
16189 if { (ac_try="$ac_cpp conftest.$ac_ext"
16190 case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16197 grep -v '^ *+' conftest.er1 >conftest.err
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } >/dev/null; then
16202 if test -s conftest.err; then
16203 ac_cpp_err=$ac_c_preproc_warn_flag
16204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16211 if test -z "$ac_cpp_err"; then
16212 ac_header_preproc=yes
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 ac_header_preproc=no
16220 rm -f conftest.err conftest.$ac_ext
16221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16222 echo "${ECHO_T}$ac_header_preproc" >&6; }
16224 # So? What about this header?
16225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16231 ac_header_preproc=yes
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16247 ## ------------------------------------ ##
16248 ## Report this to http://llvm.org/bugs/ ##
16249 ## ------------------------------------ ##
16251 ) | sed "s/^/$as_me: WARNING: /" >&2
16254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16257 echo $ECHO_N "(cached) $ECHO_C" >&6
16259 eval "$as_ac_Header=\$ac_header_preproc"
16261 ac_res=`eval echo '${'$as_ac_Header'}'`
16262 { echo "$as_me:$LINENO: result: $ac_res" >&5
16263 echo "${ECHO_T}$ac_res" >&6; }
16266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16267 cat >>confdefs.h <<_ACEOF
16268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16276 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16277 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16278 cat >conftest.$ac_ext <<_ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16284 extern const char *__crashreporter_info__;
16286 __crashreporter_info__ = "test";
16291 rm -f conftest.$ac_objext conftest$ac_exeext
16292 if { (ac_try="$ac_link"
16293 case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_link") 2>conftest.er1
16300 grep -v '^ *+' conftest.er1 >conftest.err
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } &&
16305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16306 { (case "(($ac_try" in
16307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308 *) ac_try_echo=$ac_try;;
16310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16311 (eval "$ac_try") 2>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try='test -s conftest$ac_exeext'
16316 { (case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_try") 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 { echo "$as_me:$LINENO: result: yes" >&5
16326 echo "${ECHO_T}yes" >&6; }
16328 cat >>confdefs.h <<\_ACEOF
16329 #define HAVE_CRASHREPORTER_INFO 1
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 { echo "$as_me:$LINENO: result: no" >&5
16337 echo "${ECHO_T}no" >&6; }
16339 cat >>confdefs.h <<\_ACEOF
16340 #define HAVE_CRASHREPORTER_INFO 0
16345 rm -f core conftest.err conftest.$ac_objext \
16346 conftest$ac_exeext conftest.$ac_ext
16351 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16352 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16353 if test "${ac_cv_huge_val_sanity+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16358 ac_cpp='$CXXCPP $CPPFLAGS'
16359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16363 ac_save_CXXFLAGS=$CXXFLAGS
16365 if test "$cross_compiling" = yes; then
16366 ac_cv_huge_val_sanity=yes
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16378 double x = HUGE_VAL; return x != x;
16383 rm -f conftest$ac_exeext
16384 if { (ac_try="$ac_link"
16385 case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_link") 2>&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16394 { (case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399 (eval "$ac_try") 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 ac_cv_huge_val_sanity=yes
16405 echo "$as_me: program exited with status $ac_status" >&5
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16409 ( exit $ac_status )
16410 ac_cv_huge_val_sanity=no
16412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16416 CXXFLAGS=$ac_save_CXXFLAGS
16418 ac_cpp='$CPP $CPPFLAGS'
16419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16425 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16426 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16427 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16430 { echo "$as_me:$LINENO: checking for pid_t" >&5
16431 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16432 if test "${ac_cv_type_pid_t+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16435 cat >conftest.$ac_ext <<_ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16441 $ac_includes_default
16442 typedef pid_t ac__type_new_;
16446 if ((ac__type_new_ *) 0)
16448 if (sizeof (ac__type_new_))
16454 rm -f conftest.$ac_objext
16455 if { (ac_try="$ac_compile"
16456 case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_compile") 2>conftest.er1
16463 grep -v '^ *+' conftest.er1 >conftest.err
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16469 { (case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_try") 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 ac_cv_type_pid_t=yes
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16493 ac_cv_type_pid_t=no
16496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16498 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16499 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16500 if test $ac_cv_type_pid_t = yes; then
16504 cat >>confdefs.h <<_ACEOF
16510 { echo "$as_me:$LINENO: checking for size_t" >&5
16511 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16512 if test "${ac_cv_type_size_t+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 $ac_includes_default
16522 typedef size_t ac__type_new_;
16526 if ((ac__type_new_ *) 0)
16528 if (sizeof (ac__type_new_))
16534 rm -f conftest.$ac_objext
16535 if { (ac_try="$ac_compile"
16536 case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_compile") 2>conftest.er1
16543 grep -v '^ *+' conftest.er1 >conftest.err
16545 cat conftest.err >&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16549 { (case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_try") 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_try") 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; }; then
16568 ac_cv_type_size_t=yes
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16573 ac_cv_type_size_t=no
16576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16578 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16579 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16580 if test $ac_cv_type_size_t = yes; then
16584 cat >>confdefs.h <<_ACEOF
16585 #define size_t unsigned int
16591 cat >>confdefs.h <<_ACEOF
16592 #define RETSIGTYPE void
16595 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16596 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16597 if test "${ac_cv_struct_tm+set}" = set; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 cat >conftest.$ac_ext <<_ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16606 #include <sys/types.h>
16612 struct tm *tp; tp->tm_sec;
16617 rm -f conftest.$ac_objext
16618 if { (ac_try="$ac_compile"
16619 case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_compile") 2>conftest.er1
16626 grep -v '^ *+' conftest.er1 >conftest.err
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_struct_tm=time.h
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_cv_struct_tm=sys/time.h
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16662 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16663 if test $ac_cv_struct_tm = sys/time.h; then
16665 cat >>confdefs.h <<\_ACEOF
16666 #define TM_IN_SYS_TIME 1
16671 { echo "$as_me:$LINENO: checking for int64_t" >&5
16672 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16673 if test "${ac_cv_type_int64_t+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16676 cat >conftest.$ac_ext <<_ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h. */
16682 $ac_includes_default
16683 typedef int64_t ac__type_new_;
16687 if ((ac__type_new_ *) 0)
16689 if (sizeof (ac__type_new_))
16695 rm -f conftest.$ac_objext
16696 if { (ac_try="$ac_compile"
16697 case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16704 grep -v '^ *+' conftest.er1 >conftest.err
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_type_int64_t=yes
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_cv_type_int64_t=no
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16739 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16740 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16741 if test $ac_cv_type_int64_t = yes; then
16743 cat >>confdefs.h <<_ACEOF
16744 #define HAVE_INT64_T 1
16749 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16750 echo "$as_me: error: Type int64_t required but not found" >&2;}
16751 { (exit 1); exit 1; }; }
16754 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16755 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16756 if test "${ac_cv_type_uint64_t+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 $ac_includes_default
16766 typedef uint64_t ac__type_new_;
16770 if ((ac__type_new_ *) 0)
16772 if (sizeof (ac__type_new_))
16778 rm -f conftest.$ac_objext
16779 if { (ac_try="$ac_compile"
16780 case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_compile") 2>conftest.er1
16787 grep -v '^ *+' conftest.er1 >conftest.err
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16793 { (case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_try") 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } &&
16802 { ac_try='test -s conftest.$ac_objext'
16803 { (case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_try") 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_cv_type_uint64_t=yes
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16817 ac_cv_type_uint64_t=no
16820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16822 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16823 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16824 if test $ac_cv_type_uint64_t = yes; then
16826 cat >>confdefs.h <<_ACEOF
16827 #define HAVE_UINT64_T 1
16832 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16833 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16834 if test "${ac_cv_type_u_int64_t+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 cat >conftest.$ac_ext <<_ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16843 $ac_includes_default
16844 typedef u_int64_t ac__type_new_;
16848 if ((ac__type_new_ *) 0)
16850 if (sizeof (ac__type_new_))
16856 rm -f conftest.$ac_objext
16857 if { (ac_try="$ac_compile"
16858 case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_compile") 2>conftest.er1
16865 grep -v '^ *+' conftest.er1 >conftest.err
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16871 { (case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_try") 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest.$ac_objext'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 ac_cv_type_u_int64_t=yes
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16895 ac_cv_type_u_int64_t=no
16898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16900 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16901 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16902 if test $ac_cv_type_u_int64_t = yes; then
16904 cat >>confdefs.h <<_ACEOF
16905 #define HAVE_U_INT64_T 1
16910 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16911 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16912 { (exit 1); exit 1; }; }
16926 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 cat >conftest.$ac_ext <<_ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16942 #define $ac_func innocuous_$ac_func
16944 /* System header to define __stub macros and hopefully few prototypes,
16945 which can conflict with char $ac_func (); below.
16946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16947 <limits.h> exists even on freestanding compilers. */
16950 # include <limits.h>
16952 # include <assert.h>
16957 /* Override any GCC internal prototype to avoid an error.
16958 Use char because int might match the return type of a GCC
16959 builtin and then its argument prototype would still apply. */
16964 /* The GNU C library defines this for functions which it implements
16965 to always fail with ENOSYS. Some functions are actually named
16966 something starting with __ and the normal name is an alias. */
16967 #if defined __stub_$ac_func || defined __stub___$ac_func
16974 return $ac_func ();
16979 rm -f conftest.$ac_objext conftest$ac_exeext
16980 if { (ac_try="$ac_link"
16981 case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_link") 2>conftest.er1
16988 grep -v '^ *+' conftest.er1 >conftest.err
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
16993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16994 { (case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest$ac_exeext'
17004 { (case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_try") 2>&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 eval "$as_ac_var=yes"
17015 echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17018 eval "$as_ac_var=no"
17021 rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17024 ac_res=`eval echo '${'$as_ac_var'}'`
17025 { echo "$as_me:$LINENO: result: $ac_res" >&5
17026 echo "${ECHO_T}$ac_res" >&6; }
17027 if test `eval echo '${'$as_ac_var'}'` = yes; then
17028 cat >>confdefs.h <<_ACEOF
17029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17039 for ac_func in powf fmodf strtof round
17041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 cat >conftest.$ac_ext <<_ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17055 #define $ac_func innocuous_$ac_func
17057 /* System header to define __stub macros and hopefully few prototypes,
17058 which can conflict with char $ac_func (); below.
17059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17060 <limits.h> exists even on freestanding compilers. */
17063 # include <limits.h>
17065 # include <assert.h>
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17077 /* The GNU C library defines this for functions which it implements
17078 to always fail with ENOSYS. Some functions are actually named
17079 something starting with __ and the normal name is an alias. */
17080 #if defined __stub_$ac_func || defined __stub___$ac_func
17087 return $ac_func ();
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17101 grep -v '^ *+' conftest.er1 >conftest.err
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } &&
17106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17107 { (case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_try") 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest$ac_exeext'
17117 { (case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_try") 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 eval "$as_ac_var=yes"
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17131 eval "$as_ac_var=no"
17134 rm -f core conftest.err conftest.$ac_objext \
17135 conftest$ac_exeext conftest.$ac_ext
17137 ac_res=`eval echo '${'$as_ac_var'}'`
17138 { echo "$as_me:$LINENO: result: $ac_res" >&5
17139 echo "${ECHO_T}$ac_res" >&6; }
17140 if test `eval echo '${'$as_ac_var'}'` = yes; then
17141 cat >>confdefs.h <<_ACEOF
17142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17153 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17169 #define $ac_func innocuous_$ac_func
17171 /* System header to define __stub macros and hopefully few prototypes,
17172 which can conflict with char $ac_func (); below.
17173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17174 <limits.h> exists even on freestanding compilers. */
17177 # include <limits.h>
17179 # include <assert.h>
17184 /* Override any GCC internal prototype to avoid an error.
17185 Use char because int might match the return type of a GCC
17186 builtin and then its argument prototype would still apply. */
17191 /* The GNU C library defines this for functions which it implements
17192 to always fail with ENOSYS. Some functions are actually named
17193 something starting with __ and the normal name is an alias. */
17194 #if defined __stub_$ac_func || defined __stub___$ac_func
17201 return $ac_func ();
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (ac_try="$ac_link"
17208 case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_link") 2>conftest.er1
17215 grep -v '^ *+' conftest.er1 >conftest.err
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17221 { (case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_try") 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; } &&
17230 { ac_try='test -s conftest$ac_exeext'
17231 { (case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_try") 2>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 eval "$as_ac_var=yes"
17242 echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17245 eval "$as_ac_var=no"
17248 rm -f core conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
17251 ac_res=`eval echo '${'$as_ac_var'}'`
17252 { echo "$as_me:$LINENO: result: $ac_res" >&5
17253 echo "${ECHO_T}$ac_res" >&6; }
17254 if test `eval echo '${'$as_ac_var'}'` = yes; then
17255 cat >>confdefs.h <<_ACEOF
17256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17265 for ac_func in isatty mkdtemp mkstemp
17267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17268 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 cat >conftest.$ac_ext <<_ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h. */
17279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17281 #define $ac_func innocuous_$ac_func
17283 /* System header to define __stub macros and hopefully few prototypes,
17284 which can conflict with char $ac_func (); below.
17285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17286 <limits.h> exists even on freestanding compilers. */
17289 # include <limits.h>
17291 # include <assert.h>
17296 /* Override any GCC internal prototype to avoid an error.
17297 Use char because int might match the return type of a GCC
17298 builtin and then its argument prototype would still apply. */
17303 /* The GNU C library defines this for functions which it implements
17304 to always fail with ENOSYS. Some functions are actually named
17305 something starting with __ and the normal name is an alias. */
17306 #if defined __stub_$ac_func || defined __stub___$ac_func
17313 return $ac_func ();
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_link") 2>conftest.er1
17327 grep -v '^ *+' conftest.er1 >conftest.err
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } &&
17332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17333 { (case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338 (eval "$ac_try") 2>&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; } &&
17342 { ac_try='test -s conftest$ac_exeext'
17343 { (case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_try") 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352 eval "$as_ac_var=yes"
17354 echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17357 eval "$as_ac_var=no"
17360 rm -f core conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17363 ac_res=`eval echo '${'$as_ac_var'}'`
17364 { echo "$as_me:$LINENO: result: $ac_res" >&5
17365 echo "${ECHO_T}$ac_res" >&6; }
17366 if test `eval echo '${'$as_ac_var'}'` = yes; then
17367 cat >>confdefs.h <<_ACEOF
17368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17381 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 cat >conftest.$ac_ext <<_ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17397 #define $ac_func innocuous_$ac_func
17399 /* System header to define __stub macros and hopefully few prototypes,
17400 which can conflict with char $ac_func (); below.
17401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17402 <limits.h> exists even on freestanding compilers. */
17405 # include <limits.h>
17407 # include <assert.h>
17412 /* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17419 /* The GNU C library defines this for functions which it implements
17420 to always fail with ENOSYS. Some functions are actually named
17421 something starting with __ and the normal name is an alias. */
17422 #if defined __stub_$ac_func || defined __stub___$ac_func
17429 return $ac_func ();
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_link") 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
17448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17449 { (case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_try") 2>&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest$ac_exeext'
17459 { (case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_try") 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 eval "$as_ac_var=yes"
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 eval "$as_ac_var=no"
17476 rm -f core conftest.err conftest.$ac_objext \
17477 conftest$ac_exeext conftest.$ac_ext
17479 ac_res=`eval echo '${'$as_ac_var'}'`
17480 { echo "$as_me:$LINENO: result: $ac_res" >&5
17481 echo "${ECHO_T}$ac_res" >&6; }
17482 if test `eval echo '${'$as_ac_var'}'` = yes; then
17483 cat >>confdefs.h <<_ACEOF
17484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17493 for ac_func in strerror strerror_r setenv
17495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 cat >conftest.$ac_ext <<_ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17509 #define $ac_func innocuous_$ac_func
17511 /* System header to define __stub macros and hopefully few prototypes,
17512 which can conflict with char $ac_func (); below.
17513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17514 <limits.h> exists even on freestanding compilers. */
17517 # include <limits.h>
17519 # include <assert.h>
17524 /* Override any GCC internal prototype to avoid an error.
17525 Use char because int might match the return type of a GCC
17526 builtin and then its argument prototype would still apply. */
17531 /* The GNU C library defines this for functions which it implements
17532 to always fail with ENOSYS. Some functions are actually named
17533 something starting with __ and the normal name is an alias. */
17534 #if defined __stub_$ac_func || defined __stub___$ac_func
17541 return $ac_func ();
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (ac_try="$ac_link"
17548 case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_link") 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest$ac_exeext'
17571 { (case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_try") 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 eval "$as_ac_var=yes"
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 eval "$as_ac_var=no"
17588 rm -f core conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17591 ac_res=`eval echo '${'$as_ac_var'}'`
17592 { echo "$as_me:$LINENO: result: $ac_res" >&5
17593 echo "${ECHO_T}$ac_res" >&6; }
17594 if test `eval echo '${'$as_ac_var'}'` = yes; then
17595 cat >>confdefs.h <<_ACEOF
17596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17606 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 cat >conftest.$ac_ext <<_ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17622 #define $ac_func innocuous_$ac_func
17624 /* System header to define __stub macros and hopefully few prototypes,
17625 which can conflict with char $ac_func (); below.
17626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17627 <limits.h> exists even on freestanding compilers. */
17630 # include <limits.h>
17632 # include <assert.h>
17637 /* Override any GCC internal prototype to avoid an error.
17638 Use char because int might match the return type of a GCC
17639 builtin and then its argument prototype would still apply. */
17644 /* The GNU C library defines this for functions which it implements
17645 to always fail with ENOSYS. Some functions are actually named
17646 something starting with __ and the normal name is an alias. */
17647 #if defined __stub_$ac_func || defined __stub___$ac_func
17654 return $ac_func ();
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_link") 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17674 { (case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_try") 2>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest$ac_exeext'
17684 { (case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_try") 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 eval "$as_ac_var=yes"
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 eval "$as_ac_var=no"
17701 rm -f core conftest.err conftest.$ac_objext \
17702 conftest$ac_exeext conftest.$ac_ext
17704 ac_res=`eval echo '${'$as_ac_var'}'`
17705 { echo "$as_me:$LINENO: result: $ac_res" >&5
17706 echo "${ECHO_T}$ac_res" >&6; }
17707 if test `eval echo '${'$as_ac_var'}'` = yes; then
17708 cat >>confdefs.h <<_ACEOF
17709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17720 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17726 echo $ECHO_N "(cached) $ECHO_C" >&6
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17736 #define $ac_func innocuous_$ac_func
17738 /* System header to define __stub macros and hopefully few prototypes,
17739 which can conflict with char $ac_func (); below.
17740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17741 <limits.h> exists even on freestanding compilers. */
17744 # include <limits.h>
17746 # include <assert.h>
17751 /* Override any GCC internal prototype to avoid an error.
17752 Use char because int might match the return type of a GCC
17753 builtin and then its argument prototype would still apply. */
17758 /* The GNU C library defines this for functions which it implements
17759 to always fail with ENOSYS. Some functions are actually named
17760 something starting with __ and the normal name is an alias. */
17761 #if defined __stub_$ac_func || defined __stub___$ac_func
17768 return $ac_func ();
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (ac_try="$ac_link"
17775 case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_link") 2>conftest.er1
17782 grep -v '^ *+' conftest.er1 >conftest.err
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17788 { (case "(($ac_try" in
17789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790 *) ac_try_echo=$ac_try;;
17792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793 (eval "$ac_try") 2>&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try='test -s conftest$ac_exeext'
17798 { (case "(($ac_try" in
17799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800 *) ac_try_echo=$ac_try;;
17802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803 (eval "$ac_try") 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; }; then
17807 eval "$as_ac_var=yes"
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 eval "$as_ac_var=no"
17815 rm -f core conftest.err conftest.$ac_objext \
17816 conftest$ac_exeext conftest.$ac_ext
17818 ac_res=`eval echo '${'$as_ac_var'}'`
17819 { echo "$as_me:$LINENO: result: $ac_res" >&5
17820 echo "${ECHO_T}$ac_res" >&6; }
17821 if test `eval echo '${'$as_ac_var'}'` = yes; then
17822 cat >>confdefs.h <<_ACEOF
17823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17829 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17830 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17831 if test "${llvm_cv_c_printf_a+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 ac_cpp='$CPP $CPPFLAGS'
17836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17840 if test "$cross_compiling" = yes; then
17841 llvmac_cv_c_printf_a=no
17843 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17852 #include <stdlib.h>
17858 volatile double A, B;
17862 sprintf(Buffer, "%a", A);
17866 if (A != 0x1.999999999999ap-4)
17873 rm -f conftest$ac_exeext
17874 if { (ac_try="$ac_link"
17875 case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_link") 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17884 { (case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_try") 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 llvm_cv_c_printf_a=yes
17895 echo "$as_me: program exited with status $ac_status" >&5
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 ( exit $ac_status )
17900 llvmac_cv_c_printf_a=no
17902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17907 ac_cpp='$CPP $CPPFLAGS'
17908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17913 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17914 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17915 if test "$llvm_cv_c_printf_a" = "yes"; then
17917 cat >>confdefs.h <<\_ACEOF
17918 #define HAVE_PRINTF_A 1
17924 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17925 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17926 if test "${ac_cv_func_rand48+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 ac_cpp='$CXXCPP $CPPFLAGS'
17931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17935 cat >conftest.$ac_ext <<_ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17941 #include <stdlib.h>
17945 srand48(0);lrand48();drand48();
17950 rm -f conftest.$ac_objext
17951 if { (ac_try="$ac_compile"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17965 { (case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_try") 2>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest.$ac_objext'
17975 { (case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_try") 2>&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
17984 ac_cv_func_rand48=yes
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17989 ac_cv_func_rand48=no
17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994 ac_cpp='$CPP $CPPFLAGS'
17995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18000 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18001 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18003 if test "$ac_cv_func_rand48" = "yes" ; then
18005 cat >>confdefs.h <<\_ACEOF
18006 #define HAVE_RAND48 1
18012 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18013 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18014 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 cat >conftest.$ac_ext <<_ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18023 $ac_includes_default
18028 char *p = (char *) strerror_s;
18036 rm -f conftest.$ac_objext
18037 if { (ac_try="$ac_compile"
18038 case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_compile") 2>conftest.er1
18045 grep -v '^ *+' conftest.er1 >conftest.err
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest.$ac_objext'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_have_decl_strerror_s=yes
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18075 ac_cv_have_decl_strerror_s=no
18078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18080 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18081 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18082 if test $ac_cv_have_decl_strerror_s = yes; then
18084 cat >>confdefs.h <<_ACEOF
18085 #define HAVE_DECL_STRERROR_S 1
18090 cat >>confdefs.h <<_ACEOF
18091 #define HAVE_DECL_STRERROR_S 0
18099 if test "$llvm_cv_os_type" = "MingW" ; then
18100 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18101 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18102 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18105 ac_check_lib_save_LIBS=$LIBS
18107 cat >conftest.$ac_ext <<_ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18114 /* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (ac_try="$ac_link"
18131 case "(($ac_try" in
18132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133 *) ac_try_echo=$ac_try;;
18135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136 (eval "$ac_link") 2>conftest.er1
18138 grep -v '^ *+' conftest.er1 >conftest.err
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
18143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18144 { (case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_try") 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; } &&
18153 { ac_try='test -s conftest$ac_exeext'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_try") 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 ac_cv_lib_gcc__alloca=yes
18165 echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18168 ac_cv_lib_gcc__alloca=no
18171 rm -f core conftest.err conftest.$ac_objext \
18172 conftest$ac_exeext conftest.$ac_ext
18173 LIBS=$ac_check_lib_save_LIBS
18175 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18176 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18177 if test $ac_cv_lib_gcc__alloca = yes; then
18179 cat >>confdefs.h <<\_ACEOF
18180 #define HAVE__ALLOCA 1
18185 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18186 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18187 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 ac_check_lib_save_LIBS=$LIBS
18192 cat >conftest.$ac_ext <<_ACEOF
18195 cat confdefs.h >>conftest.$ac_ext
18196 cat >>conftest.$ac_ext <<_ACEOF
18197 /* end confdefs.h. */
18199 /* Override any GCC internal prototype to avoid an error.
18200 Use char because int might match the return type of a GCC
18201 builtin and then its argument prototype would still apply. */
18209 return __alloca ();
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (ac_try="$ac_link"
18216 case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_link") 2>conftest.er1
18223 grep -v '^ *+' conftest.er1 >conftest.err
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest$ac_exeext'
18239 { (case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_try") 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 ac_cv_lib_gcc___alloca=yes
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 ac_cv_lib_gcc___alloca=no
18256 rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258 LIBS=$ac_check_lib_save_LIBS
18260 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18261 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18262 if test $ac_cv_lib_gcc___alloca = yes; then
18264 cat >>confdefs.h <<\_ACEOF
18265 #define HAVE___ALLOCA 1
18270 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18271 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18272 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 ac_check_lib_save_LIBS=$LIBS
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18284 /* Override any GCC internal prototype to avoid an error.
18285 Use char because int might match the return type of a GCC
18286 builtin and then its argument prototype would still apply. */
18294 return __chkstk ();
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (ac_try="$ac_link"
18301 case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_link") 2>conftest.er1
18308 grep -v '^ *+' conftest.er1 >conftest.err
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
18313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18314 { (case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319 (eval "$ac_try") 2>&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; } &&
18323 { ac_try='test -s conftest$ac_exeext'
18324 { (case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_try") 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_cv_lib_gcc___chkstk=yes
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 ac_cv_lib_gcc___chkstk=no
18341 rm -f core conftest.err conftest.$ac_objext \
18342 conftest$ac_exeext conftest.$ac_ext
18343 LIBS=$ac_check_lib_save_LIBS
18345 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18346 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18347 if test $ac_cv_lib_gcc___chkstk = yes; then
18349 cat >>confdefs.h <<\_ACEOF
18350 #define HAVE___CHKSTK 1
18355 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18356 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18357 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 ac_check_lib_save_LIBS=$LIBS
18362 cat >conftest.$ac_ext <<_ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h. */
18369 /* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18379 return ___chkstk ();
18384 rm -f conftest.$ac_objext conftest$ac_exeext
18385 if { (ac_try="$ac_link"
18386 case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_link") 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_try") 2>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_cv_lib_gcc____chkstk=yes
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 ac_cv_lib_gcc____chkstk=no
18426 rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18428 LIBS=$ac_check_lib_save_LIBS
18430 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18431 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18432 if test $ac_cv_lib_gcc____chkstk = yes; then
18434 cat >>confdefs.h <<\_ACEOF
18435 #define HAVE____CHKSTK 1
18441 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18442 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18443 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 ac_check_lib_save_LIBS=$LIBS
18448 cat >conftest.$ac_ext <<_ACEOF
18451 cat confdefs.h >>conftest.$ac_ext
18452 cat >>conftest.$ac_ext <<_ACEOF
18453 /* end confdefs.h. */
18455 /* Override any GCC internal prototype to avoid an error.
18456 Use char because int might match the return type of a GCC
18457 builtin and then its argument prototype would still apply. */
18465 return __ashldi3 ();
18470 rm -f conftest.$ac_objext conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_link") 2>conftest.er1
18479 grep -v '^ *+' conftest.er1 >conftest.err
18481 cat conftest.err >&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } &&
18484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18485 { (case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_try") 2>&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; } &&
18494 { ac_try='test -s conftest$ac_exeext'
18495 { (case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_try") 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_lib_gcc___ashldi3=yes
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18509 ac_cv_lib_gcc___ashldi3=no
18512 rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18514 LIBS=$ac_check_lib_save_LIBS
18516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18517 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18518 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18520 cat >>confdefs.h <<\_ACEOF
18521 #define HAVE___ASHLDI3 1
18526 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18527 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18528 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18531 ac_check_lib_save_LIBS=$LIBS
18533 cat >conftest.$ac_ext <<_ACEOF
18536 cat confdefs.h >>conftest.$ac_ext
18537 cat >>conftest.$ac_ext <<_ACEOF
18538 /* end confdefs.h. */
18540 /* Override any GCC internal prototype to avoid an error.
18541 Use char because int might match the return type of a GCC
18542 builtin and then its argument prototype would still apply. */
18550 return __ashrdi3 ();
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (ac_try="$ac_link"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_link") 2>conftest.er1
18564 grep -v '^ *+' conftest.er1 >conftest.err
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18570 { (case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_try") 2>&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; } &&
18579 { ac_try='test -s conftest$ac_exeext'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 ac_cv_lib_gcc___ashrdi3=yes
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 ac_cv_lib_gcc___ashrdi3=no
18597 rm -f core conftest.err conftest.$ac_objext \
18598 conftest$ac_exeext conftest.$ac_ext
18599 LIBS=$ac_check_lib_save_LIBS
18601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18602 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18603 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18605 cat >>confdefs.h <<\_ACEOF
18606 #define HAVE___ASHRDI3 1
18611 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18612 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18613 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 ac_check_lib_save_LIBS=$LIBS
18618 cat >conftest.$ac_ext <<_ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18625 /* Override any GCC internal prototype to avoid an error.
18626 Use char because int might match the return type of a GCC
18627 builtin and then its argument prototype would still apply. */
18635 return __divdi3 ();
18640 rm -f conftest.$ac_objext conftest$ac_exeext
18641 if { (ac_try="$ac_link"
18642 case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_link") 2>conftest.er1
18649 grep -v '^ *+' conftest.er1 >conftest.err
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18655 { (case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_try") 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest$ac_exeext'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_cv_lib_gcc___divdi3=yes
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18679 ac_cv_lib_gcc___divdi3=no
18682 rm -f core conftest.err conftest.$ac_objext \
18683 conftest$ac_exeext conftest.$ac_ext
18684 LIBS=$ac_check_lib_save_LIBS
18686 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18687 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18688 if test $ac_cv_lib_gcc___divdi3 = yes; then
18690 cat >>confdefs.h <<\_ACEOF
18691 #define HAVE___DIVDI3 1
18696 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18697 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18698 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18701 ac_check_lib_save_LIBS=$LIBS
18703 cat >conftest.$ac_ext <<_ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18720 return __fixdfdi ();
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (ac_try="$ac_link"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_link") 2>conftest.er1
18734 grep -v '^ *+' conftest.er1 >conftest.err
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest$ac_exeext'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_lib_gcc___fixdfdi=yes
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_cv_lib_gcc___fixdfdi=no
18767 rm -f core conftest.err conftest.$ac_objext \
18768 conftest$ac_exeext conftest.$ac_ext
18769 LIBS=$ac_check_lib_save_LIBS
18771 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18772 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18773 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18775 cat >>confdefs.h <<\_ACEOF
18776 #define HAVE___FIXDFDI 1
18781 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18782 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18783 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18786 ac_check_lib_save_LIBS=$LIBS
18788 cat >conftest.$ac_ext <<_ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18795 /* Override any GCC internal prototype to avoid an error.
18796 Use char because int might match the return type of a GCC
18797 builtin and then its argument prototype would still apply. */
18805 return __fixsfdi ();
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_link") 2>conftest.er1
18819 grep -v '^ *+' conftest.er1 >conftest.err
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } &&
18824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18825 { (case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_try") 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try='test -s conftest$ac_exeext'
18835 { (case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_try") 2>&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844 ac_cv_lib_gcc___fixsfdi=yes
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18849 ac_cv_lib_gcc___fixsfdi=no
18852 rm -f core conftest.err conftest.$ac_objext \
18853 conftest$ac_exeext conftest.$ac_ext
18854 LIBS=$ac_check_lib_save_LIBS
18856 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18857 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18858 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18860 cat >>confdefs.h <<\_ACEOF
18861 #define HAVE___FIXSFDI 1
18866 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18867 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18868 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 ac_check_lib_save_LIBS=$LIBS
18873 cat >conftest.$ac_ext <<_ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h. */
18880 /* Override any GCC internal prototype to avoid an error.
18881 Use char because int might match the return type of a GCC
18882 builtin and then its argument prototype would still apply. */
18886 char __floatdidf ();
18890 return __floatdidf ();
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_link") 2>conftest.er1
18904 grep -v '^ *+' conftest.er1 >conftest.err
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } &&
18909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18910 { (case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_try") 2>&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; } &&
18919 { ac_try='test -s conftest$ac_exeext'
18920 { (case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_try") 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 ac_cv_lib_gcc___floatdidf=yes
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18934 ac_cv_lib_gcc___floatdidf=no
18937 rm -f core conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
18939 LIBS=$ac_check_lib_save_LIBS
18941 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18942 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18943 if test $ac_cv_lib_gcc___floatdidf = yes; then
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE___FLOATDIDF 1
18951 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18952 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18953 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 ac_check_lib_save_LIBS=$LIBS
18958 cat >conftest.$ac_ext <<_ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18965 /* Override any GCC internal prototype to avoid an error.
18966 Use char because int might match the return type of a GCC
18967 builtin and then its argument prototype would still apply. */
18975 return __lshrdi3 ();
18980 rm -f conftest.$ac_objext conftest$ac_exeext
18981 if { (ac_try="$ac_link"
18982 case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_link") 2>conftest.er1
18989 grep -v '^ *+' conftest.er1 >conftest.err
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18995 { (case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_try") 2>&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; } &&
19004 { ac_try='test -s conftest$ac_exeext'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19014 ac_cv_lib_gcc___lshrdi3=yes
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 ac_cv_lib_gcc___lshrdi3=no
19022 rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19026 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19027 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19028 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19030 cat >>confdefs.h <<\_ACEOF
19031 #define HAVE___LSHRDI3 1
19036 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19037 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19038 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 ac_check_lib_save_LIBS=$LIBS
19043 cat >conftest.$ac_ext <<_ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19060 return __moddi3 ();
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (ac_try="$ac_link"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_link") 2>conftest.er1
19074 grep -v '^ *+' conftest.er1 >conftest.err
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } &&
19079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19080 { (case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_try") 2>&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest$ac_exeext'
19090 { (case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_lib_gcc___moddi3=yes
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_lib_gcc___moddi3=no
19107 rm -f core conftest.err conftest.$ac_objext \
19108 conftest$ac_exeext conftest.$ac_ext
19109 LIBS=$ac_check_lib_save_LIBS
19111 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19112 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19113 if test $ac_cv_lib_gcc___moddi3 = yes; then
19115 cat >>confdefs.h <<\_ACEOF
19116 #define HAVE___MODDI3 1
19121 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19122 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19123 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19126 ac_check_lib_save_LIBS=$LIBS
19128 cat >conftest.$ac_ext <<_ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h. */
19135 /* Override any GCC internal prototype to avoid an error.
19136 Use char because int might match the return type of a GCC
19137 builtin and then its argument prototype would still apply. */
19145 return __udivdi3 ();
19150 rm -f conftest.$ac_objext conftest$ac_exeext
19151 if { (ac_try="$ac_link"
19152 case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_link") 2>conftest.er1
19159 grep -v '^ *+' conftest.er1 >conftest.err
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
19164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19165 { (case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_try") 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; } &&
19174 { ac_try='test -s conftest$ac_exeext'
19175 { (case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_try") 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 ac_cv_lib_gcc___udivdi3=yes
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19189 ac_cv_lib_gcc___udivdi3=no
19192 rm -f core conftest.err conftest.$ac_objext \
19193 conftest$ac_exeext conftest.$ac_ext
19194 LIBS=$ac_check_lib_save_LIBS
19196 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19197 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19198 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE___UDIVDI3 1
19206 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19207 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19208 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 ac_check_lib_save_LIBS=$LIBS
19213 cat >conftest.$ac_ext <<_ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19220 /* Override any GCC internal prototype to avoid an error.
19221 Use char because int might match the return type of a GCC
19222 builtin and then its argument prototype would still apply. */
19230 return __umoddi3 ();
19235 rm -f conftest.$ac_objext conftest$ac_exeext
19236 if { (ac_try="$ac_link"
19237 case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_link") 2>conftest.er1
19244 grep -v '^ *+' conftest.er1 >conftest.err
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest$ac_exeext'
19260 { (case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_cv_lib_gcc___umoddi3=yes
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 ac_cv_lib_gcc___umoddi3=no
19277 rm -f core conftest.err conftest.$ac_objext \
19278 conftest$ac_exeext conftest.$ac_ext
19279 LIBS=$ac_check_lib_save_LIBS
19281 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19282 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19283 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19285 cat >>confdefs.h <<\_ACEOF
19286 #define HAVE___UMODDI3 1
19292 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19293 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19294 if test "${ac_cv_lib_gcc___main+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 ac_check_lib_save_LIBS=$LIBS
19299 cat >conftest.$ac_ext <<_ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19306 /* Override any GCC internal prototype to avoid an error.
19307 Use char because int might match the return type of a GCC
19308 builtin and then its argument prototype would still apply. */
19321 rm -f conftest.$ac_objext conftest$ac_exeext
19322 if { (ac_try="$ac_link"
19323 case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_link") 2>conftest.er1
19330 grep -v '^ *+' conftest.er1 >conftest.err
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try='test -s conftest$ac_exeext'
19346 { (case "(($ac_try" in
19347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_try") 2>&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19355 ac_cv_lib_gcc___main=yes
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 ac_cv_lib_gcc___main=no
19363 rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19367 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19368 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19369 if test $ac_cv_lib_gcc___main = yes; then
19371 cat >>confdefs.h <<\_ACEOF
19372 #define HAVE___MAIN 1
19377 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19378 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19379 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 ac_check_lib_save_LIBS=$LIBS
19384 cat >conftest.$ac_ext <<_ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19391 /* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19401 return __cmpdi2 ();
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_link") 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
19420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19421 { (case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_try") 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest$ac_exeext'
19431 { (case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_try") 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 ac_cv_lib_gcc___cmpdi2=yes
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ac_cv_lib_gcc___cmpdi2=no
19448 rm -f core conftest.err conftest.$ac_objext \
19449 conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19452 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19453 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19454 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19456 cat >>confdefs.h <<\_ACEOF
19457 #define HAVE___CMPDI2 1
19464 if test "$llvm_cv_os_type" = "MingW" ; then
19465 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19466 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19467 cat >conftest.$ac_ext <<_ACEOF
19468 #include <windows.h>
19469 #include <imagehlp.h>
19470 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19471 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19473 rm -f conftest.$ac_objext
19474 if { (ac_try="$ac_compile"
19475 case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_compile") 2>conftest.er1
19482 grep -v '^ *+' conftest.er1 >conftest.err
19484 cat conftest.err >&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
19487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19488 { (case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_try") 2>&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; } &&
19497 { ac_try='test -s conftest.$ac_objext'
19498 { (case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_try") 2>&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; }; then
19508 { echo "$as_me:$LINENO: result: yes" >&5
19509 echo "${ECHO_T}yes" >&6; }
19510 llvm_cv_win32_elmcb_pcstr="PCSTR"
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19517 { echo "$as_me:$LINENO: result: no" >&5
19518 echo "${ECHO_T}no" >&6; }
19519 llvm_cv_win32_elmcb_pcstr="PSTR"
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525 cat >>confdefs.h <<_ACEOF
19526 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19532 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19533 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19534 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19538 ac_cpp='$CXXCPP $CPPFLAGS'
19539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19543 cat >conftest.$ac_ext <<_ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h. */
19558 rm -f conftest.$ac_objext
19559 if { (ac_try="$ac_compile"
19560 case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_compile") 2>conftest.er1
19567 grep -v '^ *+' conftest.er1 >conftest.err
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19573 { (case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_try") 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
19583 { (case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_try") 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_cv_func_isnan_in_math_h=yes
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_func_isnan_in_math_h=no
19600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19602 ac_cpp='$CPP $CPPFLAGS'
19603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19608 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19609 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19612 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19614 cat >>confdefs.h <<\_ACEOF
19615 #define HAVE_ISNAN_IN_MATH_H 1
19620 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19621 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19622 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 ac_cpp='$CXXCPP $CPPFLAGS'
19627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19631 cat >conftest.$ac_ext <<_ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19646 rm -f conftest.$ac_objext
19647 if { (ac_try="$ac_compile"
19648 case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_compile") 2>conftest.er1
19655 grep -v '^ *+' conftest.er1 >conftest.err
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
19660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19661 { (case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_try") 2>&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); }; } &&
19670 { ac_try='test -s conftest.$ac_objext'
19671 { (case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_try") 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 ac_cv_func_isnan_in_cmath=yes
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 ac_cv_func_isnan_in_cmath=no
19688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690 ac_cpp='$CPP $CPPFLAGS'
19691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19696 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19697 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19699 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19701 cat >>confdefs.h <<\_ACEOF
19702 #define HAVE_ISNAN_IN_CMATH 1
19707 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19708 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19709 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 ac_cpp='$CXXCPP $CPPFLAGS'
19714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19718 cat >conftest.$ac_ext <<_ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19728 float f; std::isnan(f);
19733 rm -f conftest.$ac_objext
19734 if { (ac_try="$ac_compile"
19735 case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_compile") 2>conftest.er1
19742 grep -v '^ *+' conftest.er1 >conftest.err
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19748 { (case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_try") 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest.$ac_objext'
19758 { (case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_try") 2>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19767 ac_cv_func_std_isnan_in_cmath=yes
19769 echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 ac_cv_func_std_isnan_in_cmath=no
19775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777 ac_cpp='$CPP $CPPFLAGS'
19778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19783 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19784 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19786 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19788 cat >>confdefs.h <<\_ACEOF
19789 #define HAVE_STD_ISNAN_IN_CMATH 1
19795 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19796 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19797 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19798 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 ac_cpp='$CXXCPP $CPPFLAGS'
19802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19806 cat >conftest.$ac_ext <<_ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19821 rm -f conftest.$ac_objext
19822 if { (ac_try="$ac_compile"
19823 case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_compile") 2>conftest.er1
19830 grep -v '^ *+' conftest.er1 >conftest.err
19832 cat conftest.err >&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
19835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19836 { (case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_try") 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest.$ac_objext'
19846 { (case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_try") 2>&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_cv_func_isinf_in_math_h=yes
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_func_isinf_in_math_h=no
19863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19865 ac_cpp='$CPP $CPPFLAGS'
19866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19871 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19872 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19874 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19876 cat >>confdefs.h <<\_ACEOF
19877 #define HAVE_ISINF_IN_MATH_H 1
19882 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19883 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19884 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 ac_cpp='$CXXCPP $CPPFLAGS'
19889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19893 cat >conftest.$ac_ext <<_ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19908 rm -f conftest.$ac_objext
19909 if { (ac_try="$ac_compile"
19910 case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_compile") 2>conftest.er1
19917 grep -v '^ *+' conftest.er1 >conftest.err
19919 cat conftest.err >&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } &&
19922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19923 { (case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_try") 2>&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; } &&
19932 { ac_try='test -s conftest.$ac_objext'
19933 { (case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_try") 2>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
19942 ac_cv_func_isinf_in_cmath=yes
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 ac_cv_func_isinf_in_cmath=no
19950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952 ac_cpp='$CPP $CPPFLAGS'
19953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19958 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19959 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19961 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19963 cat >>confdefs.h <<\_ACEOF
19964 #define HAVE_ISINF_IN_CMATH 1
19969 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19970 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19971 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 ac_cpp='$CXXCPP $CPPFLAGS'
19976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19980 cat >conftest.$ac_ext <<_ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19990 float f; std::isinf(f)}
19995 rm -f conftest.$ac_objext
19996 if { (ac_try="$ac_compile"
19997 case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_compile") 2>conftest.er1
20004 grep -v '^ *+' conftest.er1 >conftest.err
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } &&
20009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20010 { (case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_try") 2>&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } &&
20019 { ac_try='test -s conftest.$ac_objext'
20020 { (case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_try") 2>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; }; then
20029 ac_cv_func_std_isinf_in_cmath=yes
20031 echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20034 ac_cv_func_std_isinf_in_cmath=no
20037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 ac_cpp='$CPP $CPPFLAGS'
20040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20045 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20046 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20048 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20050 cat >>confdefs.h <<\_ACEOF
20051 #define HAVE_STD_ISINF_IN_CMATH 1
20056 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20057 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20058 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 ac_cpp='$CXXCPP $CPPFLAGS'
20063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 #include <ieeefp.h>
20077 float f; finite(f);
20082 rm -f conftest.$ac_objext
20083 if { (ac_try="$ac_compile"
20084 case "(($ac_try" in
20085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086 *) ac_try_echo=$ac_try;;
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20091 grep -v '^ *+' conftest.er1 >conftest.err
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } &&
20096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20097 { (case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_try") 2>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } &&
20106 { ac_try='test -s conftest.$ac_objext'
20107 { (case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_try") 2>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 ac_cv_func_finite_in_ieeefp_h=yes
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 ac_cv_func_finite_in_ieeefp_h=no
20124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20126 ac_cpp='$CPP $CPPFLAGS'
20127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20132 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20133 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20135 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20137 cat >>confdefs.h <<\_ACEOF
20138 #define HAVE_FINITE_IN_IEEEFP_H 1
20145 if test "$llvm_cv_platform_type" = "Unix" ; then
20148 for ac_header in stdlib.h unistd.h
20150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20157 ac_res=`eval echo '${'$as_ac_Header'}'`
20158 { echo "$as_me:$LINENO: result: $ac_res" >&5
20159 echo "${ECHO_T}$ac_res" >&6; }
20161 # Is the header compilable?
20162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20170 $ac_includes_default
20171 #include <$ac_header>
20173 rm -f conftest.$ac_objext
20174 if { (ac_try="$ac_compile"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_compile") 2>conftest.er1
20182 grep -v '^ *+' conftest.er1 >conftest.err
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest.$ac_objext'
20198 { (case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_try") 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 ac_header_compiler=yes
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ac_header_compiler=no
20215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20217 echo "${ECHO_T}$ac_header_compiler" >&6; }
20219 # Is the header present?
20220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20222 cat >conftest.$ac_ext <<_ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20228 #include <$ac_header>
20230 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
20238 grep -v '^ *+' conftest.er1 >conftest.err
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } >/dev/null; then
20243 if test -s conftest.err; then
20244 ac_cpp_err=$ac_c_preproc_warn_flag
20245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20252 if test -z "$ac_cpp_err"; then
20253 ac_header_preproc=yes
20255 echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20258 ac_header_preproc=no
20261 rm -f conftest.err conftest.$ac_ext
20262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20263 echo "${ECHO_T}$ac_header_preproc" >&6; }
20265 # So? What about this header?
20266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20272 ac_header_preproc=yes
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20288 ## ------------------------------------ ##
20289 ## Report this to http://llvm.org/bugs/ ##
20290 ## ------------------------------------ ##
20292 ) | sed "s/^/$as_me: WARNING: /" >&2
20295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 eval "$as_ac_Header=\$ac_header_preproc"
20302 ac_res=`eval echo '${'$as_ac_Header'}'`
20303 { echo "$as_me:$LINENO: result: $ac_res" >&5
20304 echo "${ECHO_T}$ac_res" >&6; }
20307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20308 cat >>confdefs.h <<_ACEOF
20309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20317 for ac_func in getpagesize
20319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 cat >conftest.$ac_ext <<_ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20333 #define $ac_func innocuous_$ac_func
20335 /* System header to define __stub macros and hopefully few prototypes,
20336 which can conflict with char $ac_func (); below.
20337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20338 <limits.h> exists even on freestanding compilers. */
20341 # include <limits.h>
20343 # include <assert.h>
20348 /* Override any GCC internal prototype to avoid an error.
20349 Use char because int might match the return type of a GCC
20350 builtin and then its argument prototype would still apply. */
20355 /* The GNU C library defines this for functions which it implements
20356 to always fail with ENOSYS. Some functions are actually named
20357 something starting with __ and the normal name is an alias. */
20358 #if defined __stub_$ac_func || defined __stub___$ac_func
20365 return $ac_func ();
20370 rm -f conftest.$ac_objext conftest$ac_exeext
20371 if { (ac_try="$ac_link"
20372 case "(($ac_try" in
20373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_link") 2>conftest.er1
20379 grep -v '^ *+' conftest.er1 >conftest.err
20381 cat conftest.err >&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } &&
20384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20385 { (case "(($ac_try" in
20386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387 *) ac_try_echo=$ac_try;;
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390 (eval "$ac_try") 2>&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; } &&
20394 { ac_try='test -s conftest$ac_exeext'
20395 { (case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 eval "$as_ac_var=yes"
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 eval "$as_ac_var=no"
20412 rm -f core conftest.err conftest.$ac_objext \
20413 conftest$ac_exeext conftest.$ac_ext
20415 ac_res=`eval echo '${'$as_ac_var'}'`
20416 { echo "$as_me:$LINENO: result: $ac_res" >&5
20417 echo "${ECHO_T}$ac_res" >&6; }
20418 if test `eval echo '${'$as_ac_var'}'` = yes; then
20419 cat >>confdefs.h <<_ACEOF
20420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20426 { echo "$as_me:$LINENO: checking for working mmap" >&5
20427 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20428 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 if test "$cross_compiling" = yes; then
20432 ac_cv_func_mmap_fixed_mapped=no
20434 cat >conftest.$ac_ext <<_ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20440 $ac_includes_default
20441 /* malloc might have been renamed as rpl_malloc. */
20444 /* Thanks to Mike Haertel and Jim Avera for this test.
20445 Here is a matrix of mmap possibilities:
20446 mmap private not fixed
20447 mmap private fixed at somewhere currently unmapped
20448 mmap private fixed at somewhere already mapped
20449 mmap shared not fixed
20450 mmap shared fixed at somewhere currently unmapped
20451 mmap shared fixed at somewhere already mapped
20452 For private mappings, we should verify that changes cannot be read()
20453 back from the file, nor mmap's back from the file at a different
20454 address. (There have been systems where private was not correctly
20455 implemented like the infamous i386 svr4.0, and systems where the
20456 VM page cache was not coherent with the file system buffer cache
20457 like early versions of FreeBSD and possibly contemporary NetBSD.)
20458 For shared mappings, we should conversely verify that changes get
20459 propagated back to all the places they're supposed to be.
20461 Grep wants private fixed already mapped.
20462 The main things grep needs to know about mmap are:
20463 * does it exist and is it safe to write into the mmap'd area
20464 * how to use it (BSD variants) */
20467 #include <sys/mman.h>
20469 #if !STDC_HEADERS && !HAVE_STDLIB_H
20473 /* This mess was copied from the GNU getpagesize.h. */
20474 #if !HAVE_GETPAGESIZE
20475 /* Assume that all systems that can run configure have sys/param.h. */
20476 # if !HAVE_SYS_PARAM_H
20477 # define HAVE_SYS_PARAM_H 1
20480 # ifdef _SC_PAGESIZE
20481 # define getpagesize() sysconf(_SC_PAGESIZE)
20482 # else /* no _SC_PAGESIZE */
20483 # if HAVE_SYS_PARAM_H
20484 # include <sys/param.h>
20485 # ifdef EXEC_PAGESIZE
20486 # define getpagesize() EXEC_PAGESIZE
20487 # else /* no EXEC_PAGESIZE */
20489 # define getpagesize() NBPG * CLSIZE
20492 # endif /* no CLSIZE */
20493 # else /* no NBPG */
20495 # define getpagesize() NBPC
20496 # else /* no NBPC */
20498 # define getpagesize() PAGESIZE
20499 # endif /* PAGESIZE */
20500 # endif /* no NBPC */
20501 # endif /* no NBPG */
20502 # endif /* no EXEC_PAGESIZE */
20503 # else /* no HAVE_SYS_PARAM_H */
20504 # define getpagesize() 8192 /* punt totally */
20505 # endif /* no HAVE_SYS_PARAM_H */
20506 # endif /* no _SC_PAGESIZE */
20508 #endif /* no HAVE_GETPAGESIZE */
20513 char *data, *data2, *data3;
20517 pagesize = getpagesize ();
20519 /* First, make a file with some known garbage in it. */
20520 data = (char *) malloc (pagesize);
20523 for (i = 0; i < pagesize; ++i)
20524 *(data + i) = rand ();
20526 fd = creat ("conftest.mmap", 0600);
20529 if (write (fd, data, pagesize) != pagesize)
20533 /* Next, try to mmap the file at a fixed address which already has
20534 something else allocated at it. If we can, also make sure that
20535 we see the same garbage. */
20536 fd = open ("conftest.mmap", O_RDWR);
20539 data2 = (char *) malloc (2 * pagesize);
20542 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20543 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20544 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20546 for (i = 0; i < pagesize; ++i)
20547 if (*(data + i) != *(data2 + i))
20550 /* Finally, make sure that changes to the mapped area do not
20551 percolate back to the file as seen by read(). (This is a bug on
20552 some variants of i386 svr4.0.) */
20553 for (i = 0; i < pagesize; ++i)
20554 *(data2 + i) = *(data2 + i) + 1;
20555 data3 = (char *) malloc (pagesize);
20558 if (read (fd, data3, pagesize) != pagesize)
20560 for (i = 0; i < pagesize; ++i)
20561 if (*(data + i) != *(data3 + i))
20567 rm -f conftest$ac_exeext
20568 if { (ac_try="$ac_link"
20569 case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_link") 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20578 { (case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_try") 2>&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
20587 ac_cv_func_mmap_fixed_mapped=yes
20589 echo "$as_me: program exited with status $ac_status" >&5
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ( exit $ac_status )
20594 ac_cv_func_mmap_fixed_mapped=no
20596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20601 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20602 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20603 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20605 cat >>confdefs.h <<\_ACEOF
20606 #define HAVE_MMAP 1
20610 rm -f conftest.mmap
20612 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20613 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20614 if test "${ac_cv_func_mmap_file+set}" = set; then
20615 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 ac_cpp='$CPP $CPPFLAGS'
20619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20623 if test "$cross_compiling" = yes; then
20624 ac_cv_func_mmap_file=no
20626 cat >conftest.$ac_ext <<_ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20634 #include <sys/types.h>
20635 #include <sys/mman.h>
20643 fd = creat ("foo",0777);
20644 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20646 return (fd != (int) MAP_FAILED);
20651 rm -f conftest$ac_exeext
20652 if { (ac_try="$ac_link"
20653 case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_link") 2>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20662 { (case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_try") 2>&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_func_mmap_file=yes
20673 echo "$as_me: program exited with status $ac_status" >&5
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20677 ( exit $ac_status )
20678 ac_cv_func_mmap_file=no
20680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20685 ac_cpp='$CPP $CPPFLAGS'
20686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20692 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20693 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20694 if test "$ac_cv_func_mmap_file" = yes; then
20696 cat >>confdefs.h <<\_ACEOF
20697 #define HAVE_MMAP_FILE
20704 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20705 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20706 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 if test "$llvm_cv_os_type" = "Interix" ; then
20710 ac_cv_need_dev_zero_for_mmap=yes
20712 ac_cv_need_dev_zero_for_mmap=no
20716 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20717 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20718 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20720 cat >>confdefs.h <<\_ACEOF
20721 #define NEED_DEV_ZERO_FOR_MMAP 1
20726 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20728 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20729 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20731 if test "$ac_cv_func_mmap_file" = "no"
20733 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20734 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20738 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20739 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20741 ac_cpp='$CXXCPP $CPPFLAGS'
20742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20746 cat >conftest.$ac_ext <<_ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20753 volatile unsigned long val = 1;
20754 __sync_synchronize();
20755 __sync_val_compare_and_swap(&val, 1, 0);
20756 __sync_add_and_fetch(&val, 1);
20757 __sync_sub_and_fetch(&val, 1);
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (ac_try="$ac_link"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_link") 2>conftest.er1
20771 grep -v '^ *+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } &&
20776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20777 { (case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_try") 2>&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; } &&
20786 { ac_try='test -s conftest$ac_exeext'
20787 { (case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_try") 2>&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; }; then
20797 ac_cpp='$CPP $CPPFLAGS'
20798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20802 { echo "$as_me:$LINENO: result: yes" >&5
20803 echo "${ECHO_T}yes" >&6; }
20805 cat >>confdefs.h <<\_ACEOF
20806 #define LLVM_HAS_ATOMICS 1
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 { echo "$as_me:$LINENO: result: no" >&5
20814 echo "${ECHO_T}no" >&6; }
20816 cat >>confdefs.h <<\_ACEOF
20817 #define LLVM_HAS_ATOMICS 0
20820 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20821 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20824 rm -f core conftest.err conftest.$ac_objext \
20825 conftest$ac_exeext conftest.$ac_ext
20828 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20829 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20830 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20831 if test "${llvm_cv_linux_mixed+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20835 ac_cpp='$CPP $CPPFLAGS'
20836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20840 cat >conftest.$ac_ext <<_ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20847 error: Not x86-64 even if uname says so!
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_compile") 2>conftest.er1
20867 grep -v '^ *+' conftest.er1 >conftest.err
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } &&
20872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20873 { (case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_try") 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; } &&
20882 { ac_try='test -s conftest.$ac_objext'
20883 { (case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_try") 2>&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20892 llvm_cv_linux_mixed=no
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20897 llvm_cv_linux_mixed=yes
20900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 ac_cpp='$CPP $CPPFLAGS'
20903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20909 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20910 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20912 if test "$llvm_cv_linux_mixed" = "yes"; then
20913 llvm_cv_target_arch="x86"
20919 for ac_func in __dso_handle
20921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20927 cat >conftest.$ac_ext <<_ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h. */
20933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20935 #define $ac_func innocuous_$ac_func
20937 /* System header to define __stub macros and hopefully few prototypes,
20938 which can conflict with char $ac_func (); below.
20939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20940 <limits.h> exists even on freestanding compilers. */
20943 # include <limits.h>
20945 # include <assert.h>
20950 /* Override any GCC internal prototype to avoid an error.
20951 Use char because int might match the return type of a GCC
20952 builtin and then its argument prototype would still apply. */
20957 /* The GNU C library defines this for functions which it implements
20958 to always fail with ENOSYS. Some functions are actually named
20959 something starting with __ and the normal name is an alias. */
20960 #if defined __stub_$ac_func || defined __stub___$ac_func
20967 return $ac_func ();
20972 rm -f conftest.$ac_objext conftest$ac_exeext
20973 if { (ac_try="$ac_link"
20974 case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_link") 2>conftest.er1
20981 grep -v '^ *+' conftest.er1 >conftest.err
20983 cat conftest.err >&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } &&
20986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20987 { (case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_try") 2>&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; } &&
20996 { ac_try='test -s conftest$ac_exeext'
20997 { (case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_try") 2>&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 eval "$as_ac_var=yes"
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 eval "$as_ac_var=no"
21014 rm -f core conftest.err conftest.$ac_objext \
21015 conftest$ac_exeext conftest.$ac_ext
21017 ac_res=`eval echo '${'$as_ac_var'}'`
21018 { echo "$as_me:$LINENO: result: $ac_res" >&5
21019 echo "${ECHO_T}$ac_res" >&6; }
21020 if test `eval echo '${'$as_ac_var'}'` = yes; then
21021 cat >>confdefs.h <<_ACEOF
21022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029 SHLIBEXT=$libltdl_cv_shlibext
21032 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21035 if test "${prefix}" = "NONE" ; then
21036 prefix="/usr/local"
21038 eval LLVM_PREFIX="${prefix}";
21039 eval LLVM_BINDIR="${prefix}/bin";
21040 eval LLVM_LIBDIR="${prefix}/lib";
21041 eval LLVM_DATADIR="${prefix}/share/llvm";
21042 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21043 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21044 eval LLVM_INCLUDEDIR="${prefix}/include";
21045 eval LLVM_INFODIR="${prefix}/info";
21046 eval LLVM_MANDIR="${prefix}/man";
21047 LLVM_CONFIGTIME=`date`
21059 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21060 LLVM_CONFIGTIME="(timestamp not enabled)"
21064 cat >>confdefs.h <<_ACEOF
21065 #define LLVM_PREFIX "$LLVM_PREFIX"
21069 cat >>confdefs.h <<_ACEOF
21070 #define LLVM_BINDIR "$LLVM_BINDIR"
21074 cat >>confdefs.h <<_ACEOF
21075 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21079 cat >>confdefs.h <<_ACEOF
21080 #define LLVM_DATADIR "$LLVM_DATADIR"
21084 cat >>confdefs.h <<_ACEOF
21085 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21089 cat >>confdefs.h <<_ACEOF
21090 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21094 cat >>confdefs.h <<_ACEOF
21095 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21099 cat >>confdefs.h <<_ACEOF
21100 #define LLVM_INFODIR "$LLVM_INFODIR"
21104 cat >>confdefs.h <<_ACEOF
21105 #define LLVM_MANDIR "$LLVM_MANDIR"
21109 cat >>confdefs.h <<_ACEOF
21110 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21114 cat >>confdefs.h <<_ACEOF
21115 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21119 if test "$BINDINGS_TO_BUILD" = auto ; then
21120 BINDINGS_TO_BUILD=""
21121 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21122 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21125 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21131 binding_prereqs_failed=0
21132 for a_binding in $BINDINGS_TO_BUILD ; do
21133 case "$a_binding" in
21135 if test "x$OCAMLC" = x ; then
21136 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21137 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21138 binding_prereqs_failed=1
21140 if test "x$OCAMLDEP" = x ; then
21141 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21142 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21143 binding_prereqs_failed=1
21145 if test "x$OCAMLOPT" = x ; then
21146 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21147 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21149 if test "x$with_ocaml_libdir" != xauto ; then
21150 OCAML_LIBDIR=$with_ocaml_libdir
21153 ocaml_stdlib="`"$OCAMLC" -where`"
21154 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21156 # ocaml stdlib is beneath our prefix; use stdlib
21157 OCAML_LIBDIR=$ocaml_stdlib
21160 # ocaml stdlib is outside our prefix; use libdir/ocaml
21161 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21168 if test "$binding_prereqs_failed" = 1 ; then
21169 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21170 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21171 { (exit 1); exit 1; }; }
21174 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21175 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21176 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 ac_cpp='$CXXCPP $CPPFLAGS'
21181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21185 oldcxxflags="$CXXFLAGS"
21186 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21187 cat >conftest.$ac_ext <<_ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21193 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21202 rm -f conftest.$ac_objext
21203 if { (ac_try="$ac_compile"
21204 case "(($ac_try" in
21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206 *) ac_try_echo=$ac_try;;
21208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21209 (eval "$ac_compile") 2>conftest.er1
21211 grep -v '^ *+' conftest.er1 >conftest.err
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21217 { (case "(($ac_try" in
21218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219 *) ac_try_echo=$ac_try;;
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222 (eval "$ac_try") 2>&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; } &&
21226 { ac_try='test -s conftest.$ac_objext'
21227 { (case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_try") 2>&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; }; then
21236 llvm_cv_cxx_visibility_inlines_hidden=yes
21238 echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21241 llvm_cv_cxx_visibility_inlines_hidden=no
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 CXXFLAGS="$oldcxxflags"
21247 ac_cpp='$CPP $CPPFLAGS'
21248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21254 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21255 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21256 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21257 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21260 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21265 if test "$llvm_cv_link_use_r" = "yes" ; then
21272 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21273 RDYNAMIC="-Wl,-export-dynamic"
21280 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21287 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21289 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21291 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21293 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21295 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21298 ac_config_files="$ac_config_files Makefile.config"
21301 ac_config_files="$ac_config_files llvm.spec"
21304 ac_config_files="$ac_config_files docs/doxygen.cfg"
21307 if test "${clang_src_root}" = ""; then
21308 clang_src_root="$srcdir/tools/clang"
21310 if test -f ${clang_src_root}/README.txt; then
21311 configh="include/clang/Config/config.h"
21312 doxy="docs/doxygen.cfg"
21313 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21315 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21319 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21322 ac_config_commands="$ac_config_commands setup"
21324 ac_config_commands="$ac_config_commands Makefile"
21327 ac_config_commands="$ac_config_commands Makefile.common"
21330 ac_config_commands="$ac_config_commands examples/Makefile"
21333 ac_config_commands="$ac_config_commands lib/Makefile"
21336 ac_config_commands="$ac_config_commands runtime/Makefile"
21339 ac_config_commands="$ac_config_commands test/Makefile"
21342 ac_config_commands="$ac_config_commands test/Makefile.tests"
21345 ac_config_commands="$ac_config_commands unittests/Makefile"
21348 ac_config_commands="$ac_config_commands tools/Makefile"
21351 ac_config_commands="$ac_config_commands utils/Makefile"
21354 ac_config_commands="$ac_config_commands projects/Makefile"
21357 ac_config_commands="$ac_config_commands bindings/Makefile"
21360 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21364 cat >confcache <<\_ACEOF
21365 # This file is a shell script that caches the results of configure
21366 # tests run on this system so they can be shared between configure
21367 # scripts and configure runs, see configure's option --config-cache.
21368 # It is not useful on other systems. If it contains results you don't
21369 # want to keep, you may remove or edit it.
21371 # config.status only pays attention to the cache file if you give it
21372 # the --recheck option to rerun configure.
21374 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21375 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21376 # following values.
21380 # The following way of writing the cache mishandles newlines in values,
21381 # but we know of no workaround that is simple, portable, and efficient.
21382 # So, we kill variables containing newlines.
21383 # Ultrix sh set writes to stderr and can't be redirected directly,
21384 # and sets the high bit in the cache file unless we assign to the vars.
21386 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21387 eval ac_val=\$$ac_var
21391 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21392 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21395 _ | IFS | as_nl) ;; #(
21396 *) $as_unset $ac_var ;;
21402 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21403 *${as_nl}ac_space=\ *)
21404 # `set' does not quote correctly, so add quotes (double-quote
21405 # substitution turns \\\\ into \\, and sed turns \\ into \).
21408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21411 # `set' quotes correctly as required by POSIX, so do not add quotes.
21412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21423 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21425 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21426 if test -w "$cache_file"; then
21427 test "x$cache_file" != "x/dev/null" &&
21428 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21429 echo "$as_me: updating cache $cache_file" >&6;}
21430 cat confcache >$cache_file
21432 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21433 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21439 # Let make expand exec_prefix.
21440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21442 DEFS=-DHAVE_CONFIG_H
21446 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21447 # 1. Remove the extension, and $U if already installed.
21448 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21449 ac_i=`echo "$ac_i" | sed "$ac_script"`
21450 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21451 # will be set to the directory where LIBOBJS objects are built.
21452 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21453 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21455 LIBOBJS=$ac_libobjs
21457 LTLIBOBJS=$ac_ltlibobjs
21460 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21461 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21462 Usually this means the macro was only invoked conditionally." >&5
21463 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21464 Usually this means the macro was only invoked conditionally." >&2;}
21465 { (exit 1); exit 1; }; }
21467 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21468 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21469 Usually this means the macro was only invoked conditionally." >&5
21470 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21471 Usually this means the macro was only invoked conditionally." >&2;}
21472 { (exit 1); exit 1; }; }
21475 : ${CONFIG_STATUS=./config.status}
21476 ac_clean_files_save=$ac_clean_files
21477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21478 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21479 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21480 cat >$CONFIG_STATUS <<_ACEOF
21482 # Generated by $as_me.
21483 # Run this file to recreate the current configuration.
21484 # Compiler output produced by configure, useful for debugging
21485 # configure, is in config.log if it exists.
21488 ac_cs_recheck=false
21490 SHELL=\${CONFIG_SHELL-$SHELL}
21493 cat >>$CONFIG_STATUS <<\_ACEOF
21494 ## --------------------- ##
21495 ## M4sh Initialization. ##
21496 ## --------------------- ##
21498 # Be Bourne compatible
21499 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21502 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21503 # is contrary to our usage. Disable this feature.
21504 alias -g '${1+"$@"}'='"$@"'
21505 setopt NO_GLOB_SUBST
21507 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21509 BIN_SH=xpg4; export BIN_SH # for Tru64
21510 DUALCASE=1; export DUALCASE # for MKS sh
21514 # Avoid depending upon Character Ranges.
21515 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21516 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21517 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21518 as_cr_digits='0123456789'
21519 as_cr_alnum=$as_cr_Letters$as_cr_digits
21521 # The user is always right.
21522 if test "${PATH_SEPARATOR+set}" != set; then
21523 echo "#! /bin/sh" >conf$$.sh
21524 echo "exit 0" >>conf$$.sh
21526 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21534 # Support unset when possible.
21535 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21543 # We need space, tab and new line, in precisely that order. Quoting is
21544 # there to prevent editors from complaining about space-tab.
21545 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21546 # splitting by setting IFS to empty value.)
21551 # Find who we are. Look in the path if we contain no directory separator.
21553 *[\\/]* ) as_myself=$0 ;;
21554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21555 for as_dir in $PATH
21558 test -z "$as_dir" && as_dir=.
21559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21565 # We did not find ourselves, most probably we were run as `sh COMMAND'
21566 # in which case we are not to be found in the path.
21567 if test "x$as_myself" = x; then
21570 if test ! -f "$as_myself"; then
21571 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21572 { (exit 1); exit 1; }
21575 # Work around bugs in pre-3.0 UWIN ksh.
21576 for as_var in ENV MAIL MAILPATH
21577 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21585 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21586 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21587 LC_TELEPHONE LC_TIME
21589 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21590 eval $as_var=C; export $as_var
21592 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21596 # Required to use basename.
21597 if expr a : '\(a\)' >/dev/null 2>&1 &&
21598 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21604 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21605 as_basename=basename
21611 # Name of the executable.
21612 as_me=`$as_basename -- "$0" ||
21613 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21614 X"$0" : 'X\(//\)$' \| \
21615 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21617 sed '/^.*\/\([^/][^/]*\)\/*$/{
21636 as_lineno_1=$LINENO
21637 as_lineno_2=$LINENO
21638 test "x$as_lineno_1" != "x$as_lineno_2" &&
21639 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21641 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21642 # uniformly replaced by the line number. The first 'sed' inserts a
21643 # line-number line after each line using $LINENO; the second 'sed'
21644 # does the real work. The second script uses 'N' to pair each
21645 # line-number line with the line containing $LINENO, and appends
21646 # trailing '-' during substitution so that $LINENO is not a special
21647 # case at line end.
21648 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21649 # scripts with optimization help from Paolo Bonzini. Blame Lee
21650 # E. McMahon (1931-1989) for sed's syntax. :-)
21662 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21665 ' >$as_me.lineno &&
21666 chmod +x "$as_me.lineno" ||
21667 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21668 { (exit 1); exit 1; }; }
21670 # Don't try to exec as it changes $[0], causing all sort of problems
21671 # (the dirname of $[0] is not the place where we might find the
21672 # original and so on. Autoconf is especially sensitive to this).
21673 . "./$as_me.lineno"
21674 # Exit status is that of the last command.
21679 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21685 ECHO_C= ECHO_N= ECHO_T=
21686 case `echo -n x` in
21688 case `echo 'x\c'` in
21689 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21696 if expr a : '\(a\)' >/dev/null 2>&1 &&
21697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21703 rm -f conf$$ conf$$.exe conf$$.file
21704 if test -d conf$$.dir; then
21705 rm -f conf$$.dir/conf$$.file
21711 if ln -s conf$$.file conf$$ 2>/dev/null; then
21713 # ... but there are two gotchas:
21714 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21715 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21716 # In both cases, we have to default to `cp -p'.
21717 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21719 elif ln conf$$.file conf$$ 2>/dev/null; then
21724 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21725 rmdir conf$$.dir 2>/dev/null
21727 if mkdir -p . 2>/dev/null; then
21730 test -d ./-p && rmdir ./-p
21734 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21735 # systems may use methods other than mode bits to determine executability.
21736 cat >conf$$.file <<_ASEOF
21740 chmod +x conf$$.file
21741 if test -x conf$$.file >/dev/null 2>&1; then
21742 as_executable_p="test -x"
21748 # Sed expression to map a string onto a valid CPP name.
21749 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21751 # Sed expression to map a string onto a valid variable name.
21752 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21757 # Save the log message, to keep $[0] and so on meaningful, and to
21758 # report actual input values of CONFIG_FILES etc. instead of their
21759 # values after options handling.
21761 This file was extended by LLVM $as_me 3.1svn, which was
21762 generated by GNU Autoconf 2.60. Invocation command line was
21764 CONFIG_FILES = $CONFIG_FILES
21765 CONFIG_HEADERS = $CONFIG_HEADERS
21766 CONFIG_LINKS = $CONFIG_LINKS
21767 CONFIG_COMMANDS = $CONFIG_COMMANDS
21770 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21775 cat >>$CONFIG_STATUS <<_ACEOF
21776 # Files that config.status was made for.
21777 config_files="$ac_config_files"
21778 config_headers="$ac_config_headers"
21779 config_commands="$ac_config_commands"
21783 cat >>$CONFIG_STATUS <<\_ACEOF
21785 \`$as_me' instantiates files from templates according to the
21786 current configuration.
21788 Usage: $0 [OPTIONS] [FILE]...
21790 -h, --help print this help, then exit
21791 -V, --version print version number, then exit
21792 -q, --quiet do not print progress messages
21793 -d, --debug don't remove temporary files
21794 --recheck update $as_me by reconfiguring in the same conditions
21795 --file=FILE[:TEMPLATE]
21796 instantiate the configuration file FILE
21797 --header=FILE[:TEMPLATE]
21798 instantiate the configuration header FILE
21800 Configuration files:
21803 Configuration headers:
21806 Configuration commands:
21809 Report bugs to <bug-autoconf@gnu.org>."
21812 cat >>$CONFIG_STATUS <<_ACEOF
21814 LLVM config.status 3.1svn
21815 configured by $0, generated by GNU Autoconf 2.60,
21816 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21818 Copyright (C) 2006 Free Software Foundation, Inc.
21819 This config.status script is free software; the Free Software Foundation
21820 gives unlimited permission to copy, distribute and modify it."
21827 cat >>$CONFIG_STATUS <<\_ACEOF
21828 # If no file are specified by the user, then we need to provide default
21829 # value. By we need to know if files were specified by the user.
21835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21836 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21847 # Handling of the options.
21848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21851 echo "$ac_cs_version"; exit ;;
21852 --debug | --debu | --deb | --de | --d | -d )
21854 --file | --fil | --fi | --f )
21856 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21857 ac_need_defaults=false;;
21858 --header | --heade | --head | --hea )
21860 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21861 ac_need_defaults=false;;
21863 # Conflict between --help and --header
21864 { echo "$as_me: error: ambiguous option: $1
21865 Try \`$0 --help' for more information." >&2
21866 { (exit 1); exit 1; }; };;
21867 --help | --hel | -h )
21868 echo "$ac_cs_usage"; exit ;;
21869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21873 # This is an error.
21874 -*) { echo "$as_me: error: unrecognized option: $1
21875 Try \`$0 --help' for more information." >&2
21876 { (exit 1); exit 1; }; } ;;
21878 *) ac_config_targets="$ac_config_targets $1"
21879 ac_need_defaults=false ;;
21885 ac_configure_extra_args=
21887 if $ac_cs_silent; then
21889 ac_configure_extra_args="$ac_configure_extra_args --silent"
21893 cat >>$CONFIG_STATUS <<_ACEOF
21894 if \$ac_cs_recheck; then
21895 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21896 CONFIG_SHELL=$SHELL
21897 export CONFIG_SHELL
21898 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21902 cat >>$CONFIG_STATUS <<\_ACEOF
21906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21907 ## Running $as_me. ##
21913 cat >>$CONFIG_STATUS <<_ACEOF
21917 llvm_src="${srcdir}"
21921 cat >>$CONFIG_STATUS <<\_ACEOF
21923 # Handling of arguments.
21924 for ac_config_target in $ac_config_targets
21926 case $ac_config_target in
21927 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21928 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21929 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21930 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21931 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21932 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21933 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21934 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21935 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21936 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21937 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21938 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21939 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21940 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21941 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21942 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21943 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21944 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21945 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21946 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21947 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21948 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21949 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21950 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21951 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21952 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21953 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21955 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21956 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21957 { (exit 1); exit 1; }; };;
21962 # If the user did not use the arguments to specify the items to instantiate,
21963 # then the envvar interface is used. Set only those that are not.
21964 # We use the long form for the default assignment because of an extremely
21965 # bizarre bug on SunOS 4.1.3.
21966 if $ac_need_defaults; then
21967 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21968 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21969 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21972 # Have a temporary directory for convenience. Make it in the build tree
21973 # simply because there is no reason against having it here, and in addition,
21974 # creating and moving files from /tmp can sometimes cause problems.
21975 # Hook for its removal unless debugging.
21976 # Note that there is a small window in which the directory will not be cleaned:
21977 # after its creation but before its name has been assigned to `$tmp'.
21981 trap 'exit_status=$?
21982 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21984 trap '{ (exit 1); exit 1; }' 1 2 13 15
21986 # Create a (secure) tmp directory for tmp files.
21989 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21990 test -n "$tmp" && test -d "$tmp"
21993 tmp=./conf$$-$RANDOM
21994 (umask 077 && mkdir "$tmp")
21997 echo "$me: cannot create a temporary directory in ." >&2
21998 { (exit 1); exit 1; }
22002 # Set up the sed scripts for CONFIG_FILES section.
22005 # No need to generate the scripts if there are no CONFIG_FILES.
22006 # This happens for instance when ./config.status config.h
22007 if test -n "$CONFIG_FILES"; then
22014 for ac_last_try in false false false false false :; do
22015 cat >conf$$subs.sed <<_ACEOF
22016 SHELL!$SHELL$ac_delim
22017 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22018 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22019 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22020 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22021 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22022 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22023 exec_prefix!$exec_prefix$ac_delim
22024 prefix!$prefix$ac_delim
22025 program_transform_name!$program_transform_name$ac_delim
22026 bindir!$bindir$ac_delim
22027 sbindir!$sbindir$ac_delim
22028 libexecdir!$libexecdir$ac_delim
22029 datarootdir!$datarootdir$ac_delim
22030 datadir!$datadir$ac_delim
22031 sysconfdir!$sysconfdir$ac_delim
22032 sharedstatedir!$sharedstatedir$ac_delim
22033 localstatedir!$localstatedir$ac_delim
22034 includedir!$includedir$ac_delim
22035 oldincludedir!$oldincludedir$ac_delim
22036 docdir!$docdir$ac_delim
22037 infodir!$infodir$ac_delim
22038 htmldir!$htmldir$ac_delim
22039 dvidir!$dvidir$ac_delim
22040 pdfdir!$pdfdir$ac_delim
22041 psdir!$psdir$ac_delim
22042 libdir!$libdir$ac_delim
22043 localedir!$localedir$ac_delim
22044 mandir!$mandir$ac_delim
22045 DEFS!$DEFS$ac_delim
22046 ECHO_C!$ECHO_C$ac_delim
22047 ECHO_N!$ECHO_N$ac_delim
22048 ECHO_T!$ECHO_T$ac_delim
22049 LIBS!$LIBS$ac_delim
22050 build_alias!$build_alias$ac_delim
22051 host_alias!$host_alias$ac_delim
22052 target_alias!$target_alias$ac_delim
22053 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22055 CFLAGS!$CFLAGS$ac_delim
22056 LDFLAGS!$LDFLAGS$ac_delim
22057 CPPFLAGS!$CPPFLAGS$ac_delim
22058 ac_ct_CC!$ac_ct_CC$ac_delim
22059 EXEEXT!$EXEEXT$ac_delim
22060 OBJEXT!$OBJEXT$ac_delim
22062 CXXFLAGS!$CXXFLAGS$ac_delim
22063 ac_ct_CXX!$ac_ct_CXX$ac_delim
22065 subdirs!$subdirs$ac_delim
22066 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22067 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22068 build!$build$ac_delim
22069 build_cpu!$build_cpu$ac_delim
22070 build_vendor!$build_vendor$ac_delim
22071 build_os!$build_os$ac_delim
22072 host!$host$ac_delim
22073 host_cpu!$host_cpu$ac_delim
22074 host_vendor!$host_vendor$ac_delim
22075 host_os!$host_os$ac_delim
22076 target!$target$ac_delim
22077 target_cpu!$target_cpu$ac_delim
22078 target_vendor!$target_vendor$ac_delim
22079 target_os!$target_os$ac_delim
22081 HOST_OS!$HOST_OS$ac_delim
22082 TARGET_OS!$TARGET_OS$ac_delim
22083 LINKALL!$LINKALL$ac_delim
22084 NOLINKALL!$NOLINKALL$ac_delim
22085 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22086 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22087 ARCH!$ARCH$ac_delim
22088 ENDIAN!$ENDIAN$ac_delim
22089 GREP!$GREP$ac_delim
22090 EGREP!$EGREP$ac_delim
22091 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22092 BUILD_CC!$BUILD_CC$ac_delim
22093 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22094 BUILD_CXX!$BUILD_CXX$ac_delim
22095 CVSBUILD!$CVSBUILD$ac_delim
22096 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22097 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22098 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22099 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22100 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22101 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22102 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22103 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22105 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22106 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22107 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22108 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22109 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22110 ENABLE_PIC!$ENABLE_PIC$ac_delim
22111 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22112 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22115 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22117 elif $ac_last_try; then
22118 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22119 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22120 { (exit 1); exit 1; }; }
22122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22126 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22127 if test -n "$ac_eof"; then
22128 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22129 ac_eof=`expr $ac_eof + 1`
22132 cat >>$CONFIG_STATUS <<_ACEOF
22133 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22137 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22138 s/^/s,@/; s/!/@,|#_!!_#|/
22141 s/'"$ac_delim"'$/,g/; t
22143 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22144 ' >>$CONFIG_STATUS <conf$$subs.sed
22145 rm -f conf$$subs.sed
22146 cat >>$CONFIG_STATUS <<_ACEOF
22152 for ac_last_try in false false false false false :; do
22153 cat >conf$$subs.sed <<_ACEOF
22154 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22155 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22156 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22157 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22158 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22159 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22160 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22161 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22162 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22163 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22164 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22165 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22167 ifGNUmake!$ifGNUmake$ac_delim
22168 LN_S!$LN_S$ac_delim
22171 DATE!$DATE$ac_delim
22172 FIND!$FIND$ac_delim
22173 MKDIR!$MKDIR$ac_delim
22175 RANLIB!$RANLIB$ac_delim
22180 BINPWD!$BINPWD$ac_delim
22181 GRAPHVIZ!$GRAPHVIZ$ac_delim
22184 NEATO!$NEATO$ac_delim
22185 TWOPI!$TWOPI$ac_delim
22186 CIRCO!$CIRCO$ac_delim
22188 DOTTY!$DOTTY$ac_delim
22189 XDOT_PY!$XDOT_PY$ac_delim
22190 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22191 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22192 INSTALL_DATA!$INSTALL_DATA$ac_delim
22193 BZIP2!$BZIP2$ac_delim
22195 DOXYGEN!$DOXYGEN$ac_delim
22196 GROFF!$GROFF$ac_delim
22197 GZIPBIN!$GZIPBIN$ac_delim
22198 POD2HTML!$POD2HTML$ac_delim
22199 POD2MAN!$POD2MAN$ac_delim
22200 PDFROFF!$PDFROFF$ac_delim
22201 RUNTEST!$RUNTEST$ac_delim
22202 TCLSH!$TCLSH$ac_delim
22204 OCAMLC!$OCAMLC$ac_delim
22205 OCAMLOPT!$OCAMLOPT$ac_delim
22206 OCAMLDEP!$OCAMLDEP$ac_delim
22207 OCAMLDOC!$OCAMLDOC$ac_delim
22209 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22210 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22211 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22212 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22213 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22214 LIBADD_DL!$LIBADD_DL$ac_delim
22215 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22216 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22217 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22218 USE_UDIS86!$USE_UDIS86$ac_delim
22219 USE_OPROFILE!$USE_OPROFILE$ac_delim
22220 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22221 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22222 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22223 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22224 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22225 MMAP_FILE!$MMAP_FILE$ac_delim
22226 SHLIBEXT!$SHLIBEXT$ac_delim
22227 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22228 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22229 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22230 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22231 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22232 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22233 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22234 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22235 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22236 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22237 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22238 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22239 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22240 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22241 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22242 RPATH!$RPATH$ac_delim
22243 RDYNAMIC!$RDYNAMIC$ac_delim
22244 LIBOBJS!$LIBOBJS$ac_delim
22245 LTLIBOBJS!$LTLIBOBJS$ac_delim
22248 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22250 elif $ac_last_try; then
22251 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22252 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22253 { (exit 1); exit 1; }; }
22255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22259 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22260 if test -n "$ac_eof"; then
22261 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22262 ac_eof=`expr $ac_eof + 1`
22265 cat >>$CONFIG_STATUS <<_ACEOF
22266 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22270 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22271 s/^/s,@/; s/!/@,|#_!!_#|/
22274 s/'"$ac_delim"'$/,g/; t
22276 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22277 ' >>$CONFIG_STATUS <conf$$subs.sed
22278 rm -f conf$$subs.sed
22279 cat >>$CONFIG_STATUS <<_ACEOF
22286 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22287 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22288 # trailing colons and then remove the whole line if VPATH becomes empty
22289 # (actually we leave an empty line to preserve line numbers).
22290 if test "x$srcdir" = x.; then
22291 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22292 s/:*\$(srcdir):*/:/
22293 s/:*\${srcdir}:*/:/
22295 s/^\([^=]*=[ ]*\):*/\1/
22301 cat >>$CONFIG_STATUS <<\_ACEOF
22302 fi # test -n "$CONFIG_FILES"
22305 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22308 :[FHLC]) ac_mode=$ac_tag; continue;;
22310 case $ac_mode$ac_tag in
22312 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22313 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22314 { (exit 1); exit 1; }; };;
22315 :[FH]-) ac_tag=-:-;;
22316 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22333 -) ac_f="$tmp/stdin";;
22334 *) # Look for the file first in the build tree, then in the source tree
22335 # (if the path is not absolute). The absolute path cannot be DOS-style,
22336 # because $ac_f cannot contain `:'.
22340 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22342 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22343 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22344 { (exit 1); exit 1; }; };;
22346 ac_file_inputs="$ac_file_inputs $ac_f"
22349 # Let's still pretend it is `configure' which instantiates (i.e., don't
22350 # use $as_me), people would be surprised to read:
22351 # /* config.h. Generated by config.status. */
22352 configure_input="Generated from "`IFS=:
22353 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22354 if test x"$ac_file" != x-; then
22355 configure_input="$ac_file. $configure_input"
22356 { echo "$as_me:$LINENO: creating $ac_file" >&5
22357 echo "$as_me: creating $ac_file" >&6;}
22361 *:-:* | *:-) cat >"$tmp/stdin";;
22366 ac_dir=`$as_dirname -- "$ac_file" ||
22367 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22368 X"$ac_file" : 'X\(//\)[^/]' \| \
22369 X"$ac_file" : 'X\(//\)$' \| \
22370 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22376 /^X\(\/\/\)[^/].*/{
22391 -*) as_dir=./$as_dir;;
22393 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22397 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22398 *) as_qdir=$as_dir;;
22400 as_dirs="'$as_qdir' $as_dirs"
22401 as_dir=`$as_dirname -- "$as_dir" ||
22402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22403 X"$as_dir" : 'X\(//\)[^/]' \| \
22404 X"$as_dir" : 'X\(//\)$' \| \
22405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22411 /^X\(\/\/\)[^/].*/{
22424 test -d "$as_dir" && break
22426 test -z "$as_dirs" || eval "mkdir $as_dirs"
22427 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22428 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22429 { (exit 1); exit 1; }; }; }
22433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22435 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22436 # A ".." for each directory in $ac_dir_suffix.
22437 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22438 case $ac_top_builddir_sub in
22439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22443 ac_abs_top_builddir=$ac_pwd
22444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22445 # for backward compatibility:
22446 ac_top_builddir=$ac_top_build_prefix
22449 .) # We are building in place.
22451 ac_top_srcdir=$ac_top_builddir_sub
22452 ac_abs_top_srcdir=$ac_pwd ;;
22453 [\\/]* | ?:[\\/]* ) # Absolute name.
22454 ac_srcdir=$srcdir$ac_dir_suffix;
22455 ac_top_srcdir=$srcdir
22456 ac_abs_top_srcdir=$srcdir ;;
22457 *) # Relative name.
22458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22459 ac_top_srcdir=$ac_top_build_prefix$srcdir
22460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22472 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22473 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22477 cat >>$CONFIG_STATUS <<\_ACEOF
22478 # If the template does not know about datarootdir, expand it.
22479 # FIXME: This hack should be removed a few years after 2.60.
22480 ac_datarootdir_hack=; ac_datarootdir_seen=
22482 case `sed -n '/datarootdir/ {
22491 ' $ac_file_inputs` in
22492 *datarootdir*) ac_datarootdir_seen=yes;;
22493 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22494 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22495 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22497 cat >>$CONFIG_STATUS <<_ACEOF
22498 ac_datarootdir_hack='
22499 s&@datadir@&$datadir&g
22500 s&@docdir@&$docdir&g
22501 s&@infodir@&$infodir&g
22502 s&@localedir@&$localedir&g
22503 s&@mandir@&$mandir&g
22504 s&\\\${datarootdir}&$datarootdir&g' ;;
22508 # Neutralize VPATH when `$srcdir' = `.'.
22509 # Shell code in configure.ac might set extrasub.
22510 # FIXME: do we really want to maintain this feature?
22511 cat >>$CONFIG_STATUS <<_ACEOF
22515 cat >>$CONFIG_STATUS <<\_ACEOF
22517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22518 s&@configure_input@&$configure_input&;t t
22519 s&@top_builddir@&$ac_top_builddir_sub&;t t
22520 s&@srcdir@&$ac_srcdir&;t t
22521 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22522 s&@top_srcdir@&$ac_top_srcdir&;t t
22523 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22524 s&@builddir@&$ac_builddir&;t t
22525 s&@abs_builddir@&$ac_abs_builddir&;t t
22526 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22527 s&@INSTALL@&$ac_INSTALL&;t t
22528 $ac_datarootdir_hack
22529 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22531 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22532 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22533 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22534 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22535 which seems to be undefined. Please make sure it is defined." >&5
22536 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22537 which seems to be undefined. Please make sure it is defined." >&2;}
22541 -) cat "$tmp/out"; rm -f "$tmp/out";;
22542 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22551 # Transform confdefs.h into a sed script `conftest.defines', that
22552 # substitutes the proper values into config.h.in to produce config.h.
22553 rm -f conftest.defines conftest.tail
22554 # First, append a space to every undef/define line, to ease matching.
22555 echo 's/$/ /' >conftest.defines
22556 # Then, protect against being on the right side of a sed subst, or in
22557 # an unquoted here document, in config.status. If some macros were
22558 # called several times there might be several #defines for the same
22559 # symbol, which is useless. But do not sort them, since the last
22560 # AC_DEFINE must be honored.
22561 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22562 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22563 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22564 # PARAMS is the parameter list in the macro definition--in most cases, it's
22565 # just an empty string.
22566 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22567 ac_dB='\\)[ (].*,\\1define\\2'
22575 s/^[ ]*#[ ]*define[ ][ ]*//
22580 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22581 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22582 ' >>conftest.defines
22584 # Remove the space that was appended to ease matching.
22585 # Then replace #undef with comments. This is necessary, for
22586 # example, in the case of _POSIX_SOURCE, which is predefined and required
22587 # on some systems where configure will not decide to define it.
22588 # (The regexp can be short, since the line contains either #define or #undef.)
22590 s,^[ #]*u.*,/* & */,' >>conftest.defines
22592 # Break up conftest.defines:
22593 ac_max_sed_lines=50
22595 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22596 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22597 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22599 ac_in='$ac_file_inputs'
22600 ac_out='"$tmp/out1"'
22601 ac_nxt='"$tmp/out2"'
22605 # Write a here document:
22606 cat >>$CONFIG_STATUS <<_ACEOF
22607 # First, check the format of the line:
22608 cat >"\$tmp/defines.sed" <<\\CEOF
22609 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22610 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22614 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22616 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22617 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22618 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22619 grep . conftest.tail >/dev/null || break
22620 rm -f conftest.defines
22621 mv conftest.tail conftest.defines
22623 rm -f conftest.defines conftest.tail
22625 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22626 cat >>$CONFIG_STATUS <<\_ACEOF
22627 if test x"$ac_file" != x-; then
22628 echo "/* $configure_input */" >"$tmp/config.h"
22629 cat "$ac_result" >>"$tmp/config.h"
22630 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22631 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22632 echo "$as_me: $ac_file is unchanged" >&6;}
22635 mv "$tmp/config.h" $ac_file
22638 echo "/* $configure_input */"
22644 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22645 echo "$as_me: executing $ac_file commands" >&6;}
22650 case $ac_file$ac_mode in
22651 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22652 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22653 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22654 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22655 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22656 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22657 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22658 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22659 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22660 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22661 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22662 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22663 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22664 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22665 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22666 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22667 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22668 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22669 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22670 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22671 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22672 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22673 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22674 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22675 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22676 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22682 { (exit 0); exit 0; }
22684 chmod +x $CONFIG_STATUS
22685 ac_clean_files=$ac_clean_files_save
22688 # configure is writing to config.log, and then calls config.status.
22689 # config.status does its own redirection, appending to config.log.
22690 # Unfortunately, on DOS this fails, as config.log is still kept open
22691 # by configure, so config.status won't be able to write to it; its
22692 # output is simply discarded. So we exec the FD to /dev/null,
22693 # effectively closing config.log, so it can be properly (re)opened and
22694 # appended to by config.status. When coming back to configure, we
22695 # need to make the FD available again.
22696 if test "$no_create" != yes; then
22698 ac_config_status_args=
22699 test "$silent" = yes &&
22700 ac_config_status_args="$ac_config_status_args --quiet"
22702 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22704 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22705 # would make configure fail if this is the last instruction.
22706 $ac_cs_success || { (exit 1); exit 1; }
22710 # CONFIG_SUBDIRS section.
22712 if test "$no_recursion" != yes; then
22714 # Remove --cache-file and --srcdir arguments so they do not pile up.
22715 ac_sub_configure_args=
22717 eval "set x $ac_configure_args"
22721 if test -n "$ac_prev"; then
22726 -cache-file | --cache-file | --cache-fil | --cache-fi \
22727 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22728 ac_prev=cache_file ;;
22729 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22730 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22733 --config-cache | -C)
22735 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22737 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22739 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22741 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22745 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22747 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22751 # Always prepend --prefix to ensure using the same prefix
22752 # in subdir configurations.
22753 ac_arg="--prefix=$prefix"
22755 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22757 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22760 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22762 # Do not complain, so a configure script can configure whichever
22763 # parts of a large source tree are present.
22764 test -d "$srcdir/$ac_dir" || continue
22766 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22767 echo "$as_me:$LINENO: $ac_msg" >&5
22771 -*) as_dir=./$as_dir;;
22773 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22777 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22778 *) as_qdir=$as_dir;;
22780 as_dirs="'$as_qdir' $as_dirs"
22781 as_dir=`$as_dirname -- "$as_dir" ||
22782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22783 X"$as_dir" : 'X\(//\)[^/]' \| \
22784 X"$as_dir" : 'X\(//\)$' \| \
22785 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22791 /^X\(\/\/\)[^/].*/{
22804 test -d "$as_dir" && break
22806 test -z "$as_dirs" || eval "mkdir $as_dirs"
22807 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22808 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22809 { (exit 1); exit 1; }; }; }
22813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22816 # A ".." for each directory in $ac_dir_suffix.
22817 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22818 case $ac_top_builddir_sub in
22819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22823 ac_abs_top_builddir=$ac_pwd
22824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22825 # for backward compatibility:
22826 ac_top_builddir=$ac_top_build_prefix
22829 .) # We are building in place.
22831 ac_top_srcdir=$ac_top_builddir_sub
22832 ac_abs_top_srcdir=$ac_pwd ;;
22833 [\\/]* | ?:[\\/]* ) # Absolute name.
22834 ac_srcdir=$srcdir$ac_dir_suffix;
22835 ac_top_srcdir=$srcdir
22836 ac_abs_top_srcdir=$srcdir ;;
22837 *) # Relative name.
22838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22839 ac_top_srcdir=$ac_top_build_prefix$srcdir
22840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22847 # Check for guested configure; otherwise get Cygnus style configure.
22848 if test -f "$ac_srcdir/configure.gnu"; then
22849 ac_sub_configure=$ac_srcdir/configure.gnu
22850 elif test -f "$ac_srcdir/configure"; then
22851 ac_sub_configure=$ac_srcdir/configure
22852 elif test -f "$ac_srcdir/configure.in"; then
22853 # This should be Cygnus configure.
22854 ac_sub_configure=$ac_aux_dir/configure
22856 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22857 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22861 # The recursion is here.
22862 if test -n "$ac_sub_configure"; then
22863 # Make the cache file name correct relative to the subdirectory.
22864 case $cache_file in
22865 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22866 *) # Relative name.
22867 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22870 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22871 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22872 # The eval makes quoting arguments work.
22873 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22874 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22875 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22876 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22877 { (exit 1); exit 1; }; }