2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
690 ENABLE_EXPENSIVE_CHECKS
706 LLVM_ENUM_ASM_PRINTERS
707 LLVM_ENUM_ASM_PARSERS
708 LLVM_ENUM_DISASSEMBLERS
756 HAVE_LINK_VERSION_SCRIPT
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
768 INTEL_JITEVENTS_INCDIR
769 INTEL_JITEVENTS_LIBDIR
788 ENABLE_VISIBILITY_INLINES_HIDDEN
794 ac_precious_vars='build_alias
805 ac_subdirs_all='projects/llvm-gcc
809 projects/llvm-poolalloc
812 projects/llvm-stacker
820 # Initialize some variables set by options.
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name=s,x,x,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1110 -site=* | --site=* | --sit=*)
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
1203 # Be sure to have absolute directory names.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-polly Use polly if available (default is YES)
1394 --enable-libcpp Use libc++ if available (default is NO)
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-docs Build documents (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pthreads Use pthreads if available (default is YES)
1411 --enable-pic Build LLVM with Position Independent Code (default
1413 --enable-shared Build a shared library and link tools against it
1415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1416 Win32 DLL (default is NO)
1417 --enable-timestamps Enable embedding timestamp information in build
1419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422 xcore, msp430, nvptx, and cpp (default=all)
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-ltdl-install install libltdl
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-optimize-option Select the compiler options to use for optimized
1433 --with-extra-options Specify additional options to compile LLVM with
1434 --with-extra-ld-options Specify additional options to link LLVM with
1435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 --with-clang-srcdir Directory to the out-of-tree Clang source
1438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1441 --with-c-include-dirs Colon separated list of directories clang will
1443 --with-gcc-toolchain Directory where gcc is installed.
1444 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
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.2svn
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.2svn, 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 2
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" ;;
3805 *-*-freebsd* | *-*-kfreebsd-gnu)
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="GNU" ;;
3822 llvm_cv_target_os_type="SunOS" ;;
3824 llvm_cv_target_os_type="AuroraUX" ;;
3826 llvm_cv_target_os_type="Win32" ;;
3828 llvm_cv_target_os_type="MingW" ;;
3830 llvm_cv_target_os_type="Haiku" ;;
3832 llvm_cv_target_os_type="RTEMS" ;;
3834 llvm_cv_target_os_type="NativeClient" ;;
3836 llvm_cv_target_os_type="Freestanding" ;;
3838 llvm_cv_target_os_type="Unknown" ;;
3841 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3842 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3844 if test "$llvm_cv_os_type" = "Unknown" ; then
3845 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3846 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3847 { (exit 1); exit 1; }; }
3852 HOST_OS=$llvm_cv_os_type
3854 TARGET_OS=$llvm_cv_target_os_type
3857 LINKALL=$llvm_cv_link_all_option
3859 NOLINKALL=$llvm_cv_no_link_all_option
3862 case $llvm_cv_platform_type in
3865 cat >>confdefs.h <<\_ACEOF
3866 #define LLVM_ON_UNIX 1
3876 cat >>confdefs.h <<\_ACEOF
3877 #define LLVM_ON_WIN32 1
3887 { echo "$as_me:$LINENO: checking target architecture" >&5
3888 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3889 if test "${llvm_cv_target_arch+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 i?86-*) llvm_cv_target_arch="x86" ;;
3894 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3895 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3896 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3897 arm*-*) llvm_cv_target_arch="ARM" ;;
3898 mips-*) llvm_cv_target_arch="Mips" ;;
3899 mipsel-*) llvm_cv_target_arch="Mips" ;;
3900 xcore-*) llvm_cv_target_arch="XCore" ;;
3901 msp430-*) llvm_cv_target_arch="MSP430" ;;
3902 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3903 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3904 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3905 *) llvm_cv_target_arch="Unknown" ;;
3908 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3909 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3911 if test "$llvm_cv_target_arch" = "Unknown" ; then
3912 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3913 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3916 case "$llvm_cv_target_arch" in
3917 x86) LLVM_NATIVE_ARCH="X86" ;;
3918 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3919 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3922 ARCH=$llvm_cv_target_arch
3926 i?86-*) host_arch="x86" ;;
3927 amd64-* | x86_64-*) host_arch="x86_64" ;;
3928 sparc*-*) host_arch="Sparc" ;;
3929 powerpc*-*) host_arch="PowerPC" ;;
3930 arm*-*) host_arch="ARM" ;;
3931 mips-*) host_arch="Mips" ;;
3932 mipsel-*) host_arch="Mips" ;;
3933 xcore-*) host_arch="XCore" ;;
3934 msp430-*) host_arch="MSP430" ;;
3935 hexagon-*) host_arch="Hexagon" ;;
3936 mblaze-*) host_arch="MBlaze" ;;
3937 *) host_arch="Unknown" ;;
3940 if test "$host_arch" = "Unknown" ; then
3941 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3942 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3945 HOST_ARCH=$host_arch
3950 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3951 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3952 if test "${ac_cv_path_GREP+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 # Extract the first word of "grep ggrep" to use in msg output
3956 if test -z "$GREP"; then
3957 set dummy grep ggrep; ac_prog_name=$2
3958 if test "${ac_cv_path_GREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 ac_path_GREP_found=false
3962 # Loop through the user's path and test for each of PROGNAME-LIST
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967 test -z "$as_dir" && as_dir=.
3968 for ac_prog in grep ggrep; do
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3971 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3972 # Check for GNU ac_path_GREP and select it if it is found.
3973 # Check for GNU $ac_path_GREP
3974 case `"$ac_path_GREP" --version 2>&1` in
3976 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3979 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3982 cat "conftest.in" "conftest.in" >"conftest.tmp"
3983 mv "conftest.tmp" "conftest.in"
3984 cp "conftest.in" "conftest.nl"
3985 echo 'GREP' >> "conftest.nl"
3986 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988 ac_count=`expr $ac_count + 1`
3989 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3990 # Best one so far, save it but keep looking for a better one
3991 ac_cv_path_GREP="$ac_path_GREP"
3992 ac_path_GREP_max=$ac_count
3994 # 10*(2^10) chars as input seems more than enough
3995 test $ac_count -gt 10 && break
3997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4001 $ac_path_GREP_found && break 3
4011 GREP="$ac_cv_path_GREP"
4012 if test -z "$GREP"; then
4013 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4014 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4015 { (exit 1); exit 1; }; }
4019 ac_cv_path_GREP=$GREP
4024 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4025 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4026 GREP="$ac_cv_path_GREP"
4029 { echo "$as_me:$LINENO: checking for egrep" >&5
4030 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4031 if test "${ac_cv_path_EGREP+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4035 then ac_cv_path_EGREP="$GREP -E"
4037 # Extract the first word of "egrep" to use in msg output
4038 if test -z "$EGREP"; then
4039 set dummy egrep; ac_prog_name=$2
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 ac_path_EGREP_found=false
4044 # Loop through the user's path and test for each of PROGNAME-LIST
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4049 test -z "$as_dir" && as_dir=.
4050 for ac_prog in egrep; do
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4053 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4054 # Check for GNU ac_path_EGREP and select it if it is found.
4055 # Check for GNU $ac_path_EGREP
4056 case `"$ac_path_EGREP" --version 2>&1` in
4058 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4061 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4064 cat "conftest.in" "conftest.in" >"conftest.tmp"
4065 mv "conftest.tmp" "conftest.in"
4066 cp "conftest.in" "conftest.nl"
4067 echo 'EGREP' >> "conftest.nl"
4068 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4070 ac_count=`expr $ac_count + 1`
4071 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4072 # Best one so far, save it but keep looking for a better one
4073 ac_cv_path_EGREP="$ac_path_EGREP"
4074 ac_path_EGREP_max=$ac_count
4076 # 10*(2^10) chars as input seems more than enough
4077 test $ac_count -gt 10 && break
4079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083 $ac_path_EGREP_found && break 3
4093 EGREP="$ac_cv_path_EGREP"
4094 if test -z "$EGREP"; then
4095 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4096 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4097 { (exit 1); exit 1; }; }
4101 ac_cv_path_EGREP=$EGREP
4107 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4108 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4109 EGREP="$ac_cv_path_EGREP"
4112 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4113 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4114 if test "${ac_cv_header_stdc+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 cat >conftest.$ac_ext <<_ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4145 grep -v '^ *+' conftest.er1 >conftest.err
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 ac_cv_header_stdc=yes
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 ac_cv_header_stdc=no
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 if test $ac_cv_header_stdc = yes; then
4181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192 $EGREP "memchr" >/dev/null 2>&1; then
4195 ac_cv_header_stdc=no
4201 if test $ac_cv_header_stdc = yes; then
4202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4213 $EGREP "free" >/dev/null 2>&1; then
4216 ac_cv_header_stdc=no
4222 if test $ac_cv_header_stdc = yes; then
4223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4224 if test "$cross_compiling" = yes; then
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4235 #if ((' ' & 0x0FF) == 0x020)
4236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4239 # define ISLOWER(c) \
4240 (('a' <= (c) && (c) <= 'i') \
4241 || ('j' <= (c) && (c) <= 'r') \
4242 || ('s' <= (c) && (c) <= 'z'))
4243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4251 for (i = 0; i < 256; i++)
4252 if (XOR (islower (i), ISLOWER (i))
4253 || toupper (i) != TOUPPER (i))
4258 rm -f conftest$ac_exeext
4259 if { (ac_try="$ac_link"
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_link") 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4280 echo "$as_me: program exited with status $ac_status" >&5
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4285 ac_cv_header_stdc=no
4287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4293 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4294 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4295 if test $ac_cv_header_stdc = yes; then
4297 cat >>confdefs.h <<\_ACEOF
4298 #define STDC_HEADERS 1
4303 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4313 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4314 inttypes.h stdint.h unistd.h
4316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 $ac_includes_default
4330 #include <$ac_header>
4332 rm -f conftest.$ac_objext
4333 if { (ac_try="$ac_compile"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_compile") 2>conftest.er1
4341 grep -v '^ *+' conftest.er1 >conftest.err
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest.$ac_objext'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 eval "$as_ac_Header=yes"
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 eval "$as_ac_Header=no"
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 ac_res=`eval echo '${'$as_ac_Header'}'`
4377 { echo "$as_me:$LINENO: result: $ac_res" >&5
4378 echo "${ECHO_T}$ac_res" >&6; }
4379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4380 cat >>confdefs.h <<_ACEOF
4381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4390 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4391 if test "${ac_cv_c_bigendian+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 # See if sys/param.h defines the BYTE_ORDER macro.
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 #include <sys/types.h>
4402 #include <sys/param.h>
4407 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4415 rm -f conftest.$ac_objext
4416 if { (ac_try="$ac_compile"
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_compile") 2>conftest.er1
4424 grep -v '^ *+' conftest.er1 >conftest.err
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4430 { (case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_try") 2>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; } &&
4439 { ac_try='test -s conftest.$ac_objext'
4440 { (case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_try") 2>&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 # It does; now see whether it defined to BIG_ENDIAN or not.
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <sys/types.h>
4457 #include <sys/param.h>
4462 #if BYTE_ORDER != BIG_ENDIAN
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_compile") 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485 { (case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_try") 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_try") 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 ac_cv_c_bigendian=yes
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 ac_cv_c_bigendian=no
4512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 # It does not; compile a test program.
4518 if test "$cross_compiling" = yes; then
4519 # try to guess the endianness by grepping values into an object file
4520 ac_cv_c_bigendian=unknown
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4528 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4529 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4530 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4531 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4532 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4536 _ascii (); _ebcdic ();
4541 rm -f conftest.$ac_objext
4542 if { (ac_try="$ac_compile"
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_compile") 2>conftest.er1
4550 grep -v '^ *+' conftest.er1 >conftest.err
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4556 { (case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_try") 2>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; } &&
4565 { ac_try='test -s conftest.$ac_objext'
4566 { (case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_try") 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4576 ac_cv_c_bigendian=yes
4578 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4579 if test "$ac_cv_c_bigendian" = unknown; then
4580 ac_cv_c_bigendian=no
4582 # finding both strings is unlikely to happen, but who knows?
4583 ac_cv_c_bigendian=unknown
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 cat >conftest.$ac_ext <<_ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4606 /* Are we little or big endian? From Harbison&Steele. */
4610 char c[sizeof (long int)];
4613 return u.c[sizeof (long int) - 1] == 1;
4619 rm -f conftest$ac_exeext
4620 if { (ac_try="$ac_link"
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626 (eval "$ac_link") 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4630 { (case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_try") 2>&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_c_bigendian=no
4641 echo "$as_me: program exited with status $ac_status" >&5
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4646 ac_cv_c_bigendian=yes
4648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4657 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4658 case $ac_cv_c_bigendian in
4666 { { echo "$as_me:$LINENO: error: unknown endianness
4667 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4668 echo "$as_me: error: unknown endianness
4669 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4670 { (exit 1); exit 1; }; } ;;
4674 if test "$cross_compiling" = yes; then
4675 LLVM_CROSS_COMPILING=1
4678 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4679 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4680 if test "${ac_cv_build_exeext+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4684 ac_cv_build_exeext=.exe
4686 ac_build_prefix=${build_alias}-
4688 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4689 set dummy ${ac_build_prefix}gcc; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 if test -n "$BUILD_CC"; then
4696 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 BUILD_CC=$ac_cv_prog_BUILD_CC
4716 if test -n "$BUILD_CC"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4718 echo "${ECHO_T}$BUILD_CC" >&6; }
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4725 if test -z "$BUILD_CC"; then
4726 # Extract the first word of "gcc", so it can be a program name with args.
4727 set dummy gcc; ac_word=$2
4728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 if test -n "$BUILD_CC"; then
4734 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_BUILD_CC="gcc"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 BUILD_CC=$ac_cv_prog_BUILD_CC
4754 if test -n "$BUILD_CC"; then
4755 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4756 echo "${ECHO_T}$BUILD_CC" >&6; }
4758 { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4763 if test -z "$BUILD_CC"; then
4764 # Extract the first word of "cc", so it can be a program name with args.
4765 set dummy cc; ac_word=$2
4766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4768 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 if test -n "$BUILD_CC"; then
4772 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4783 ac_prog_rejected=yes
4786 ac_cv_prog_BUILD_CC="cc"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 if test $ac_prog_rejected = yes; then
4795 # We found a bogon in the path, so make sure we never use it.
4796 set dummy $ac_cv_prog_BUILD_CC
4798 if test $# != 0; then
4799 # We chose a different compiler from the bogus one.
4800 # However, it has the same basename, so the bogon will be chosen
4801 # first if we set BUILD_CC to just the basename; use the full file name.
4803 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4808 BUILD_CC=$ac_cv_prog_BUILD_CC
4809 if test -n "$BUILD_CC"; then
4810 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4811 echo "${ECHO_T}$BUILD_CC" >&6; }
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4820 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4821 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4822 { (exit 1); exit 1; }; }
4823 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4825 echo 'int main () { return 0; }' > conftest.$ac_ext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4828 (eval $ac_build_link) 2>&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; then
4832 for file in conftest.*; do
4834 *.c | *.o | *.obj | *.dSYM) ;;
4835 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4839 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4840 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4841 { (exit 1); exit 1; }; }
4844 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4849 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4850 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4851 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4852 ac_build_exeext=$BUILD_EXEEXT
4854 ac_build_prefix=${build_alias}-
4855 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4856 set dummy ${ac_build_prefix}g++; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 if test -n "$BUILD_CXX"; then
4863 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4883 if test -n "$BUILD_CXX"; then
4884 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4885 echo "${ECHO_T}$BUILD_CXX" >&6; }
4887 { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4892 if test -z "$BUILD_CXX"; then
4893 # Extract the first word of "g++", so it can be a program name with args.
4894 set dummy g++; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 if test -n "$BUILD_CXX"; then
4901 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_BUILD_CXX="g++"
4911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4921 if test -n "$BUILD_CXX"; then
4922 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4923 echo "${ECHO_T}$BUILD_CXX" >&6; }
4925 { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4930 if test -z "$BUILD_CXX"; then
4931 # Extract the first word of "c++", so it can be a program name with args.
4932 set dummy c++; ac_word=$2
4933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4935 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 if test -n "$BUILD_CXX"; then
4939 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4950 ac_prog_rejected=yes
4953 ac_cv_prog_BUILD_CXX="c++"
4954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 if test $ac_prog_rejected = yes; then
4962 # We found a bogon in the path, so make sure we never use it.
4963 set dummy $ac_cv_prog_BUILD_CXX
4965 if test $# != 0; then
4966 # We chose a different compiler from the bogus one.
4967 # However, it has the same basename, so the bogon will be chosen
4968 # first if we set BUILD_CXX to just the basename; use the full file name.
4970 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4975 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4976 if test -n "$BUILD_CXX"; then
4977 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4978 echo "${ECHO_T}$BUILD_CXX" >&6; }
4980 { echo "$as_me:$LINENO: result: no" >&5
4981 echo "${ECHO_T}no" >&6; }
4988 LLVM_CROSS_COMPILING=0
4992 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5003 # Check whether --enable-libcpp was given.
5004 if test "${enable_libcpp+set}" = set; then
5005 enableval=$enable_libcpp;
5010 case "$enableval" in
5011 yes) ENABLE_LIBCPP=1
5015 default) ENABLE_LIBCPP=0
5017 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5018 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5019 { (exit 1); exit 1; }; } ;;
5022 # Check whether --enable-optimized was given.
5023 if test "${enable_optimized+set}" = set; then
5024 enableval=$enable_optimized;
5029 if test ${enableval} = "no" ; then
5033 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5037 # Check whether --enable-profiling was given.
5038 if test "${enable_profiling+set}" = set; then
5039 enableval=$enable_profiling;
5044 if test ${enableval} = "no" ; then
5048 ENABLE_PROFILING=ENABLE_PROFILING=1
5052 # Check whether --enable-assertions was given.
5053 if test "${enable_assertions+set}" = set; then
5054 enableval=$enable_assertions;
5059 if test ${enableval} = "yes" ; then
5063 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5067 # Check whether --enable-expensive-checks was given.
5068 if test "${enable_expensive_checks+set}" = set; then
5069 enableval=$enable_expensive_checks;
5074 if test ${enableval} = "yes" ; then
5075 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5077 EXPENSIVE_CHECKS=yes
5080 ENABLE_EXPENSIVE_CHECKS=
5086 # Check whether --enable-debug-runtime was given.
5087 if test "${enable_debug_runtime+set}" = set; then
5088 enableval=$enable_debug_runtime;
5093 if test ${enableval} = "no" ; then
5097 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5101 # Check whether --enable-debug-symbols was given.
5102 if test "${enable_debug_symbols+set}" = set; then
5103 enableval=$enable_debug_symbols;
5108 if test ${enableval} = "no" ; then
5112 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5116 # Check whether --enable-jit was given.
5117 if test "${enable_jit+set}" = set; then
5118 enableval=$enable_jit;
5123 if test ${enableval} = "no"
5128 case "$llvm_cv_target_arch" in
5129 x86) TARGET_HAS_JIT=1
5131 Sparc) TARGET_HAS_JIT=0
5133 PowerPC) TARGET_HAS_JIT=1
5135 x86_64) TARGET_HAS_JIT=1
5137 ARM) TARGET_HAS_JIT=1
5139 Mips) TARGET_HAS_JIT=1
5141 XCore) TARGET_HAS_JIT=0
5143 MSP430) TARGET_HAS_JIT=0
5145 Hexagon) TARGET_HAS_JIT=0
5147 MBlaze) TARGET_HAS_JIT=0
5149 NVPTX) TARGET_HAS_JIT=0
5156 # Check whether --enable-docs was given.
5157 if test "${enable_docs+set}" = set; then
5158 enableval=$enable_docs;
5163 case "$enableval" in
5168 default) ENABLE_DOCS=1
5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5175 # Check whether --enable-doxygen was given.
5176 if test "${enable_doxygen+set}" = set; then
5177 enableval=$enable_doxygen;
5182 case "$enableval" in
5183 yes) ENABLE_DOXYGEN=1
5185 no) ENABLE_DOXYGEN=0
5187 default) ENABLE_DOXYGEN=0
5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5194 # Check whether --enable-threads was given.
5195 if test "${enable_threads+set}" = set; then
5196 enableval=$enable_threads;
5201 case "$enableval" in
5202 yes) LLVM_ENABLE_THREADS=1
5204 no) LLVM_ENABLE_THREADS=0
5206 default) LLVM_ENABLE_THREADS=1
5208 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5209 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5210 { (exit 1); exit 1; }; } ;;
5213 cat >>confdefs.h <<_ACEOF
5214 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5218 # Check whether --enable-pthreads was given.
5219 if test "${enable_pthreads+set}" = set; then
5220 enableval=$enable_pthreads;
5225 case "$enableval" in
5226 yes) ENABLE_PTHREADS=1
5228 no) ENABLE_PTHREADS=0
5230 default) ENABLE_PTHREADS=1
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5237 # Check whether --enable-pic was given.
5238 if test "${enable_pic+set}" = set; then
5239 enableval=$enable_pic;
5244 case "$enableval" in
5249 default) ENABLE_PIC=1
5251 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5252 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5253 { (exit 1); exit 1; }; } ;;
5256 cat >>confdefs.h <<_ACEOF
5257 #define ENABLE_PIC $ENABLE_PIC
5261 # Check whether --enable-shared was given.
5262 if test "${enable_shared+set}" = set; then
5263 enableval=$enable_shared;
5268 case "$enableval" in
5269 yes) ENABLE_SHARED=1
5273 default) ENABLE_SHARED=0
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5280 # Check whether --enable-embed-stdcxx was given.
5281 if test "${enable_embed_stdcxx+set}" = set; then
5282 enableval=$enable_embed_stdcxx;
5287 case "$enableval" in
5288 yes) ENABLE_EMBED_STDCXX=1
5290 no) ENABLE_EMBED_STDCXX=0
5292 default) ENABLE_EMBED_STDCXX=0
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5299 # Check whether --enable-timestamps was given.
5300 if test "${enable_timestamps+set}" = set; then
5301 enableval=$enable_timestamps;
5306 case "$enableval" in
5307 yes) ENABLE_TIMESTAMPS=1
5309 no) ENABLE_TIMESTAMPS=0
5311 default) ENABLE_TIMESTAMPS=1
5313 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5314 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5315 { (exit 1); exit 1; }; } ;;
5318 cat >>confdefs.h <<_ACEOF
5319 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5324 # Check whether --enable-targets was given.
5325 if test "${enable_targets+set}" = set; then
5326 enableval=$enable_targets;
5331 if test "$enableval" = host-only ; then
5334 case "$enableval" in
5335 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5336 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5338 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5339 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5340 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5341 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5342 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5343 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5345 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5346 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5347 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5348 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5349 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5350 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5351 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5352 host) case "$llvm_cv_target_arch" in
5353 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5354 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5355 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5356 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5357 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5358 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5359 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5360 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5361 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5362 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5363 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5364 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5365 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5366 echo "$as_me: error: Can not set target to build" >&2;}
5367 { (exit 1); exit 1; }; } ;;
5369 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5370 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5371 { (exit 1); exit 1; }; } ;;
5376 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5379 for a_target in $TARGETS_TO_BUILD; do
5380 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5382 cat >>confdefs.h <<_ACEOF
5383 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5386 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5387 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5388 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5389 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5390 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5391 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5393 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5394 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5397 cat >>confdefs.h <<_ACEOF
5398 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5407 cat >>confdefs.h <<_ACEOF
5408 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5412 cat >>confdefs.h <<_ACEOF
5413 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5416 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5423 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5425 cat >>confdefs.h <<_ACEOF
5426 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5433 LLVM_ENUM_TARGETS=""
5434 LLVM_ENUM_ASM_PRINTERS=""
5435 LLVM_ENUM_ASM_PARSERS=""
5436 LLVM_ENUM_DISASSEMBLERS=""
5437 for target_to_build in $TARGETS_TO_BUILD; do
5438 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5439 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5440 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5442 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5443 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5445 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5446 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5455 # Check whether --with-optimize-option was given.
5456 if test "${with_optimize_option+set}" = set; then
5457 withval=$with_optimize_option;
5462 { echo "$as_me:$LINENO: checking optimization flags" >&5
5463 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5466 case "$llvm_cv_os_type" in
5467 FreeBSD) optimize_option=-O2 ;;
5468 MingW) optimize_option=-O2 ;;
5469 *) optimize_option=-O3 ;;
5471 *) optimize_option="$withval" ;;
5473 OPTIMIZE_OPTION=$optimize_option
5475 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5476 echo "${ECHO_T}$optimize_option" >&6; }
5479 # Check whether --with-extra-options was given.
5480 if test "${with_extra_options+set}" = set; then
5481 withval=$with_extra_options;
5487 default) EXTRA_OPTIONS= ;;
5488 *) EXTRA_OPTIONS=$withval ;;
5490 EXTRA_OPTIONS=$EXTRA_OPTIONS
5494 # Check whether --with-extra-ld-options was given.
5495 if test "${with_extra_ld_options+set}" = set; then
5496 withval=$with_extra_ld_options;
5502 default) EXTRA_LD_OPTIONS= ;;
5503 *) EXTRA_LD_OPTIONS=$withval ;;
5505 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5508 # Check whether --enable-bindings was given.
5509 if test "${enable_bindings+set}" = set; then
5510 enableval=$enable_bindings;
5515 BINDINGS_TO_BUILD=""
5516 case "$enableval" in
5517 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5518 all ) BINDINGS_TO_BUILD="ocaml" ;;
5519 none | no) BINDINGS_TO_BUILD="" ;;
5520 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5521 case "$a_binding" in
5522 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5523 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5524 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5525 { (exit 1); exit 1; }; } ;;
5532 # Check whether --with-ocaml-libdir was given.
5533 if test "${with_ocaml_libdir+set}" = set; then
5534 withval=$with_ocaml_libdir;
5540 auto) with_ocaml_libdir="$withval" ;;
5541 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5542 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5543 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5544 { (exit 1); exit 1; }; } ;;
5548 # Check whether --with-clang-srcdir was given.
5549 if test "${with_clang_srcdir+set}" = set; then
5550 withval=$with_clang_srcdir;
5556 -) clang_src_root="" ;;
5557 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5558 *) clang_src_root="$ac_pwd/$withval" ;;
5560 CLANG_SRC_ROOT=$clang_src_root
5564 # Check whether --with-clang-resource-dir was given.
5565 if test "${with_clang_resource_dir+set}" = set; then
5566 withval=$with_clang_resource_dir;
5572 cat >>confdefs.h <<_ACEOF
5573 #define CLANG_RESOURCE_DIR "$withval"
5578 # Check whether --with-c-include-dirs was given.
5579 if test "${with_c_include_dirs+set}" = set; then
5580 withval=$with_c_include_dirs;
5586 cat >>confdefs.h <<_ACEOF
5587 #define C_INCLUDE_DIRS "$withval"
5591 # Clang normally uses the system c++ headers and libraries. With this option,
5592 # clang will use the ones provided by a gcc installation instead. This option should
5593 # be passed the same value that was used with --prefix when configuring gcc.
5595 # Check whether --with-gcc-toolchain was given.
5596 if test "${with_gcc_toolchain+set}" = set; then
5597 withval=$with_gcc_toolchain;
5603 cat >>confdefs.h <<_ACEOF
5604 #define GCC_INSTALL_PREFIX "$withval"
5609 # Check whether --with-default-sysroot was given.
5610 if test "${with_default_sysroot+set}" = set; then
5611 withval=$with_default_sysroot;
5617 cat >>confdefs.h <<_ACEOF
5618 #define DEFAULT_SYSROOT "$withval"
5623 # Check whether --with-binutils-include was given.
5624 if test "${with_binutils_include+set}" = set; then
5625 withval=$with_binutils_include;
5631 default) WITH_BINUTILS_INCDIR=default ;;
5632 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5633 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5634 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5635 { (exit 1); exit 1; }; } ;;
5637 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5638 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5640 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5641 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5642 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5643 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5644 { (exit 1); exit 1; }; };
5649 # Check whether --with-bug-report-url was given.
5650 if test "${with_bug_report_url+set}" = set; then
5651 withval=$with_bug_report_url;
5653 withval="http://llvm.org/bugs/"
5657 cat >>confdefs.h <<_ACEOF
5658 #define BUG_REPORT_URL "$withval"
5662 # Check whether --enable-libffi was given.
5663 if test "${enable_libffi+set}" = set; then
5664 enableval=$enable_libffi; case "$enableval" in
5665 yes) llvm_cv_enable_libffi="yes" ;;
5666 no) llvm_cv_enable_libffi="no" ;;
5667 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5668 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5669 { (exit 1); exit 1; }; } ;;
5672 llvm_cv_enable_libffi=no
5677 # Check whether --with-internal-prefix was given.
5678 if test "${with_internal_prefix+set}" = set; then
5679 withval=$with_internal_prefix;
5684 INTERNAL_PREFIX=$withval
5688 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5689 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5690 if test "${lt_cv_path_NM+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 if test -n "$NM"; then
5694 # Let the user override the test.
5697 lt_nm_to_check="${ac_tool_prefix}nm"
5698 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5699 lt_nm_to_check="$lt_nm_to_check nm"
5701 for lt_tmp_nm in $lt_nm_to_check; do
5702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5703 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5705 test -z "$ac_dir" && ac_dir=.
5706 tmp_nm="$ac_dir/$lt_tmp_nm"
5707 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5708 # Check to see if the nm accepts a BSD-compat flag.
5709 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5710 # nm: unknown option "B" ignored
5711 # Tru64's nm complains that /dev/null is an invalid object file
5712 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5713 */dev/null* | *'Invalid file or object type'*)
5714 lt_cv_path_NM="$tmp_nm -B"
5718 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5720 lt_cv_path_NM="$tmp_nm -p"
5724 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5725 continue # so that we can try to find one that supports BSD flags
5734 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5737 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5738 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5743 { echo "$as_me:$LINENO: checking for GNU make" >&5
5744 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5745 if test "${llvm_cv_gnu_make_command+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 llvm_cv_gnu_make_command=''
5749 for a in "$MAKE" make gmake gnumake ; do
5750 if test -z "$a" ; then continue ; fi ;
5751 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5753 llvm_cv_gnu_make_command=$a ;
5758 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5759 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5760 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5764 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5765 echo "${ECHO_T}\"Not found\"" >&6; };
5769 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5770 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5772 if test "$LN_S" = "ln -s"; then
5773 { echo "$as_me:$LINENO: result: yes" >&5
5774 echo "${ECHO_T}yes" >&6; }
5776 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5777 echo "${ECHO_T}no, using $LN_S" >&6; }
5780 # Extract the first word of "cmp", so it can be a program name with args.
5781 set dummy cmp; ac_word=$2
5782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5784 if test "${ac_cv_path_CMP+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5799 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5812 if test -n "$CMP"; then
5813 { echo "$as_me:$LINENO: result: $CMP" >&5
5814 echo "${ECHO_T}$CMP" >&6; }
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5821 # Extract the first word of "cp", so it can be a program name with args.
5822 set dummy cp; ac_word=$2
5823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5825 if test "${ac_cv_path_CP+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5853 if test -n "$CP"; then
5854 { echo "$as_me:$LINENO: result: $CP" >&5
5855 echo "${ECHO_T}$CP" >&6; }
5857 { echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6; }
5862 # Extract the first word of "date", so it can be a program name with args.
5863 set dummy date; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_path_DATE+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5893 DATE=$ac_cv_path_DATE
5894 if test -n "$DATE"; then
5895 { echo "$as_me:$LINENO: result: $DATE" >&5
5896 echo "${ECHO_T}$DATE" >&6; }
5898 { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5903 # Extract the first word of "find", so it can be a program name with args.
5904 set dummy find; ac_word=$2
5905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907 if test "${ac_cv_path_FIND+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5934 FIND=$ac_cv_path_FIND
5935 if test -n "$FIND"; then
5936 { echo "$as_me:$LINENO: result: $FIND" >&5
5937 echo "${ECHO_T}$FIND" >&6; }
5939 { echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6; }
5944 # Extract the first word of "grep", so it can be a program name with args.
5945 set dummy grep; ac_word=$2
5946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948 if test "${ac_cv_path_GREP+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5963 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5975 GREP=$ac_cv_path_GREP
5976 if test -n "$GREP"; then
5977 { echo "$as_me:$LINENO: result: $GREP" >&5
5978 echo "${ECHO_T}$GREP" >&6; }
5980 { echo "$as_me:$LINENO: result: no" >&5
5981 echo "${ECHO_T}no" >&6; }
5985 # Extract the first word of "mkdir", so it can be a program name with args.
5986 set dummy mkdir; ac_word=$2
5987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989 if test "${ac_cv_path_MKDIR+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6016 MKDIR=$ac_cv_path_MKDIR
6017 if test -n "$MKDIR"; then
6018 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6019 echo "${ECHO_T}$MKDIR" >&6; }
6021 { echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6; }
6026 # Extract the first word of "mv", so it can be a program name with args.
6027 set dummy mv; ac_word=$2
6028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6030 if test "${ac_cv_path_MV+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6058 if test -n "$MV"; then
6059 { echo "$as_me:$LINENO: result: $MV" >&5
6060 echo "${ECHO_T}$MV" >&6; }
6062 { echo "$as_me:$LINENO: result: no" >&5
6063 echo "${ECHO_T}no" >&6; }
6067 if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6072 if test "${ac_cv_prog_RANLIB+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 if test -n "$RANLIB"; then
6076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 RANLIB=$ac_cv_prog_RANLIB
6096 if test -n "$RANLIB"; then
6097 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6098 echo "${ECHO_T}$RANLIB" >&6; }
6100 { echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6; }
6106 if test -z "$ac_cv_prog_RANLIB"; then
6107 ac_ct_RANLIB=$RANLIB
6108 # Extract the first word of "ranlib", so it can be a program name with args.
6109 set dummy ranlib; ac_word=$2
6110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 if test -n "$ac_ct_RANLIB"; then
6116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_ac_ct_RANLIB="ranlib"
6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6136 if test -n "$ac_ct_RANLIB"; then
6137 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6138 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6144 if test "x$ac_ct_RANLIB" = x; then
6147 case $cross_compiling:$ac_tool_warned in
6149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6150 whose name does not start with the host triplet. If you think this
6151 configuration is useful to you, please write to autoconf@gnu.org." >&5
6152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6153 whose name does not start with the host triplet. If you think this
6154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6155 ac_tool_warned=yes ;;
6157 RANLIB=$ac_ct_RANLIB
6160 RANLIB="$ac_cv_prog_RANLIB"
6163 if test -n "$ac_tool_prefix"; then
6164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6165 set dummy ${ac_tool_prefix}ar; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_AR+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 if test -n "$AR"; then
6172 ac_cv_prog_AR="$AR" # Let the user override the test.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_AR="${ac_tool_prefix}ar"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 if test -n "$AR"; then
6193 { echo "$as_me:$LINENO: result: $AR" >&5
6194 echo "${ECHO_T}$AR" >&6; }
6196 { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6202 if test -z "$ac_cv_prog_AR"; then
6204 # Extract the first word of "ar", so it can be a program name with args.
6205 set dummy ar; ac_word=$2
6206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 if test -n "$ac_ct_AR"; then
6212 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_ac_ct_AR="ar"
6222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6232 if test -n "$ac_ct_AR"; then
6233 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6234 echo "${ECHO_T}$ac_ct_AR" >&6; }
6236 { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6240 if test "x$ac_ct_AR" = x; then
6243 case $cross_compiling:$ac_tool_warned in
6245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6246 whose name does not start with the host triplet. If you think this
6247 configuration is useful to you, please write to autoconf@gnu.org." >&5
6248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6249 whose name does not start with the host triplet. If you think this
6250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6251 ac_tool_warned=yes ;;
6259 # Extract the first word of "rm", so it can be a program name with args.
6260 set dummy rm; ac_word=$2
6261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263 if test "${ac_cv_path_RM+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6291 if test -n "$RM"; then
6292 { echo "$as_me:$LINENO: result: $RM" >&5
6293 echo "${ECHO_T}$RM" >&6; }
6295 { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6300 # Extract the first word of "sed", so it can be a program name with args.
6301 set dummy sed; ac_word=$2
6302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304 if test "${ac_cv_path_SED+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6332 if test -n "$SED"; then
6333 { echo "$as_me:$LINENO: result: $SED" >&5
6334 echo "${ECHO_T}$SED" >&6; }
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6341 # Extract the first word of "tar", so it can be a program name with args.
6342 set dummy tar; ac_word=$2
6343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6345 if test "${ac_cv_path_TAR+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6373 if test -n "$TAR"; then
6374 { echo "$as_me:$LINENO: result: $TAR" >&5
6375 echo "${ECHO_T}$TAR" >&6; }
6377 { echo "$as_me:$LINENO: result: no" >&5
6378 echo "${ECHO_T}no" >&6; }
6382 # Extract the first word of "pwd", so it can be a program name with args.
6383 set dummy pwd; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_path_BINPWD+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6413 BINPWD=$ac_cv_path_BINPWD
6414 if test -n "$BINPWD"; then
6415 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6416 echo "${ECHO_T}$BINPWD" >&6; }
6418 { echo "$as_me:$LINENO: result: no" >&5
6419 echo "${ECHO_T}no" >&6; }
6424 # Extract the first word of "Graphviz", so it can be a program name with args.
6425 set dummy Graphviz; ac_word=$2
6426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6455 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6456 if test -n "$GRAPHVIZ"; then
6457 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6458 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6460 { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6465 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6467 cat >>confdefs.h <<\_ACEOF
6468 #define HAVE_GRAPHVIZ 1
6471 if test "$llvm_cv_os_type" = "MingW" ; then
6472 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6475 cat >>confdefs.h <<_ACEOF
6476 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6480 # Extract the first word of "dot", so it can be a program name with args.
6481 set dummy dot; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_path_DOT+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6512 if test -n "$DOT"; then
6513 { echo "$as_me:$LINENO: result: $DOT" >&5
6514 echo "${ECHO_T}$DOT" >&6; }
6516 { echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6; }
6521 if test "$DOT" != "echo dot" ; then
6523 cat >>confdefs.h <<\_ACEOF
6527 if test "$llvm_cv_os_type" = "MingW" ; then
6528 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6531 cat >>confdefs.h <<_ACEOF
6532 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6536 # Extract the first word of "fdp", so it can be a program name with args.
6537 set dummy fdp; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_path_FDP+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6568 if test -n "$FDP"; then
6569 { echo "$as_me:$LINENO: result: $FDP" >&5
6570 echo "${ECHO_T}$FDP" >&6; }
6572 { echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6; }
6577 if test "$FDP" != "echo fdp" ; then
6579 cat >>confdefs.h <<\_ACEOF
6583 if test "$llvm_cv_os_type" = "MingW" ; then
6584 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6587 cat >>confdefs.h <<_ACEOF
6588 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6592 # Extract the first word of "neato", so it can be a program name with args.
6593 set dummy neato; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_path_NEATO+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6623 NEATO=$ac_cv_path_NEATO
6624 if test -n "$NEATO"; then
6625 { echo "$as_me:$LINENO: result: $NEATO" >&5
6626 echo "${ECHO_T}$NEATO" >&6; }
6628 { echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6; }
6633 if test "$NEATO" != "echo neato" ; then
6635 cat >>confdefs.h <<\_ACEOF
6636 #define HAVE_NEATO 1
6639 if test "$llvm_cv_os_type" = "MingW" ; then
6640 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6643 cat >>confdefs.h <<_ACEOF
6644 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6648 # Extract the first word of "twopi", so it can be a program name with args.
6649 set dummy twopi; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_path_TWOPI+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6679 TWOPI=$ac_cv_path_TWOPI
6680 if test -n "$TWOPI"; then
6681 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6682 echo "${ECHO_T}$TWOPI" >&6; }
6684 { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6689 if test "$TWOPI" != "echo twopi" ; then
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_TWOPI 1
6695 if test "$llvm_cv_os_type" = "MingW" ; then
6696 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6699 cat >>confdefs.h <<_ACEOF
6700 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6704 # Extract the first word of "circo", so it can be a program name with args.
6705 set dummy circo; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_CIRCO+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6735 CIRCO=$ac_cv_path_CIRCO
6736 if test -n "$CIRCO"; then
6737 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6738 echo "${ECHO_T}$CIRCO" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6745 if test "$CIRCO" != "echo circo" ; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_CIRCO 1
6751 if test "$llvm_cv_os_type" = "MingW" ; then
6752 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6755 cat >>confdefs.h <<_ACEOF
6756 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6760 for ac_prog in gv gsview32
6762 # Extract the first word of "$ac_prog", so it can be a program name with args.
6763 set dummy $ac_prog; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_GV+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 if test -n "$GV"; then
6794 { echo "$as_me:$LINENO: result: $GV" >&5
6795 echo "${ECHO_T}$GV" >&6; }
6797 { echo "$as_me:$LINENO: result: no" >&5
6798 echo "${ECHO_T}no" >&6; }
6802 test -n "$GV" && break
6804 test -n "$GV" || GV="echo gv"
6806 if test "$GV" != "echo gv" ; then
6808 cat >>confdefs.h <<\_ACEOF
6812 if test "$llvm_cv_os_type" = "MingW" ; then
6813 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6816 cat >>confdefs.h <<_ACEOF
6817 #define LLVM_PATH_GV "$GV${EXEEXT}"
6821 # Extract the first word of "dotty", so it can be a program name with args.
6822 set dummy dotty; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_path_DOTTY+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6852 DOTTY=$ac_cv_path_DOTTY
6853 if test -n "$DOTTY"; then
6854 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6855 echo "${ECHO_T}$DOTTY" >&6; }
6857 { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6862 if test "$DOTTY" != "echo dotty" ; then
6864 cat >>confdefs.h <<\_ACEOF
6865 #define HAVE_DOTTY 1
6868 if test "$llvm_cv_os_type" = "MingW" ; then
6869 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6872 cat >>confdefs.h <<_ACEOF
6873 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6877 # Extract the first word of "xdot.py", so it can be a program name with args.
6878 set dummy xdot.py; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6908 XDOT_PY=$ac_cv_path_XDOT_PY
6909 if test -n "$XDOT_PY"; then
6910 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6911 echo "${ECHO_T}$XDOT_PY" >&6; }
6913 { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6918 if test "$XDOT_PY" != "echo xdot.py" ; then
6920 cat >>confdefs.h <<\_ACEOF
6921 #define HAVE_XDOT_PY 1
6924 if test "$llvm_cv_os_type" = "MingW" ; then
6925 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6928 cat >>confdefs.h <<_ACEOF
6929 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6934 # Find a good install program. We prefer a C program (faster),
6935 # so one script is as good as another. But avoid the broken or
6936 # incompatible versions:
6937 # SysV /etc/install, /usr/sbin/install
6938 # SunOS /usr/etc/install
6939 # IRIX /sbin/install
6941 # AmigaOS /C/install, which installs bootblocks on floppy discs
6942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6945 # OS/2's system install, which has a completely different semantic
6946 # ./install, which can be erroneously created by make from ./install.sh.
6947 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6948 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6949 if test -z "$INSTALL"; then
6950 if test "${ac_cv_path_install+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 test -z "$as_dir" && as_dir=.
6958 # Account for people who put trailing slashes in PATH elements.
6960 ./ | .// | /cC/* | \
6961 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6962 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6965 # OSF1 and SCO ODT 3.0 have their own names for install.
6966 # Don't use installbsd from OSF since it installs stuff as root
6968 for ac_prog in ginstall scoinst install; do
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6971 if test $ac_prog = install &&
6972 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6973 # AIX install. It has an incompatible calling convention.
6975 elif test $ac_prog = install &&
6976 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6977 # program-specific install script used by HP pwplus--don't use.
6980 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6993 if test "${ac_cv_path_install+set}" = set; then
6994 INSTALL=$ac_cv_path_install
6996 # As a last resort, use the slow shell script. Don't cache a
6997 # value for INSTALL within a source directory, because that will
6998 # break other packages using the cache if that directory is
6999 # removed, or if the value is a relative name.
7000 INSTALL=$ac_install_sh
7003 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7004 echo "${ECHO_T}$INSTALL" >&6; }
7006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7007 # It thinks the first close brace ends the variable substitution.
7008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7015 [\\/$]* | ?:[\\/]* ) ;;
7016 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7019 # Extract the first word of "bzip2", so it can be a program name with args.
7020 set dummy bzip2; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_path_BZIP2+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 BZIP2=$ac_cv_path_BZIP2
7050 if test -n "$BZIP2"; then
7051 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7052 echo "${ECHO_T}$BZIP2" >&6; }
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7059 # Extract the first word of "cat", so it can be a program name with args.
7060 set dummy cat; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_path_CAT+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 if test -n "$CAT"; then
7091 { echo "$as_me:$LINENO: result: $CAT" >&5
7092 echo "${ECHO_T}$CAT" >&6; }
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 # Extract the first word of "doxygen", so it can be a program name with args.
7100 set dummy doxygen; ac_word=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 DOXYGEN=$ac_cv_path_DOXYGEN
7130 if test -n "$DOXYGEN"; then
7131 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7132 echo "${ECHO_T}$DOXYGEN" >&6; }
7134 { echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6; }
7139 # Extract the first word of "groff", so it can be a program name with args.
7140 set dummy groff; ac_word=$2
7141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143 if test "${ac_cv_path_GROFF+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 GROFF=$ac_cv_path_GROFF
7170 if test -n "$GROFF"; then
7171 { echo "$as_me:$LINENO: result: $GROFF" >&5
7172 echo "${ECHO_T}$GROFF" >&6; }
7174 { echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6; }
7179 # Extract the first word of "gzip", so it can be a program name with args.
7180 set dummy gzip; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 GZIPBIN=$ac_cv_path_GZIPBIN
7210 if test -n "$GZIPBIN"; then
7211 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7212 echo "${ECHO_T}$GZIPBIN" >&6; }
7214 { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7219 # Extract the first word of "pdfroff", so it can be a program name with args.
7220 set dummy pdfroff; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_PDFROFF+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 PDFROFF=$ac_cv_path_PDFROFF
7250 if test -n "$PDFROFF"; then
7251 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7252 echo "${ECHO_T}$PDFROFF" >&6; }
7254 { echo "$as_me:$LINENO: result: no" >&5
7255 echo "${ECHO_T}no" >&6; }
7259 # Extract the first word of "runtest", so it can be a program name with args.
7260 set dummy runtest; ac_word=$2
7261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263 if test "${ac_cv_path_RUNTEST+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 RUNTEST=$ac_cv_path_RUNTEST
7290 if test -n "$RUNTEST"; then
7291 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7292 echo "${ECHO_T}$RUNTEST" >&6; }
7294 { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7301 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7302 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7304 # Check whether --with-tclinclude was given.
7305 if test "${with_tclinclude+set}" = set; then
7306 withval=$with_tclinclude; with_tclinclude=${withval}
7311 if test "${ac_cv_path_tclsh+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 if test x"${with_tclinclude}" != x ; then
7316 if test -f ${with_tclinclude}/tclsh ; then
7317 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7318 elif test -f ${with_tclinclude}/src/tclsh ; then
7319 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7321 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7322 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7323 { (exit 1); exit 1; }; }
7329 if test x"${ac_cv_path_tclsh}" = x ; then
7330 { echo "$as_me:$LINENO: result: none" >&5
7331 echo "${ECHO_T}none" >&6; }
7332 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
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_path_TCLSH+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7353 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 TCLSH=$ac_cv_path_TCLSH
7365 if test -n "$TCLSH"; then
7366 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7367 echo "${ECHO_T}$TCLSH" >&6; }
7369 { echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6; }
7374 test -n "$TCLSH" && break
7377 if test x"${TCLSH}" = x ; then
7378 ac_cv_path_tclsh='';
7380 ac_cv_path_tclsh="${TCLSH}";
7383 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7384 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7385 TCLSH="${ac_cv_path_tclsh}"
7389 # Extract the first word of "zip", so it can be a program name with args.
7390 set dummy zip; ac_word=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_path_ZIP+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 if test -n "$ZIP"; then
7421 { echo "$as_me:$LINENO: result: $ZIP" >&5
7422 echo "${ECHO_T}$ZIP" >&6; }
7424 { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7429 for ac_prog in ocamlc
7431 # Extract the first word of "$ac_prog", so it can be a program name with args.
7432 set dummy $ac_prog; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_path_OCAMLC+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 OCAMLC=$ac_cv_path_OCAMLC
7462 if test -n "$OCAMLC"; then
7463 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7464 echo "${ECHO_T}$OCAMLC" >&6; }
7466 { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7471 test -n "$OCAMLC" && break
7474 for ac_prog in ocamlopt
7476 # Extract the first word of "$ac_prog", so it can be a program name with args.
7477 set dummy $ac_prog; ac_word=$2
7478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7495 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 OCAMLOPT=$ac_cv_path_OCAMLOPT
7507 if test -n "$OCAMLOPT"; then
7508 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7509 echo "${ECHO_T}$OCAMLOPT" >&6; }
7511 { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7516 test -n "$OCAMLOPT" && break
7519 for ac_prog in ocamldep
7521 # Extract the first word of "$ac_prog", so it can be a program name with args.
7522 set dummy $ac_prog; ac_word=$2
7523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7525 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 test -z "$as_dir" && as_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7540 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 OCAMLDEP=$ac_cv_path_OCAMLDEP
7552 if test -n "$OCAMLDEP"; then
7553 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7554 echo "${ECHO_T}$OCAMLDEP" >&6; }
7556 { echo "$as_me:$LINENO: result: no" >&5
7557 echo "${ECHO_T}no" >&6; }
7561 test -n "$OCAMLDEP" && break
7564 for ac_prog in ocamldoc
7566 # Extract the first word of "$ac_prog", so it can be a program name with args.
7567 set dummy $ac_prog; ac_word=$2
7568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7570 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 OCAMLDOC=$ac_cv_path_OCAMLDOC
7597 if test -n "$OCAMLDOC"; then
7598 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7599 echo "${ECHO_T}$OCAMLDOC" >&6; }
7601 { echo "$as_me:$LINENO: result: no" >&5
7602 echo "${ECHO_T}no" >&6; }
7606 test -n "$OCAMLDOC" && break
7609 for ac_prog in gas as
7611 # Extract the first word of "$ac_prog", so it can be a program name with args.
7612 set dummy $ac_prog; ac_word=$2
7613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7615 if test "${ac_cv_path_GAS+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 if test -n "$GAS"; then
7643 { echo "$as_me:$LINENO: result: $GAS" >&5
7644 echo "${ECHO_T}$GAS" >&6; }
7646 { echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6; }
7651 test -n "$GAS" && break
7655 { echo "$as_me:$LINENO: checking for linker version" >&5
7656 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7657 if test "${llvm_cv_link_version+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 version_string="$(ld -v 2>&1 | head -1)"
7664 if (echo "$version_string" | grep -q "ld64"); then
7665 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7667 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7671 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7672 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7674 cat >>confdefs.h <<_ACEOF
7675 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7680 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7681 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7682 if test "${llvm_cv_link_use_r+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 ac_cpp='$CPP $CPPFLAGS'
7687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692 CFLAGS="$CFLAGS -Wl,-R."
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7708 rm -f conftest.$ac_objext conftest$ac_exeext
7709 if { (ac_try="$ac_link"
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_link") 2>conftest.er1
7717 grep -v '^ *+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7723 { (case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_try") 2>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest$ac_exeext'
7733 { (case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_try") 2>&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 llvm_cv_link_use_r=yes
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7747 llvm_cv_link_use_r=no
7750 rm -f core conftest.err conftest.$ac_objext \
7751 conftest$ac_exeext conftest.$ac_ext
7754 ac_cpp='$CPP $CPPFLAGS'
7755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7761 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7762 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7763 if test "$llvm_cv_link_use_r" = yes ; then
7765 cat >>confdefs.h <<\_ACEOF
7766 #define HAVE_LINK_R 1
7772 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7773 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7774 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 ac_cpp='$CPP $CPPFLAGS'
7779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7785 cat >conftest.$ac_ext <<_ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7800 rm -f conftest.$ac_objext conftest$ac_exeext
7801 if { (ac_try="$ac_link"
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_link") 2>conftest.er1
7809 grep -v '^ *+' conftest.er1 >conftest.err
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7815 { (case "(($ac_try" in
7816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817 *) ac_try_echo=$ac_try;;
7819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7820 (eval "$ac_try") 2>&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; } &&
7824 { ac_try='test -s conftest$ac_exeext'
7825 { (case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830 (eval "$ac_try") 2>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 llvm_cv_link_use_export_dynamic=yes
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7839 llvm_cv_link_use_export_dynamic=no
7842 rm -f core conftest.err conftest.$ac_objext \
7843 conftest$ac_exeext conftest.$ac_ext
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7853 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7854 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7855 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7857 cat >>confdefs.h <<\_ACEOF
7858 #define HAVE_LINK_EXPORT_DYNAMIC 1
7864 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7865 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7866 if test "${llvm_cv_link_use_version_script+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 ac_cpp='$CPP $CPPFLAGS'
7871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7877 # The following code is from the autoconf manual,
7878 # "11.13: Limitations of Usual Tools".
7879 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7880 # Use mktemp if possible; otherwise fall back on mkdir,
7881 # with $RANDOM to make collisions less likely.
7885 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7887 test -n "$tmp" && test -d "$tmp"
7889 tmp=$TMPDIR/foo$$-$RANDOM
7890 (umask 077 && mkdir "$tmp")
7893 echo "{" > "$tmp/export.map"
7894 echo " global: main;" >> "$tmp/export.map"
7895 echo " local: *;" >> "$tmp/export.map"
7896 echo "};" >> "$tmp/export.map"
7898 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (ac_try="$ac_link"
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_link") 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7929 { (case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_try") 2>&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; } &&
7938 { ac_try='test -s conftest$ac_exeext'
7939 { (case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_try") 2>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7948 llvm_cv_link_use_version_script=yes
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 llvm_cv_link_use_version_script=no
7956 rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7958 rm "$tmp/export.map"
7962 ac_cpp='$CPP $CPPFLAGS'
7963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7969 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7970 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7971 if test "$llvm_cv_link_use_version_script" = yes ; then
7972 HAVE_LINK_VERSION_SCRIPT=1
7979 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7980 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7981 if test "${ac_cv_c_const+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7994 /* FIXME: Include the comments suggested by Paul. */
7996 /* Ultrix mips cc rejects this. */
7997 typedef int charset[2];
7999 /* SunOS 4.1.1 cc rejects this. */
8000 char const *const *ccp;
8002 /* NEC SVR4.0.2 mips cc rejects this. */
8003 struct point {int x, y;};
8004 static struct point const zero = {0,0};
8005 /* AIX XL C 1.02.0.0 rejects this.
8006 It does not let you subtract one const X* pointer from another in
8007 an arm of an if-expression whose if-part is not a constant
8009 const char *g = "string";
8010 ccp = &g + (g ? g-g : 0);
8011 /* HPUX 7.0 cc rejects these. */
8014 ccp = (char const *const *) p;
8015 { /* SCO 3.2v4 cc rejects this. */
8017 char const *s = 0 ? (char *) 0 : (char const *) 0;
8022 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8024 const int *foo = &x[0];
8027 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8028 typedef const int *iptr;
8032 { /* AIX XL C 1.02.0.0 rejects this saying
8033 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8034 struct s { int j; const int *ap[3]; };
8035 struct s *b; b->j = 5;
8037 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8041 return !x[0] && !zero.x;
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8057 grep -v '^ *+' conftest.er1 >conftest.err
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8093 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8094 if test $ac_cv_c_const = no; then
8096 cat >>confdefs.h <<\_ACEOF
8108 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8109 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8110 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8111 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 #include <sys/types.h>
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
8142 grep -v '^ *+' conftest.er1 >conftest.err
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8148 { (case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_try") 2>&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; } &&
8157 { ac_try='test -s conftest.$ac_objext'
8158 { (case "(($ac_try" in
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_try") 2>&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 eval "$as_ac_Header=yes"
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 eval "$as_ac_Header=no"
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 ac_res=`eval echo '${'$as_ac_Header'}'`
8178 { echo "$as_me:$LINENO: result: $ac_res" >&5
8179 echo "${ECHO_T}$ac_res" >&6; }
8180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8181 cat >>confdefs.h <<_ACEOF
8182 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8185 ac_header_dirent=$ac_hdr; break
8189 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8190 if test $ac_header_dirent = dirent.h; then
8191 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8192 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8193 if test "${ac_cv_search_opendir+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 ac_func_search_save_LIBS=$LIBS
8197 cat >conftest.$ac_ext <<_ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8204 /* Override any GCC internal prototype to avoid an error.
8205 Use char because int might match the return type of a GCC
8206 builtin and then its argument prototype would still apply. */
8219 for ac_lib in '' dir; do
8220 if test -z "$ac_lib"; then
8221 ac_res="none required"
8224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_link") 2>conftest.er1
8235 grep -v '^ *+' conftest.er1 >conftest.err
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8241 { (case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_try") 2>&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_try") 2>&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_cv_search_opendir=$ac_res
8262 echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8268 rm -f core conftest.err conftest.$ac_objext \
8270 if test "${ac_cv_search_opendir+set}" = set; then
8274 if test "${ac_cv_search_opendir+set}" = set; then
8277 ac_cv_search_opendir=no
8280 LIBS=$ac_func_search_save_LIBS
8282 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8283 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8284 ac_res=$ac_cv_search_opendir
8285 if test "$ac_res" != no; then
8286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8291 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8292 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8293 if test "${ac_cv_search_opendir+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 ac_func_search_save_LIBS=$LIBS
8297 cat >conftest.$ac_ext <<_ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8304 /* Override any GCC internal prototype to avoid an error.
8305 Use char because int might match the return type of a GCC
8306 builtin and then its argument prototype would still apply. */
8319 for ac_lib in '' x; do
8320 if test -z "$ac_lib"; then
8321 ac_res="none required"
8324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (ac_try="$ac_link"
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_link") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_try") 2>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest$ac_exeext'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_cv_search_opendir=$ac_res
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8368 rm -f core conftest.err conftest.$ac_objext \
8370 if test "${ac_cv_search_opendir+set}" = set; then
8374 if test "${ac_cv_search_opendir+set}" = set; then
8377 ac_cv_search_opendir=no
8380 LIBS=$ac_func_search_save_LIBS
8382 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8383 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8384 ac_res=$ac_cv_search_opendir
8385 if test "$ac_res" != no; then
8386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8393 for ac_header in dlfcn.h
8395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 ac_res=`eval echo '${'$as_ac_Header'}'`
8403 { echo "$as_me:$LINENO: result: $ac_res" >&5
8404 echo "${ECHO_T}$ac_res" >&6; }
8406 # Is the header compilable?
8407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8409 cat >conftest.$ac_ext <<_ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 $ac_includes_default
8416 #include <$ac_header>
8418 rm -f conftest.$ac_objext
8419 if { (ac_try="$ac_compile"
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_compile") 2>conftest.er1
8427 grep -v '^ *+' conftest.er1 >conftest.err
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433 { (case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_try") 2>&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 ac_header_compiler=yes
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_header_compiler=no
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8462 echo "${ECHO_T}$ac_header_compiler" >&6; }
8464 # Is the header present?
8465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 #include <$ac_header>
8475 if { (ac_try="$ac_cpp conftest.$ac_ext"
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8483 grep -v '^ *+' conftest.er1 >conftest.err
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } >/dev/null; then
8488 if test -s conftest.err; then
8489 ac_cpp_err=$ac_c_preproc_warn_flag
8490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8497 if test -z "$ac_cpp_err"; then
8498 ac_header_preproc=yes
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_header_preproc=no
8506 rm -f conftest.err conftest.$ac_ext
8507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8508 echo "${ECHO_T}$ac_header_preproc" >&6; }
8510 # So? What about this header?
8511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8517 ac_header_preproc=yes
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8533 ## ------------------------------------ ##
8534 ## Report this to http://llvm.org/bugs/ ##
8535 ## ------------------------------------ ##
8537 ) | sed "s/^/$as_me: WARNING: /" >&2
8540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 eval "$as_ac_Header=\$ac_header_preproc"
8547 ac_res=`eval echo '${'$as_ac_Header'}'`
8548 { echo "$as_me:$LINENO: result: $ac_res" >&5
8549 echo "${ECHO_T}$ac_res" >&6; }
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553 cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561 # Check whether --enable-ltdl-install was given.
8562 if test "${enable_ltdl_install+set}" = set; then
8563 enableval=$enable_ltdl_install;
8569 if test x"${enable_ltdl_install-no}" != xno; then
8571 INSTALL_LTDL_FALSE='#'
8573 INSTALL_LTDL_TRUE='#'
8579 if test x"${enable_ltdl_convenience-no}" != xno; then
8580 CONVENIENCE_LTDL_TRUE=
8581 CONVENIENCE_LTDL_FALSE='#'
8583 CONVENIENCE_LTDL_TRUE='#'
8584 CONVENIENCE_LTDL_FALSE=
8588 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8589 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8591 libname_spec='lib$name'
8599 shlibpath_overrides_runpath=unknown
8601 dynamic_linker="$host_os ld.so"
8602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8603 if test "$GCC" = yes; then
8604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8605 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8606 # if the path contains ";" then we assume it to be the separator
8607 # otherwise default to the standard path separator (i.e. ":") - it is
8608 # assumed that no part of a normal pathname contains ";" but that should
8609 # okay in the real world where ";" in dirpaths is itself problematic.
8610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8615 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8617 need_lib_prefix=unknown
8618 hardcode_into_libs=no
8620 # when you set need_version to no, make sure it does not cause -set_version
8621 # flags to be left without arguments
8622 need_version=unknown
8627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8628 shlibpath_var=LIBPATH
8630 # AIX 3 has no versioning support, so we append a major version to the name.
8631 soname_spec='${libname}${release}${shared_ext}$major'
8638 hardcode_into_libs=yes
8639 if test "$host_cpu" = ia64; then
8640 # AIX 5 supports IA64
8641 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8642 shlibpath_var=LD_LIBRARY_PATH
8644 # With GCC up to 2.95.x, collect2 would create an import file
8645 # for dependence libraries. The import file would start with
8646 # the line `#! .'. This would cause the generated library to
8647 # depend on `.', always an invalid library. This was fixed in
8648 # development snapshots of GCC prior to 3.0.
8650 aix4 | aix4.[01] | aix4.[01].*)
8651 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8653 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8660 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8661 # soname into executable. Probably we can add versioning support to
8662 # collect2, so additional links can be useful in future.
8663 if test "$aix_use_runtimelinking" = yes; then
8664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8665 # instead of lib<name>.a to let people know that these are not
8666 # typical AIX shared libraries.
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8669 # We preserve .a as extension for shared libraries through AIX4.2
8670 # and later when we are not doing run time linking.
8671 library_names_spec='${libname}${release}.a $libname.a'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8674 shlibpath_var=LIBPATH
8679 library_names_spec='$libname.ixlibrary $libname.a'
8680 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8681 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'
8685 library_names_spec='${libname}${shared_ext}'
8686 dynamic_linker="$host_os ld.so"
8687 shlibpath_var=LIBRARY_PATH
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694 soname_spec='${libname}${release}${shared_ext}$major'
8695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8696 shlibpath_var=LD_LIBRARY_PATH
8697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8699 # the default ld.so.conf also contains /usr/contrib/lib and
8700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8701 # libtool to hard-code these into programs
8704 cygwin* | mingw* | pw32*)
8705 version_type=windows
8710 case $GCC,$host_os in
8711 yes,cygwin* | yes,mingw* | yes,pw32*)
8712 library_names_spec='$libname.dll.a'
8713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8714 postinstall_cmds='base_file=`basename \${file}`~
8715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8716 dldir=$destdir/`dirname \$dlpath`~
8717 test -d \$dldir || mkdir -p \$dldir~
8718 $install_prog $dir/$dlname \$dldir/$dlname~
8719 chmod a+x \$dldir/$dlname'
8720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8721 dlpath=$dir/\$dldll~
8723 shlibpath_overrides_runpath=yes
8727 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8728 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8729 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8732 # MinGW DLLs use traditional 'lib' prefix
8733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8735 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8736 # It is most probably a Windows format PATH printed by
8737 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8738 # path with ; separators, and with drive letters. We can handle the
8739 # drive letters (cygwin fileutils understands them), so leave them,
8740 # especially as we might pass files found there to a mingw objdump,
8741 # which wouldn't understand a cygwinified path. Ahh.
8742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8748 # pw32 DLLs use 'pw' prefix rather than 'lib'
8749 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8758 dynamic_linker='Win32 ld.exe'
8759 # FIXME: first we should search . and the directory the executable is in
8763 darwin* | rhapsody*)
8764 dynamic_linker="$host_os dyld"
8768 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8769 soname_spec='${libname}${release}${major}$shared_ext'
8770 shlibpath_overrides_runpath=yes
8771 shlibpath_var=DYLD_LIBRARY_PATH
8772 shrext_cmds='.dylib'
8773 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8774 if test "$GCC" = yes; then
8775 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"`
8777 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 shlibpath_var=LD_LIBRARY_PATH
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 shlibpath_var=LD_LIBRARY_PATH
8802 shlibpath_overrides_runpath=no
8803 hardcode_into_libs=yes
8804 dynamic_linker='GNU ld.so'
8807 freebsd* | dragonfly*)
8808 # DragonFly does not have aout. When/if they implement a new
8809 # versioning mechanism, adjust this.
8810 if test -x /usr/bin/objformat; then
8811 objformat=`/usr/bin/objformat`
8814 freebsd[123].*) objformat=aout ;;
8818 version_type=freebsd-$objformat
8819 case $version_type in
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8830 shlibpath_var=LD_LIBRARY_PATH
8833 shlibpath_overrides_runpath=yes
8835 freebsd3.[01]* | freebsdelf3.[01]*)
8836 shlibpath_overrides_runpath=yes
8837 hardcode_into_libs=yes
8839 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8840 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8844 freebsd*) # from 4.6 on
8845 shlibpath_overrides_runpath=yes
8846 hardcode_into_libs=yes
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 hardcode_into_libs=yes
8861 hpux9* | hpux10* | hpux11*)
8862 # Give a soname corresponding to the major version so that dld.sl refuses to
8863 # link against other versions.
8870 hardcode_into_libs=yes
8871 dynamic_linker="$host_os dld.so"
8872 shlibpath_var=LD_LIBRARY_PATH
8873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 if test "X$HPUX_IA64_MODE" = X32; then
8877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.sl"
8887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8896 dynamic_linker="$host_os dld.sl"
8897 shlibpath_var=SHLIB_PATH
8898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8903 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8904 postinstall_cmds='chmod 555 $lib'
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=no
8916 hardcode_into_libs=yes
8919 irix5* | irix6* | nonstopux*)
8921 nonstopux*) version_type=nonstopux ;;
8923 if test "$lt_cv_prog_gnu_ld" = yes; then
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8934 irix5* | nonstopux*)
8938 case $LD in # libtool.m4 will add one of these switches to LD
8939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8940 libsuff= shlibsuff= libmagic=32-bit;;
8941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8942 libsuff=32 shlibsuff=N32 libmagic=N32;;
8943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8944 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8945 *) libsuff= shlibsuff= libmagic=never-match;;
8949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8950 shlibpath_overrides_runpath=no
8951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8953 hardcode_into_libs=yes
8956 # No shared lib support for Linux oldld, aout, or coff.
8957 linux*oldld* | linux*aout* | linux*coff*)
8961 # This must be Linux ELF.
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=no
8971 # This implies no fast_install, which is unacceptable.
8972 # Some rework will be needed to allow for fast_install
8973 # before this can be enabled.
8974 hardcode_into_libs=yes
8976 # Append ld.so.conf contents to the search path
8977 if test -f /etc/ld.so.conf; then
8978 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' ' '`
8979 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8982 # We used to test for /lib/ld.so.1 and disable shared libraries on
8983 # powerpc, because MkLinux only supported shared libraries with the
8984 # GNU dynamic linker. Since this was broken with cross compilers,
8985 # most powerpc-linux boxes support dynamic linking these days and
8986 # people can always --disable-shared, the test was removed, and we
8987 # assume the GNU/Linux dynamic linker is in use.
8988 dynamic_linker='GNU/Linux ld.so'
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 shlibpath_var=LD_LIBRARY_PATH
8998 shlibpath_overrides_runpath=no
8999 hardcode_into_libs=yes
9000 dynamic_linker='GNU ld.so'
9007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9010 dynamic_linker='NetBSD (a.out) ld.so'
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 dynamic_linker='NetBSD ld.elf_so'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes
9018 hardcode_into_libs=yes
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes
9040 sys_lib_dlsearch_path_spec="/usr/lib"
9042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9044 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9045 *) need_version=no ;;
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9052 openbsd2.[89] | openbsd2.[89].*)
9053 shlibpath_overrides_runpath=no
9056 shlibpath_overrides_runpath=yes
9060 shlibpath_overrides_runpath=yes
9065 libname_spec='$name'
9068 library_names_spec='$libname${shared_ext} $libname.a'
9069 dynamic_linker='OS/2 ld.exe'
9070 shlibpath_var=LIBPATH
9073 osf3* | osf4* | osf5*)
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 soname_spec='${libname}${release}${shared_ext}$major'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=yes
9092 hardcode_into_libs=yes
9093 # ldd complains unless libraries are executable
9094 postinstall_cmds='chmod +x $lib'
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 shlibpath_overrides_runpath=yes
9103 if test "$with_gnu_ld" = yes; then
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 case $host_vendor in
9116 shlibpath_overrides_runpath=no
9118 export_dynamic_flag_spec='${wl}-Blargedynsym'
9119 runpath_var=LD_RUN_PATH
9127 shlibpath_overrides_runpath=no
9128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9134 if test -d /usr/nec ;then
9136 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9137 soname_spec='$libname${shared_ext}.$major'
9138 shlibpath_var=LD_LIBRARY_PATH
9142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9143 version_type=freebsd-elf
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 hardcode_into_libs=yes
9150 if test "$with_gnu_ld" = yes; then
9151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9152 shlibpath_overrides_runpath=no
9154 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9155 shlibpath_overrides_runpath=yes
9158 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9162 sys_lib_dlsearch_path_spec='/usr/lib'
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9176 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9177 echo "${ECHO_T}$dynamic_linker" >&6; }
9178 test "$dynamic_linker" = no && can_build_shared=no
9180 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9181 if test "$GCC" = yes; then
9182 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9186 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9187 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9188 if test "${libltdl_cv_shlibext+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 eval libltdl_cv_shlibext=$shrext_cmds
9196 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9197 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9198 if test -n "$libltdl_cv_shlibext"; then
9200 cat >>confdefs.h <<_ACEOF
9201 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9207 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9208 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9209 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 libltdl_cv_shlibpath_var="$shlibpath_var"
9214 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9215 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9216 if test -n "$libltdl_cv_shlibpath_var"; then
9218 cat >>confdefs.h <<_ACEOF
9219 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9225 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9226 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9227 if test "${libltdl_cv_sys_search_path+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9232 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9233 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9234 if test -n "$libltdl_cv_sys_search_path"; then
9236 for dir in $libltdl_cv_sys_search_path; do
9237 if test -z "$sys_search_path"; then
9238 sys_search_path="$dir"
9240 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9244 cat >>confdefs.h <<_ACEOF
9245 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9250 { echo "$as_me:$LINENO: checking for objdir" >&5
9251 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9252 if test "${libltdl_cv_objdir+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 libltdl_cv_objdir="$objdir"
9256 if test -n "$objdir"; then
9259 rm -f .libs 2>/dev/null
9260 mkdir .libs 2>/dev/null
9261 if test -d .libs; then
9262 libltdl_cv_objdir=.libs
9264 # MS-DOS does not allow filenames that begin with a dot.
9265 libltdl_cv_objdir=_libs
9267 rmdir .libs 2>/dev/null
9271 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9272 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9274 cat >>confdefs.h <<_ACEOF
9275 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9283 # Check for command to grab the raw symbol name followed by C symbol from nm.
9284 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9285 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9286 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 # These are sane defaults that work on at least a few old systems.
9291 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9293 # Character class describing NM global symbol codes.
9294 symcode='[BCDEGRST]'
9296 # Regexp to match symbols that can be accessed directly from C.
9297 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9299 # Transform an extracted symbol line into a proper C declaration
9300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9302 # Transform an extracted symbol line into symbol name and symbol address
9303 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'"
9305 # Define system-specific variables.
9310 cygwin* | mingw* | pw32*)
9311 symcode='[ABCDGISTW]'
9313 hpux*) # Its linker distinguishes data from code symbols
9314 if test "$host_cpu" = ia64; then
9315 symcode='[ABCDEGRST]'
9317 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9318 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'"
9321 if test "$host_cpu" = ia64; then
9322 symcode='[ABCDGIRSTW]'
9323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9324 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'"
9328 symcode='[BCDEGRST]'
9331 symcode='[BCDEGQRST]'
9342 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9350 # Handle CRLF in mingw tool chain
9354 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9358 # If we're using GNU nm, then use its standard symbol codes.
9359 case `$NM -V 2>&1` in
9360 *GNU* | *'with BFD'*)
9361 symcode='[ABCDGIRSTW]' ;;
9364 # Try without a prefix undercore, then with it.
9365 for ac_symprfx in "" "_"; do
9367 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9368 symxfrm="\\1 $ac_symprfx\\2 \\2"
9370 # Write the raw and C identifiers.
9371 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9373 # Check to see that the pipe works correctly.
9377 cat > conftest.$ac_ext <<EOF
9382 void nm_test_func(){}
9386 int main(){nm_test_var='a';nm_test_func();return(0);}
9389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9390 (eval $ac_compile) 2>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; then
9394 # Now try to grab the symbols.
9396 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9397 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && test -s "$nlist"; then
9401 # Try sorting and uniquifying the output.
9402 if sort "$nlist" | uniq > "$nlist"T; then
9403 mv -f "$nlist"T "$nlist"
9408 # Make sure that we snagged all the symbols we need.
9409 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9410 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9411 cat <<EOF > conftest.$ac_ext
9417 # Now generate the symbol file.
9418 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9420 cat <<EOF >> conftest.$ac_ext
9421 #if defined (__STDC__) && __STDC__
9422 # define lt_ptr_t void *
9424 # define lt_ptr_t char *
9428 /* The mapping between symbol names and symbols. */
9433 lt_preloaded_symbols[] =
9436 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9437 cat <<\EOF >> conftest.$ac_ext
9445 # Now try linking the two files.
9446 mv conftest.$ac_objext conftstm.$ac_objext
9447 lt_save_LIBS="$LIBS"
9448 lt_save_CFLAGS="$CFLAGS"
9449 LIBS="conftstm.$ac_objext"
9450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9452 (eval $ac_link) 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9458 LIBS="$lt_save_LIBS"
9459 CFLAGS="$lt_save_CFLAGS"
9461 echo "cannot find nm_test_func in $nlist" >&5
9464 echo "cannot find nm_test_var in $nlist" >&5
9467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9470 echo "$progname: failed program was:" >&5
9471 cat conftest.$ac_ext >&5
9473 rm -f conftest* conftst*
9475 # Do not use the global_symbol_pipe unless it works.
9476 if test "$pipe_works" = yes; then
9479 lt_cv_sys_global_symbol_pipe=
9485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9486 lt_cv_sys_global_symbol_to_cdecl=
9488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9489 { echo "$as_me:$LINENO: result: failed" >&5
9490 echo "${ECHO_T}failed" >&6; }
9492 { echo "$as_me:$LINENO: result: ok" >&5
9493 echo "${ECHO_T}ok" >&6; }
9497 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9498 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9499 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9503 libltdl_cv_preloaded_symbols=yes
9505 libltdl_cv_preloaded_symbols=no
9509 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9510 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9511 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9513 cat >>confdefs.h <<\_ACEOF
9514 #define HAVE_PRELOADED_SYMBOLS 1
9522 ac_cpp='$CPP $CPPFLAGS'
9523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9528 { echo "$as_me:$LINENO: checking for shl_load" >&5
9529 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9530 if test "${ac_cv_func_shl_load+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 cat >conftest.$ac_ext <<_ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9539 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9541 #define shl_load innocuous_shl_load
9543 /* System header to define __stub macros and hopefully few prototypes,
9544 which can conflict with char shl_load (); below.
9545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9546 <limits.h> exists even on freestanding compilers. */
9549 # include <limits.h>
9551 # include <assert.h>
9556 /* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9563 /* The GNU C library defines this for functions which it implements
9564 to always fail with ENOSYS. Some functions are actually named
9565 something starting with __ and the normal name is an alias. */
9566 #if defined __stub_shl_load || defined __stub___shl_load
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (ac_try="$ac_link"
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_link") 2>conftest.er1
9587 grep -v '^ *+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9593 { (case "(($ac_try" in
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_try") 2>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try='test -s conftest$ac_exeext'
9603 { (case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_try") 2>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_func_shl_load=yes
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_cv_func_shl_load=no
9620 rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9623 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9624 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9625 if test $ac_cv_func_shl_load = yes; then
9627 cat >>confdefs.h <<\_ACEOF
9628 #define HAVE_SHL_LOAD 1
9632 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9633 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9634 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 ac_check_lib_save_LIBS=$LIBS
9639 cat >conftest.$ac_ext <<_ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9646 /* Override any GCC internal prototype to avoid an error.
9647 Use char because int might match the return type of a GCC
9648 builtin and then its argument prototype would still apply. */
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (ac_try="$ac_link"
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_link") 2>conftest.er1
9670 grep -v '^ *+' conftest.er1 >conftest.err
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9676 { (case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_try") 2>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_lib_dld_shl_load=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_lib_dld_shl_load=no
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9707 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9708 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9709 if test $ac_cv_lib_dld_shl_load = yes; then
9711 cat >>confdefs.h <<\_ACEOF
9712 #define HAVE_SHL_LOAD 1
9715 LIBADD_DL="$LIBADD_DL -ldld"
9717 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 ac_check_lib_save_LIBS=$LIBS
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_lib_dl_dlopen=yes
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 ac_cv_lib_dl_dlopen=no
9788 rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS
9792 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9793 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9794 if test $ac_cv_lib_dl_dlopen = yes; then
9796 cat >>confdefs.h <<\_ACEOF
9797 #define HAVE_LIBDL 1
9800 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9802 cat >conftest.$ac_ext <<_ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9829 grep -v '^ *+' conftest.er1 >conftest.err
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9835 { (case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_try") 2>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9855 cat >>confdefs.h <<\_ACEOF
9856 #define HAVE_LIBDL 1
9858 libltdl_cv_func_dlopen="yes"
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9863 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9864 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9865 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 ac_check_lib_save_LIBS=$LIBS
9870 cat >conftest.$ac_ext <<_ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9877 /* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9901 grep -v '^ *+' conftest.er1 >conftest.err
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_cv_lib_svld_dlopen=yes
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_cv_lib_svld_dlopen=no
9934 rm -f core conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9938 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9939 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9940 if test $ac_cv_lib_svld_dlopen = yes; then
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_LIBDL 1
9946 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9948 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9949 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9950 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 ac_check_lib_save_LIBS=$LIBS
9955 cat >conftest.$ac_ext <<_ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9962 /* Override any GCC internal prototype to avoid an error.
9963 Use char because int might match the return type of a GCC
9964 builtin and then its argument prototype would still apply. */
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011 ac_cv_lib_dld_dld_link=yes
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 ac_cv_lib_dld_dld_link=no
10019 rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_lib_save_LIBS
10023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10024 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10025 if test $ac_cv_lib_dld_dld_link = yes; then
10027 cat >>confdefs.h <<\_ACEOF
10031 LIBADD_DL="$LIBADD_DL -ldld"
10033 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10034 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10035 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 cat >conftest.$ac_ext <<_ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10044 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10046 #define _dyld_func_lookup innocuous__dyld_func_lookup
10048 /* System header to define __stub macros and hopefully few prototypes,
10049 which can conflict with char _dyld_func_lookup (); below.
10050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10051 <limits.h> exists even on freestanding compilers. */
10054 # include <limits.h>
10056 # include <assert.h>
10059 #undef _dyld_func_lookup
10061 /* Override any GCC internal prototype to avoid an error.
10062 Use char because int might match the return type of a GCC
10063 builtin and then its argument prototype would still apply. */
10067 char _dyld_func_lookup ();
10068 /* The GNU C library defines this for functions which it implements
10069 to always fail with ENOSYS. Some functions are actually named
10070 something starting with __ and the normal name is an alias. */
10071 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10078 return _dyld_func_lookup ();
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (ac_try="$ac_link"
10085 case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_link") 2>conftest.er1
10092 grep -v '^ *+' conftest.er1 >conftest.err
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10098 { (case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_try") 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest$ac_exeext'
10108 { (case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_try") 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_func__dyld_func_lookup=yes
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 ac_cv_func__dyld_func_lookup=no
10125 rm -f core conftest.err conftest.$ac_objext \
10126 conftest$ac_exeext conftest.$ac_ext
10128 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10129 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10130 if test $ac_cv_func__dyld_func_lookup = yes; then
10132 cat >>confdefs.h <<\_ACEOF
10133 #define HAVE_DYLD 1
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10159 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10161 lt_save_LIBS="$LIBS"
10162 LIBS="$LIBS $LIBADD_DL"
10164 for ac_func in dlerror
10166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10180 #define $ac_func innocuous_$ac_func
10182 /* System header to define __stub macros and hopefully few prototypes,
10183 which can conflict with char $ac_func (); below.
10184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10185 <limits.h> exists even on freestanding compilers. */
10188 # include <limits.h>
10190 # include <assert.h>
10195 /* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
10202 /* The GNU C library defines this for functions which it implements
10203 to always fail with ENOSYS. Some functions are actually named
10204 something starting with __ and the normal name is an alias. */
10205 #if defined __stub_$ac_func || defined __stub___$ac_func
10212 return $ac_func ();
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (ac_try="$ac_link"
10219 case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_link") 2>conftest.er1
10226 grep -v '^ *+' conftest.er1 >conftest.err
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10232 { (case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_try") 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest$ac_exeext'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 eval "$as_ac_var=yes"
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 eval "$as_ac_var=no"
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10262 ac_res=`eval echo '${'$as_ac_var'}'`
10263 { echo "$as_me:$LINENO: result: $ac_res" >&5
10264 echo "${ECHO_T}$ac_res" >&6; }
10265 if test `eval echo '${'$as_ac_var'}'` = yes; then
10266 cat >>confdefs.h <<_ACEOF
10267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10273 LIBS="$lt_save_LIBS"
10276 ac_cpp='$CPP $CPPFLAGS'
10277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10283 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10284 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10285 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 ac_cv_sys_symbol_underscore=no
10289 cat > conftest.$ac_ext <<EOF
10290 void nm_test_func(){}
10291 int main(){nm_test_func;return 0;}
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294 (eval $ac_compile) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; then
10298 # Now try to grab the symbols.
10299 ac_nlist=conftest.nm
10300 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10301 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && test -s "$ac_nlist"; then
10305 # See whether the symbols have a leading underscore.
10306 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10307 ac_cv_sys_symbol_underscore=yes
10309 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10312 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10316 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10319 echo "configure: failed program was:" >&5
10325 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10326 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10329 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10330 if test x"$libltdl_cv_func_dlopen" = xyes ||
10331 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10332 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10333 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10334 if test "${libltdl_cv_need_uscore+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 libltdl_cv_need_uscore=unknown
10339 LIBS="$LIBS $LIBADD_DL"
10340 if test "$cross_compiling" = yes; then :
10341 libltdl_cv_need_uscore=cross
10343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10344 lt_status=$lt_dlunknown
10345 cat > conftest.$ac_ext <<EOF
10346 #line 10346 "configure"
10347 #include "confdefs.h"
10356 # define LT_DLGLOBAL RTLD_GLOBAL
10359 # define LT_DLGLOBAL DL_GLOBAL
10361 # define LT_DLGLOBAL 0
10365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10366 find out it does not work in some platform. */
10367 #ifndef LT_DLLAZY_OR_NOW
10369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10372 # define LT_DLLAZY_OR_NOW DL_LAZY
10375 # define LT_DLLAZY_OR_NOW RTLD_NOW
10378 # define LT_DLLAZY_OR_NOW DL_NOW
10380 # define LT_DLLAZY_OR_NOW 0
10388 extern "C" void exit (int);
10391 void fnord() { int i=42;}
10394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10395 int status = $lt_dlunknown;
10399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10400 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401 /* dlclose (self); */
10409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10414 (./conftest; exit; ) >&5 2>/dev/null
10416 case x$lt_status in
10417 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10418 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10419 x$lt_dlunknown|x*) ;;
10422 # compilation failed
10431 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10432 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10436 if test x"$libltdl_cv_need_uscore" = xyes; then
10438 cat >>confdefs.h <<\_ACEOF
10439 #define NEED_USCORE 1
10445 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10446 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10447 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 # PORTME does your system automatically load deplibs for dlopen?
10451 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10452 # For now, we just catch OSes we know something about -- in the
10453 # future, we'll try test this programmatically.
10454 libltdl_cv_sys_dlopen_deplibs=unknown
10456 aix3*|aix4.1.*|aix4.2.*)
10457 # Unknown whether this is true for these versions of AIX, but
10458 # we want this `case' here to explicitly catch those versions.
10459 libltdl_cv_sys_dlopen_deplibs=unknown
10462 libltdl_cv_sys_dlopen_deplibs=yes
10465 # Assuming the user has installed a libdl from somewhere, this is true
10466 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10467 libltdl_cv_sys_dlopen_deplibs=yes
10469 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10470 # GNU and its variants, using gnu ld.so (Glibc)
10471 libltdl_cv_sys_dlopen_deplibs=yes
10474 libltdl_cv_sys_dlopen_deplibs=yes
10477 libltdl_cv_sys_dlopen_deplibs=yes
10479 irix[12345]*|irix6.[01]*)
10480 # Catch all versions of IRIX before 6.2, and indicate that we don't
10481 # know how it worked for any of those versions.
10482 libltdl_cv_sys_dlopen_deplibs=unknown
10485 # The case above catches anything before 6.2, and it's known that
10486 # at 6.2 and later dlopen does load deplibs.
10487 libltdl_cv_sys_dlopen_deplibs=yes
10490 libltdl_cv_sys_dlopen_deplibs=yes
10493 libltdl_cv_sys_dlopen_deplibs=yes
10496 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10497 # it did *not* use an RPATH in a shared library to find objects the
10498 # library depends on, so we explicitly say `no'.
10499 libltdl_cv_sys_dlopen_deplibs=no
10501 osf5.0|osf5.0a|osf5.1)
10502 # dlopen *does* load deplibs and with the right loader patch applied
10503 # it even uses RPATH in a shared library to search for shared objects
10504 # that the library depends on, but there's no easy way to know if that
10505 # patch is installed. Since this is the case, all we can really
10506 # say is unknown -- it depends on the patch being installed. If
10507 # it is, this changes to `yes'. Without it, it would be `no'.
10508 libltdl_cv_sys_dlopen_deplibs=unknown
10511 # the two cases above should catch all versions of osf <= 5.1. Read
10512 # the comments above for what we know about them.
10513 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10514 # is used to find them so we can finally say `yes'.
10515 libltdl_cv_sys_dlopen_deplibs=yes
10518 libltdl_cv_sys_dlopen_deplibs=yes
10520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10521 libltdl_cv_sys_dlopen_deplibs=yes
10526 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10527 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10528 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10530 cat >>confdefs.h <<\_ACEOF
10531 #define LTDL_DLOPEN_DEPLIBS 1
10537 for ac_header in argz.h
10539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 ac_res=`eval echo '${'$as_ac_Header'}'`
10547 { echo "$as_me:$LINENO: result: $ac_res" >&5
10548 echo "${ECHO_T}$ac_res" >&6; }
10550 # Is the header compilable?
10551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10553 cat >conftest.$ac_ext <<_ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 $ac_includes_default
10560 #include <$ac_header>
10562 rm -f conftest.$ac_objext
10563 if { (ac_try="$ac_compile"
10564 case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_compile") 2>conftest.er1
10571 grep -v '^ *+' conftest.er1 >conftest.err
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } &&
10576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10577 { (case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_try") 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try='test -s conftest.$ac_objext'
10587 { (case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_try") 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10596 ac_header_compiler=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_compiler=no
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606 echo "${ECHO_T}$ac_header_compiler" >&6; }
10608 # Is the header present?
10609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 #include <$ac_header>
10619 if { (ac_try="$ac_cpp conftest.$ac_ext"
10620 case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10627 grep -v '^ *+' conftest.er1 >conftest.err
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } >/dev/null; then
10632 if test -s conftest.err; then
10633 ac_cpp_err=$ac_c_preproc_warn_flag
10634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10641 if test -z "$ac_cpp_err"; then
10642 ac_header_preproc=yes
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 ac_header_preproc=no
10650 rm -f conftest.err conftest.$ac_ext
10651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10652 echo "${ECHO_T}$ac_header_preproc" >&6; }
10654 # So? What about this header?
10655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10661 ac_header_preproc=yes
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10677 ## ------------------------------------ ##
10678 ## Report this to http://llvm.org/bugs/ ##
10679 ## ------------------------------------ ##
10681 ) | sed "s/^/$as_me: WARNING: /" >&2
10684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 eval "$as_ac_Header=\$ac_header_preproc"
10691 ac_res=`eval echo '${'$as_ac_Header'}'`
10692 { echo "$as_me:$LINENO: result: $ac_res" >&5
10693 echo "${ECHO_T}$ac_res" >&6; }
10696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10697 cat >>confdefs.h <<_ACEOF
10698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10706 { echo "$as_me:$LINENO: checking for error_t" >&5
10707 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10708 if test "${ac_cv_type_error_t+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 cat >conftest.$ac_ext <<_ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10721 typedef error_t ac__type_new_;
10725 if ((ac__type_new_ *) 0)
10727 if (sizeof (ac__type_new_))
10733 rm -f conftest.$ac_objext
10734 if { (ac_try="$ac_compile"
10735 case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_compile") 2>conftest.er1
10742 grep -v '^ *+' conftest.er1 >conftest.err
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748 { (case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753 (eval "$ac_try") 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; } &&
10757 { ac_try='test -s conftest.$ac_objext'
10758 { (case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_try") 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_type_error_t=yes
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 ac_cv_type_error_t=no
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10777 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10778 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10779 if test $ac_cv_type_error_t = yes; then
10781 cat >>confdefs.h <<_ACEOF
10782 #define HAVE_ERROR_T 1
10788 cat >>confdefs.h <<\_ACEOF
10789 #define error_t int
10800 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 cat >conftest.$ac_ext <<_ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10816 #define $ac_func innocuous_$ac_func
10818 /* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char $ac_func (); below.
10820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821 <limits.h> exists even on freestanding compilers. */
10824 # include <limits.h>
10826 # include <assert.h>
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10838 /* The GNU C library defines this for functions which it implements
10839 to always fail with ENOSYS. Some functions are actually named
10840 something starting with __ and the normal name is an alias. */
10841 #if defined __stub_$ac_func || defined __stub___$ac_func
10848 return $ac_func ();
10853 rm -f conftest.$ac_objext conftest$ac_exeext
10854 if { (ac_try="$ac_link"
10855 case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_link") 2>conftest.er1
10862 grep -v '^ *+' conftest.er1 >conftest.err
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 eval "$as_ac_var=yes"
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 eval "$as_ac_var=no"
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10898 ac_res=`eval echo '${'$as_ac_var'}'`
10899 { echo "$as_me:$LINENO: result: $ac_res" >&5
10900 echo "${ECHO_T}$ac_res" >&6; }
10901 if test `eval echo '${'$as_ac_var'}'` = yes; then
10902 cat >>confdefs.h <<_ACEOF
10903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10936 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 ac_res=`eval echo '${'$as_ac_Header'}'`
10947 { echo "$as_me:$LINENO: result: $ac_res" >&5
10948 echo "${ECHO_T}$ac_res" >&6; }
10950 # Is the header compilable?
10951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10953 cat >conftest.$ac_ext <<_ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 $ac_includes_default
10960 #include <$ac_header>
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10971 grep -v '^ *+' conftest.er1 >conftest.err
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_try") 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest.$ac_objext'
10987 { (case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_try") 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 ac_header_compiler=yes
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_header_compiler=no
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11006 echo "${ECHO_T}$ac_header_compiler" >&6; }
11008 # Is the header present?
11009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11011 cat >conftest.$ac_ext <<_ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include <$ac_header>
11019 if { (ac_try="$ac_cpp conftest.$ac_ext"
11020 case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11027 grep -v '^ *+' conftest.er1 >conftest.err
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } >/dev/null; then
11032 if test -s conftest.err; then
11033 ac_cpp_err=$ac_c_preproc_warn_flag
11034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11041 if test -z "$ac_cpp_err"; then
11042 ac_header_preproc=yes
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 ac_header_preproc=no
11050 rm -f conftest.err conftest.$ac_ext
11051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052 echo "${ECHO_T}$ac_header_preproc" >&6; }
11054 # So? What about this header?
11055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11061 ac_header_preproc=yes
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11077 ## ------------------------------------ ##
11078 ## Report this to http://llvm.org/bugs/ ##
11079 ## ------------------------------------ ##
11081 ) | sed "s/^/$as_me: WARNING: /" >&2
11084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 eval "$as_ac_Header=\$ac_header_preproc"
11091 ac_res=`eval echo '${'$as_ac_Header'}'`
11092 { echo "$as_me:$LINENO: result: $ac_res" >&5
11093 echo "${ECHO_T}$ac_res" >&6; }
11096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11097 cat >>confdefs.h <<_ACEOF
11098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11109 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 ac_res=`eval echo '${'$as_ac_Header'}'`
11119 { echo "$as_me:$LINENO: result: $ac_res" >&5
11120 echo "${ECHO_T}$ac_res" >&6; }
11122 # Is the header compilable?
11123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11125 cat >conftest.$ac_ext <<_ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 $ac_includes_default
11132 #include <$ac_header>
11134 rm -f conftest.$ac_objext
11135 if { (ac_try="$ac_compile"
11136 case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_compile") 2>conftest.er1
11143 grep -v '^ *+' conftest.er1 >conftest.err
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest.$ac_objext'
11159 { (case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_try") 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_header_compiler=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_header_compiler=no
11176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11178 echo "${ECHO_T}$ac_header_compiler" >&6; }
11180 # Is the header present?
11181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 #include <$ac_header>
11191 if { (ac_try="$ac_cpp conftest.$ac_ext"
11192 case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11199 grep -v '^ *+' conftest.er1 >conftest.err
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } >/dev/null; then
11204 if test -s conftest.err; then
11205 ac_cpp_err=$ac_c_preproc_warn_flag
11206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11213 if test -z "$ac_cpp_err"; then
11214 ac_header_preproc=yes
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11219 ac_header_preproc=no
11222 rm -f conftest.err conftest.$ac_ext
11223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224 echo "${ECHO_T}$ac_header_preproc" >&6; }
11226 # So? What about this header?
11227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233 ac_header_preproc=yes
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11249 ## ------------------------------------ ##
11250 ## Report this to http://llvm.org/bugs/ ##
11251 ## ------------------------------------ ##
11253 ) | sed "s/^/$as_me: WARNING: /" >&2
11256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 eval "$as_ac_Header=\$ac_header_preproc"
11263 ac_res=`eval echo '${'$as_ac_Header'}'`
11264 { echo "$as_me:$LINENO: result: $ac_res" >&5
11265 echo "${ECHO_T}$ac_res" >&6; }
11268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269 cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279 for ac_header in string.h strings.h
11281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 ac_res=`eval echo '${'$as_ac_Header'}'`
11289 { echo "$as_me:$LINENO: result: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11292 # Is the header compilable?
11293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 $ac_includes_default
11302 #include <$ac_header>
11304 rm -f conftest.$ac_objext
11305 if { (ac_try="$ac_compile"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_compile") 2>conftest.er1
11313 grep -v '^ *+' conftest.er1 >conftest.err
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
11318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319 { (case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_try") 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest.$ac_objext'
11329 { (case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_try") 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_header_compiler=yes
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_header_compiler=no
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11348 echo "${ECHO_T}$ac_header_compiler" >&6; }
11350 # Is the header present?
11351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 #include <$ac_header>
11361 if { (ac_try="$ac_cpp conftest.$ac_ext"
11362 case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11369 grep -v '^ *+' conftest.er1 >conftest.err
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } >/dev/null; then
11374 if test -s conftest.err; then
11375 ac_cpp_err=$ac_c_preproc_warn_flag
11376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11383 if test -z "$ac_cpp_err"; then
11384 ac_header_preproc=yes
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_header_preproc=no
11392 rm -f conftest.err conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6; }
11396 # So? What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403 ac_header_preproc=yes
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11419 ## ------------------------------------ ##
11420 ## Report this to http://llvm.org/bugs/ ##
11421 ## ------------------------------------ ##
11423 ) | sed "s/^/$as_me: WARNING: /" >&2
11426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 eval "$as_ac_Header=\$ac_header_preproc"
11433 ac_res=`eval echo '${'$as_ac_Header'}'`
11434 { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11439 cat >>confdefs.h <<_ACEOF
11440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11450 for ac_func in strchr index
11452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 cat >conftest.$ac_ext <<_ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11466 #define $ac_func innocuous_$ac_func
11468 /* System header to define __stub macros and hopefully few prototypes,
11469 which can conflict with char $ac_func (); below.
11470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471 <limits.h> exists even on freestanding compilers. */
11474 # include <limits.h>
11476 # include <assert.h>
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11488 /* The GNU C library defines this for functions which it implements
11489 to always fail with ENOSYS. Some functions are actually named
11490 something starting with __ and the normal name is an alias. */
11491 #if defined __stub_$ac_func || defined __stub___$ac_func
11498 return $ac_func ();
11503 rm -f conftest.$ac_objext conftest$ac_exeext
11504 if { (ac_try="$ac_link"
11505 case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_link") 2>conftest.er1
11512 grep -v '^ *+' conftest.er1 >conftest.err
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11518 { (case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_try") 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest$ac_exeext'
11528 { (case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_try") 2>&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; }; then
11537 eval "$as_ac_var=yes"
11539 echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11542 eval "$as_ac_var=no"
11545 rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11548 ac_res=`eval echo '${'$as_ac_var'}'`
11549 { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11551 if test `eval echo '${'$as_ac_var'}'` = yes; then
11552 cat >>confdefs.h <<_ACEOF
11553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11561 for ac_func in strrchr rindex
11563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11577 #define $ac_func innocuous_$ac_func
11579 /* System header to define __stub macros and hopefully few prototypes,
11580 which can conflict with char $ac_func (); below.
11581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11582 <limits.h> exists even on freestanding compilers. */
11585 # include <limits.h>
11587 # include <assert.h>
11592 /* Override any GCC internal prototype to avoid an error.
11593 Use char because int might match the return type of a GCC
11594 builtin and then its argument prototype would still apply. */
11599 /* The GNU C library defines this for functions which it implements
11600 to always fail with ENOSYS. Some functions are actually named
11601 something starting with __ and the normal name is an alias. */
11602 #if defined __stub_$ac_func || defined __stub___$ac_func
11609 return $ac_func ();
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_link") 2>conftest.er1
11623 grep -v '^ *+' conftest.er1 >conftest.err
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629 { (case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_try") 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest$ac_exeext'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 eval "$as_ac_var=yes"
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 eval "$as_ac_var=no"
11656 rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11659 ac_res=`eval echo '${'$as_ac_var'}'`
11660 { echo "$as_me:$LINENO: result: $ac_res" >&5
11661 echo "${ECHO_T}$ac_res" >&6; }
11662 if test `eval echo '${'$as_ac_var'}'` = yes; then
11663 cat >>confdefs.h <<_ACEOF
11664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11672 for ac_func in memcpy bcopy
11674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11688 #define $ac_func innocuous_$ac_func
11690 /* System header to define __stub macros and hopefully few prototypes,
11691 which can conflict with char $ac_func (); below.
11692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11693 <limits.h> exists even on freestanding compilers. */
11696 # include <limits.h>
11698 # include <assert.h>
11703 /* Override any GCC internal prototype to avoid an error.
11704 Use char because int might match the return type of a GCC
11705 builtin and then its argument prototype would still apply. */
11710 /* The GNU C library defines this for functions which it implements
11711 to always fail with ENOSYS. Some functions are actually named
11712 something starting with __ and the normal name is an alias. */
11713 #if defined __stub_$ac_func || defined __stub___$ac_func
11720 return $ac_func ();
11725 rm -f conftest.$ac_objext conftest$ac_exeext
11726 if { (ac_try="$ac_link"
11727 case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_link") 2>conftest.er1
11734 grep -v '^ *+' conftest.er1 >conftest.err
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11740 { (case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_try") 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest$ac_exeext'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 eval "$as_ac_var=yes"
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11764 eval "$as_ac_var=no"
11767 rm -f core conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext conftest.$ac_ext
11770 ac_res=`eval echo '${'$as_ac_var'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11773 if test `eval echo '${'$as_ac_var'}'` = yes; then
11774 cat >>confdefs.h <<_ACEOF
11775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11783 for ac_func in memmove strcmp
11785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11799 #define $ac_func innocuous_$ac_func
11801 /* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11807 # include <limits.h>
11809 # include <assert.h>
11814 /* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11821 /* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824 #if defined __stub_$ac_func || defined __stub___$ac_func
11831 return $ac_func ();
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_link") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 eval "$as_ac_var=yes"
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 eval "$as_ac_var=no"
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11881 ac_res=`eval echo '${'$as_ac_var'}'`
11882 { echo "$as_me:$LINENO: result: $ac_res" >&5
11883 echo "${ECHO_T}$ac_res" >&6; }
11884 if test `eval echo '${'$as_ac_var'}'` = yes; then
11885 cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11895 for ac_func in closedir opendir readdir
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 cat >conftest.$ac_ext <<_ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11911 #define $ac_func innocuous_$ac_func
11913 /* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char $ac_func (); below.
11915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916 <limits.h> exists even on freestanding compilers. */
11919 # include <limits.h>
11921 # include <assert.h>
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11933 /* The GNU C library defines this for functions which it implements
11934 to always fail with ENOSYS. Some functions are actually named
11935 something starting with __ and the normal name is an alias. */
11936 #if defined __stub_$ac_func || defined __stub___$ac_func
11943 return $ac_func ();
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_link") 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963 { (case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_try") 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_try") 2>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 eval "$as_ac_var=yes"
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 eval "$as_ac_var=no"
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11993 ac_res=`eval echo '${'$as_ac_var'}'`
11994 { echo "$as_me:$LINENO: result: $ac_res" >&5
11995 echo "${ECHO_T}$ac_res" >&6; }
11996 if test `eval echo '${'$as_ac_var'}'` = yes; then
11997 cat >>confdefs.h <<_ACEOF
11998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12006 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12007 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12020 if test "$GCC" != "yes" && test "$ICC" != "yes"
12022 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12023 echo "$as_me: error: gcc|icc required but not found" >&2;}
12024 { (exit 1); exit 1; }; }
12027 if test "$GXX" != "yes" && test "$IXX" != "yes"
12029 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12030 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12031 { (exit 1); exit 1; }; }
12034 if test "$GCC" = "yes"
12036 cat >conftest.$ac_ext <<_ACEOF
12037 #if !defined(__GNUC__) || __GNUC__ < 3
12038 #error Unsupported GCC version
12042 rm -f conftest.$ac_objext
12043 if { (ac_try="$ac_compile"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_compile") 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12082 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12083 { (exit 1); exit 1; }; }
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089 if test -z "$llvm_cv_gnu_make_command"
12091 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12092 echo "$as_me: error: GNU Make required but not found" >&2;}
12093 { (exit 1); exit 1; }; }
12096 { echo "$as_me:$LINENO: result: ok" >&5
12097 echo "${ECHO_T}ok" >&6; }
12099 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12100 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12101 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12103 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12105 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12107 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12108 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12112 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12113 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12114 if test "${ac_cv_lib_m_sin+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 ac_check_lib_save_LIBS=$LIBS
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (ac_try="$ac_link"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_link") 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest$ac_exeext'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_cv_lib_m_sin=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12188 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12189 if test $ac_cv_lib_m_sin = yes; then
12190 cat >>confdefs.h <<_ACEOF
12191 #define HAVE_LIBM 1
12198 if test "$llvm_cv_os_type" = "MingW" ; then
12200 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12201 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12202 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-limagehlp $LIBS"
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_link") 2>conftest.er1
12232 grep -v '^ *+' conftest.er1 >conftest.err
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12238 { (case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_try") 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; } &&
12247 { ac_try='test -s conftest$ac_exeext'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 ac_cv_lib_imagehlp_main=yes
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12262 ac_cv_lib_imagehlp_main=no
12265 rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
12267 LIBS=$ac_check_lib_save_LIBS
12269 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12270 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12271 if test $ac_cv_lib_imagehlp_main = yes; then
12272 cat >>confdefs.h <<_ACEOF
12273 #define HAVE_LIBIMAGEHLP 1
12276 LIBS="-limagehlp $LIBS"
12281 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12282 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12283 if test "${ac_cv_lib_psapi_main+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-lpsapi $LIBS"
12288 cat >conftest.$ac_ext <<_ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12304 rm -f conftest.$ac_objext conftest$ac_exeext
12305 if { (ac_try="$ac_link"
12306 case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_link") 2>conftest.er1
12313 grep -v '^ *+' conftest.er1 >conftest.err
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12319 { (case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_try") 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
12328 { ac_try='test -s conftest$ac_exeext'
12329 { (case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_try") 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 ac_cv_lib_psapi_main=yes
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 ac_cv_lib_psapi_main=no
12346 rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12350 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12351 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12352 if test $ac_cv_lib_psapi_main = yes; then
12353 cat >>confdefs.h <<_ACEOF
12354 #define HAVE_LIBPSAPI 1
12357 LIBS="-lpsapi $LIBS"
12363 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12364 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12365 if test "${ac_cv_search_dlopen+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 ac_func_search_save_LIBS=$LIBS
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 /* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12391 for ac_lib in '' dl; do
12392 if test -z "$ac_lib"; then
12393 ac_res="none required"
12396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>conftest.er1
12407 grep -v '^ *+' conftest.er1 >conftest.err
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413 { (case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_try") 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest$ac_exeext'
12423 { (case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_try") 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 ac_cv_search_dlopen=$ac_res
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12440 rm -f core conftest.err conftest.$ac_objext \
12442 if test "${ac_cv_search_dlopen+set}" = set; then
12446 if test "${ac_cv_search_dlopen+set}" = set; then
12449 ac_cv_search_dlopen=no
12451 rm conftest.$ac_ext
12452 LIBS=$ac_func_search_save_LIBS
12454 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12455 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12456 ac_res=$ac_cv_search_dlopen
12457 if test "$ac_res" != no; then
12458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_DLOPEN 1
12465 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12466 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12470 if test "$llvm_cv_enable_libffi" = "yes" ; then
12471 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12472 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12473 if test "${ac_cv_search_ffi_call+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 ac_func_search_save_LIBS=$LIBS
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12494 return ffi_call ();
12499 for ac_lib in '' ffi; do
12500 if test -z "$ac_lib"; then
12501 ac_res="none required"
12504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_cv_search_ffi_call=$ac_res
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12548 rm -f core conftest.err conftest.$ac_objext \
12550 if test "${ac_cv_search_ffi_call+set}" = set; then
12554 if test "${ac_cv_search_ffi_call+set}" = set; then
12557 ac_cv_search_ffi_call=no
12559 rm conftest.$ac_ext
12560 LIBS=$ac_func_search_save_LIBS
12562 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12563 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12564 ac_res=$ac_cv_search_ffi_call
12565 if test "$ac_res" != no; then
12566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_FFI_CALL 1
12573 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12574 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12575 { (exit 1); exit 1; }; }
12580 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12581 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12582 if test "${ac_cv_search_mallinfo+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 ac_func_search_save_LIBS=$LIBS
12586 cat >conftest.$ac_ext <<_ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12603 return mallinfo ();
12608 for ac_lib in '' malloc; do
12609 if test -z "$ac_lib"; then
12610 ac_res="none required"
12613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (ac_try="$ac_link"
12617 case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_link") 2>conftest.er1
12624 grep -v '^ *+' conftest.er1 >conftest.err
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12630 { (case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_try") 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest$ac_exeext'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
12649 ac_cv_search_mallinfo=$ac_res
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12657 rm -f core conftest.err conftest.$ac_objext \
12659 if test "${ac_cv_search_mallinfo+set}" = set; then
12663 if test "${ac_cv_search_mallinfo+set}" = set; then
12666 ac_cv_search_mallinfo=no
12668 rm conftest.$ac_ext
12669 LIBS=$ac_func_search_save_LIBS
12671 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12672 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12673 ac_res=$ac_cv_search_mallinfo
12674 if test "$ac_res" != no; then
12675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_MALLINFO 1
12684 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12686 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12687 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12688 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 ac_check_lib_save_LIBS=$LIBS
12692 LIBS="-lpthread $LIBS"
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12700 /* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12706 char pthread_mutex_init ();
12710 return pthread_mutex_init ();
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (ac_try="$ac_link"
12717 case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_link") 2>conftest.er1
12724 grep -v '^ *+' conftest.er1 >conftest.err
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12730 { (case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_try") 2>&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest$ac_exeext'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_lib_pthread_pthread_mutex_init=yes
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 ac_cv_lib_pthread_pthread_mutex_init=no
12757 rm -f core conftest.err conftest.$ac_objext \
12758 conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12761 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12762 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12763 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12764 cat >>confdefs.h <<_ACEOF
12765 #define HAVE_LIBPTHREAD 1
12768 LIBS="-lpthread $LIBS"
12772 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12773 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12774 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 ac_func_search_save_LIBS=$LIBS
12778 cat >conftest.$ac_ext <<_ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12785 /* Override any GCC internal prototype to avoid an error.
12786 Use char because int might match the return type of a GCC
12787 builtin and then its argument prototype would still apply. */
12791 char pthread_mutex_lock ();
12795 return pthread_mutex_lock ();
12800 for ac_lib in '' pthread; do
12801 if test -z "$ac_lib"; then
12802 ac_res="none required"
12805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (ac_try="$ac_link"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_link") 2>conftest.er1
12816 grep -v '^ *+' conftest.er1 >conftest.err
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
12821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12822 { (case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_try") 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try='test -s conftest$ac_exeext'
12832 { (case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_try") 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 ac_cv_search_pthread_mutex_lock=$ac_res
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12849 rm -f core conftest.err conftest.$ac_objext \
12851 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12855 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12858 ac_cv_search_pthread_mutex_lock=no
12860 rm conftest.$ac_ext
12861 LIBS=$ac_func_search_save_LIBS
12863 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12864 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12865 ac_res=$ac_cv_search_pthread_mutex_lock
12866 if test "$ac_res" != no; then
12867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12869 cat >>confdefs.h <<\_ACEOF
12870 #define HAVE_PTHREAD_MUTEX_LOCK 1
12875 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12876 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12877 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 ac_func_search_save_LIBS=$LIBS
12881 cat >conftest.$ac_ext <<_ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12894 char pthread_rwlock_init ();
12898 return pthread_rwlock_init ();
12903 for ac_lib in '' pthread; do
12904 if test -z "$ac_lib"; then
12905 ac_res="none required"
12908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12910 rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_link") 2>conftest.er1
12919 grep -v '^ *+' conftest.er1 >conftest.err
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; } &&
12934 { ac_try='test -s conftest$ac_exeext'
12935 { (case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_try") 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_search_pthread_rwlock_init=$ac_res
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12952 rm -f core conftest.err conftest.$ac_objext \
12954 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12958 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12961 ac_cv_search_pthread_rwlock_init=no
12963 rm conftest.$ac_ext
12964 LIBS=$ac_func_search_save_LIBS
12966 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12967 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12968 ac_res=$ac_cv_search_pthread_rwlock_init
12969 if test "$ac_res" != no; then
12970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12972 cat >>confdefs.h <<\_ACEOF
12973 #define HAVE_PTHREAD_RWLOCK_INIT 1
12978 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12979 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12980 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 ac_func_search_save_LIBS=$LIBS
12984 cat >conftest.$ac_ext <<_ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12991 /* Override any GCC internal prototype to avoid an error.
12992 Use char because int might match the return type of a GCC
12993 builtin and then its argument prototype would still apply. */
12997 char pthread_getspecific ();
13001 return pthread_getspecific ();
13006 for ac_lib in '' pthread; do
13007 if test -z "$ac_lib"; then
13008 ac_res="none required"
13011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_link") 2>conftest.er1
13022 grep -v '^ *+' conftest.er1 >conftest.err
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } &&
13027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13028 { (case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_try") 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_cv_search_pthread_getspecific=$ac_res
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13055 rm -f core conftest.err conftest.$ac_objext \
13057 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13061 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13064 ac_cv_search_pthread_getspecific=no
13066 rm conftest.$ac_ext
13067 LIBS=$ac_func_search_save_LIBS
13069 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13070 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13071 ac_res=$ac_cv_search_pthread_getspecific
13072 if test "$ac_res" != no; then
13073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_PTHREAD_GETSPECIFIC 1
13084 # Check whether --with-udis86 was given.
13085 if test "${with_udis86+set}" = set; then
13086 withval=$with_udis86;
13091 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13094 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13095 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13096 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-ludis86 $LIBS"
13101 cat >conftest.$ac_ext <<_ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13108 /* Override any GCC internal prototype to avoid an error.
13109 Use char because int might match the return type of a GCC
13110 builtin and then its argument prototype would still apply. */
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13132 grep -v '^ *+' conftest.er1 >conftest.err
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_cv_lib_udis86_ud_init=yes
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ac_cv_lib_udis86_ud_init=no
13165 rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13169 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13170 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13171 if test $ac_cv_lib_udis86_ud_init = yes; then
13172 cat >>confdefs.h <<_ACEOF
13173 #define HAVE_LIBUDIS86 1
13176 LIBS="-ludis86 $LIBS"
13180 echo "Error! You need to have libudis86 around."
13192 cat >>confdefs.h <<_ACEOF
13193 #define USE_UDIS86 $USE_UDIS86
13198 # Check whether --with-oprofile was given.
13199 if test "${with_oprofile+set}" = set; then
13200 withval=$with_oprofile;
13204 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13205 no) llvm_cv_oppath=
13208 *) llvm_cv_oppath="${withval}/lib/oprofile"
13209 CPPFLAGS="-I${withval}/include";;
13211 case $llvm_cv_os_type in
13213 if test -n "$llvm_cv_oppath" ; then
13214 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13215 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13216 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13217 if test "${ac_cv_search_bfd_init+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 ac_func_search_save_LIBS=$LIBS
13221 cat >conftest.$ac_ext <<_ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13228 /* Override any GCC internal prototype to avoid an error.
13229 Use char because int might match the return type of a GCC
13230 builtin and then its argument prototype would still apply. */
13238 return bfd_init ();
13243 for ac_lib in '' bfd; do
13244 if test -z "$ac_lib"; then
13245 ac_res="none required"
13248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (ac_try="$ac_link"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_link") 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_try") 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest$ac_exeext'
13275 { (case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_try") 2>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 ac_cv_search_bfd_init=$ac_res
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13292 rm -f core conftest.err conftest.$ac_objext \
13294 if test "${ac_cv_search_bfd_init+set}" = set; then
13298 if test "${ac_cv_search_bfd_init+set}" = set; then
13301 ac_cv_search_bfd_init=no
13303 rm conftest.$ac_ext
13304 LIBS=$ac_func_search_save_LIBS
13306 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13307 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13308 ac_res=$ac_cv_search_bfd_init
13309 if test "$ac_res" != no; then
13310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13314 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13315 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13316 if test "${ac_cv_search_op_open_agent+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13319 ac_func_search_save_LIBS=$LIBS
13320 cat >conftest.$ac_ext <<_ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13327 /* Override any GCC internal prototype to avoid an error.
13328 Use char because int might match the return type of a GCC
13329 builtin and then its argument prototype would still apply. */
13333 char op_open_agent ();
13337 return op_open_agent ();
13342 for ac_lib in '' opagent; do
13343 if test -z "$ac_lib"; then
13344 ac_res="none required"
13347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13349 rm -f conftest.$ac_objext conftest$ac_exeext
13350 if { (ac_try="$ac_link"
13351 case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_link") 2>conftest.er1
13358 grep -v '^ *+' conftest.er1 >conftest.err
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest$ac_exeext'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 ac_cv_search_op_open_agent=$ac_res
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13391 rm -f core conftest.err conftest.$ac_objext \
13393 if test "${ac_cv_search_op_open_agent+set}" = set; then
13397 if test "${ac_cv_search_op_open_agent+set}" = set; then
13400 ac_cv_search_op_open_agent=no
13402 rm conftest.$ac_ext
13403 LIBS=$ac_func_search_save_LIBS
13405 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13406 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13407 ac_res=$ac_cv_search_op_open_agent
13408 if test "$ac_res" != no; then
13409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13413 echo "Error! You need to have libopagent around."
13418 if test "${ac_cv_header_opagent_h+set}" = set; then
13419 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13420 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13421 if test "${ac_cv_header_opagent_h+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13424 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13425 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13427 # Is the header compilable?
13428 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13429 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13430 cat >conftest.$ac_ext <<_ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 $ac_includes_default
13437 #include <opagent.h>
13439 rm -f conftest.$ac_objext
13440 if { (ac_try="$ac_compile"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_compile") 2>conftest.er1
13448 grep -v '^ *+' conftest.er1 >conftest.err
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; } &&
13463 { ac_try='test -s conftest.$ac_objext'
13464 { (case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_try") 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 ac_header_compiler=yes
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13478 ac_header_compiler=no
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13483 echo "${ECHO_T}$ac_header_compiler" >&6; }
13485 # Is the header present?
13486 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13487 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13488 cat >conftest.$ac_ext <<_ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 #include <opagent.h>
13496 if { (ac_try="$ac_cpp conftest.$ac_ext"
13497 case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13504 grep -v '^ *+' conftest.er1 >conftest.err
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } >/dev/null; then
13509 if test -s conftest.err; then
13510 ac_cpp_err=$ac_c_preproc_warn_flag
13511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13518 if test -z "$ac_cpp_err"; then
13519 ac_header_preproc=yes
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13524 ac_header_preproc=no
13527 rm -f conftest.err conftest.$ac_ext
13528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13529 echo "${ECHO_T}$ac_header_preproc" >&6; }
13531 # So? What about this header?
13532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13534 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13535 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13536 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13537 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13538 ac_header_preproc=yes
13541 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13542 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13544 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13546 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13548 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13550 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13552 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13554 ## ------------------------------------ ##
13555 ## Report this to http://llvm.org/bugs/ ##
13556 ## ------------------------------------ ##
13558 ) | sed "s/^/$as_me: WARNING: /" >&2
13561 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13562 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13563 if test "${ac_cv_header_opagent_h+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 ac_cv_header_opagent_h=$ac_header_preproc
13568 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13569 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13572 if test $ac_cv_header_opagent_h = yes; then
13576 echo "Error! You need to have opagent.h around."
13584 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13585 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13586 { (exit 1); exit 1; }; } ;;
13597 cat >>confdefs.h <<_ACEOF
13598 #define LLVM_USE_OPROFILE $USE_OPROFILE
13603 # Check whether --with-intel-jitevents was given.
13604 if test "${with_intel_jitevents+set}" = set; then
13605 withval=$with_intel_jitevents;
13606 case $llvm_cv_os_type in
13607 Linux|Win32|Cygwin|MingW) ;;
13609 { { echo "$as_me:$LINENO: error:
13610 Intel JIT API support is available on Linux and Windows only.\"" >&5
13611 echo "$as_me: error:
13612 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13613 { (exit 1); exit 1; }; } ;;
13616 USE_INTEL_JITEVENTS=1
13618 case "$llvm_cv_target_arch" in
13619 x86) llvm_intel_jitevents_archdir="lib32";;
13620 x86_64) llvm_intel_jitevents_archdir="lib64";;
13621 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13624 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13625 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13627 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13628 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13635 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13636 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13638 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13639 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13640 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 ac_func_search_save_LIBS=$LIBS
13644 cat >conftest.$ac_ext <<_ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13657 char iJIT_IsProfilingActive ();
13661 return iJIT_IsProfilingActive ();
13666 for ac_lib in '' jitprofiling; do
13667 if test -z "$ac_lib"; then
13668 ac_res="none required"
13671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (ac_try="$ac_link"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_link") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13715 rm -f core conftest.err conftest.$ac_objext \
13717 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13721 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13724 ac_cv_search_iJIT_IsProfilingActive=no
13726 rm conftest.$ac_ext
13727 LIBS=$ac_func_search_save_LIBS
13729 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13730 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13731 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13732 if test "$ac_res" != no; then
13733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13737 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13742 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13743 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13744 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13745 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13749 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13751 # Is the header compilable?
13752 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13753 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 $ac_includes_default
13761 #include <jitprofiling.h>
13763 rm -f conftest.$ac_objext
13764 if { (ac_try="$ac_compile"
13765 case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_compile") 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } &&
13787 { ac_try='test -s conftest.$ac_objext'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_header_compiler=yes
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ac_header_compiler=no
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13807 echo "${ECHO_T}$ac_header_compiler" >&6; }
13809 # Is the header present?
13810 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13811 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818 #include <jitprofiling.h>
13820 if { (ac_try="$ac_cpp conftest.$ac_ext"
13821 case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13828 grep -v '^ *+' conftest.er1 >conftest.err
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } >/dev/null; then
13833 if test -s conftest.err; then
13834 ac_cpp_err=$ac_c_preproc_warn_flag
13835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13842 if test -z "$ac_cpp_err"; then
13843 ac_header_preproc=yes
13845 echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13848 ac_header_preproc=no
13851 rm -f conftest.err conftest.$ac_ext
13852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13853 echo "${ECHO_T}$ac_header_preproc" >&6; }
13855 # So? What about this header?
13856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13858 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13859 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13860 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13861 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13862 ac_header_preproc=yes
13865 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13866 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13868 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13870 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13872 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13874 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13876 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13878 ## ------------------------------------ ##
13879 ## Report this to http://llvm.org/bugs/ ##
13880 ## ------------------------------------ ##
13882 ) | sed "s/^/$as_me: WARNING: /" >&2
13885 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13886 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13887 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 ac_cv_header_jitprofiling_h=$ac_header_preproc
13892 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13893 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13896 if test $ac_cv_header_jitprofiling_h = yes; then
13900 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13910 USE_INTEL_JITEVENTS=0
13916 cat >>confdefs.h <<_ACEOF
13917 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13927 ac_header_dirent=no
13928 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13929 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13930 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13931 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 cat >conftest.$ac_ext <<_ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 #include <sys/types.h>
13953 rm -f conftest.$ac_objext
13954 if { (ac_try="$ac_compile"
13955 case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_compile") 2>conftest.er1
13962 grep -v '^ *+' conftest.er1 >conftest.err
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13968 { (case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_try") 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try='test -s conftest.$ac_objext'
13978 { (case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_try") 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13987 eval "$as_ac_Header=yes"
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 eval "$as_ac_Header=no"
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 ac_res=`eval echo '${'$as_ac_Header'}'`
13998 { echo "$as_me:$LINENO: result: $ac_res" >&5
13999 echo "${ECHO_T}$ac_res" >&6; }
14000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14001 cat >>confdefs.h <<_ACEOF
14002 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14005 ac_header_dirent=$ac_hdr; break
14009 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14010 if test $ac_header_dirent = dirent.h; then
14011 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14012 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14013 if test "${ac_cv_search_opendir+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 ac_func_search_save_LIBS=$LIBS
14017 cat >conftest.$ac_ext <<_ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14024 /* Override any GCC internal prototype to avoid an error.
14025 Use char because int might match the return type of a GCC
14026 builtin and then its argument prototype would still apply. */
14039 for ac_lib in '' dir; do
14040 if test -z "$ac_lib"; then
14041 ac_res="none required"
14044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (ac_try="$ac_link"
14048 case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_link") 2>conftest.er1
14055 grep -v '^ *+' conftest.er1 >conftest.err
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
14060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14061 { (case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_try") 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest$ac_exeext'
14071 { (case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_try") 2>&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
14080 ac_cv_search_opendir=$ac_res
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14088 rm -f core conftest.err conftest.$ac_objext \
14090 if test "${ac_cv_search_opendir+set}" = set; then
14094 if test "${ac_cv_search_opendir+set}" = set; then
14097 ac_cv_search_opendir=no
14099 rm conftest.$ac_ext
14100 LIBS=$ac_func_search_save_LIBS
14102 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14103 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14104 ac_res=$ac_cv_search_opendir
14105 if test "$ac_res" != no; then
14106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14111 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14112 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14113 if test "${ac_cv_search_opendir+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 ac_func_search_save_LIBS=$LIBS
14117 cat >conftest.$ac_ext <<_ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14124 /* Override any GCC internal prototype to avoid an error.
14125 Use char because int might match the return type of a GCC
14126 builtin and then its argument prototype would still apply. */
14139 for ac_lib in '' x; do
14140 if test -z "$ac_lib"; then
14141 ac_res="none required"
14144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14146 rm -f conftest.$ac_objext conftest$ac_exeext
14147 if { (ac_try="$ac_link"
14148 case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_link") 2>conftest.er1
14155 grep -v '^ *+' conftest.er1 >conftest.err
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest$ac_exeext'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_search_opendir=$ac_res
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14188 rm -f core conftest.err conftest.$ac_objext \
14190 if test "${ac_cv_search_opendir+set}" = set; then
14194 if test "${ac_cv_search_opendir+set}" = set; then
14197 ac_cv_search_opendir=no
14199 rm conftest.$ac_ext
14200 LIBS=$ac_func_search_save_LIBS
14202 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14203 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14204 ac_res=$ac_cv_search_opendir
14205 if test "$ac_res" != no; then
14206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14212 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14213 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14214 if test "${ac_cv_header_mmap_anon+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 ac_cpp='$CPP $CPPFLAGS'
14219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 #include <sys/mman.h>
14230 #include <unistd.h>
14235 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14240 rm -f conftest.$ac_objext
14241 if { (ac_try="$ac_compile"
14242 case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_compile") 2>conftest.er1
14249 grep -v '^ *+' conftest.er1 >conftest.err
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } &&
14254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14255 { (case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_try") 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; } &&
14264 { ac_try='test -s conftest.$ac_objext'
14265 { (case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270 (eval "$ac_try") 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
14274 ac_cv_header_mmap_anon=yes
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 ac_cv_header_mmap_anon=no
14282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284 ac_cpp='$CPP $CPPFLAGS'
14285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14291 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14292 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14293 if test "$ac_cv_header_mmap_anon" = yes; then
14295 cat >>confdefs.h <<\_ACEOF
14296 #define HAVE_MMAP_ANONYMOUS 1
14301 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14302 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14303 if test "${ac_cv_header_stat_broken+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 #include <sys/types.h>
14313 #include <sys/stat.h>
14315 #if defined S_ISBLK && defined S_IFDIR
14316 # if S_ISBLK (S_IFDIR)
14321 #if defined S_ISBLK && defined S_IFCHR
14322 # if S_ISBLK (S_IFCHR)
14327 #if defined S_ISLNK && defined S_IFREG
14328 # if S_ISLNK (S_IFREG)
14333 #if defined S_ISSOCK && defined S_IFREG
14334 # if S_ISSOCK (S_IFREG)
14340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14341 $EGREP "You lose" >/dev/null 2>&1; then
14342 ac_cv_header_stat_broken=yes
14344 ac_cv_header_stat_broken=no
14349 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14350 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14351 if test $ac_cv_header_stat_broken = yes; then
14353 cat >>confdefs.h <<\_ACEOF
14354 #define STAT_MACROS_BROKEN 1
14359 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14360 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14361 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 cat >conftest.$ac_ext <<_ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 #include <sys/types.h>
14371 #include <sys/wait.h>
14372 #ifndef WEXITSTATUS
14373 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14376 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14384 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14389 rm -f conftest.$ac_objext
14390 if { (ac_try="$ac_compile"
14391 case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_compile") 2>conftest.er1
14398 grep -v '^ *+' conftest.er1 >conftest.err
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404 { (case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_try") 2>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } &&
14413 { ac_try='test -s conftest.$ac_objext'
14414 { (case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_try") 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_cv_header_sys_wait_h=yes
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_cv_header_sys_wait_h=no
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14434 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14435 if test $ac_cv_header_sys_wait_h = yes; then
14437 cat >>confdefs.h <<\_ACEOF
14438 #define HAVE_SYS_WAIT_H 1
14443 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14444 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14445 if test "${ac_cv_header_time+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 #include <sys/types.h>
14455 #include <sys/time.h>
14461 if ((struct tm *) 0)
14467 rm -f conftest.$ac_objext
14468 if { (ac_try="$ac_compile"
14469 case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_compile") 2>conftest.er1
14476 grep -v '^ *+' conftest.er1 >conftest.err
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_try") 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 ac_cv_header_time=yes
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_cv_header_time=no
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14512 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14513 if test $ac_cv_header_time = yes; then
14515 cat >>confdefs.h <<\_ACEOF
14516 #define TIME_WITH_SYS_TIME 1
14528 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 ac_res=`eval echo '${'$as_ac_Header'}'`
14538 { echo "$as_me:$LINENO: result: $ac_res" >&5
14539 echo "${ECHO_T}$ac_res" >&6; }
14541 # Is the header compilable?
14542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14544 cat >conftest.$ac_ext <<_ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 $ac_includes_default
14551 #include <$ac_header>
14553 rm -f conftest.$ac_objext
14554 if { (ac_try="$ac_compile"
14555 case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_compile") 2>conftest.er1
14562 grep -v '^ *+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568 { (case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_try") 2>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest.$ac_objext'
14578 { (case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_try") 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_header_compiler=yes
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 ac_header_compiler=no
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14597 echo "${ECHO_T}$ac_header_compiler" >&6; }
14599 # Is the header present?
14600 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14602 cat >conftest.$ac_ext <<_ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 #include <$ac_header>
14610 if { (ac_try="$ac_cpp conftest.$ac_ext"
14611 case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14618 grep -v '^ *+' conftest.er1 >conftest.err
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } >/dev/null; then
14623 if test -s conftest.err; then
14624 ac_cpp_err=$ac_c_preproc_warn_flag
14625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14632 if test -z "$ac_cpp_err"; then
14633 ac_header_preproc=yes
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 ac_header_preproc=no
14641 rm -f conftest.err conftest.$ac_ext
14642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14643 echo "${ECHO_T}$ac_header_preproc" >&6; }
14645 # So? What about this header?
14646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14652 ac_header_preproc=yes
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14668 ## ------------------------------------ ##
14669 ## Report this to http://llvm.org/bugs/ ##
14670 ## ------------------------------------ ##
14672 ) | sed "s/^/$as_me: WARNING: /" >&2
14675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 eval "$as_ac_Header=\$ac_header_preproc"
14682 ac_res=`eval echo '${'$as_ac_Header'}'`
14683 { echo "$as_me:$LINENO: result: $ac_res" >&5
14684 echo "${ECHO_T}$ac_res" >&6; }
14687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14688 cat >>confdefs.h <<_ACEOF
14689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14702 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
14712 { echo "$as_me:$LINENO: result: $ac_res" >&5
14713 echo "${ECHO_T}$ac_res" >&6; }
14715 # Is the header compilable?
14716 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14718 cat >conftest.$ac_ext <<_ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 $ac_includes_default
14725 #include <$ac_header>
14727 rm -f conftest.$ac_objext
14728 if { (ac_try="$ac_compile"
14729 case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_compile") 2>conftest.er1
14736 grep -v '^ *+' conftest.er1 >conftest.err
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14742 { (case "(($ac_try" in
14743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744 *) ac_try_echo=$ac_try;;
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747 (eval "$ac_try") 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_try") 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_header_compiler=yes
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14766 ac_header_compiler=no
14769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14771 echo "${ECHO_T}$ac_header_compiler" >&6; }
14773 # Is the header present?
14774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14776 cat >conftest.$ac_ext <<_ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 #include <$ac_header>
14784 if { (ac_try="$ac_cpp conftest.$ac_ext"
14785 case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14792 grep -v '^ *+' conftest.er1 >conftest.err
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } >/dev/null; then
14797 if test -s conftest.err; then
14798 ac_cpp_err=$ac_c_preproc_warn_flag
14799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14806 if test -z "$ac_cpp_err"; then
14807 ac_header_preproc=yes
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_header_preproc=no
14815 rm -f conftest.err conftest.$ac_ext
14816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 echo "${ECHO_T}$ac_header_preproc" >&6; }
14819 # So? What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14826 ac_header_preproc=yes
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14842 ## ------------------------------------ ##
14843 ## Report this to http://llvm.org/bugs/ ##
14844 ## ------------------------------------ ##
14846 ) | sed "s/^/$as_me: WARNING: /" >&2
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 eval "$as_ac_Header=\$ac_header_preproc"
14856 ac_res=`eval echo '${'$as_ac_Header'}'`
14857 { echo "$as_me:$LINENO: result: $ac_res" >&5
14858 echo "${ECHO_T}$ac_res" >&6; }
14861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14862 cat >>confdefs.h <<_ACEOF
14863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14872 for ac_header in utime.h windows.h
14874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 ac_res=`eval echo '${'$as_ac_Header'}'`
14882 { echo "$as_me:$LINENO: result: $ac_res" >&5
14883 echo "${ECHO_T}$ac_res" >&6; }
14885 # Is the header compilable?
14886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14888 cat >conftest.$ac_ext <<_ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h. */
14894 $ac_includes_default
14895 #include <$ac_header>
14897 rm -f conftest.$ac_objext
14898 if { (ac_try="$ac_compile"
14899 case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_compile") 2>conftest.er1
14906 grep -v '^ *+' conftest.er1 >conftest.err
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14912 { (case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_try") 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_try") 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 ac_header_compiler=yes
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14936 ac_header_compiler=no
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941 echo "${ECHO_T}$ac_header_compiler" >&6; }
14943 # Is the header present?
14944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 #include <$ac_header>
14954 if { (ac_try="$ac_cpp conftest.$ac_ext"
14955 case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14962 grep -v '^ *+' conftest.er1 >conftest.err
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } >/dev/null; then
14967 if test -s conftest.err; then
14968 ac_cpp_err=$ac_c_preproc_warn_flag
14969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14976 if test -z "$ac_cpp_err"; then
14977 ac_header_preproc=yes
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 ac_header_preproc=no
14985 rm -f conftest.err conftest.$ac_ext
14986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 echo "${ECHO_T}$ac_header_preproc" >&6; }
14989 # So? What about this header?
14990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14996 ac_header_preproc=yes
14999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15012 ## ------------------------------------ ##
15013 ## Report this to http://llvm.org/bugs/ ##
15014 ## ------------------------------------ ##
15016 ) | sed "s/^/$as_me: WARNING: /" >&2
15019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 eval "$as_ac_Header=\$ac_header_preproc"
15026 ac_res=`eval echo '${'$as_ac_Header'}'`
15027 { echo "$as_me:$LINENO: result: $ac_res" >&5
15028 echo "${ECHO_T}$ac_res" >&6; }
15031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15032 cat >>confdefs.h <<_ACEOF
15033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15045 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 ac_res=`eval echo '${'$as_ac_Header'}'`
15055 { echo "$as_me:$LINENO: result: $ac_res" >&5
15056 echo "${ECHO_T}$ac_res" >&6; }
15058 # Is the header compilable?
15059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 $ac_includes_default
15068 #include <$ac_header>
15070 rm -f conftest.$ac_objext
15071 if { (ac_try="$ac_compile"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_compile") 2>conftest.er1
15079 grep -v '^ *+' conftest.er1 >conftest.err
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15085 { (case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_try") 2>&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest.$ac_objext'
15095 { (case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_try") 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_header_compiler=yes
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 ac_header_compiler=no
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15114 echo "${ECHO_T}$ac_header_compiler" >&6; }
15116 # Is the header present?
15117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15119 cat >conftest.$ac_ext <<_ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 #include <$ac_header>
15127 if { (ac_try="$ac_cpp conftest.$ac_ext"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15135 grep -v '^ *+' conftest.er1 >conftest.err
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } >/dev/null; then
15140 if test -s conftest.err; then
15141 ac_cpp_err=$ac_c_preproc_warn_flag
15142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15149 if test -z "$ac_cpp_err"; then
15150 ac_header_preproc=yes
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 ac_header_preproc=no
15158 rm -f conftest.err conftest.$ac_ext
15159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15160 echo "${ECHO_T}$ac_header_preproc" >&6; }
15162 # So? What about this header?
15163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15169 ac_header_preproc=yes
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15185 ## ------------------------------------ ##
15186 ## Report this to http://llvm.org/bugs/ ##
15187 ## ------------------------------------ ##
15189 ) | sed "s/^/$as_me: WARNING: /" >&2
15192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 eval "$as_ac_Header=\$ac_header_preproc"
15199 ac_res=`eval echo '${'$as_ac_Header'}'`
15200 { echo "$as_me:$LINENO: result: $ac_res" >&5
15201 echo "${ECHO_T}$ac_res" >&6; }
15204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15205 cat >>confdefs.h <<_ACEOF
15206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15217 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 ac_res=`eval echo '${'$as_ac_Header'}'`
15227 { echo "$as_me:$LINENO: result: $ac_res" >&5
15228 echo "${ECHO_T}$ac_res" >&6; }
15230 # Is the header compilable?
15231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15233 cat >conftest.$ac_ext <<_ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 $ac_includes_default
15240 #include <$ac_header>
15242 rm -f conftest.$ac_objext
15243 if { (ac_try="$ac_compile"
15244 case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_compile") 2>conftest.er1
15251 grep -v '^ *+' conftest.er1 >conftest.err
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15257 { (case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_try") 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; } &&
15266 { ac_try='test -s conftest.$ac_objext'
15267 { (case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272 (eval "$ac_try") 2>&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15276 ac_header_compiler=yes
15278 echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15281 ac_header_compiler=no
15284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286 echo "${ECHO_T}$ac_header_compiler" >&6; }
15288 # Is the header present?
15289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 #include <$ac_header>
15299 if { (ac_try="$ac_cpp conftest.$ac_ext"
15300 case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15307 grep -v '^ *+' conftest.er1 >conftest.err
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } >/dev/null; then
15312 if test -s conftest.err; then
15313 ac_cpp_err=$ac_c_preproc_warn_flag
15314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15321 if test -z "$ac_cpp_err"; then
15322 ac_header_preproc=yes
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 ac_header_preproc=no
15330 rm -f conftest.err conftest.$ac_ext
15331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15332 echo "${ECHO_T}$ac_header_preproc" >&6; }
15334 # So? What about this header?
15335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15341 ac_header_preproc=yes
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15357 ## ------------------------------------ ##
15358 ## Report this to http://llvm.org/bugs/ ##
15359 ## ------------------------------------ ##
15361 ) | sed "s/^/$as_me: WARNING: /" >&2
15364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 eval "$as_ac_Header=\$ac_header_preproc"
15371 ac_res=`eval echo '${'$as_ac_Header'}'`
15372 { echo "$as_me:$LINENO: result: $ac_res" >&5
15373 echo "${ECHO_T}$ac_res" >&6; }
15376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15377 cat >>confdefs.h <<_ACEOF
15378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15386 for ac_header in valgrind/valgrind.h
15388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 ac_res=`eval echo '${'$as_ac_Header'}'`
15396 { echo "$as_me:$LINENO: result: $ac_res" >&5
15397 echo "${ECHO_T}$ac_res" >&6; }
15399 # Is the header compilable?
15400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15402 cat >conftest.$ac_ext <<_ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 $ac_includes_default
15409 #include <$ac_header>
15411 rm -f conftest.$ac_objext
15412 if { (ac_try="$ac_compile"
15413 case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_compile") 2>conftest.er1
15420 grep -v '^ *+' conftest.er1 >conftest.err
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15426 { (case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_try") 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } &&
15435 { ac_try='test -s conftest.$ac_objext'
15436 { (case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_try") 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_header_compiler=yes
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 ac_header_compiler=no
15453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15455 echo "${ECHO_T}$ac_header_compiler" >&6; }
15457 # Is the header present?
15458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15460 cat >conftest.$ac_ext <<_ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 #include <$ac_header>
15468 if { (ac_try="$ac_cpp conftest.$ac_ext"
15469 case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15476 grep -v '^ *+' conftest.er1 >conftest.err
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } >/dev/null; then
15481 if test -s conftest.err; then
15482 ac_cpp_err=$ac_c_preproc_warn_flag
15483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15490 if test -z "$ac_cpp_err"; then
15491 ac_header_preproc=yes
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_header_preproc=no
15499 rm -f conftest.err conftest.$ac_ext
15500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15501 echo "${ECHO_T}$ac_header_preproc" >&6; }
15503 # So? What about this header?
15504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15510 ac_header_preproc=yes
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15526 ## ------------------------------------ ##
15527 ## Report this to http://llvm.org/bugs/ ##
15528 ## ------------------------------------ ##
15530 ) | sed "s/^/$as_me: WARNING: /" >&2
15533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 eval "$as_ac_Header=\$ac_header_preproc"
15540 ac_res=`eval echo '${'$as_ac_Header'}'`
15541 { echo "$as_me:$LINENO: result: $ac_res" >&5
15542 echo "${ECHO_T}$ac_res" >&6; }
15545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15546 cat >>confdefs.h <<_ACEOF
15547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15555 for ac_header in fenv.h
15557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 ac_res=`eval echo '${'$as_ac_Header'}'`
15565 { echo "$as_me:$LINENO: result: $ac_res" >&5
15566 echo "${ECHO_T}$ac_res" >&6; }
15568 # Is the header compilable?
15569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15571 cat >conftest.$ac_ext <<_ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h. */
15577 $ac_includes_default
15578 #include <$ac_header>
15580 rm -f conftest.$ac_objext
15581 if { (ac_try="$ac_compile"
15582 case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_compile") 2>conftest.er1
15589 grep -v '^ *+' conftest.er1 >conftest.err
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } &&
15594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15595 { (case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_try") 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest.$ac_objext'
15605 { (case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_try") 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_header_compiler=yes
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ac_header_compiler=no
15622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15624 echo "${ECHO_T}$ac_header_compiler" >&6; }
15626 # Is the header present?
15627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15629 cat >conftest.$ac_ext <<_ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 #include <$ac_header>
15637 if { (ac_try="$ac_cpp conftest.$ac_ext"
15638 case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15645 grep -v '^ *+' conftest.er1 >conftest.err
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } >/dev/null; then
15650 if test -s conftest.err; then
15651 ac_cpp_err=$ac_c_preproc_warn_flag
15652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15659 if test -z "$ac_cpp_err"; then
15660 ac_header_preproc=yes
15662 echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15665 ac_header_preproc=no
15668 rm -f conftest.err conftest.$ac_ext
15669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15670 echo "${ECHO_T}$ac_header_preproc" >&6; }
15672 # So? What about this header?
15673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15679 ac_header_preproc=yes
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15695 ## ------------------------------------ ##
15696 ## Report this to http://llvm.org/bugs/ ##
15697 ## ------------------------------------ ##
15699 ) | sed "s/^/$as_me: WARNING: /" >&2
15702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 eval "$as_ac_Header=\$ac_header_preproc"
15709 ac_res=`eval echo '${'$as_ac_Header'}'`
15710 { echo "$as_me:$LINENO: result: $ac_res" >&5
15711 echo "${ECHO_T}$ac_res" >&6; }
15714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15715 cat >>confdefs.h <<_ACEOF
15716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15723 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15725 for ac_header in pthread.h
15727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 ac_res=`eval echo '${'$as_ac_Header'}'`
15735 { echo "$as_me:$LINENO: result: $ac_res" >&5
15736 echo "${ECHO_T}$ac_res" >&6; }
15738 # Is the header compilable?
15739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15741 cat >conftest.$ac_ext <<_ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15747 $ac_includes_default
15748 #include <$ac_header>
15750 rm -f conftest.$ac_objext
15751 if { (ac_try="$ac_compile"
15752 case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_compile") 2>conftest.er1
15759 grep -v '^ *+' conftest.er1 >conftest.err
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } &&
15764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15765 { (case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_try") 2>&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; } &&
15774 { ac_try='test -s conftest.$ac_objext'
15775 { (case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_try") 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 ac_header_compiler=yes
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 ac_header_compiler=no
15792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15794 echo "${ECHO_T}$ac_header_compiler" >&6; }
15796 # Is the header present?
15797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15799 cat >conftest.$ac_ext <<_ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 #include <$ac_header>
15807 if { (ac_try="$ac_cpp conftest.$ac_ext"
15808 case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15815 grep -v '^ *+' conftest.er1 >conftest.err
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } >/dev/null; then
15820 if test -s conftest.err; then
15821 ac_cpp_err=$ac_c_preproc_warn_flag
15822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15829 if test -z "$ac_cpp_err"; then
15830 ac_header_preproc=yes
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 ac_header_preproc=no
15838 rm -f conftest.err conftest.$ac_ext
15839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15840 echo "${ECHO_T}$ac_header_preproc" >&6; }
15842 # So? What about this header?
15843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15849 ac_header_preproc=yes
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15865 ## ------------------------------------ ##
15866 ## Report this to http://llvm.org/bugs/ ##
15867 ## ------------------------------------ ##
15869 ) | sed "s/^/$as_me: WARNING: /" >&2
15872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 eval "$as_ac_Header=\$ac_header_preproc"
15879 ac_res=`eval echo '${'$as_ac_Header'}'`
15880 { echo "$as_me:$LINENO: result: $ac_res" >&5
15881 echo "${ECHO_T}$ac_res" >&6; }
15884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15885 cat >>confdefs.h <<_ACEOF
15886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15902 if test "$llvm_cv_enable_libffi" = "yes" ; then
15905 for ac_header in ffi.h ffi/ffi.h
15907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15914 ac_res=`eval echo '${'$as_ac_Header'}'`
15915 { echo "$as_me:$LINENO: result: $ac_res" >&5
15916 echo "${ECHO_T}$ac_res" >&6; }
15918 # Is the header compilable?
15919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15921 cat >conftest.$ac_ext <<_ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15927 $ac_includes_default
15928 #include <$ac_header>
15930 rm -f conftest.$ac_objext
15931 if { (ac_try="$ac_compile"
15932 case "(($ac_try" in
15933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934 *) ac_try_echo=$ac_try;;
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937 (eval "$ac_compile") 2>conftest.er1
15939 grep -v '^ *+' conftest.er1 >conftest.err
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15945 { (case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_try") 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest.$ac_objext'
15955 { (case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_try") 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_header_compiler=yes
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15969 ac_header_compiler=no
15972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15974 echo "${ECHO_T}$ac_header_compiler" >&6; }
15976 # Is the header present?
15977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15979 cat >conftest.$ac_ext <<_ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 #include <$ac_header>
15987 if { (ac_try="$ac_cpp conftest.$ac_ext"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15995 grep -v '^ *+' conftest.er1 >conftest.err
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } >/dev/null; then
16000 if test -s conftest.err; then
16001 ac_cpp_err=$ac_c_preproc_warn_flag
16002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16009 if test -z "$ac_cpp_err"; then
16010 ac_header_preproc=yes
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ac_header_preproc=no
16018 rm -f conftest.err conftest.$ac_ext
16019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16020 echo "${ECHO_T}$ac_header_preproc" >&6; }
16022 # So? What about this header?
16023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16029 ac_header_preproc=yes
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16045 ## ------------------------------------ ##
16046 ## Report this to http://llvm.org/bugs/ ##
16047 ## ------------------------------------ ##
16049 ) | sed "s/^/$as_me: WARNING: /" >&2
16052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 eval "$as_ac_Header=\$ac_header_preproc"
16059 ac_res=`eval echo '${'$as_ac_Header'}'`
16060 { echo "$as_me:$LINENO: result: $ac_res" >&5
16061 echo "${ECHO_T}$ac_res" >&6; }
16064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16065 cat >>confdefs.h <<_ACEOF
16066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16076 for ac_header in CrashReporterClient.h
16078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 ac_res=`eval echo '${'$as_ac_Header'}'`
16086 { echo "$as_me:$LINENO: result: $ac_res" >&5
16087 echo "${ECHO_T}$ac_res" >&6; }
16089 # Is the header compilable?
16090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16092 cat >conftest.$ac_ext <<_ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16098 $ac_includes_default
16099 #include <$ac_header>
16101 rm -f conftest.$ac_objext
16102 if { (ac_try="$ac_compile"
16103 case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_compile") 2>conftest.er1
16110 grep -v '^ *+' conftest.er1 >conftest.err
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16116 { (case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_try") 2>&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; } &&
16125 { ac_try='test -s conftest.$ac_objext'
16126 { (case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_try") 2>&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 ac_header_compiler=yes
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 ac_header_compiler=no
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145 echo "${ECHO_T}$ac_header_compiler" >&6; }
16147 # Is the header present?
16148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 #include <$ac_header>
16158 if { (ac_try="$ac_cpp conftest.$ac_ext"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } >/dev/null; then
16171 if test -s conftest.err; then
16172 ac_cpp_err=$ac_c_preproc_warn_flag
16173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16180 if test -z "$ac_cpp_err"; then
16181 ac_header_preproc=yes
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 ac_header_preproc=no
16189 rm -f conftest.err conftest.$ac_ext
16190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16191 echo "${ECHO_T}$ac_header_preproc" >&6; }
16193 # So? What about this header?
16194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16200 ac_header_preproc=yes
16203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16216 ## ------------------------------------ ##
16217 ## Report this to http://llvm.org/bugs/ ##
16218 ## ------------------------------------ ##
16220 ) | sed "s/^/$as_me: WARNING: /" >&2
16223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 eval "$as_ac_Header=\$ac_header_preproc"
16230 ac_res=`eval echo '${'$as_ac_Header'}'`
16231 { echo "$as_me:$LINENO: result: $ac_res" >&5
16232 echo "${ECHO_T}$ac_res" >&6; }
16235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16236 cat >>confdefs.h <<_ACEOF
16237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16245 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16246 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 extern const char *__crashreporter_info__;
16255 __crashreporter_info__ = "test";
16260 rm -f conftest.$ac_objext conftest$ac_exeext
16261 if { (ac_try="$ac_link"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_link") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16275 { (case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_try") 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest$ac_exeext'
16285 { (case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_try") 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16294 { echo "$as_me:$LINENO: result: yes" >&5
16295 echo "${ECHO_T}yes" >&6; }
16297 cat >>confdefs.h <<\_ACEOF
16298 #define HAVE_CRASHREPORTER_INFO 1
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 { echo "$as_me:$LINENO: result: no" >&5
16306 echo "${ECHO_T}no" >&6; }
16308 cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_CRASHREPORTER_INFO 0
16314 rm -f core conftest.err conftest.$ac_objext \
16315 conftest$ac_exeext conftest.$ac_ext
16320 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16321 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16322 if test "${ac_cv_huge_val_sanity+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 ac_cpp='$CXXCPP $CPPFLAGS'
16328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16332 ac_save_CXXFLAGS=$CXXFLAGS
16333 CXXFLAGS="$CXXFLAGS -pedantic"
16334 if test "$cross_compiling" = yes; then
16335 ac_cv_huge_val_sanity=yes
16337 cat >conftest.$ac_ext <<_ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16347 double x = HUGE_VAL; return x != x;
16352 rm -f conftest$ac_exeext
16353 if { (ac_try="$ac_link"
16354 case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_link") 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_cv_huge_val_sanity=yes
16374 echo "$as_me: program exited with status $ac_status" >&5
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 ( exit $ac_status )
16379 ac_cv_huge_val_sanity=no
16381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16385 CXXFLAGS=$ac_save_CXXFLAGS
16387 ac_cpp='$CPP $CPPFLAGS'
16388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16394 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16395 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16396 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16399 { echo "$as_me:$LINENO: checking for pid_t" >&5
16400 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16401 if test "${ac_cv_type_pid_t+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 $ac_includes_default
16411 typedef pid_t ac__type_new_;
16415 if ((ac__type_new_ *) 0)
16417 if (sizeof (ac__type_new_))
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_compile") 2>conftest.er1
16432 grep -v '^ *+' conftest.er1 >conftest.err
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438 { (case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_try") 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest.$ac_objext'
16448 { (case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_try") 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16457 ac_cv_type_pid_t=yes
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16462 ac_cv_type_pid_t=no
16465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16467 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16468 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16469 if test $ac_cv_type_pid_t = yes; then
16473 cat >>confdefs.h <<_ACEOF
16479 { echo "$as_me:$LINENO: checking for size_t" >&5
16480 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16481 if test "${ac_cv_type_size_t+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 cat >conftest.$ac_ext <<_ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 $ac_includes_default
16491 typedef size_t ac__type_new_;
16495 if ((ac__type_new_ *) 0)
16497 if (sizeof (ac__type_new_))
16503 rm -f conftest.$ac_objext
16504 if { (ac_try="$ac_compile"
16505 case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_compile") 2>conftest.er1
16512 grep -v '^ *+' conftest.er1 >conftest.err
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16518 { (case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_try") 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; } &&
16527 { ac_try='test -s conftest.$ac_objext'
16528 { (case "(($ac_try" in
16529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_try") 2>&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16537 ac_cv_type_size_t=yes
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 ac_cv_type_size_t=no
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16548 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16549 if test $ac_cv_type_size_t = yes; then
16553 cat >>confdefs.h <<_ACEOF
16554 #define size_t unsigned int
16560 cat >>confdefs.h <<_ACEOF
16561 #define RETSIGTYPE void
16564 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16565 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16566 if test "${ac_cv_struct_tm+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 cat >conftest.$ac_ext <<_ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 #include <sys/types.h>
16581 struct tm *tp; tp->tm_sec;
16586 rm -f conftest.$ac_objext
16587 if { (ac_try="$ac_compile"
16588 case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_compile") 2>conftest.er1
16595 grep -v '^ *+' conftest.er1 >conftest.err
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest.$ac_objext'
16611 { (case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_try") 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
16620 ac_cv_struct_tm=time.h
16622 echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16625 ac_cv_struct_tm=sys/time.h
16628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16630 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16631 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16632 if test $ac_cv_struct_tm = sys/time.h; then
16634 cat >>confdefs.h <<\_ACEOF
16635 #define TM_IN_SYS_TIME 1
16640 { echo "$as_me:$LINENO: checking for int64_t" >&5
16641 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16642 if test "${ac_cv_type_int64_t+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 cat >conftest.$ac_ext <<_ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 $ac_includes_default
16652 typedef int64_t ac__type_new_;
16656 if ((ac__type_new_ *) 0)
16658 if (sizeof (ac__type_new_))
16664 rm -f conftest.$ac_objext
16665 if { (ac_try="$ac_compile"
16666 case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_compile") 2>conftest.er1
16673 grep -v '^ *+' conftest.er1 >conftest.err
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16679 { (case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_try") 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try='test -s conftest.$ac_objext'
16689 { (case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_try") 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 ac_cv_type_int64_t=yes
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 ac_cv_type_int64_t=no
16706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16708 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16709 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16710 if test $ac_cv_type_int64_t = yes; then
16712 cat >>confdefs.h <<_ACEOF
16713 #define HAVE_INT64_T 1
16718 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16719 echo "$as_me: error: Type int64_t required but not found" >&2;}
16720 { (exit 1); exit 1; }; }
16723 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16724 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16725 if test "${ac_cv_type_uint64_t+set}" = set; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16728 cat >conftest.$ac_ext <<_ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 $ac_includes_default
16735 typedef uint64_t ac__type_new_;
16739 if ((ac__type_new_ *) 0)
16741 if (sizeof (ac__type_new_))
16747 rm -f conftest.$ac_objext
16748 if { (ac_try="$ac_compile"
16749 case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_compile") 2>conftest.er1
16756 grep -v '^ *+' conftest.er1 >conftest.err
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest.$ac_objext'
16772 { (case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_try") 2>&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16781 ac_cv_type_uint64_t=yes
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16786 ac_cv_type_uint64_t=no
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16791 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16792 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16793 if test $ac_cv_type_uint64_t = yes; then
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_UINT64_T 1
16801 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16802 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16803 if test "${ac_cv_type_u_int64_t+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 cat >conftest.$ac_ext <<_ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 $ac_includes_default
16813 typedef u_int64_t ac__type_new_;
16817 if ((ac__type_new_ *) 0)
16819 if (sizeof (ac__type_new_))
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_compile") 2>conftest.er1
16834 grep -v '^ *+' conftest.er1 >conftest.err
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16840 { (case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_try") 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest.$ac_objext'
16850 { (case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_try") 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_type_u_int64_t=yes
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 ac_cv_type_u_int64_t=no
16867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16870 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16871 if test $ac_cv_type_u_int64_t = yes; then
16873 cat >>confdefs.h <<_ACEOF
16874 #define HAVE_U_INT64_T 1
16879 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16880 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16881 { (exit 1); exit 1; }; }
16895 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 cat >conftest.$ac_ext <<_ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16911 #define $ac_func innocuous_$ac_func
16913 /* System header to define __stub macros and hopefully few prototypes,
16914 which can conflict with char $ac_func (); below.
16915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916 <limits.h> exists even on freestanding compilers. */
16919 # include <limits.h>
16921 # include <assert.h>
16926 /* Override any GCC internal prototype to avoid an error.
16927 Use char because int might match the return type of a GCC
16928 builtin and then its argument prototype would still apply. */
16933 /* The GNU C library defines this for functions which it implements
16934 to always fail with ENOSYS. Some functions are actually named
16935 something starting with __ and the normal name is an alias. */
16936 #if defined __stub_$ac_func || defined __stub___$ac_func
16943 return $ac_func ();
16948 rm -f conftest.$ac_objext conftest$ac_exeext
16949 if { (ac_try="$ac_link"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_link") 2>conftest.er1
16957 grep -v '^ *+' conftest.er1 >conftest.err
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16963 { (case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_try") 2>&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest$ac_exeext'
16973 { (case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_try") 2>&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 eval "$as_ac_var=yes"
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16987 eval "$as_ac_var=no"
16990 rm -f core conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16993 ac_res=`eval echo '${'$as_ac_var'}'`
16994 { echo "$as_me:$LINENO: result: $ac_res" >&5
16995 echo "${ECHO_T}$ac_res" >&6; }
16996 if test `eval echo '${'$as_ac_var'}'` = yes; then
16997 cat >>confdefs.h <<_ACEOF
16998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17008 for ac_func in powf fmodf strtof round
17010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 cat >conftest.$ac_ext <<_ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17024 #define $ac_func innocuous_$ac_func
17026 /* System header to define __stub macros and hopefully few prototypes,
17027 which can conflict with char $ac_func (); below.
17028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17029 <limits.h> exists even on freestanding compilers. */
17032 # include <limits.h>
17034 # include <assert.h>
17039 /* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17046 /* The GNU C library defines this for functions which it implements
17047 to always fail with ENOSYS. Some functions are actually named
17048 something starting with __ and the normal name is an alias. */
17049 #if defined __stub_$ac_func || defined __stub___$ac_func
17056 return $ac_func ();
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076 { (case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_try") 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest$ac_exeext'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 eval "$as_ac_var=yes"
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17100 eval "$as_ac_var=no"
17103 rm -f core conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17106 ac_res=`eval echo '${'$as_ac_var'}'`
17107 { echo "$as_me:$LINENO: result: $ac_res" >&5
17108 echo "${ECHO_T}$ac_res" >&6; }
17109 if test `eval echo '${'$as_ac_var'}'` = yes; then
17110 cat >>confdefs.h <<_ACEOF
17111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17122 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 cat >conftest.$ac_ext <<_ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17138 #define $ac_func innocuous_$ac_func
17140 /* System header to define __stub macros and hopefully few prototypes,
17141 which can conflict with char $ac_func (); below.
17142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17143 <limits.h> exists even on freestanding compilers. */
17146 # include <limits.h>
17148 # include <assert.h>
17153 /* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
17160 /* The GNU C library defines this for functions which it implements
17161 to always fail with ENOSYS. Some functions are actually named
17162 something starting with __ and the normal name is an alias. */
17163 #if defined __stub_$ac_func || defined __stub___$ac_func
17170 return $ac_func ();
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 eval "$as_ac_var=yes"
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 eval "$as_ac_var=no"
17217 rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17220 ac_res=`eval echo '${'$as_ac_var'}'`
17221 { echo "$as_me:$LINENO: result: $ac_res" >&5
17222 echo "${ECHO_T}$ac_res" >&6; }
17223 if test `eval echo '${'$as_ac_var'}'` = yes; then
17224 cat >>confdefs.h <<_ACEOF
17225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17234 for ac_func in isatty mkdtemp mkstemp
17236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17242 cat >conftest.$ac_ext <<_ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17250 #define $ac_func innocuous_$ac_func
17252 /* System header to define __stub macros and hopefully few prototypes,
17253 which can conflict with char $ac_func (); below.
17254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17255 <limits.h> exists even on freestanding compilers. */
17258 # include <limits.h>
17260 # include <assert.h>
17265 /* Override any GCC internal prototype to avoid an error.
17266 Use char because int might match the return type of a GCC
17267 builtin and then its argument prototype would still apply. */
17272 /* The GNU C library defines this for functions which it implements
17273 to always fail with ENOSYS. Some functions are actually named
17274 something starting with __ and the normal name is an alias. */
17275 #if defined __stub_$ac_func || defined __stub___$ac_func
17282 return $ac_func ();
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (ac_try="$ac_link"
17289 case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_link") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17302 { (case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_try") 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest$ac_exeext'
17312 { (case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_try") 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
17321 eval "$as_ac_var=yes"
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17326 eval "$as_ac_var=no"
17329 rm -f core conftest.err conftest.$ac_objext \
17330 conftest$ac_exeext conftest.$ac_ext
17332 ac_res=`eval echo '${'$as_ac_var'}'`
17333 { echo "$as_me:$LINENO: result: $ac_res" >&5
17334 echo "${ECHO_T}$ac_res" >&6; }
17335 if test `eval echo '${'$as_ac_var'}'` = yes; then
17336 cat >>confdefs.h <<_ACEOF
17337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17350 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 cat >conftest.$ac_ext <<_ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h. */
17364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17366 #define $ac_func innocuous_$ac_func
17368 /* System header to define __stub macros and hopefully few prototypes,
17369 which can conflict with char $ac_func (); below.
17370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17371 <limits.h> exists even on freestanding compilers. */
17374 # include <limits.h>
17376 # include <assert.h>
17381 /* Override any GCC internal prototype to avoid an error.
17382 Use char because int might match the return type of a GCC
17383 builtin and then its argument prototype would still apply. */
17388 /* The GNU C library defines this for functions which it implements
17389 to always fail with ENOSYS. Some functions are actually named
17390 something starting with __ and the normal name is an alias. */
17391 #if defined __stub_$ac_func || defined __stub___$ac_func
17398 return $ac_func ();
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
17412 grep -v '^ *+' conftest.er1 >conftest.err
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 eval "$as_ac_var=yes"
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 eval "$as_ac_var=no"
17445 rm -f core conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
17448 ac_res=`eval echo '${'$as_ac_var'}'`
17449 { echo "$as_me:$LINENO: result: $ac_res" >&5
17450 echo "${ECHO_T}$ac_res" >&6; }
17451 if test `eval echo '${'$as_ac_var'}'` = yes; then
17452 cat >>confdefs.h <<_ACEOF
17453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17463 for ac_func in strerror strerror_r setenv arc4random
17465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 cat >conftest.$ac_ext <<_ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17479 #define $ac_func innocuous_$ac_func
17481 /* System header to define __stub macros and hopefully few prototypes,
17482 which can conflict with char $ac_func (); below.
17483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17484 <limits.h> exists even on freestanding compilers. */
17487 # include <limits.h>
17489 # include <assert.h>
17494 /* Override any GCC internal prototype to avoid an error.
17495 Use char because int might match the return type of a GCC
17496 builtin and then its argument prototype would still apply. */
17501 /* The GNU C library defines this for functions which it implements
17502 to always fail with ENOSYS. Some functions are actually named
17503 something starting with __ and the normal name is an alias. */
17504 #if defined __stub_$ac_func || defined __stub___$ac_func
17511 return $ac_func ();
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17525 grep -v '^ *+' conftest.er1 >conftest.err
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
17530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17531 { (case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_try") 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest$ac_exeext'
17541 { (case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_try") 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 eval "$as_ac_var=yes"
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 eval "$as_ac_var=no"
17558 rm -f core conftest.err conftest.$ac_objext \
17559 conftest$ac_exeext conftest.$ac_ext
17561 ac_res=`eval echo '${'$as_ac_var'}'`
17562 { echo "$as_me:$LINENO: result: $ac_res" >&5
17563 echo "${ECHO_T}$ac_res" >&6; }
17564 if test `eval echo '${'$as_ac_var'}'` = yes; then
17565 cat >>confdefs.h <<_ACEOF
17566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17576 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 cat >conftest.$ac_ext <<_ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17592 #define $ac_func innocuous_$ac_func
17594 /* System header to define __stub macros and hopefully few prototypes,
17595 which can conflict with char $ac_func (); below.
17596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17597 <limits.h> exists even on freestanding compilers. */
17600 # include <limits.h>
17602 # include <assert.h>
17607 /* Override any GCC internal prototype to avoid an error.
17608 Use char because int might match the return type of a GCC
17609 builtin and then its argument prototype would still apply. */
17614 /* The GNU C library defines this for functions which it implements
17615 to always fail with ENOSYS. Some functions are actually named
17616 something starting with __ and the normal name is an alias. */
17617 #if defined __stub_$ac_func || defined __stub___$ac_func
17624 return $ac_func ();
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (ac_try="$ac_link"
17631 case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_link") 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17644 { (case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_try") 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest$ac_exeext'
17654 { (case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_try") 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 eval "$as_ac_var=yes"
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 eval "$as_ac_var=no"
17671 rm -f core conftest.err conftest.$ac_objext \
17672 conftest$ac_exeext conftest.$ac_ext
17674 ac_res=`eval echo '${'$as_ac_var'}'`
17675 { echo "$as_me:$LINENO: result: $ac_res" >&5
17676 echo "${ECHO_T}$ac_res" >&6; }
17677 if test `eval echo '${'$as_ac_var'}'` = yes; then
17678 cat >>confdefs.h <<_ACEOF
17679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17690 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17696 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 cat >conftest.$ac_ext <<_ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17706 #define $ac_func innocuous_$ac_func
17708 /* System header to define __stub macros and hopefully few prototypes,
17709 which can conflict with char $ac_func (); below.
17710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17711 <limits.h> exists even on freestanding compilers. */
17714 # include <limits.h>
17716 # include <assert.h>
17721 /* Override any GCC internal prototype to avoid an error.
17722 Use char because int might match the return type of a GCC
17723 builtin and then its argument prototype would still apply. */
17728 /* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731 #if defined __stub_$ac_func || defined __stub___$ac_func
17738 return $ac_func ();
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (ac_try="$ac_link"
17745 case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_link") 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17758 { (case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_try") 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 eval "$as_ac_var=yes"
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 eval "$as_ac_var=no"
17785 rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17788 ac_res=`eval echo '${'$as_ac_var'}'`
17789 { echo "$as_me:$LINENO: result: $ac_res" >&5
17790 echo "${ECHO_T}$ac_res" >&6; }
17791 if test `eval echo '${'$as_ac_var'}'` = yes; then
17792 cat >>confdefs.h <<_ACEOF
17793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17799 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17800 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17801 if test "${llvm_cv_c_printf_a+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 ac_cpp='$CPP $CPPFLAGS'
17806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17810 if test "$cross_compiling" = yes; then
17811 llvmac_cv_c_printf_a=no
17813 cat >conftest.$ac_ext <<_ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17822 #include <stdlib.h>
17828 volatile double A, B;
17832 sprintf(Buffer, "%a", A);
17836 if (A != 0x1.999999999999ap-4)
17843 rm -f conftest$ac_exeext
17844 if { (ac_try="$ac_link"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_link") 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17854 { (case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_try") 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 llvm_cv_c_printf_a=yes
17865 echo "$as_me: program exited with status $ac_status" >&5
17866 echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17869 ( exit $ac_status )
17870 llvmac_cv_c_printf_a=no
17872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17877 ac_cpp='$CPP $CPPFLAGS'
17878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17883 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17884 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17885 if test "$llvm_cv_c_printf_a" = "yes"; then
17887 cat >>confdefs.h <<\_ACEOF
17888 #define HAVE_PRINTF_A 1
17894 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17895 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17896 if test "${ac_cv_func_rand48+set}" = set; then
17897 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 ac_cpp='$CXXCPP $CPPFLAGS'
17901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17905 cat >conftest.$ac_ext <<_ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17911 #include <stdlib.h>
17915 srand48(0);lrand48();drand48();
17920 rm -f conftest.$ac_objext
17921 if { (ac_try="$ac_compile"
17922 case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_compile") 2>conftest.er1
17929 grep -v '^ *+' conftest.er1 >conftest.err
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17935 { (case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_try") 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
17945 { (case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_try") 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_cv_func_rand48=yes
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_cv_func_rand48=no
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17964 ac_cpp='$CPP $CPPFLAGS'
17965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17970 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17971 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17973 if test "$ac_cv_func_rand48" = "yes" ; then
17975 cat >>confdefs.h <<\_ACEOF
17976 #define HAVE_RAND48 1
17982 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17983 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17984 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 $ac_includes_default
17998 char *p = (char *) strerror_s;
18006 rm -f conftest.$ac_objext
18007 if { (ac_try="$ac_compile"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_compile") 2>conftest.er1
18015 grep -v '^ *+' conftest.er1 >conftest.err
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest.$ac_objext'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 ac_cv_have_decl_strerror_s=yes
18042 echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18045 ac_cv_have_decl_strerror_s=no
18048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18050 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18051 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18052 if test $ac_cv_have_decl_strerror_s = yes; then
18054 cat >>confdefs.h <<_ACEOF
18055 #define HAVE_DECL_STRERROR_S 1
18060 cat >>confdefs.h <<_ACEOF
18061 #define HAVE_DECL_STRERROR_S 0
18069 if test "$llvm_cv_os_type" = "MingW" ; then
18070 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18071 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18072 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 ac_check_lib_save_LIBS=$LIBS
18077 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18084 /* Override any GCC internal prototype to avoid an error.
18085 Use char because int might match the return type of a GCC
18086 builtin and then its argument prototype would still apply. */
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (ac_try="$ac_link"
18101 case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_link") 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest$ac_exeext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_lib_gcc__alloca=yes
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 ac_cv_lib_gcc__alloca=no
18141 rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18143 LIBS=$ac_check_lib_save_LIBS
18145 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18146 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18147 if test $ac_cv_lib_gcc__alloca = yes; then
18149 cat >>confdefs.h <<\_ACEOF
18150 #define HAVE__ALLOCA 1
18155 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18156 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18157 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 ac_check_lib_save_LIBS=$LIBS
18162 cat >conftest.$ac_ext <<_ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18179 return __alloca ();
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (ac_try="$ac_link"
18186 case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_link") 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest$ac_exeext'
18209 { (case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_try") 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_cv_lib_gcc___alloca=yes
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18223 ac_cv_lib_gcc___alloca=no
18226 rm -f core conftest.err conftest.$ac_objext \
18227 conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18230 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18231 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18232 if test $ac_cv_lib_gcc___alloca = yes; then
18234 cat >>confdefs.h <<\_ACEOF
18235 #define HAVE___ALLOCA 1
18240 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18241 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18242 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18245 ac_check_lib_save_LIBS=$LIBS
18247 cat >conftest.$ac_ext <<_ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18254 /* Override any GCC internal prototype to avoid an error.
18255 Use char because int might match the return type of a GCC
18256 builtin and then its argument prototype would still apply. */
18264 return __chkstk ();
18269 rm -f conftest.$ac_objext conftest$ac_exeext
18270 if { (ac_try="$ac_link"
18271 case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_link") 2>conftest.er1
18278 grep -v '^ *+' conftest.er1 >conftest.err
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18284 { (case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_try") 2>&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest$ac_exeext'
18294 { (case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_try") 2>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18303 ac_cv_lib_gcc___chkstk=yes
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 ac_cv_lib_gcc___chkstk=no
18311 rm -f core conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
18313 LIBS=$ac_check_lib_save_LIBS
18315 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18316 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18317 if test $ac_cv_lib_gcc___chkstk = yes; then
18319 cat >>confdefs.h <<\_ACEOF
18320 #define HAVE___CHKSTK 1
18325 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18326 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18327 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 ac_check_lib_save_LIBS=$LIBS
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18339 /* Override any GCC internal prototype to avoid an error.
18340 Use char because int might match the return type of a GCC
18341 builtin and then its argument prototype would still apply. */
18349 return ___chkstk ();
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (ac_try="$ac_link"
18356 case "(($ac_try" in
18357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361 (eval "$ac_link") 2>conftest.er1
18363 grep -v '^ *+' conftest.er1 >conftest.err
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
18368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18369 { (case "(($ac_try" in
18370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18371 *) ac_try_echo=$ac_try;;
18373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18374 (eval "$ac_try") 2>&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; } &&
18378 { ac_try='test -s conftest$ac_exeext'
18379 { (case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_try") 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_cv_lib_gcc____chkstk=yes
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ac_cv_lib_gcc____chkstk=no
18396 rm -f core conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
18398 LIBS=$ac_check_lib_save_LIBS
18400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18401 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18402 if test $ac_cv_lib_gcc____chkstk = yes; then
18404 cat >>confdefs.h <<\_ACEOF
18405 #define HAVE____CHKSTK 1
18411 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18412 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18413 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 ac_check_lib_save_LIBS=$LIBS
18418 cat >conftest.$ac_ext <<_ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18425 /* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18435 return __ashldi3 ();
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18449 grep -v '^ *+' conftest.er1 >conftest.err
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 ac_cv_lib_gcc___ashldi3=yes
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_cv_lib_gcc___ashldi3=no
18482 rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18486 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18487 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18488 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE___ASHLDI3 1
18496 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18497 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18498 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 ac_check_lib_save_LIBS=$LIBS
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18510 /* Override any GCC internal prototype to avoid an error.
18511 Use char because int might match the return type of a GCC
18512 builtin and then its argument prototype would still apply. */
18520 return __ashrdi3 ();
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_link") 2>conftest.er1
18534 grep -v '^ *+' conftest.er1 >conftest.err
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18540 { (case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_try") 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest$ac_exeext'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 ac_cv_lib_gcc___ashrdi3=yes
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18564 ac_cv_lib_gcc___ashrdi3=no
18567 rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18571 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18572 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18573 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18575 cat >>confdefs.h <<\_ACEOF
18576 #define HAVE___ASHRDI3 1
18581 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18582 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18583 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 ac_check_lib_save_LIBS=$LIBS
18588 cat >conftest.$ac_ext <<_ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18595 /* Override any GCC internal prototype to avoid an error.
18596 Use char because int might match the return type of a GCC
18597 builtin and then its argument prototype would still apply. */
18605 return __divdi3 ();
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
18619 grep -v '^ *+' conftest.er1 >conftest.err
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest$ac_exeext'
18635 { (case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_try") 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18644 ac_cv_lib_gcc___divdi3=yes
18646 echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ac_cv_lib_gcc___divdi3=no
18652 rm -f core conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
18654 LIBS=$ac_check_lib_save_LIBS
18656 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18657 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18658 if test $ac_cv_lib_gcc___divdi3 = yes; then
18660 cat >>confdefs.h <<\_ACEOF
18661 #define HAVE___DIVDI3 1
18666 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18667 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18668 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 ac_check_lib_save_LIBS=$LIBS
18673 cat >conftest.$ac_ext <<_ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18680 /* Override any GCC internal prototype to avoid an error.
18681 Use char because int might match the return type of a GCC
18682 builtin and then its argument prototype would still apply. */
18690 return __fixdfdi ();
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (ac_try="$ac_link"
18697 case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_link") 2>conftest.er1
18704 grep -v '^ *+' conftest.er1 >conftest.err
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18710 { (case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_try") 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest$ac_exeext'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_lib_gcc___fixdfdi=yes
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 ac_cv_lib_gcc___fixdfdi=no
18737 rm -f core conftest.err conftest.$ac_objext \
18738 conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18741 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18742 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18743 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18745 cat >>confdefs.h <<\_ACEOF
18746 #define HAVE___FIXDFDI 1
18751 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18752 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18753 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 ac_check_lib_save_LIBS=$LIBS
18758 cat >conftest.$ac_ext <<_ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18765 /* Override any GCC internal prototype to avoid an error.
18766 Use char because int might match the return type of a GCC
18767 builtin and then its argument prototype would still apply. */
18775 return __fixsfdi ();
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_link") 2>conftest.er1
18789 grep -v '^ *+' conftest.er1 >conftest.err
18791 cat conftest.err >&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
18794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest$ac_exeext'
18805 { (case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_try") 2>&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_cv_lib_gcc___fixsfdi=yes
18816 echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18819 ac_cv_lib_gcc___fixsfdi=no
18822 rm -f core conftest.err conftest.$ac_objext \
18823 conftest$ac_exeext conftest.$ac_ext
18824 LIBS=$ac_check_lib_save_LIBS
18826 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18827 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18828 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18830 cat >>confdefs.h <<\_ACEOF
18831 #define HAVE___FIXSFDI 1
18836 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18837 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18838 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 ac_check_lib_save_LIBS=$LIBS
18843 cat >conftest.$ac_ext <<_ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18850 /* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18856 char __floatdidf ();
18860 return __floatdidf ();
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (ac_try="$ac_link"
18867 case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_link") 2>conftest.er1
18874 grep -v '^ *+' conftest.er1 >conftest.err
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
18879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18880 { (case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_try") 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; } &&
18889 { ac_try='test -s conftest$ac_exeext'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_cv_lib_gcc___floatdidf=yes
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18904 ac_cv_lib_gcc___floatdidf=no
18907 rm -f core conftest.err conftest.$ac_objext \
18908 conftest$ac_exeext conftest.$ac_ext
18909 LIBS=$ac_check_lib_save_LIBS
18911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18912 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18913 if test $ac_cv_lib_gcc___floatdidf = yes; then
18915 cat >>confdefs.h <<\_ACEOF
18916 #define HAVE___FLOATDIDF 1
18921 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18922 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18923 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 ac_check_lib_save_LIBS=$LIBS
18928 cat >conftest.$ac_ext <<_ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18935 /* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18945 return __lshrdi3 ();
18950 rm -f conftest.$ac_objext conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18965 { (case "(($ac_try" in
18966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967 *) ac_try_echo=$ac_try;;
18969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970 (eval "$ac_try") 2>&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; } &&
18974 { ac_try='test -s conftest$ac_exeext'
18975 { (case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_try") 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_cv_lib_gcc___lshrdi3=yes
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18989 ac_cv_lib_gcc___lshrdi3=no
18992 rm -f core conftest.err conftest.$ac_objext \
18993 conftest$ac_exeext conftest.$ac_ext
18994 LIBS=$ac_check_lib_save_LIBS
18996 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18997 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18998 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE___LSHRDI3 1
19006 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19007 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19008 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19011 ac_check_lib_save_LIBS=$LIBS
19013 cat >conftest.$ac_ext <<_ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19020 /* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19030 return __moddi3 ();
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19044 grep -v '^ *+' conftest.er1 >conftest.err
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } &&
19049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19050 { (case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_try") 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest$ac_exeext'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 ac_cv_lib_gcc___moddi3=yes
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_cv_lib_gcc___moddi3=no
19077 rm -f core conftest.err conftest.$ac_objext \
19078 conftest$ac_exeext conftest.$ac_ext
19079 LIBS=$ac_check_lib_save_LIBS
19081 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19082 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19083 if test $ac_cv_lib_gcc___moddi3 = yes; then
19085 cat >>confdefs.h <<\_ACEOF
19086 #define HAVE___MODDI3 1
19091 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19092 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19093 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 ac_check_lib_save_LIBS=$LIBS
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19105 /* Override any GCC internal prototype to avoid an error.
19106 Use char because int might match the return type of a GCC
19107 builtin and then its argument prototype would still apply. */
19115 return __udivdi3 ();
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_link") 2>conftest.er1
19129 grep -v '^ *+' conftest.er1 >conftest.err
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19135 { (case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_try") 2>&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try='test -s conftest$ac_exeext'
19145 { (case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_try") 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_cv_lib_gcc___udivdi3=yes
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 ac_cv_lib_gcc___udivdi3=no
19162 rm -f core conftest.err conftest.$ac_objext \
19163 conftest$ac_exeext conftest.$ac_ext
19164 LIBS=$ac_check_lib_save_LIBS
19166 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19167 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19168 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE___UDIVDI3 1
19176 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19177 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19178 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19181 ac_check_lib_save_LIBS=$LIBS
19183 cat >conftest.$ac_ext <<_ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h. */
19190 /* Override any GCC internal prototype to avoid an error.
19191 Use char because int might match the return type of a GCC
19192 builtin and then its argument prototype would still apply. */
19200 return __umoddi3 ();
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (ac_try="$ac_link"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_link") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } &&
19219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19220 { (case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_try") 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest$ac_exeext'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_lib_gcc___umoddi3=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 ac_cv_lib_gcc___umoddi3=no
19247 rm -f core conftest.err conftest.$ac_objext \
19248 conftest$ac_exeext conftest.$ac_ext
19249 LIBS=$ac_check_lib_save_LIBS
19251 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19252 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19253 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19255 cat >>confdefs.h <<\_ACEOF
19256 #define HAVE___UMODDI3 1
19262 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19263 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19264 if test "${ac_cv_lib_gcc___main+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 ac_check_lib_save_LIBS=$LIBS
19269 cat >conftest.$ac_ext <<_ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19276 /* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (ac_try="$ac_link"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_link") 2>conftest.er1
19300 grep -v '^ *+' conftest.er1 >conftest.err
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19306 { (case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_try") 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest$ac_exeext'
19316 { (case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_try") 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_cv_lib_gcc___main=yes
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 ac_cv_lib_gcc___main=no
19333 rm -f core conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 LIBS=$ac_check_lib_save_LIBS
19337 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19338 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19339 if test $ac_cv_lib_gcc___main = yes; then
19341 cat >>confdefs.h <<\_ACEOF
19342 #define HAVE___MAIN 1
19347 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19348 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19349 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 ac_check_lib_save_LIBS=$LIBS
19354 cat >conftest.$ac_ext <<_ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h. */
19361 /* Override any GCC internal prototype to avoid an error.
19362 Use char because int might match the return type of a GCC
19363 builtin and then its argument prototype would still apply. */
19371 return __cmpdi2 ();
19376 rm -f conftest.$ac_objext conftest$ac_exeext
19377 if { (ac_try="$ac_link"
19378 case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_link") 2>conftest.er1
19385 grep -v '^ *+' conftest.er1 >conftest.err
19387 cat conftest.err >&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } &&
19390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19391 { (case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_try") 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; } &&
19400 { ac_try='test -s conftest$ac_exeext'
19401 { (case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_try") 2>&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19410 ac_cv_lib_gcc___cmpdi2=yes
19412 echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19415 ac_cv_lib_gcc___cmpdi2=no
19418 rm -f core conftest.err conftest.$ac_objext \
19419 conftest$ac_exeext conftest.$ac_ext
19420 LIBS=$ac_check_lib_save_LIBS
19422 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19423 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19424 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19426 cat >>confdefs.h <<\_ACEOF
19427 #define HAVE___CMPDI2 1
19434 if test "$llvm_cv_os_type" = "MingW" ; then
19435 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19436 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19437 cat >conftest.$ac_ext <<_ACEOF
19438 #include <windows.h>
19439 #include <imagehlp.h>
19440 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19441 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19443 rm -f conftest.$ac_objext
19444 if { (ac_try="$ac_compile"
19445 case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_compile") 2>conftest.er1
19452 grep -v '^ *+' conftest.er1 >conftest.err
19454 cat conftest.err >&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
19457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19458 { (case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_try") 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; } &&
19467 { ac_try='test -s conftest.$ac_objext'
19468 { (case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473 (eval "$ac_try") 2>&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19478 { echo "$as_me:$LINENO: result: yes" >&5
19479 echo "${ECHO_T}yes" >&6; }
19480 llvm_cv_win32_elmcb_pcstr="PCSTR"
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19487 { echo "$as_me:$LINENO: result: no" >&5
19488 echo "${ECHO_T}no" >&6; }
19489 llvm_cv_win32_elmcb_pcstr="PSTR"
19493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495 cat >>confdefs.h <<_ACEOF
19496 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19502 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19503 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19504 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 ac_cpp='$CXXCPP $CPPFLAGS'
19509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19513 cat >conftest.$ac_ext <<_ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19537 grep -v '^ *+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19543 { (case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_try") 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_try") 2>&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 ac_cv_func_isnan_in_math_h=yes
19564 echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 ac_cv_func_isnan_in_math_h=no
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572 ac_cpp='$CPP $CPPFLAGS'
19573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19578 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19579 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19582 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE_ISNAN_IN_MATH_H 1
19590 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19591 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19592 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 ac_cpp='$CXXCPP $CPPFLAGS'
19597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_cv_func_isnan_in_cmath=yes
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 ac_cv_func_isnan_in_cmath=no
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19666 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19667 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19669 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_ISNAN_IN_CMATH 1
19677 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19678 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19679 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 ac_cpp='$CXXCPP $CPPFLAGS'
19684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19698 float f; std::isnan(f);
19703 rm -f conftest.$ac_objext
19704 if { (ac_try="$ac_compile"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_compile") 2>conftest.er1
19712 grep -v '^ *+' conftest.er1 >conftest.err
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19718 { (case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_try") 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; } &&
19727 { ac_try='test -s conftest.$ac_objext'
19728 { (case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_try") 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_func_std_isnan_in_cmath=yes
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 ac_cv_func_std_isnan_in_cmath=no
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 ac_cpp='$CPP $CPPFLAGS'
19748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19753 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19754 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19756 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE_STD_ISNAN_IN_CMATH 1
19765 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19766 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19767 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 ac_cpp='$CXXCPP $CPPFLAGS'
19772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19776 cat >conftest.$ac_ext <<_ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19791 rm -f conftest.$ac_objext
19792 if { (ac_try="$ac_compile"
19793 case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_compile") 2>conftest.er1
19800 grep -v '^ *+' conftest.er1 >conftest.err
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
19805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19806 { (case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_try") 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
19816 { (case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_try") 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_cv_func_isinf_in_math_h=yes
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ac_cv_func_isinf_in_math_h=no
19833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19835 ac_cpp='$CPP $CPPFLAGS'
19836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19841 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19842 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19844 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19846 cat >>confdefs.h <<\_ACEOF
19847 #define HAVE_ISINF_IN_MATH_H 1
19852 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19853 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19854 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 ac_cpp='$CXXCPP $CPPFLAGS'
19859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19863 cat >conftest.$ac_ext <<_ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19878 rm -f conftest.$ac_objext
19879 if { (ac_try="$ac_compile"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_compile") 2>conftest.er1
19887 grep -v '^ *+' conftest.er1 >conftest.err
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19893 { (case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_try") 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; } &&
19902 { ac_try='test -s conftest.$ac_objext'
19903 { (case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_try") 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; }; then
19912 ac_cv_func_isinf_in_cmath=yes
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_cv_func_isinf_in_cmath=no
19920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19922 ac_cpp='$CPP $CPPFLAGS'
19923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19928 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19929 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19931 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19933 cat >>confdefs.h <<\_ACEOF
19934 #define HAVE_ISINF_IN_CMATH 1
19939 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19940 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19941 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 ac_cpp='$CXXCPP $CPPFLAGS'
19946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19950 cat >conftest.$ac_ext <<_ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19960 float f; std::isinf(f);
19965 rm -f conftest.$ac_objext
19966 if { (ac_try="$ac_compile"
19967 case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972 (eval "$ac_compile") 2>conftest.er1
19974 grep -v '^ *+' conftest.er1 >conftest.err
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
19979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19980 { (case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_try") 2>&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest.$ac_objext'
19990 { (case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_try") 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 ac_cv_func_std_isinf_in_cmath=yes
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_func_std_isinf_in_cmath=no
20007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20009 ac_cpp='$CPP $CPPFLAGS'
20010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20015 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20016 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20018 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20020 cat >>confdefs.h <<\_ACEOF
20021 #define HAVE_STD_ISINF_IN_CMATH 1
20026 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20027 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20028 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 ac_cpp='$CXXCPP $CPPFLAGS'
20033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20037 cat >conftest.$ac_ext <<_ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20043 #include <ieeefp.h>
20047 float f; finite(f);
20052 rm -f conftest.$ac_objext
20053 if { (ac_try="$ac_compile"
20054 case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_compile") 2>conftest.er1
20061 grep -v '^ *+' conftest.er1 >conftest.err
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
20066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20067 { (case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_try") 2>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest.$ac_objext'
20077 { (case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_try") 2>&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; }; then
20086 ac_cv_func_finite_in_ieeefp_h=yes
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20091 ac_cv_func_finite_in_ieeefp_h=no
20094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20096 ac_cpp='$CPP $CPPFLAGS'
20097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20102 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20103 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20105 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20107 cat >>confdefs.h <<\_ACEOF
20108 #define HAVE_FINITE_IN_IEEEFP_H 1
20115 if test "$llvm_cv_platform_type" = "Unix" ; then
20118 for ac_header in stdlib.h unistd.h
20120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 ac_res=`eval echo '${'$as_ac_Header'}'`
20128 { echo "$as_me:$LINENO: result: $ac_res" >&5
20129 echo "${ECHO_T}$ac_res" >&6; }
20131 # Is the header compilable?
20132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20140 $ac_includes_default
20141 #include <$ac_header>
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_compile") 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20158 { (case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_try") 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; } &&
20167 { ac_try='test -s conftest.$ac_objext'
20168 { (case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_try") 2>&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; }; then
20177 ac_header_compiler=yes
20179 echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20182 ac_header_compiler=no
20185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20187 echo "${ECHO_T}$ac_header_compiler" >&6; }
20189 # Is the header present?
20190 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 #include <$ac_header>
20200 if { (ac_try="$ac_cpp conftest.$ac_ext"
20201 case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20208 grep -v '^ *+' conftest.er1 >conftest.err
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } >/dev/null; then
20213 if test -s conftest.err; then
20214 ac_cpp_err=$ac_c_preproc_warn_flag
20215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20222 if test -z "$ac_cpp_err"; then
20223 ac_header_preproc=yes
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_header_preproc=no
20231 rm -f conftest.err conftest.$ac_ext
20232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20233 echo "${ECHO_T}$ac_header_preproc" >&6; }
20235 # So? What about this header?
20236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20242 ac_header_preproc=yes
20245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20258 ## ------------------------------------ ##
20259 ## Report this to http://llvm.org/bugs/ ##
20260 ## ------------------------------------ ##
20262 ) | sed "s/^/$as_me: WARNING: /" >&2
20265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 eval "$as_ac_Header=\$ac_header_preproc"
20272 ac_res=`eval echo '${'$as_ac_Header'}'`
20273 { echo "$as_me:$LINENO: result: $ac_res" >&5
20274 echo "${ECHO_T}$ac_res" >&6; }
20277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20278 cat >>confdefs.h <<_ACEOF
20279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20287 for ac_func in getpagesize
20289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20303 #define $ac_func innocuous_$ac_func
20305 /* System header to define __stub macros and hopefully few prototypes,
20306 which can conflict with char $ac_func (); below.
20307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20308 <limits.h> exists even on freestanding compilers. */
20311 # include <limits.h>
20313 # include <assert.h>
20318 /* Override any GCC internal prototype to avoid an error.
20319 Use char because int might match the return type of a GCC
20320 builtin and then its argument prototype would still apply. */
20325 /* The GNU C library defines this for functions which it implements
20326 to always fail with ENOSYS. Some functions are actually named
20327 something starting with __ and the normal name is an alias. */
20328 #if defined __stub_$ac_func || defined __stub___$ac_func
20335 return $ac_func ();
20340 rm -f conftest.$ac_objext conftest$ac_exeext
20341 if { (ac_try="$ac_link"
20342 case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347 (eval "$ac_link") 2>conftest.er1
20349 grep -v '^ *+' conftest.er1 >conftest.err
20351 cat conftest.err >&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
20354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20355 { (case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360 (eval "$ac_try") 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest$ac_exeext'
20365 { (case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_try") 2>&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 eval "$as_ac_var=yes"
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 eval "$as_ac_var=no"
20382 rm -f core conftest.err conftest.$ac_objext \
20383 conftest$ac_exeext conftest.$ac_ext
20385 ac_res=`eval echo '${'$as_ac_var'}'`
20386 { echo "$as_me:$LINENO: result: $ac_res" >&5
20387 echo "${ECHO_T}$ac_res" >&6; }
20388 if test `eval echo '${'$as_ac_var'}'` = yes; then
20389 cat >>confdefs.h <<_ACEOF
20390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20396 { echo "$as_me:$LINENO: checking for working mmap" >&5
20397 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20398 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 if test "$cross_compiling" = yes; then
20402 ac_cv_func_mmap_fixed_mapped=no
20404 cat >conftest.$ac_ext <<_ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 $ac_includes_default
20411 /* malloc might have been renamed as rpl_malloc. */
20414 /* Thanks to Mike Haertel and Jim Avera for this test.
20415 Here is a matrix of mmap possibilities:
20416 mmap private not fixed
20417 mmap private fixed at somewhere currently unmapped
20418 mmap private fixed at somewhere already mapped
20419 mmap shared not fixed
20420 mmap shared fixed at somewhere currently unmapped
20421 mmap shared fixed at somewhere already mapped
20422 For private mappings, we should verify that changes cannot be read()
20423 back from the file, nor mmap's back from the file at a different
20424 address. (There have been systems where private was not correctly
20425 implemented like the infamous i386 svr4.0, and systems where the
20426 VM page cache was not coherent with the file system buffer cache
20427 like early versions of FreeBSD and possibly contemporary NetBSD.)
20428 For shared mappings, we should conversely verify that changes get
20429 propagated back to all the places they're supposed to be.
20431 Grep wants private fixed already mapped.
20432 The main things grep needs to know about mmap are:
20433 * does it exist and is it safe to write into the mmap'd area
20434 * how to use it (BSD variants) */
20437 #include <sys/mman.h>
20439 #if !STDC_HEADERS && !HAVE_STDLIB_H
20443 /* This mess was copied from the GNU getpagesize.h. */
20444 #if !HAVE_GETPAGESIZE
20445 /* Assume that all systems that can run configure have sys/param.h. */
20446 # if !HAVE_SYS_PARAM_H
20447 # define HAVE_SYS_PARAM_H 1
20450 # ifdef _SC_PAGESIZE
20451 # define getpagesize() sysconf(_SC_PAGESIZE)
20452 # else /* no _SC_PAGESIZE */
20453 # if HAVE_SYS_PARAM_H
20454 # include <sys/param.h>
20455 # ifdef EXEC_PAGESIZE
20456 # define getpagesize() EXEC_PAGESIZE
20457 # else /* no EXEC_PAGESIZE */
20459 # define getpagesize() NBPG * CLSIZE
20462 # endif /* no CLSIZE */
20463 # else /* no NBPG */
20465 # define getpagesize() NBPC
20466 # else /* no NBPC */
20468 # define getpagesize() PAGESIZE
20469 # endif /* PAGESIZE */
20470 # endif /* no NBPC */
20471 # endif /* no NBPG */
20472 # endif /* no EXEC_PAGESIZE */
20473 # else /* no HAVE_SYS_PARAM_H */
20474 # define getpagesize() 8192 /* punt totally */
20475 # endif /* no HAVE_SYS_PARAM_H */
20476 # endif /* no _SC_PAGESIZE */
20478 #endif /* no HAVE_GETPAGESIZE */
20483 char *data, *data2, *data3;
20487 pagesize = getpagesize ();
20489 /* First, make a file with some known garbage in it. */
20490 data = (char *) malloc (pagesize);
20493 for (i = 0; i < pagesize; ++i)
20494 *(data + i) = rand ();
20496 fd = creat ("conftest.mmap", 0600);
20499 if (write (fd, data, pagesize) != pagesize)
20503 /* Next, try to mmap the file at a fixed address which already has
20504 something else allocated at it. If we can, also make sure that
20505 we see the same garbage. */
20506 fd = open ("conftest.mmap", O_RDWR);
20509 data2 = (char *) malloc (2 * pagesize);
20512 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20513 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20514 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20516 for (i = 0; i < pagesize; ++i)
20517 if (*(data + i) != *(data2 + i))
20520 /* Finally, make sure that changes to the mapped area do not
20521 percolate back to the file as seen by read(). (This is a bug on
20522 some variants of i386 svr4.0.) */
20523 for (i = 0; i < pagesize; ++i)
20524 *(data2 + i) = *(data2 + i) + 1;
20525 data3 = (char *) malloc (pagesize);
20528 if (read (fd, data3, pagesize) != pagesize)
20530 for (i = 0; i < pagesize; ++i)
20531 if (*(data + i) != *(data3 + i))
20537 rm -f conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_link") 2>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20548 { (case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_try") 2>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20557 ac_cv_func_mmap_fixed_mapped=yes
20559 echo "$as_me: program exited with status $ac_status" >&5
20560 echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20563 ( exit $ac_status )
20564 ac_cv_func_mmap_fixed_mapped=no
20566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20571 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20572 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20573 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20575 cat >>confdefs.h <<\_ACEOF
20576 #define HAVE_MMAP 1
20580 rm -f conftest.mmap
20582 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20583 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20584 if test "${ac_cv_func_mmap_file+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20588 ac_cpp='$CPP $CPPFLAGS'
20589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20593 if test "$cross_compiling" = yes; then
20594 ac_cv_func_mmap_file=no
20596 cat >conftest.$ac_ext <<_ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20604 #include <sys/types.h>
20605 #include <sys/mman.h>
20613 fd = creat ("foo",0777);
20614 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20616 return (fd != (int) MAP_FAILED);
20621 rm -f conftest$ac_exeext
20622 if { (ac_try="$ac_link"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_link") 2>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20632 { (case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_try") 2>&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 ac_cv_func_mmap_file=yes
20643 echo "$as_me: program exited with status $ac_status" >&5
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 ( exit $ac_status )
20648 ac_cv_func_mmap_file=no
20650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20655 ac_cpp='$CPP $CPPFLAGS'
20656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20662 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20663 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20664 if test "$ac_cv_func_mmap_file" = yes; then
20666 cat >>confdefs.h <<\_ACEOF
20667 #define HAVE_MMAP_FILE
20674 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20675 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20676 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 if test "$llvm_cv_os_type" = "Interix" ; then
20680 ac_cv_need_dev_zero_for_mmap=yes
20682 ac_cv_need_dev_zero_for_mmap=no
20686 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20687 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20688 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20690 cat >>confdefs.h <<\_ACEOF
20691 #define NEED_DEV_ZERO_FOR_MMAP 1
20696 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20698 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20699 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20701 if test "$ac_cv_func_mmap_file" = "no"
20703 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20704 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20708 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20709 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20711 ac_cpp='$CXXCPP $CPPFLAGS'
20712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20716 cat >conftest.$ac_ext <<_ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20723 volatile unsigned long val = 1;
20724 __sync_synchronize();
20725 __sync_val_compare_and_swap(&val, 1, 0);
20726 __sync_add_and_fetch(&val, 1);
20727 __sync_sub_and_fetch(&val, 1);
20732 rm -f conftest.$ac_objext conftest$ac_exeext
20733 if { (ac_try="$ac_link"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_link") 2>conftest.er1
20741 grep -v '^ *+' conftest.er1 >conftest.err
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20747 { (case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_try") 2>&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; } &&
20756 { ac_try='test -s conftest$ac_exeext'
20757 { (case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_try") 2>&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20767 ac_cpp='$CPP $CPPFLAGS'
20768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20772 { echo "$as_me:$LINENO: result: yes" >&5
20773 echo "${ECHO_T}yes" >&6; }
20775 cat >>confdefs.h <<\_ACEOF
20776 #define LLVM_HAS_ATOMICS 1
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 { echo "$as_me:$LINENO: result: no" >&5
20784 echo "${ECHO_T}no" >&6; }
20786 cat >>confdefs.h <<\_ACEOF
20787 #define LLVM_HAS_ATOMICS 0
20790 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20791 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20794 rm -f core conftest.err conftest.$ac_objext \
20795 conftest$ac_exeext conftest.$ac_ext
20798 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20799 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20800 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20801 if test "${llvm_cv_linux_mixed+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 ac_cpp='$CPP $CPPFLAGS'
20806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20810 cat >conftest.$ac_ext <<_ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20817 error: Not x86-64 even if uname says so!
20828 rm -f conftest.$ac_objext
20829 if { (ac_try="$ac_compile"
20830 case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_compile") 2>conftest.er1
20837 grep -v '^ *+' conftest.er1 >conftest.err
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
20842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20843 { (case "(($ac_try" in
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845 *) ac_try_echo=$ac_try;;
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848 (eval "$ac_try") 2>&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; } &&
20852 { ac_try='test -s conftest.$ac_objext'
20853 { (case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858 (eval "$ac_try") 2>&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; }; then
20862 llvm_cv_linux_mixed=no
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20867 llvm_cv_linux_mixed=yes
20870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872 ac_cpp='$CPP $CPPFLAGS'
20873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20879 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20880 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20882 if test "$llvm_cv_linux_mixed" = "yes"; then
20883 llvm_cv_target_arch="x86"
20889 for ac_func in __dso_handle
20891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20895 echo $ECHO_N "(cached) $ECHO_C" >&6
20897 cat >conftest.$ac_ext <<_ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20905 #define $ac_func innocuous_$ac_func
20907 /* System header to define __stub macros and hopefully few prototypes,
20908 which can conflict with char $ac_func (); below.
20909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20910 <limits.h> exists even on freestanding compilers. */
20913 # include <limits.h>
20915 # include <assert.h>
20920 /* Override any GCC internal prototype to avoid an error.
20921 Use char because int might match the return type of a GCC
20922 builtin and then its argument prototype would still apply. */
20927 /* The GNU C library defines this for functions which it implements
20928 to always fail with ENOSYS. Some functions are actually named
20929 something starting with __ and the normal name is an alias. */
20930 #if defined __stub_$ac_func || defined __stub___$ac_func
20937 return $ac_func ();
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (ac_try="$ac_link"
20944 case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_link") 2>conftest.er1
20951 grep -v '^ *+' conftest.er1 >conftest.err
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } &&
20956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20957 { (case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_try") 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; } &&
20966 { ac_try='test -s conftest$ac_exeext'
20967 { (case "(($ac_try" in
20968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969 *) ac_try_echo=$ac_try;;
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972 (eval "$ac_try") 2>&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; }; then
20976 eval "$as_ac_var=yes"
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20981 eval "$as_ac_var=no"
20984 rm -f core conftest.err conftest.$ac_objext \
20985 conftest$ac_exeext conftest.$ac_ext
20987 ac_res=`eval echo '${'$as_ac_var'}'`
20988 { echo "$as_me:$LINENO: result: $ac_res" >&5
20989 echo "${ECHO_T}$ac_res" >&6; }
20990 if test `eval echo '${'$as_ac_var'}'` = yes; then
20991 cat >>confdefs.h <<_ACEOF
20992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20999 SHLIBEXT=$libltdl_cv_shlibext
21002 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21005 if test "${prefix}" = "NONE" ; then
21006 prefix="/usr/local"
21008 eval LLVM_PREFIX="${prefix}";
21009 eval LLVM_BINDIR="${prefix}/bin";
21010 eval LLVM_LIBDIR="${prefix}/lib";
21011 eval LLVM_DATADIR="${prefix}/share/llvm";
21012 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21013 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21014 eval LLVM_INCLUDEDIR="${prefix}/include";
21015 eval LLVM_INFODIR="${prefix}/info";
21016 eval LLVM_MANDIR="${prefix}/man";
21017 LLVM_CONFIGTIME=`date`
21029 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21030 LLVM_CONFIGTIME="(timestamp not enabled)"
21034 cat >>confdefs.h <<_ACEOF
21035 #define LLVM_PREFIX "$LLVM_PREFIX"
21039 cat >>confdefs.h <<_ACEOF
21040 #define LLVM_BINDIR "$LLVM_BINDIR"
21044 cat >>confdefs.h <<_ACEOF
21045 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21049 cat >>confdefs.h <<_ACEOF
21050 #define LLVM_DATADIR "$LLVM_DATADIR"
21054 cat >>confdefs.h <<_ACEOF
21055 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21059 cat >>confdefs.h <<_ACEOF
21060 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21064 cat >>confdefs.h <<_ACEOF
21065 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21069 cat >>confdefs.h <<_ACEOF
21070 #define LLVM_INFODIR "$LLVM_INFODIR"
21074 cat >>confdefs.h <<_ACEOF
21075 #define LLVM_MANDIR "$LLVM_MANDIR"
21079 cat >>confdefs.h <<_ACEOF
21080 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21084 cat >>confdefs.h <<_ACEOF
21085 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21089 if test "$BINDINGS_TO_BUILD" = auto ; then
21090 BINDINGS_TO_BUILD=""
21091 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21092 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21095 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21101 binding_prereqs_failed=0
21102 for a_binding in $BINDINGS_TO_BUILD ; do
21103 case "$a_binding" in
21105 if test "x$OCAMLC" = x ; then
21106 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21107 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21108 binding_prereqs_failed=1
21110 if test "x$OCAMLDEP" = x ; then
21111 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21112 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21113 binding_prereqs_failed=1
21115 if test "x$OCAMLOPT" = x ; then
21116 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21117 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21119 if test "x$with_ocaml_libdir" != xauto ; then
21120 OCAML_LIBDIR=$with_ocaml_libdir
21123 ocaml_stdlib="`"$OCAMLC" -where`"
21124 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21126 # ocaml stdlib is beneath our prefix; use stdlib
21127 OCAML_LIBDIR=$ocaml_stdlib
21130 # ocaml stdlib is outside our prefix; use libdir/ocaml
21131 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21138 if test "$binding_prereqs_failed" = 1 ; then
21139 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21140 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21141 { (exit 1); exit 1; }; }
21144 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21145 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21146 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21150 ac_cpp='$CXXCPP $CPPFLAGS'
21151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21155 oldcxxflags="$CXXFLAGS"
21156 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21172 rm -f conftest.$ac_objext
21173 if { (ac_try="$ac_compile"
21174 case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_compile") 2>conftest.er1
21181 grep -v '^ *+' conftest.er1 >conftest.err
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
21186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21187 { (case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_try") 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try='test -s conftest.$ac_objext'
21197 { (case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_try") 2>&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; }; then
21206 llvm_cv_cxx_visibility_inlines_hidden=yes
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 llvm_cv_cxx_visibility_inlines_hidden=no
21214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21215 CXXFLAGS="$oldcxxflags"
21217 ac_cpp='$CPP $CPPFLAGS'
21218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21224 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21225 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21226 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21227 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21230 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21235 if test "$llvm_cv_link_use_r" = "yes" ; then
21242 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21243 RDYNAMIC="-Wl,-export-dynamic"
21250 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21257 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21259 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21261 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21263 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21265 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21268 ac_config_files="$ac_config_files Makefile.config"
21271 ac_config_files="$ac_config_files llvm.spec"
21274 ac_config_files="$ac_config_files docs/doxygen.cfg"
21277 if test "${clang_src_root}" = ""; then
21278 clang_src_root="$srcdir/tools/clang"
21280 if test -f ${clang_src_root}/README.txt; then
21281 configh="include/clang/Config/config.h"
21282 doxy="docs/doxygen.cfg"
21283 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21285 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21289 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21292 ac_config_commands="$ac_config_commands setup"
21294 ac_config_commands="$ac_config_commands Makefile"
21297 ac_config_commands="$ac_config_commands Makefile.common"
21300 ac_config_commands="$ac_config_commands examples/Makefile"
21303 ac_config_commands="$ac_config_commands lib/Makefile"
21306 ac_config_commands="$ac_config_commands runtime/Makefile"
21309 ac_config_commands="$ac_config_commands test/Makefile"
21312 ac_config_commands="$ac_config_commands test/Makefile.tests"
21315 ac_config_commands="$ac_config_commands unittests/Makefile"
21318 ac_config_commands="$ac_config_commands tools/Makefile"
21321 ac_config_commands="$ac_config_commands utils/Makefile"
21324 ac_config_commands="$ac_config_commands projects/Makefile"
21327 ac_config_commands="$ac_config_commands bindings/Makefile"
21330 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21334 cat >confcache <<\_ACEOF
21335 # This file is a shell script that caches the results of configure
21336 # tests run on this system so they can be shared between configure
21337 # scripts and configure runs, see configure's option --config-cache.
21338 # It is not useful on other systems. If it contains results you don't
21339 # want to keep, you may remove or edit it.
21341 # config.status only pays attention to the cache file if you give it
21342 # the --recheck option to rerun configure.
21344 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21346 # following values.
21350 # The following way of writing the cache mishandles newlines in values,
21351 # but we know of no workaround that is simple, portable, and efficient.
21352 # So, we kill variables containing newlines.
21353 # Ultrix sh set writes to stderr and can't be redirected directly,
21354 # and sets the high bit in the cache file unless we assign to the vars.
21356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21357 eval ac_val=\$$ac_var
21361 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21362 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21365 _ | IFS | as_nl) ;; #(
21366 *) $as_unset $ac_var ;;
21372 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21373 *${as_nl}ac_space=\ *)
21374 # `set' does not quote correctly, so add quotes (double-quote
21375 # substitution turns \\\\ into \\, and sed turns \\ into \).
21378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21381 # `set' quotes correctly as required by POSIX, so do not add quotes.
21382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21393 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21395 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21396 if test -w "$cache_file"; then
21397 test "x$cache_file" != "x/dev/null" &&
21398 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21399 echo "$as_me: updating cache $cache_file" >&6;}
21400 cat confcache >$cache_file
21402 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21403 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21409 # Let make expand exec_prefix.
21410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21412 DEFS=-DHAVE_CONFIG_H
21416 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21417 # 1. Remove the extension, and $U if already installed.
21418 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21419 ac_i=`echo "$ac_i" | sed "$ac_script"`
21420 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21421 # will be set to the directory where LIBOBJS objects are built.
21422 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21423 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21425 LIBOBJS=$ac_libobjs
21427 LTLIBOBJS=$ac_ltlibobjs
21430 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21431 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21432 Usually this means the macro was only invoked conditionally." >&5
21433 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21434 Usually this means the macro was only invoked conditionally." >&2;}
21435 { (exit 1); exit 1; }; }
21437 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21438 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21439 Usually this means the macro was only invoked conditionally." >&5
21440 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21441 Usually this means the macro was only invoked conditionally." >&2;}
21442 { (exit 1); exit 1; }; }
21445 : ${CONFIG_STATUS=./config.status}
21446 ac_clean_files_save=$ac_clean_files
21447 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21448 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21449 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21450 cat >$CONFIG_STATUS <<_ACEOF
21452 # Generated by $as_me.
21453 # Run this file to recreate the current configuration.
21454 # Compiler output produced by configure, useful for debugging
21455 # configure, is in config.log if it exists.
21458 ac_cs_recheck=false
21460 SHELL=\${CONFIG_SHELL-$SHELL}
21463 cat >>$CONFIG_STATUS <<\_ACEOF
21464 ## --------------------- ##
21465 ## M4sh Initialization. ##
21466 ## --------------------- ##
21468 # Be Bourne compatible
21469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21472 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21473 # is contrary to our usage. Disable this feature.
21474 alias -g '${1+"$@"}'='"$@"'
21475 setopt NO_GLOB_SUBST
21477 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21479 BIN_SH=xpg4; export BIN_SH # for Tru64
21480 DUALCASE=1; export DUALCASE # for MKS sh
21484 # Avoid depending upon Character Ranges.
21485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21488 as_cr_digits='0123456789'
21489 as_cr_alnum=$as_cr_Letters$as_cr_digits
21491 # The user is always right.
21492 if test "${PATH_SEPARATOR+set}" != set; then
21493 echo "#! /bin/sh" >conf$$.sh
21494 echo "exit 0" >>conf$$.sh
21496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21504 # Support unset when possible.
21505 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21513 # We need space, tab and new line, in precisely that order. Quoting is
21514 # there to prevent editors from complaining about space-tab.
21515 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21516 # splitting by setting IFS to empty value.)
21521 # Find who we are. Look in the path if we contain no directory separator.
21523 *[\\/]* ) as_myself=$0 ;;
21524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21525 for as_dir in $PATH
21528 test -z "$as_dir" && as_dir=.
21529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21535 # We did not find ourselves, most probably we were run as `sh COMMAND'
21536 # in which case we are not to be found in the path.
21537 if test "x$as_myself" = x; then
21540 if test ! -f "$as_myself"; then
21541 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21542 { (exit 1); exit 1; }
21545 # Work around bugs in pre-3.0 UWIN ksh.
21546 for as_var in ENV MAIL MAILPATH
21547 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21555 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21556 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21557 LC_TELEPHONE LC_TIME
21559 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21560 eval $as_var=C; export $as_var
21562 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21566 # Required to use basename.
21567 if expr a : '\(a\)' >/dev/null 2>&1 &&
21568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21574 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21575 as_basename=basename
21581 # Name of the executable.
21582 as_me=`$as_basename -- "$0" ||
21583 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21584 X"$0" : 'X\(//\)$' \| \
21585 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21587 sed '/^.*\/\([^/][^/]*\)\/*$/{
21606 as_lineno_1=$LINENO
21607 as_lineno_2=$LINENO
21608 test "x$as_lineno_1" != "x$as_lineno_2" &&
21609 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21611 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21612 # uniformly replaced by the line number. The first 'sed' inserts a
21613 # line-number line after each line using $LINENO; the second 'sed'
21614 # does the real work. The second script uses 'N' to pair each
21615 # line-number line with the line containing $LINENO, and appends
21616 # trailing '-' during substitution so that $LINENO is not a special
21617 # case at line end.
21618 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21619 # scripts with optimization help from Paolo Bonzini. Blame Lee
21620 # E. McMahon (1931-1989) for sed's syntax. :-)
21632 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21635 ' >$as_me.lineno &&
21636 chmod +x "$as_me.lineno" ||
21637 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21638 { (exit 1); exit 1; }; }
21640 # Don't try to exec as it changes $[0], causing all sort of problems
21641 # (the dirname of $[0] is not the place where we might find the
21642 # original and so on. Autoconf is especially sensitive to this).
21643 . "./$as_me.lineno"
21644 # Exit status is that of the last command.
21649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21655 ECHO_C= ECHO_N= ECHO_T=
21656 case `echo -n x` in
21658 case `echo 'x\c'` in
21659 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21666 if expr a : '\(a\)' >/dev/null 2>&1 &&
21667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21673 rm -f conf$$ conf$$.exe conf$$.file
21674 if test -d conf$$.dir; then
21675 rm -f conf$$.dir/conf$$.file
21681 if ln -s conf$$.file conf$$ 2>/dev/null; then
21683 # ... but there are two gotchas:
21684 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21685 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21686 # In both cases, we have to default to `cp -p'.
21687 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21689 elif ln conf$$.file conf$$ 2>/dev/null; then
21694 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21695 rmdir conf$$.dir 2>/dev/null
21697 if mkdir -p . 2>/dev/null; then
21700 test -d ./-p && rmdir ./-p
21704 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21705 # systems may use methods other than mode bits to determine executability.
21706 cat >conf$$.file <<_ASEOF
21710 chmod +x conf$$.file
21711 if test -x conf$$.file >/dev/null 2>&1; then
21712 as_executable_p="test -x"
21718 # Sed expression to map a string onto a valid CPP name.
21719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21721 # Sed expression to map a string onto a valid variable name.
21722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21727 # Save the log message, to keep $[0] and so on meaningful, and to
21728 # report actual input values of CONFIG_FILES etc. instead of their
21729 # values after options handling.
21731 This file was extended by LLVM $as_me 3.2svn, which was
21732 generated by GNU Autoconf 2.60. Invocation command line was
21734 CONFIG_FILES = $CONFIG_FILES
21735 CONFIG_HEADERS = $CONFIG_HEADERS
21736 CONFIG_LINKS = $CONFIG_LINKS
21737 CONFIG_COMMANDS = $CONFIG_COMMANDS
21740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21745 cat >>$CONFIG_STATUS <<_ACEOF
21746 # Files that config.status was made for.
21747 config_files="$ac_config_files"
21748 config_headers="$ac_config_headers"
21749 config_commands="$ac_config_commands"
21753 cat >>$CONFIG_STATUS <<\_ACEOF
21755 \`$as_me' instantiates files from templates according to the
21756 current configuration.
21758 Usage: $0 [OPTIONS] [FILE]...
21760 -h, --help print this help, then exit
21761 -V, --version print version number, then exit
21762 -q, --quiet do not print progress messages
21763 -d, --debug don't remove temporary files
21764 --recheck update $as_me by reconfiguring in the same conditions
21765 --file=FILE[:TEMPLATE]
21766 instantiate the configuration file FILE
21767 --header=FILE[:TEMPLATE]
21768 instantiate the configuration header FILE
21770 Configuration files:
21773 Configuration headers:
21776 Configuration commands:
21779 Report bugs to <bug-autoconf@gnu.org>."
21782 cat >>$CONFIG_STATUS <<_ACEOF
21784 LLVM config.status 3.2svn
21785 configured by $0, generated by GNU Autoconf 2.60,
21786 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21788 Copyright (C) 2006 Free Software Foundation, Inc.
21789 This config.status script is free software; the Free Software Foundation
21790 gives unlimited permission to copy, distribute and modify it."
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21798 # If no file are specified by the user, then we need to provide default
21799 # value. By we need to know if files were specified by the user.
21805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21817 # Handling of the options.
21818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21820 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21821 echo "$ac_cs_version"; exit ;;
21822 --debug | --debu | --deb | --de | --d | -d )
21824 --file | --fil | --fi | --f )
21826 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21827 ac_need_defaults=false;;
21828 --header | --heade | --head | --hea )
21830 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21831 ac_need_defaults=false;;
21833 # Conflict between --help and --header
21834 { echo "$as_me: error: ambiguous option: $1
21835 Try \`$0 --help' for more information." >&2
21836 { (exit 1); exit 1; }; };;
21837 --help | --hel | -h )
21838 echo "$ac_cs_usage"; exit ;;
21839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21843 # This is an error.
21844 -*) { echo "$as_me: error: unrecognized option: $1
21845 Try \`$0 --help' for more information." >&2
21846 { (exit 1); exit 1; }; } ;;
21848 *) ac_config_targets="$ac_config_targets $1"
21849 ac_need_defaults=false ;;
21855 ac_configure_extra_args=
21857 if $ac_cs_silent; then
21859 ac_configure_extra_args="$ac_configure_extra_args --silent"
21863 cat >>$CONFIG_STATUS <<_ACEOF
21864 if \$ac_cs_recheck; then
21865 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21866 CONFIG_SHELL=$SHELL
21867 export CONFIG_SHELL
21868 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21872 cat >>$CONFIG_STATUS <<\_ACEOF
21876 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21877 ## Running $as_me. ##
21883 cat >>$CONFIG_STATUS <<_ACEOF
21887 llvm_src="${srcdir}"
21891 cat >>$CONFIG_STATUS <<\_ACEOF
21893 # Handling of arguments.
21894 for ac_config_target in $ac_config_targets
21896 case $ac_config_target in
21897 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21898 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21899 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21900 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21901 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21902 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21903 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21904 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21905 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21906 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21907 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21908 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21909 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21910 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21911 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21912 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21913 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21914 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21915 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21916 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21917 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21918 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21919 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21920 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21921 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21922 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21923 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21925 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21926 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21927 { (exit 1); exit 1; }; };;
21932 # If the user did not use the arguments to specify the items to instantiate,
21933 # then the envvar interface is used. Set only those that are not.
21934 # We use the long form for the default assignment because of an extremely
21935 # bizarre bug on SunOS 4.1.3.
21936 if $ac_need_defaults; then
21937 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21938 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21939 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21942 # Have a temporary directory for convenience. Make it in the build tree
21943 # simply because there is no reason against having it here, and in addition,
21944 # creating and moving files from /tmp can sometimes cause problems.
21945 # Hook for its removal unless debugging.
21946 # Note that there is a small window in which the directory will not be cleaned:
21947 # after its creation but before its name has been assigned to `$tmp'.
21951 trap 'exit_status=$?
21952 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21954 trap '{ (exit 1); exit 1; }' 1 2 13 15
21956 # Create a (secure) tmp directory for tmp files.
21959 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21960 test -n "$tmp" && test -d "$tmp"
21963 tmp=./conf$$-$RANDOM
21964 (umask 077 && mkdir "$tmp")
21967 echo "$me: cannot create a temporary directory in ." >&2
21968 { (exit 1); exit 1; }
21972 # Set up the sed scripts for CONFIG_FILES section.
21975 # No need to generate the scripts if there are no CONFIG_FILES.
21976 # This happens for instance when ./config.status config.h
21977 if test -n "$CONFIG_FILES"; then
21984 for ac_last_try in false false false false false :; do
21985 cat >conf$$subs.sed <<_ACEOF
21986 SHELL!$SHELL$ac_delim
21987 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21988 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21989 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21990 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21991 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21992 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21993 exec_prefix!$exec_prefix$ac_delim
21994 prefix!$prefix$ac_delim
21995 program_transform_name!$program_transform_name$ac_delim
21996 bindir!$bindir$ac_delim
21997 sbindir!$sbindir$ac_delim
21998 libexecdir!$libexecdir$ac_delim
21999 datarootdir!$datarootdir$ac_delim
22000 datadir!$datadir$ac_delim
22001 sysconfdir!$sysconfdir$ac_delim
22002 sharedstatedir!$sharedstatedir$ac_delim
22003 localstatedir!$localstatedir$ac_delim
22004 includedir!$includedir$ac_delim
22005 oldincludedir!$oldincludedir$ac_delim
22006 docdir!$docdir$ac_delim
22007 infodir!$infodir$ac_delim
22008 htmldir!$htmldir$ac_delim
22009 dvidir!$dvidir$ac_delim
22010 pdfdir!$pdfdir$ac_delim
22011 psdir!$psdir$ac_delim
22012 libdir!$libdir$ac_delim
22013 localedir!$localedir$ac_delim
22014 mandir!$mandir$ac_delim
22015 DEFS!$DEFS$ac_delim
22016 ECHO_C!$ECHO_C$ac_delim
22017 ECHO_N!$ECHO_N$ac_delim
22018 ECHO_T!$ECHO_T$ac_delim
22019 LIBS!$LIBS$ac_delim
22020 build_alias!$build_alias$ac_delim
22021 host_alias!$host_alias$ac_delim
22022 target_alias!$target_alias$ac_delim
22023 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22025 CFLAGS!$CFLAGS$ac_delim
22026 LDFLAGS!$LDFLAGS$ac_delim
22027 CPPFLAGS!$CPPFLAGS$ac_delim
22028 ac_ct_CC!$ac_ct_CC$ac_delim
22029 EXEEXT!$EXEEXT$ac_delim
22030 OBJEXT!$OBJEXT$ac_delim
22032 CXXFLAGS!$CXXFLAGS$ac_delim
22033 ac_ct_CXX!$ac_ct_CXX$ac_delim
22035 subdirs!$subdirs$ac_delim
22036 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22037 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22038 build!$build$ac_delim
22039 build_cpu!$build_cpu$ac_delim
22040 build_vendor!$build_vendor$ac_delim
22041 build_os!$build_os$ac_delim
22042 host!$host$ac_delim
22043 host_cpu!$host_cpu$ac_delim
22044 host_vendor!$host_vendor$ac_delim
22045 host_os!$host_os$ac_delim
22046 target!$target$ac_delim
22047 target_cpu!$target_cpu$ac_delim
22048 target_vendor!$target_vendor$ac_delim
22049 target_os!$target_os$ac_delim
22051 HOST_OS!$HOST_OS$ac_delim
22052 TARGET_OS!$TARGET_OS$ac_delim
22053 LINKALL!$LINKALL$ac_delim
22054 NOLINKALL!$NOLINKALL$ac_delim
22055 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22056 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22057 ARCH!$ARCH$ac_delim
22058 HOST_ARCH!$HOST_ARCH$ac_delim
22059 ENDIAN!$ENDIAN$ac_delim
22060 GREP!$GREP$ac_delim
22061 EGREP!$EGREP$ac_delim
22062 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22063 BUILD_CC!$BUILD_CC$ac_delim
22064 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22065 BUILD_CXX!$BUILD_CXX$ac_delim
22066 CVSBUILD!$CVSBUILD$ac_delim
22067 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22068 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22069 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22070 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22071 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22072 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22073 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22074 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22076 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22077 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22078 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22079 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22080 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22081 ENABLE_PIC!$ENABLE_PIC$ac_delim
22082 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22085 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22087 elif $ac_last_try; then
22088 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22089 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22090 { (exit 1); exit 1; }; }
22092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22096 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22097 if test -n "$ac_eof"; then
22098 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22099 ac_eof=`expr $ac_eof + 1`
22102 cat >>$CONFIG_STATUS <<_ACEOF
22103 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22107 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22108 s/^/s,@/; s/!/@,|#_!!_#|/
22111 s/'"$ac_delim"'$/,g/; t
22113 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22114 ' >>$CONFIG_STATUS <conf$$subs.sed
22115 rm -f conf$$subs.sed
22116 cat >>$CONFIG_STATUS <<_ACEOF
22122 for ac_last_try in false false false false false :; do
22123 cat >conf$$subs.sed <<_ACEOF
22124 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22125 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22126 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22127 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22128 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22129 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22130 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22131 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22132 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22133 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22134 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22135 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22136 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22138 ifGNUmake!$ifGNUmake$ac_delim
22139 LN_S!$LN_S$ac_delim
22142 DATE!$DATE$ac_delim
22143 FIND!$FIND$ac_delim
22144 MKDIR!$MKDIR$ac_delim
22146 RANLIB!$RANLIB$ac_delim
22151 BINPWD!$BINPWD$ac_delim
22152 GRAPHVIZ!$GRAPHVIZ$ac_delim
22155 NEATO!$NEATO$ac_delim
22156 TWOPI!$TWOPI$ac_delim
22157 CIRCO!$CIRCO$ac_delim
22159 DOTTY!$DOTTY$ac_delim
22160 XDOT_PY!$XDOT_PY$ac_delim
22161 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22162 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22163 INSTALL_DATA!$INSTALL_DATA$ac_delim
22164 BZIP2!$BZIP2$ac_delim
22166 DOXYGEN!$DOXYGEN$ac_delim
22167 GROFF!$GROFF$ac_delim
22168 GZIPBIN!$GZIPBIN$ac_delim
22169 PDFROFF!$PDFROFF$ac_delim
22170 RUNTEST!$RUNTEST$ac_delim
22171 TCLSH!$TCLSH$ac_delim
22173 OCAMLC!$OCAMLC$ac_delim
22174 OCAMLOPT!$OCAMLOPT$ac_delim
22175 OCAMLDEP!$OCAMLDEP$ac_delim
22176 OCAMLDOC!$OCAMLDOC$ac_delim
22178 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22179 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22180 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22181 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22182 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22183 LIBADD_DL!$LIBADD_DL$ac_delim
22184 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22185 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22186 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22187 USE_UDIS86!$USE_UDIS86$ac_delim
22188 USE_OPROFILE!$USE_OPROFILE$ac_delim
22189 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22190 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22191 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22192 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22193 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22194 MMAP_FILE!$MMAP_FILE$ac_delim
22195 SHLIBEXT!$SHLIBEXT$ac_delim
22196 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22197 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22198 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22199 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22200 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22201 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22202 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22203 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22204 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22205 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22206 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22207 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22208 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22209 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22210 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22211 RPATH!$RPATH$ac_delim
22212 RDYNAMIC!$RDYNAMIC$ac_delim
22213 LIBOBJS!$LIBOBJS$ac_delim
22214 LTLIBOBJS!$LTLIBOBJS$ac_delim
22217 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22219 elif $ac_last_try; then
22220 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22221 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22222 { (exit 1); exit 1; }; }
22224 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22228 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22229 if test -n "$ac_eof"; then
22230 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22231 ac_eof=`expr $ac_eof + 1`
22234 cat >>$CONFIG_STATUS <<_ACEOF
22235 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22239 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22240 s/^/s,@/; s/!/@,|#_!!_#|/
22243 s/'"$ac_delim"'$/,g/; t
22245 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22246 ' >>$CONFIG_STATUS <conf$$subs.sed
22247 rm -f conf$$subs.sed
22248 cat >>$CONFIG_STATUS <<_ACEOF
22255 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22256 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22257 # trailing colons and then remove the whole line if VPATH becomes empty
22258 # (actually we leave an empty line to preserve line numbers).
22259 if test "x$srcdir" = x.; then
22260 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22261 s/:*\$(srcdir):*/:/
22262 s/:*\${srcdir}:*/:/
22264 s/^\([^=]*=[ ]*\):*/\1/
22270 cat >>$CONFIG_STATUS <<\_ACEOF
22271 fi # test -n "$CONFIG_FILES"
22274 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22277 :[FHLC]) ac_mode=$ac_tag; continue;;
22279 case $ac_mode$ac_tag in
22281 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22282 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22283 { (exit 1); exit 1; }; };;
22284 :[FH]-) ac_tag=-:-;;
22285 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22302 -) ac_f="$tmp/stdin";;
22303 *) # Look for the file first in the build tree, then in the source tree
22304 # (if the path is not absolute). The absolute path cannot be DOS-style,
22305 # because $ac_f cannot contain `:'.
22309 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22311 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22312 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22313 { (exit 1); exit 1; }; };;
22315 ac_file_inputs="$ac_file_inputs $ac_f"
22318 # Let's still pretend it is `configure' which instantiates (i.e., don't
22319 # use $as_me), people would be surprised to read:
22320 # /* config.h. Generated by config.status. */
22321 configure_input="Generated from "`IFS=:
22322 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22323 if test x"$ac_file" != x-; then
22324 configure_input="$ac_file. $configure_input"
22325 { echo "$as_me:$LINENO: creating $ac_file" >&5
22326 echo "$as_me: creating $ac_file" >&6;}
22330 *:-:* | *:-) cat >"$tmp/stdin";;
22335 ac_dir=`$as_dirname -- "$ac_file" ||
22336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22337 X"$ac_file" : 'X\(//\)[^/]' \| \
22338 X"$ac_file" : 'X\(//\)$' \| \
22339 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22345 /^X\(\/\/\)[^/].*/{
22360 -*) as_dir=./$as_dir;;
22362 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22366 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22367 *) as_qdir=$as_dir;;
22369 as_dirs="'$as_qdir' $as_dirs"
22370 as_dir=`$as_dirname -- "$as_dir" ||
22371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22372 X"$as_dir" : 'X\(//\)[^/]' \| \
22373 X"$as_dir" : 'X\(//\)$' \| \
22374 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22380 /^X\(\/\/\)[^/].*/{
22393 test -d "$as_dir" && break
22395 test -z "$as_dirs" || eval "mkdir $as_dirs"
22396 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22397 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22398 { (exit 1); exit 1; }; }; }
22402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22405 # A ".." for each directory in $ac_dir_suffix.
22406 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22407 case $ac_top_builddir_sub in
22408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22412 ac_abs_top_builddir=$ac_pwd
22413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22414 # for backward compatibility:
22415 ac_top_builddir=$ac_top_build_prefix
22418 .) # We are building in place.
22420 ac_top_srcdir=$ac_top_builddir_sub
22421 ac_abs_top_srcdir=$ac_pwd ;;
22422 [\\/]* | ?:[\\/]* ) # Absolute name.
22423 ac_srcdir=$srcdir$ac_dir_suffix;
22424 ac_top_srcdir=$srcdir
22425 ac_abs_top_srcdir=$srcdir ;;
22426 *) # Relative name.
22427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22428 ac_top_srcdir=$ac_top_build_prefix$srcdir
22429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22442 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22446 cat >>$CONFIG_STATUS <<\_ACEOF
22447 # If the template does not know about datarootdir, expand it.
22448 # FIXME: This hack should be removed a few years after 2.60.
22449 ac_datarootdir_hack=; ac_datarootdir_seen=
22451 case `sed -n '/datarootdir/ {
22460 ' $ac_file_inputs` in
22461 *datarootdir*) ac_datarootdir_seen=yes;;
22462 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22463 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22464 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22466 cat >>$CONFIG_STATUS <<_ACEOF
22467 ac_datarootdir_hack='
22468 s&@datadir@&$datadir&g
22469 s&@docdir@&$docdir&g
22470 s&@infodir@&$infodir&g
22471 s&@localedir@&$localedir&g
22472 s&@mandir@&$mandir&g
22473 s&\\\${datarootdir}&$datarootdir&g' ;;
22477 # Neutralize VPATH when `$srcdir' = `.'.
22478 # Shell code in configure.ac might set extrasub.
22479 # FIXME: do we really want to maintain this feature?
22480 cat >>$CONFIG_STATUS <<_ACEOF
22484 cat >>$CONFIG_STATUS <<\_ACEOF
22486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22487 s&@configure_input@&$configure_input&;t t
22488 s&@top_builddir@&$ac_top_builddir_sub&;t t
22489 s&@srcdir@&$ac_srcdir&;t t
22490 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22491 s&@top_srcdir@&$ac_top_srcdir&;t t
22492 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22493 s&@builddir@&$ac_builddir&;t t
22494 s&@abs_builddir@&$ac_abs_builddir&;t t
22495 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22496 s&@INSTALL@&$ac_INSTALL&;t t
22497 $ac_datarootdir_hack
22498 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22500 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22501 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22502 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22503 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22504 which seems to be undefined. Please make sure it is defined." >&5
22505 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22506 which seems to be undefined. Please make sure it is defined." >&2;}
22510 -) cat "$tmp/out"; rm -f "$tmp/out";;
22511 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22520 # Transform confdefs.h into a sed script `conftest.defines', that
22521 # substitutes the proper values into config.h.in to produce config.h.
22522 rm -f conftest.defines conftest.tail
22523 # First, append a space to every undef/define line, to ease matching.
22524 echo 's/$/ /' >conftest.defines
22525 # Then, protect against being on the right side of a sed subst, or in
22526 # an unquoted here document, in config.status. If some macros were
22527 # called several times there might be several #defines for the same
22528 # symbol, which is useless. But do not sort them, since the last
22529 # AC_DEFINE must be honored.
22530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22531 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22532 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22533 # PARAMS is the parameter list in the macro definition--in most cases, it's
22534 # just an empty string.
22535 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22536 ac_dB='\\)[ (].*,\\1define\\2'
22544 s/^[ ]*#[ ]*define[ ][ ]*//
22549 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22550 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22551 ' >>conftest.defines
22553 # Remove the space that was appended to ease matching.
22554 # Then replace #undef with comments. This is necessary, for
22555 # example, in the case of _POSIX_SOURCE, which is predefined and required
22556 # on some systems where configure will not decide to define it.
22557 # (The regexp can be short, since the line contains either #define or #undef.)
22559 s,^[ #]*u.*,/* & */,' >>conftest.defines
22561 # Break up conftest.defines:
22562 ac_max_sed_lines=50
22564 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22565 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22566 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22568 ac_in='$ac_file_inputs'
22569 ac_out='"$tmp/out1"'
22570 ac_nxt='"$tmp/out2"'
22574 # Write a here document:
22575 cat >>$CONFIG_STATUS <<_ACEOF
22576 # First, check the format of the line:
22577 cat >"\$tmp/defines.sed" <<\\CEOF
22578 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22579 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22583 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22585 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22586 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22587 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22588 grep . conftest.tail >/dev/null || break
22589 rm -f conftest.defines
22590 mv conftest.tail conftest.defines
22592 rm -f conftest.defines conftest.tail
22594 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22595 cat >>$CONFIG_STATUS <<\_ACEOF
22596 if test x"$ac_file" != x-; then
22597 echo "/* $configure_input */" >"$tmp/config.h"
22598 cat "$ac_result" >>"$tmp/config.h"
22599 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22600 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22601 echo "$as_me: $ac_file is unchanged" >&6;}
22604 mv "$tmp/config.h" $ac_file
22607 echo "/* $configure_input */"
22613 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22614 echo "$as_me: executing $ac_file commands" >&6;}
22619 case $ac_file$ac_mode in
22620 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22621 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22622 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22623 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22624 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22625 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22626 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22627 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22628 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22629 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22630 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22631 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22632 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22633 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22634 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22635 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22636 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22637 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22638 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22640 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22642 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22643 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22644 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22651 { (exit 0); exit 0; }
22653 chmod +x $CONFIG_STATUS
22654 ac_clean_files=$ac_clean_files_save
22657 # configure is writing to config.log, and then calls config.status.
22658 # config.status does its own redirection, appending to config.log.
22659 # Unfortunately, on DOS this fails, as config.log is still kept open
22660 # by configure, so config.status won't be able to write to it; its
22661 # output is simply discarded. So we exec the FD to /dev/null,
22662 # effectively closing config.log, so it can be properly (re)opened and
22663 # appended to by config.status. When coming back to configure, we
22664 # need to make the FD available again.
22665 if test "$no_create" != yes; then
22667 ac_config_status_args=
22668 test "$silent" = yes &&
22669 ac_config_status_args="$ac_config_status_args --quiet"
22671 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22673 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22674 # would make configure fail if this is the last instruction.
22675 $ac_cs_success || { (exit 1); exit 1; }
22679 # CONFIG_SUBDIRS section.
22681 if test "$no_recursion" != yes; then
22683 # Remove --cache-file and --srcdir arguments so they do not pile up.
22684 ac_sub_configure_args=
22686 eval "set x $ac_configure_args"
22690 if test -n "$ac_prev"; then
22695 -cache-file | --cache-file | --cache-fil | --cache-fi \
22696 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22697 ac_prev=cache_file ;;
22698 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22699 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22702 --config-cache | -C)
22704 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22706 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22708 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22710 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22714 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22716 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22720 # Always prepend --prefix to ensure using the same prefix
22721 # in subdir configurations.
22722 ac_arg="--prefix=$prefix"
22724 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22726 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22729 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22731 # Do not complain, so a configure script can configure whichever
22732 # parts of a large source tree are present.
22733 test -d "$srcdir/$ac_dir" || continue
22735 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22736 echo "$as_me:$LINENO: $ac_msg" >&5
22740 -*) as_dir=./$as_dir;;
22742 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22746 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22747 *) as_qdir=$as_dir;;
22749 as_dirs="'$as_qdir' $as_dirs"
22750 as_dir=`$as_dirname -- "$as_dir" ||
22751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22752 X"$as_dir" : 'X\(//\)[^/]' \| \
22753 X"$as_dir" : 'X\(//\)$' \| \
22754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22760 /^X\(\/\/\)[^/].*/{
22773 test -d "$as_dir" && break
22775 test -z "$as_dirs" || eval "mkdir $as_dirs"
22776 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22777 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22778 { (exit 1); exit 1; }; }; }
22782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22784 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22785 # A ".." for each directory in $ac_dir_suffix.
22786 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22787 case $ac_top_builddir_sub in
22788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22792 ac_abs_top_builddir=$ac_pwd
22793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22794 # for backward compatibility:
22795 ac_top_builddir=$ac_top_build_prefix
22798 .) # We are building in place.
22800 ac_top_srcdir=$ac_top_builddir_sub
22801 ac_abs_top_srcdir=$ac_pwd ;;
22802 [\\/]* | ?:[\\/]* ) # Absolute name.
22803 ac_srcdir=$srcdir$ac_dir_suffix;
22804 ac_top_srcdir=$srcdir
22805 ac_abs_top_srcdir=$srcdir ;;
22806 *) # Relative name.
22807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22808 ac_top_srcdir=$ac_top_build_prefix$srcdir
22809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22816 # Check for guested configure; otherwise get Cygnus style configure.
22817 if test -f "$ac_srcdir/configure.gnu"; then
22818 ac_sub_configure=$ac_srcdir/configure.gnu
22819 elif test -f "$ac_srcdir/configure"; then
22820 ac_sub_configure=$ac_srcdir/configure
22821 elif test -f "$ac_srcdir/configure.in"; then
22822 # This should be Cygnus configure.
22823 ac_sub_configure=$ac_aux_dir/configure
22825 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22826 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22830 # The recursion is here.
22831 if test -n "$ac_sub_configure"; then
22832 # Make the cache file name correct relative to the subdirectory.
22833 case $cache_file in
22834 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22835 *) # Relative name.
22836 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22839 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22840 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22841 # The eval makes quoting arguments work.
22842 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22843 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22844 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22845 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22846 { (exit 1); exit 1; }; }