2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
695 ENABLE_EXPENSIVE_CHECKS
713 LLVM_ENUM_ASM_PRINTERS
714 LLVM_ENUM_ASM_PARSERS
715 LLVM_ENUM_DISASSEMBLERS
761 HAVE_LINK_VERSION_SCRIPT
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
794 ENABLE_VISIBILITY_INLINES_HIDDEN
801 ac_precious_vars='build_alias
812 ac_subdirs_all='projects/llvm-gcc
816 projects/llvm-poolalloc
819 projects/llvm-stacker
827 # Initialize some variables set by options.
829 ac_init_version=false
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
839 program_transform_name=s,x,x,
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 # Accept the important Cygnus configure options, so we can diagnose typos.
891 case $ac_dashdash$ac_option in
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
913 cache_file=config.cache ;;
915 -datadir | --datadir | --datadi | --datad)
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
927 -disable-* | --disable-*)
928 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
931 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
932 { (exit 1); exit 1; }; }
933 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
934 eval enable_$ac_feature=no ;;
936 -docdir | --docdir | --docdi | --doc | --do)
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 -enable-* | --enable-*)
947 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
950 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
951 { (exit 1); exit 1; }; }
952 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
953 eval enable_$ac_feature=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
968 -help | --help | --hel | --he | -h)
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1117 -site=* | --site=* | --sit=*)
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1144 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package| sed 's/-/_/g'`
1150 eval with_$ac_package=\$ac_optarg ;;
1152 -without-* | --without-*)
1153 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package | sed 's/-/_/g'`
1159 eval with_$ac_package=no ;;
1162 # Obsolete; use --with-x.
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) { echo "$as_me: error: unrecognized option: $ac_option
1180 Try \`$0 --help' for more information." >&2
1181 { (exit 1); exit 1; }; }
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1188 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1189 { (exit 1); exit 1; }; }
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 { echo "$as_me: error: missing argument to $ac_option" >&2
1207 { (exit 1); exit 1; }; }
1210 # Be sure to have absolute directory names.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1222 { (exit 1); exit 1; }; }
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1230 target=$target_alias
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used." >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246 test "$silent" = yes && exec 6>/dev/null
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 { echo "$as_me: error: Working directory cannot be determined" >&2
1253 { (exit 1); exit 1; }; }
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 { echo "$as_me: error: pwd does not report name of working directory" >&2
1256 { (exit 1); exit 1; }; }
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$0" ||
1264 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$0" : 'X\(//\)[^/]' \| \
1266 X"$0" : 'X\(//\)$' \| \
1267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1296 { (exit 1); exit 1; }; }
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1301 { (exit 1); exit 1; }; }
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1327 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 --target=TARGET configure for building compilers for TARGET [HOST]
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-polly Use polly if available (default is YES)
1401 --enable-libcpp Use libc++ if available (default is NO)
1402 --enable-cxx11 Use c++11 if available (default is NO)
1403 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1404 --enable-clang-static-analyzer
1405 Enable building of clang Static Analyzer (default is
1407 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1408 --enable-optimized Compile with optimizations enabled (default is NO)
1409 --enable-profiling Compile with profiling enabled (default is NO)
1410 --enable-assertions Compile with assertion checks enabled (default is
1412 --enable-werror Compile with -Werror enabled (default is NO)
1413 --enable-expensive-checks
1414 Compile with expensive debug checks enabled (default
1416 --enable-debug-runtime Build runtime libs with debug symbols (default is
1418 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1419 optimization is on and YES if it's off)
1420 --enable-keep-symbols Do not strip installed executables)
1421 --enable-jit Enable Just In Time Compiling (default is YES)
1422 --enable-docs Build documents (default is YES)
1423 --enable-doxygen Build doxygen documentation (default is NO)
1424 --enable-threads Use threads if available (default is YES)
1425 --enable-pthreads Use pthreads if available (default is YES)
1426 --enable-pic Build LLVM with Position Independent Code (default
1428 --enable-shared Build a shared library and link tools against it
1430 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1431 Win32 DLL (default is NO)
1432 --enable-timestamps Enable embedding timestamp information in build
1434 --enable-backtraces Enable embedding backtraces on crash (default is
1436 --enable-targets Build specific host targets: all or
1437 target1,target2,... Valid targets are: host, x86,
1438 x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1439 msp430, nvptx, and cpp (default=all)
1440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
1443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
1445 --enable-libffi Check for the presence of libffi (default is NO)
1446 --enable-ltdl-install install libltdl
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-optimize-option Select the compiler options to use for optimized
1453 --with-extra-options Specify additional options to compile LLVM with
1454 --with-extra-ld-options Specify additional options to link LLVM with
1455 --with-ocaml-libdir Specify install location for ocaml bindings (default
1457 --with-clang-srcdir Directory to the out-of-tree Clang source
1458 --with-clang-resource-dir
1459 Relative directory from the Clang binary for
1461 --with-c-include-dirs Colon separated list of directories clang will
1463 --with-gcc-toolchain Directory where gcc is installed.
1464 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1465 --with-binutils-include Specify path to binutils/include/ containing
1466 plugin-api.h file for gold plugin.
1467 --with-bug-report-url Specify the URL where bug reports should be
1468 submitted (default=http://llvm.org/bugs/)
1469 --with-internal-prefix Installation directory for internal files
1470 --with-udis86=<path> Use udis86 external x86 disassembler library
1471 --with-oprofile=<prefix>
1472 Tell OProfile >= 0.9.4 how to symbolize JIT output
1473 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1483 CXX C++ compiler command
1484 CXXFLAGS C++ compiler flags
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1490 Report bugs to <http://llvm.org/bugs/>.
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" || continue
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1518 .) # We are building in place.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1551 LLVM configure 3.3svn
1552 generated by GNU Autoconf 2.60
1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1555 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1559 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1563 cat >config.log <<_ACEOF
1564 This file contains any messages produced by compilers while
1565 running configure, to aid debugging if configure makes a mistake.
1567 It was created by LLVM $as_me 3.3svn, which was
1568 generated by GNU Autoconf 2.60. Invocation command line was
1580 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1581 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1582 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1583 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1584 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1586 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1587 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1589 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1590 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1591 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1592 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1593 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1594 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1595 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 echo "PATH: $as_dir"
1620 # Keep a trace of the command line.
1621 # Strip out --no-create and --no-recursion so they do not pile up.
1622 # Strip out --silent because we don't want to record it for future runs.
1623 # Also quote any args containing shell meta-characters.
1624 # Make two passes to allow for proper duplicate-argument suppression.
1628 ac_must_keep_next=false
1634 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636 | -silent | --silent | --silen | --sile | --sil)
1639 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1644 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1645 if test $ac_must_keep_next = true; then
1646 ac_must_keep_next=false # Got value, back to normal.
1649 *=* | --config-cache | -C | -disable-* | --disable-* \
1650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1652 | -with-* | --with-* | -without-* | --without-* | --x)
1653 case "$ac_configure_args0 " in
1654 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 -* ) ac_must_keep_next=true ;;
1660 ac_configure_args="$ac_configure_args '$ac_arg'"
1665 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1666 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1668 # When interrupted or exit'd, cleanup temporary files, and complete
1669 # config.log. We remove comments because anyway the quotes in there
1670 # would cause problems or look ugly.
1671 # WARNING: Use '\'' to represent an apostrophe within the trap.
1672 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1673 trap 'exit_status=$?
1674 # Save into config.log some information that might help in debugging.
1679 ## ---------------- ##
1680 ## Cache variables. ##
1681 ## ---------------- ##
1684 # The following way of writing the cache mishandles newlines in values,
1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687 eval ac_val=\$$ac_var
1691 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1692 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695 _ | IFS | as_nl) ;; #(
1696 *) $as_unset $ac_var ;;
1701 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702 *${as_nl}ac_space=\ *)
1704 "s/'\''/'\''\\\\'\'''\''/g;
1705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716 ## ----------------- ##
1717 ## Output variables. ##
1718 ## ----------------- ##
1721 for ac_var in $ac_subst_vars
1723 eval ac_val=\$$ac_var
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 echo "$ac_var='\''$ac_val'\''"
1731 if test -n "$ac_subst_files"; then
1733 ## ------------------- ##
1734 ## File substitutions. ##
1735 ## ------------------- ##
1738 for ac_var in $ac_subst_files
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 echo "$ac_var='\''$ac_val'\''"
1749 if test -s confdefs.h; then
1759 test "$ac_signal" != 0 &&
1760 echo "$as_me: caught signal $ac_signal"
1761 echo "$as_me: exit $exit_status"
1763 rm -f core *.core core.conftest.* &&
1764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767 for ac_signal in 1 2 13 15; do
1768 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1773 rm -f -r conftest* confdefs.h
1775 # Predefined preprocessor variables.
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_NAME "$PACKAGE_NAME"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_STRING "$PACKAGE_STRING"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 # Let the site file select an alternate cache file if it wants to.
1803 # Prefer explicitly selected file to automatically selected ones.
1804 if test -n "$CONFIG_SITE"; then
1805 set x "$CONFIG_SITE"
1806 elif test "x$prefix" != xNONE; then
1807 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1809 set x "$ac_default_prefix/share/config.site" \
1810 "$ac_default_prefix/etc/config.site"
1815 if test -r "$ac_site_file"; then
1816 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1817 echo "$as_me: loading site script $ac_site_file" >&6;}
1818 sed 's/^/| /' "$ac_site_file" >&5
1823 if test -r "$cache_file"; then
1824 # Some versions of bash will fail to source /dev/null (special
1825 # files actually), so we avoid doing that.
1826 if test -f "$cache_file"; then
1827 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1828 echo "$as_me: loading cache $cache_file" >&6;}
1830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1831 *) . "./$cache_file";;
1835 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1836 echo "$as_me: creating cache $cache_file" >&6;}
1840 # Check that the precious variables saved in the cache have kept the same
1842 ac_cache_corrupted=false
1843 for ac_var in $ac_precious_vars; do
1844 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1845 eval ac_new_set=\$ac_env_${ac_var}_set
1846 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1847 eval ac_new_val=\$ac_env_${ac_var}_value
1848 case $ac_old_set,$ac_new_set in
1850 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1851 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1852 ac_cache_corrupted=: ;;
1854 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1856 ac_cache_corrupted=: ;;
1859 if test "x$ac_old_val" != "x$ac_new_val"; then
1860 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1861 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1862 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1863 echo "$as_me: former value: $ac_old_val" >&2;}
1864 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1865 echo "$as_me: current value: $ac_new_val" >&2;}
1866 ac_cache_corrupted=:
1869 # Pass precious variables to config.status.
1870 if test "$ac_new_set" = set; then
1872 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1873 *) ac_arg=$ac_var=$ac_new_val ;;
1875 case " $ac_configure_args " in
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1877 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1881 if $ac_cache_corrupted; then
1882 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886 { (exit 1); exit 1; }; }
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921 cat >>confdefs.h <<\_ACEOF
1922 #define LLVM_VERSION_MAJOR 3
1926 cat >>confdefs.h <<\_ACEOF
1927 #define LLVM_VERSION_MINOR 3
1931 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1940 for ac_dir in autoconf "$srcdir"/autoconf; do
1941 if test -f "$ac_dir/install-sh"; then
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1945 elif test -f "$ac_dir/install.sh"; then
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1949 elif test -f "$ac_dir/shtool"; then
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 if test -z "$ac_aux_dir"; then
1956 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 if test ${srcdir} != "." ; then
1972 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1973 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1974 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1975 { (exit 1); exit 1; }; }
1980 ac_cpp='$CPP $CPPFLAGS'
1981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1984 if test -n "$ac_tool_prefix"; then
1985 for ac_prog in clang llvm-gcc gcc
1987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC="$CC" # Let the user override the test.
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 if test -n "$CC"; then
2016 { echo "$as_me:$LINENO: result: $CC" >&5
2017 echo "${ECHO_T}$CC" >&6; }
2019 { echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6; }
2024 test -n "$CC" && break
2027 if test -z "$CC"; then
2029 for ac_prog in clang llvm-gcc gcc
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032 set dummy $ac_prog; ac_word=$2
2033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2048 ac_cv_prog_ac_ct_CC="$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2059 if test -n "$ac_ct_CC"; then
2060 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2061 echo "${ECHO_T}$ac_ct_CC" >&6; }
2063 { echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6; }
2068 test -n "$ac_ct_CC" && break
2071 if test "x$ac_ct_CC" = x; then
2074 case $cross_compiling:$ac_tool_warned in
2076 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2077 whose name does not start with the host triplet. If you think this
2078 configuration is useful to you, please write to autoconf@gnu.org." >&5
2079 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2080 whose name does not start with the host triplet. If you think this
2081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2082 ac_tool_warned=yes ;;
2089 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2095 # Provide some information about the compiler.
2096 echo "$as_me:$LINENO: checking for C compiler version" >&5
2097 ac_compiler=`set X $ac_compile; echo $2`
2098 { (ac_try="$ac_compiler --version >&5"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler --version >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (ac_try="$ac_compiler -v >&5"
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -v >&5") 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118 { (ac_try="$ac_compiler -V >&5"
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124 (eval "$ac_compiler -V >&5") 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2129 cat >conftest.$ac_ext <<_ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2144 ac_clean_files_save=$ac_clean_files
2145 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2146 # Try to create an executable without -o first, disregard a.out.
2147 # It will help us diagnose broken compilers, and finding out an intuition
2149 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2153 # List of possible output files, starting from the most likely.
2154 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2155 # only as a last resort. b.out is created by i960 compilers.
2156 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2158 # The IRIX 6 linker writes into existing files which may not be
2159 # executable, retaining their permissions. Remove them first so a
2160 # subsequent execution test works.
2162 for ac_file in $ac_files
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2166 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2171 if { (ac_try="$ac_link_default"
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177 (eval "$ac_link_default") 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2182 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2183 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2184 # so that the user can short-circuit this test for compilers unknown to
2186 for ac_file in $ac_files
2188 test -f "$ac_file" || continue
2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2193 # We found the default executable, but exeext='' is most
2197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201 # We set ac_cv_exeext here because the later test for it is not
2202 # safe: cross compilers may not add the suffix if given an `-o'
2203 # argument, so we may need to know it at that point already.
2204 # Even if this section looks crufty: it has the advantage of
2211 test "$ac_cv_exeext" = no && ac_cv_exeext=
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2217 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&2;}
2221 { (exit 77); exit 77; }; }
2224 ac_exeext=$ac_cv_exeext
2225 { echo "$as_me:$LINENO: result: $ac_file" >&5
2226 echo "${ECHO_T}$ac_file" >&6; }
2228 # Check that the compiler produces executables we can run. If not, either
2229 # the compiler is broken, or we cross compile.
2230 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2232 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233 # If not cross compiling, check that we can run a simple program.
2234 if test "$cross_compiling" != yes; then
2235 if { ac_try='./$ac_file'
2236 { (case "(($ac_try" in
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241 (eval "$ac_try") 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 if test "$cross_compiling" = maybe; then
2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2260 { echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6; }
2263 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2264 ac_clean_files=$ac_clean_files_save
2265 # Check that the compiler produces executables we can run. If not, either
2266 # the compiler is broken, or we cross compile.
2267 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2269 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270 echo "${ECHO_T}$cross_compiling" >&6; }
2272 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2274 if { (ac_try="$ac_link"
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280 (eval "$ac_link") 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; then
2284 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2285 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2286 # work properly (i.e., refer to `conftest.exe'), while it won't with
2288 for ac_file in conftest.exe conftest conftest.*; do
2289 test -f "$ac_file" || continue
2291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2298 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2301 See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
2305 rm -f conftest$ac_cv_exeext
2306 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2307 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2309 rm -f conftest.$ac_ext
2310 EXEEXT=$ac_cv_exeext
2312 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2313 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2314 if test "${ac_cv_objext+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 cat >conftest.$ac_ext <<_ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2332 rm -f conftest.o conftest.obj
2333 if { (ac_try="$ac_compile"
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339 (eval "$ac_compile") 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; then
2343 for ac_file in conftest.o conftest.obj conftest.*; do
2344 test -f "$ac_file" || continue;
2346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2355 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&5
2357 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2358 See \`config.log' for more details." >&2;}
2359 { (exit 1); exit 1; }; }
2362 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2364 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2365 echo "${ECHO_T}$ac_cv_objext" >&6; }
2366 OBJEXT=$ac_cv_objext
2368 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2369 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2370 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 cat >conftest.$ac_ext <<_ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2391 rm -f conftest.$ac_objext
2392 if { (ac_try="$ac_compile"
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_compile") 2>conftest.er1
2400 grep -v '^ *+' conftest.er1 >conftest.err
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_try") 2>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2437 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2438 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2439 GCC=`test $ac_compiler_gnu = yes && echo yes`
2440 ac_test_CFLAGS=${CFLAGS+set}
2441 ac_save_CFLAGS=$CFLAGS
2442 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2443 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_cc_g+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 ac_save_c_werror_flag=$ac_c_werror_flag
2448 ac_c_werror_flag=yes
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2466 rm -f conftest.$ac_objext
2467 if { (ac_try="$ac_compile"
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_compile") 2>conftest.er1
2475 grep -v '^ *+' conftest.er1 >conftest.err
2477 cat conftest.err >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_try") 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2506 cat >conftest.$ac_ext <<_ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2521 rm -f conftest.$ac_objext
2522 if { (ac_try="$ac_compile"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_compile") 2>conftest.er1
2530 grep -v '^ *+' conftest.er1 >conftest.err
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2536 { (case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_try") 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_try") 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 ac_c_werror_flag=$ac_save_c_werror_flag
2562 cat >conftest.$ac_ext <<_ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_try") 2>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_c_werror_flag=$ac_save_c_werror_flag
2628 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2629 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2630 if test "$ac_test_CFLAGS" = set; then
2631 CFLAGS=$ac_save_CFLAGS
2632 elif test $ac_cv_prog_cc_g = yes; then
2633 if test "$GCC" = yes; then
2639 if test "$GCC" = yes; then
2645 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2646 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_cc_c89+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 ac_cv_prog_cc_c89=no
2652 cat >conftest.$ac_ext <<_ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2660 #include <sys/types.h>
2661 #include <sys/stat.h>
2662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2663 struct buf { int x; };
2664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2665 static char *e (p, i)
2671 static char *f (char * (*g) (char **, int), char **p, ...)
2676 s = g (p, va_arg (v,int));
2681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2682 function prototypes and stuff, but not '\xHH' hex character constants.
2683 These don't provoke an error unfortunately, instead are silently treated
2684 as 'x'. The following induces an error, until -std is added to get
2685 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2686 array size at least. It's necessary to write '\x00'==0 to get something
2687 that's true only with -std. */
2688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2691 inside strings and character constants. */
2693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2695 int test (int i, double x);
2696 struct s1 {int (*f) (int a);};
2697 struct s2 {int (*f) (double a);};
2698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2704 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2710 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2712 CC="$ac_save_CC $ac_arg"
2713 rm -f conftest.$ac_objext
2714 if { (ac_try="$ac_compile"
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compile") 2>conftest.er1
2722 grep -v '^ *+' conftest.er1 >conftest.err
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; } &&
2737 { ac_try='test -s conftest.$ac_objext'
2738 { (case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_try") 2>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 ac_cv_prog_cc_c89=$ac_arg
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2755 rm -f core conftest.err conftest.$ac_objext
2756 test "x$ac_cv_prog_cc_c89" != "xno" && break
2758 rm -f conftest.$ac_ext
2763 case "x$ac_cv_prog_cc_c89" in
2765 { echo "$as_me:$LINENO: result: none needed" >&5
2766 echo "${ECHO_T}none needed" >&6; } ;;
2768 { echo "$as_me:$LINENO: result: unsupported" >&5
2769 echo "${ECHO_T}unsupported" >&6; } ;;
2771 CC="$CC $ac_cv_prog_cc_c89"
2772 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2773 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784 ac_cpp='$CXXCPP $CPPFLAGS'
2785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2788 if test -z "$CXX"; then
2789 if test -n "$CCC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in clang++ llvm-g++ g++
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_CXX+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 if test -n "$CXX"; then
2803 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 if test -n "$CXX"; then
2824 { echo "$as_me:$LINENO: result: $CXX" >&5
2825 echo "${ECHO_T}$CXX" >&6; }
2827 { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2832 test -n "$CXX" && break
2835 if test -z "$CXX"; then
2837 for ac_prog in clang++ llvm-g++ g++
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 if test -n "$ac_ct_CXX"; then
2847 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_ac_ct_CXX="$ac_prog"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2867 if test -n "$ac_ct_CXX"; then
2868 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2869 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2871 { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2876 test -n "$ac_ct_CXX" && break
2879 if test "x$ac_ct_CXX" = x; then
2882 case $cross_compiling:$ac_tool_warned in
2884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet. If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&5
2887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2888 whose name does not start with the host triplet. If you think this
2889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2890 ac_tool_warned=yes ;;
2898 # Provide some information about the compiler.
2899 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2900 ac_compiler=`set X $ac_compile; echo $2`
2901 { (ac_try="$ac_compiler --version >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler --version >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (ac_try="$ac_compiler -v >&5"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -v >&5") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921 { (ac_try="$ac_compiler -V >&5"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compiler -V >&5") 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2932 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2933 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2934 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 cat >conftest.$ac_ext <<_ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_try") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3001 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3002 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3003 GXX=`test $ac_compiler_gnu = yes && echo yes`
3004 ac_test_CXXFLAGS=${CXXFLAGS+set}
3005 ac_save_CXXFLAGS=$CXXFLAGS
3006 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3007 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3008 if test "${ac_cv_prog_cxx_g+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3012 ac_cxx_werror_flag=yes
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3030 rm -f conftest.$ac_objext
3031 if { (ac_try="$ac_compile"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3039 grep -v '^ *+' conftest.er1 >conftest.err
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_prog_cxx_g=yes
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; } &&
3109 { ac_try='test -s conftest.$ac_objext'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 ac_cv_prog_cxx_g=yes
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3192 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3194 if test "$ac_test_CXXFLAGS" = set; then
3195 CXXFLAGS=$ac_save_CXXFLAGS
3196 elif test $ac_cv_prog_cxx_g = yes; then
3197 if test "$GXX" = yes; then
3203 if test "$GXX" = yes; then
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3221 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3222 # On Suns, sometimes $CPP names a directory.
3223 if test -n "$CPP" && test -d "$CPP"; then
3226 if test -z "$CPP"; then
3227 if test "${ac_cv_prog_CPP+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 # Double quotes because CPP needs to be expanded
3231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3234 for ac_c_preproc_warn_flag in '' yes
3236 # Use a header file that comes with gcc, so configuring glibc
3237 # with a fresh cross-compiler works.
3238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3239 # <limits.h> exists even on freestanding compilers.
3240 # On the NeXT, cc -E runs the code through the compiler's parser,
3241 # not just through cpp. "Syntax error" is here to catch this case.
3242 cat >conftest.$ac_ext <<_ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3249 # include <limits.h>
3251 # include <assert.h>
3255 if { (ac_try="$ac_cpp conftest.$ac_ext"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3263 grep -v '^ *+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } >/dev/null; then
3268 if test -s conftest.err; then
3269 ac_cpp_err=$ac_c_preproc_warn_flag
3270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3277 if test -z "$ac_cpp_err"; then
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 # Broken: fails on valid input.
3287 rm -f conftest.err conftest.$ac_ext
3289 # OK, works on sane cases. Now check whether nonexistent headers
3290 # can be detected and how.
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297 #include <ac_nonexistent.h>
3299 if { (ac_try="$ac_cpp conftest.$ac_ext"
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3307 grep -v '^ *+' conftest.er1 >conftest.err
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
3314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3321 if test -z "$ac_cpp_err"; then
3322 # Broken: success on invalid input.
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 # Passes both tests.
3333 rm -f conftest.err conftest.$ac_ext
3336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3337 rm -f conftest.err conftest.$ac_ext
3338 if $ac_preproc_ok; then
3350 { echo "$as_me:$LINENO: result: $CPP" >&5
3351 echo "${ECHO_T}$CPP" >&6; }
3353 for ac_c_preproc_warn_flag in '' yes
3355 # Use a header file that comes with gcc, so configuring glibc
3356 # with a fresh cross-compiler works.
3357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358 # <limits.h> exists even on freestanding compilers.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp. "Syntax error" is here to catch this case.
3361 cat >conftest.$ac_ext <<_ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3368 # include <limits.h>
3370 # include <assert.h>
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null; then
3387 if test -s conftest.err; then
3388 ac_cpp_err=$ac_c_preproc_warn_flag
3389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3396 if test -z "$ac_cpp_err"; then
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 # Broken: fails on valid input.
3406 rm -f conftest.err conftest.$ac_ext
3408 # OK, works on sane cases. Now check whether nonexistent headers
3409 # can be detected and how.
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416 #include <ac_nonexistent.h>
3418 if { (ac_try="$ac_cpp conftest.$ac_ext"
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3426 grep -v '^ *+' conftest.er1 >conftest.err
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } >/dev/null; then
3431 if test -s conftest.err; then
3432 ac_cpp_err=$ac_c_preproc_warn_flag
3433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3440 if test -z "$ac_cpp_err"; then
3441 # Broken: success on invalid input.
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Passes both tests.
3452 rm -f conftest.err conftest.$ac_ext
3455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456 rm -f conftest.err conftest.$ac_ext
3457 if $ac_preproc_ok; then
3460 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3461 See \`config.log' for more details." >&5
3462 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3463 See \`config.log' for more details." >&2;}
3464 { (exit 1); exit 1; }; }
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 if test "$CXX" = "clang++" ; then
3475 { echo "$as_me:$LINENO: checking whether clang works" >&5
3476 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3478 ac_cpp='$CXXCPP $CPPFLAGS'
3479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3491 #if __has_include (<cxxabi.h>)
3494 #if __has_include (<unwind.h>)
3506 rm -f conftest.$ac_objext
3507 if { (ac_try="$ac_compile"
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3521 { (case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_try") 2>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; } &&
3530 { ac_try='test -s conftest.$ac_objext'
3531 { (case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_try") 2>&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3541 { echo "$as_me:$LINENO: result: yes" >&5
3542 echo "${ECHO_T}yes" >&6; }
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3549 { echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6; }
3551 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3552 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3553 { (exit 1); exit 1; }; }
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 if test -d ${srcdir}/projects/llvm-gcc ; then
3569 subdirs="$subdirs projects/llvm-gcc"
3573 if test -d ${srcdir}/projects/test-suite ; then
3574 subdirs="$subdirs projects/test-suite"
3578 if test -d ${srcdir}/projects/llvm-test ; then
3579 subdirs="$subdirs projects/llvm-test"
3583 if test -d ${srcdir}/projects/poolalloc ; then
3584 subdirs="$subdirs projects/poolalloc"
3588 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3589 subdirs="$subdirs projects/llvm-poolalloc"
3593 for i in `ls ${srcdir}/projects`
3595 if test -d ${srcdir}/projects/${i} ; then
3597 sample) subdirs="$subdirs projects/sample"
3599 privbracket) subdirs="$subdirs projects/privbracket"
3601 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3603 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3605 llvm-java) subdirs="$subdirs projects/llvm-java"
3607 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3609 safecode) subdirs="$subdirs projects/safecode"
3611 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3620 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3621 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3627 # Check whether --enable-polly was given.
3628 if test "${enable_polly+set}" = set; then
3629 enableval=$enable_polly;
3634 case "$enableval" in
3639 default) ENABLE_POLLY=1
3641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3642 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3643 { (exit 1); exit 1; }; } ;;
3647 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3650 subdirs="$subdirs tools/polly"
3655 # Make sure we can run config.sub.
3656 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3657 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3658 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3659 { (exit 1); exit 1; }; }
3661 { echo "$as_me:$LINENO: checking build system type" >&5
3662 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3663 if test "${ac_cv_build+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 ac_build_alias=$build_alias
3667 test "x$ac_build_alias" = x &&
3668 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3669 test "x$ac_build_alias" = x &&
3670 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3671 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3672 { (exit 1); exit 1; }; }
3673 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3674 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3675 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3676 { (exit 1); exit 1; }; }
3679 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3680 echo "${ECHO_T}$ac_cv_build" >&6; }
3681 case $ac_cv_build in
3683 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3684 echo "$as_me: error: invalid value of canonical build" >&2;}
3685 { (exit 1); exit 1; }; };;
3688 ac_save_IFS=$IFS; IFS='-'
3694 # Remember, the first character of IFS is used to create $*,
3695 # except with old shells:
3698 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3701 { echo "$as_me:$LINENO: checking host system type" >&5
3702 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3703 if test "${ac_cv_host+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 if test "x$host_alias" = x; then
3707 ac_cv_host=$ac_cv_build
3709 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3710 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3711 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3712 { (exit 1); exit 1; }; }
3716 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3717 echo "${ECHO_T}$ac_cv_host" >&6; }
3720 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3721 echo "$as_me: error: invalid value of canonical host" >&2;}
3722 { (exit 1); exit 1; }; };;
3725 ac_save_IFS=$IFS; IFS='-'
3731 # Remember, the first character of IFS is used to create $*,
3732 # except with old shells:
3735 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3738 { echo "$as_me:$LINENO: checking target system type" >&5
3739 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3740 if test "${ac_cv_target+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 if test "x$target_alias" = x; then
3744 ac_cv_target=$ac_cv_host
3746 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3747 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3748 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3749 { (exit 1); exit 1; }; }
3753 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3754 echo "${ECHO_T}$ac_cv_target" >&6; }
3755 case $ac_cv_target in
3757 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3758 echo "$as_me: error: invalid value of canonical target" >&2;}
3759 { (exit 1); exit 1; }; };;
3761 target=$ac_cv_target
3762 ac_save_IFS=$IFS; IFS='-'
3768 # Remember, the first character of IFS is used to create $*,
3769 # except with old shells:
3772 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3775 # The aliases save the names the user supplied, while $host etc.
3776 # will get canonicalized.
3777 test -n "$target_alias" &&
3778 test "$program_prefix$program_suffix$program_transform_name" = \
3780 program_prefix=${target_alias}-
3782 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3783 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3784 if test "${llvm_cv_os_type+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 llvm_cv_link_all_option="-Wl,--whole-archive"
3790 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3791 llvm_cv_os_type="AIX"
3792 llvm_cv_platform_type="Unix" ;;
3794 llvm_cv_link_all_option="-Wl,--whole-archive"
3795 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3796 llvm_cv_os_type="IRIX"
3797 llvm_cv_platform_type="Unix" ;;
3799 llvm_cv_link_all_option="-Wl,--whole-archive"
3800 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3801 llvm_cv_os_type="Cygwin"
3802 llvm_cv_platform_type="Unix" ;;
3804 llvm_cv_link_all_option="-Wl,-all_load"
3805 llvm_cv_no_link_all_option="-Wl,-noall_load"
3806 llvm_cv_os_type="Darwin"
3807 llvm_cv_platform_type="Unix" ;;
3809 llvm_cv_link_all_option="-Wl,-all_load"
3810 llvm_cv_no_link_all_option="-Wl,-noall_load"
3811 llvm_cv_os_type="Minix"
3812 llvm_cv_platform_type="Unix" ;;
3813 *-*-freebsd* | *-*-kfreebsd-gnu)
3814 llvm_cv_link_all_option="-Wl,--whole-archive"
3815 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3816 llvm_cv_os_type="FreeBSD"
3817 llvm_cv_platform_type="Unix" ;;
3819 llvm_cv_link_all_option="-Wl,--whole-archive"
3820 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3821 llvm_cv_os_type="OpenBSD"
3822 llvm_cv_platform_type="Unix" ;;
3824 llvm_cv_link_all_option="-Wl,--whole-archive"
3825 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3826 llvm_cv_os_type="NetBSD"
3827 llvm_cv_platform_type="Unix" ;;
3829 llvm_cv_link_all_option="-Wl,--whole-archive"
3830 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3831 llvm_cv_os_type="DragonFly"
3832 llvm_cv_platform_type="Unix" ;;
3834 llvm_cv_link_all_option="-Wl,--whole-archive"
3835 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3836 llvm_cv_os_type="HP-UX"
3837 llvm_cv_platform_type="Unix" ;;
3839 llvm_cv_link_all_option="-Wl,--whole-archive"
3840 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3841 llvm_cv_os_type="Interix"
3842 llvm_cv_platform_type="Unix" ;;
3844 llvm_cv_link_all_option="-Wl,--whole-archive"
3845 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3846 llvm_cv_os_type="Linux"
3847 llvm_cv_platform_type="Unix" ;;
3849 llvm_cv_link_all_option="-Wl,--whole-archive"
3850 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3851 llvm_cv_os_type="GNU"
3852 llvm_cv_platform_type="Unix" ;;
3854 llvm_cv_link_all_option="-Wl,-z,allextract"
3855 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3856 llvm_cv_os_type="SunOS"
3857 llvm_cv_platform_type="Unix" ;;
3859 llvm_cv_link_all_option="-Wl,-z,allextract"
3860 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3861 llvm_cv_os_type="AuroraUX"
3862 llvm_cv_platform_type="Unix" ;;
3864 llvm_cv_link_all_option="-Wl,--whole-archive"
3865 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3866 llvm_cv_os_type="Win32"
3867 llvm_cv_platform_type="Win32" ;;
3869 llvm_cv_link_all_option="-Wl,--whole-archive"
3870 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3871 llvm_cv_os_type="MingW"
3872 llvm_cv_platform_type="Win32" ;;
3874 llvm_cv_link_all_option="-Wl,--whole-archive"
3875 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3876 llvm_cv_os_type="Haiku"
3877 llvm_cv_platform_type="Unix" ;;
3879 llvm_cv_link_all_option="-Wl,--whole-archive"
3880 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3881 llvm_cv_os_type="Freestanding"
3882 llvm_cv_platform_type="Unix" ;;
3884 llvm_cv_link_all_option="-Wl,--whole-archive"
3885 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3886 llvm_cv_os_type="Freestanding"
3887 llvm_cv_platform_type="Unix" ;;
3889 llvm_cv_link_all_option=""
3890 llvm_cv_no_link_all_option=""
3891 llvm_cv_os_type="Unknown"
3892 llvm_cv_platform_type="Unknown" ;;
3895 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3896 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3898 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3899 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3900 if test "${llvm_cv_target_os_type+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 llvm_cv_target_os_type="AIX" ;;
3907 llvm_cv_target_os_type="IRIX" ;;
3909 llvm_cv_target_os_type="Cygwin" ;;
3911 llvm_cv_target_os_type="Darwin" ;;
3913 llvm_cv_target_os_type="Minix" ;;
3914 *-*-freebsd* | *-*-kfreebsd-gnu)
3915 llvm_cv_target_os_type="FreeBSD" ;;
3917 llvm_cv_target_os_type="OpenBSD" ;;
3919 llvm_cv_target_os_type="NetBSD" ;;
3921 llvm_cv_target_os_type="DragonFly" ;;
3923 llvm_cv_target_os_type="HP-UX" ;;
3925 llvm_cv_target_os_type="Interix" ;;
3927 llvm_cv_target_os_type="Linux" ;;
3929 llvm_cv_target_os_type="GNU" ;;
3931 llvm_cv_target_os_type="SunOS" ;;
3933 llvm_cv_target_os_type="AuroraUX" ;;
3935 llvm_cv_target_os_type="Win32" ;;
3937 llvm_cv_target_os_type="MingW" ;;
3939 llvm_cv_target_os_type="Haiku" ;;
3941 llvm_cv_target_os_type="RTEMS" ;;
3943 llvm_cv_target_os_type="NativeClient" ;;
3945 llvm_cv_target_os_type="Freestanding" ;;
3947 llvm_cv_target_os_type="Unknown" ;;
3950 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3951 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3953 if test "$llvm_cv_os_type" = "Unknown" ; then
3954 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3955 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3956 { (exit 1); exit 1; }; }
3961 HOST_OS=$llvm_cv_os_type
3963 TARGET_OS=$llvm_cv_target_os_type
3966 LINKALL=$llvm_cv_link_all_option
3968 NOLINKALL=$llvm_cv_no_link_all_option
3971 case $llvm_cv_platform_type in
3974 cat >>confdefs.h <<\_ACEOF
3975 #define LLVM_ON_UNIX 1
3985 cat >>confdefs.h <<\_ACEOF
3986 #define LLVM_ON_WIN32 1
3996 { echo "$as_me:$LINENO: checking target architecture" >&5
3997 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3998 if test "${llvm_cv_target_arch+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 i?86-*) llvm_cv_target_arch="x86" ;;
4003 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4004 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4005 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4006 arm*-*) llvm_cv_target_arch="ARM" ;;
4007 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4008 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4009 xcore-*) llvm_cv_target_arch="XCore" ;;
4010 msp430-*) llvm_cv_target_arch="MSP430" ;;
4011 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4012 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4013 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4014 *) llvm_cv_target_arch="Unknown" ;;
4017 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4018 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4020 if test "$llvm_cv_target_arch" = "Unknown" ; then
4021 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4022 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4025 case "$llvm_cv_target_arch" in
4026 x86) LLVM_NATIVE_ARCH="X86" ;;
4027 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4028 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4031 ARCH=$llvm_cv_target_arch
4035 i?86-*) host_arch="x86" ;;
4036 amd64-* | x86_64-*) host_arch="x86_64" ;;
4037 sparc*-*) host_arch="Sparc" ;;
4038 powerpc*-*) host_arch="PowerPC" ;;
4039 arm*-*) host_arch="ARM" ;;
4040 mips-* | mips64-*) host_arch="Mips" ;;
4041 mipsel-* | mips64el-*) host_arch="Mips" ;;
4042 xcore-*) host_arch="XCore" ;;
4043 msp430-*) host_arch="MSP430" ;;
4044 hexagon-*) host_arch="Hexagon" ;;
4045 mblaze-*) host_arch="MBlaze" ;;
4046 *) host_arch="Unknown" ;;
4049 if test "$host_arch" = "Unknown" ; then
4050 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4051 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4054 HOST_ARCH=$host_arch
4059 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4060 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4061 if test "${ac_cv_path_GREP+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 # Extract the first word of "grep ggrep" to use in msg output
4065 if test -z "$GREP"; then
4066 set dummy grep ggrep; ac_prog_name=$2
4067 if test "${ac_cv_path_GREP+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 ac_path_GREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076 test -z "$as_dir" && as_dir=.
4077 for ac_prog in grep ggrep; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4080 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4081 # Check for GNU ac_path_GREP and select it if it is found.
4082 # Check for GNU $ac_path_GREP
4083 case `"$ac_path_GREP" --version 2>&1` in
4085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4088 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
4094 echo 'GREP' >> "conftest.nl"
4095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097 ac_count=`expr $ac_count + 1`
4098 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_GREP="$ac_path_GREP"
4101 ac_path_GREP_max=$ac_count
4103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110 $ac_path_GREP_found && break 3
4120 GREP="$ac_cv_path_GREP"
4121 if test -z "$GREP"; then
4122 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4123 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4124 { (exit 1); exit 1; }; }
4128 ac_cv_path_GREP=$GREP
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4135 GREP="$ac_cv_path_GREP"
4138 { echo "$as_me:$LINENO: checking for egrep" >&5
4139 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4140 if test "${ac_cv_path_EGREP+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4144 then ac_cv_path_EGREP="$GREP -E"
4146 # Extract the first word of "egrep" to use in msg output
4147 if test -z "$EGREP"; then
4148 set dummy egrep; ac_prog_name=$2
4149 if test "${ac_cv_path_EGREP+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 ac_path_EGREP_found=false
4153 # Loop through the user's path and test for each of PROGNAME-LIST
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4158 test -z "$as_dir" && as_dir=.
4159 for ac_prog in egrep; do
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4162 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4163 # Check for GNU ac_path_EGREP and select it if it is found.
4164 # Check for GNU $ac_path_EGREP
4165 case `"$ac_path_EGREP" --version 2>&1` in
4167 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4170 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4173 cat "conftest.in" "conftest.in" >"conftest.tmp"
4174 mv "conftest.tmp" "conftest.in"
4175 cp "conftest.in" "conftest.nl"
4176 echo 'EGREP' >> "conftest.nl"
4177 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179 ac_count=`expr $ac_count + 1`
4180 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4181 # Best one so far, save it but keep looking for a better one
4182 ac_cv_path_EGREP="$ac_path_EGREP"
4183 ac_path_EGREP_max=$ac_count
4185 # 10*(2^10) chars as input seems more than enough
4186 test $ac_count -gt 10 && break
4188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4192 $ac_path_EGREP_found && break 3
4202 EGREP="$ac_cv_path_EGREP"
4203 if test -z "$EGREP"; then
4204 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4205 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4206 { (exit 1); exit 1; }; }
4210 ac_cv_path_EGREP=$EGREP
4216 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4217 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4218 EGREP="$ac_cv_path_EGREP"
4221 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4222 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4223 if test "${ac_cv_header_stdc+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 cat >conftest.$ac_ext <<_ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_compile") 2>conftest.er1
4254 grep -v '^ *+' conftest.er1 >conftest.err
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4260 { (case "(($ac_try" in
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_try") 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 ac_cv_header_stdc=yes
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 ac_cv_header_stdc=no
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 if test $ac_cv_header_stdc = yes; then
4290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4301 $EGREP "memchr" >/dev/null 2>&1; then
4304 ac_cv_header_stdc=no
4310 if test $ac_cv_header_stdc = yes; then
4311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322 $EGREP "free" >/dev/null 2>&1; then
4325 ac_cv_header_stdc=no
4331 if test $ac_cv_header_stdc = yes; then
4332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4333 if test "$cross_compiling" = yes; then
4336 cat >conftest.$ac_ext <<_ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4344 #if ((' ' & 0x0FF) == 0x020)
4345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4348 # define ISLOWER(c) \
4349 (('a' <= (c) && (c) <= 'i') \
4350 || ('j' <= (c) && (c) <= 'r') \
4351 || ('s' <= (c) && (c) <= 'z'))
4352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4360 for (i = 0; i < 256; i++)
4361 if (XOR (islower (i), ISLOWER (i))
4362 || toupper (i) != TOUPPER (i))
4367 rm -f conftest$ac_exeext
4368 if { (ac_try="$ac_link"
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_link") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378 { (case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_try") 2>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4389 echo "$as_me: program exited with status $ac_status" >&5
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4394 ac_cv_header_stdc=no
4396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4402 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4403 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4404 if test $ac_cv_header_stdc = yes; then
4406 cat >>confdefs.h <<\_ACEOF
4407 #define STDC_HEADERS 1
4412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4423 inttypes.h stdint.h unistd.h
4425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 cat >conftest.$ac_ext <<_ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 $ac_includes_default
4439 #include <$ac_header>
4441 rm -f conftest.$ac_objext
4442 if { (ac_try="$ac_compile"
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_compile") 2>conftest.er1
4450 grep -v '^ *+' conftest.er1 >conftest.err
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4456 { (case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_try") 2>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_try") 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 eval "$as_ac_Header=yes"
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 eval "$as_ac_Header=no"
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 ac_res=`eval echo '${'$as_ac_Header'}'`
4486 { echo "$as_me:$LINENO: result: $ac_res" >&5
4487 echo "${ECHO_T}$ac_res" >&6; }
4488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4489 cat >>confdefs.h <<_ACEOF
4490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4498 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4499 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4500 if test "${ac_cv_c_bigendian+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 # See if sys/param.h defines the BYTE_ORDER macro.
4504 cat >conftest.$ac_ext <<_ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4510 #include <sys/types.h>
4511 #include <sys/param.h>
4516 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4524 rm -f conftest.$ac_objext
4525 if { (ac_try="$ac_compile"
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_compile") 2>conftest.er1
4533 grep -v '^ *+' conftest.er1 >conftest.err
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4539 { (case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_try") 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_try") 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 # It does; now see whether it defined to BIG_ENDIAN or not.
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 #include <sys/types.h>
4566 #include <sys/param.h>
4571 #if BYTE_ORDER != BIG_ENDIAN
4579 rm -f conftest.$ac_objext
4580 if { (ac_try="$ac_compile"
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_compile") 2>conftest.er1
4588 grep -v '^ *+' conftest.er1 >conftest.err
4590 cat conftest.err >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
4593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4594 { (case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_try") 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try='test -s conftest.$ac_objext'
4604 { (case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_try") 2>&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_cv_c_bigendian=yes
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 ac_cv_c_bigendian=no
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 # It does not; compile a test program.
4627 if test "$cross_compiling" = yes; then
4628 # try to guess the endianness by grepping values into an object file
4629 ac_cv_c_bigendian=unknown
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4637 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4638 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4639 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4640 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4641 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4645 _ascii (); _ebcdic ();
4650 rm -f conftest.$ac_objext
4651 if { (ac_try="$ac_compile"
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_compile") 2>conftest.er1
4659 grep -v '^ *+' conftest.er1 >conftest.err
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4665 { (case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_try") 2>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; } &&
4674 { ac_try='test -s conftest.$ac_objext'
4675 { (case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 (eval "$ac_try") 2>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4684 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4685 ac_cv_c_bigendian=yes
4687 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4688 if test "$ac_cv_c_bigendian" = unknown; then
4689 ac_cv_c_bigendian=no
4691 # finding both strings is unlikely to happen, but who knows?
4692 ac_cv_c_bigendian=unknown
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 cat >conftest.$ac_ext <<_ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 $ac_includes_default
4715 /* Are we little or big endian? From Harbison&Steele. */
4719 char c[sizeof (long int)];
4722 return u.c[sizeof (long int) - 1] == 1;
4728 rm -f conftest$ac_exeext
4729 if { (ac_try="$ac_link"
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_link") 2>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4739 { (case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_try") 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_cv_c_bigendian=no
4750 echo "$as_me: program exited with status $ac_status" >&5
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4755 ac_cv_c_bigendian=yes
4757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4766 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4767 case $ac_cv_c_bigendian in
4775 { { echo "$as_me:$LINENO: error: unknown endianness
4776 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4777 echo "$as_me: error: unknown endianness
4778 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4779 { (exit 1); exit 1; }; } ;;
4783 if test "$cross_compiling" = yes; then
4784 LLVM_CROSS_COMPILING=1
4787 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4788 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4789 if test "${ac_cv_build_exeext+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4793 ac_cv_build_exeext=.exe
4795 ac_build_prefix=${build_alias}-
4797 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4798 set dummy ${ac_build_prefix}gcc; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 if test -n "$BUILD_CC"; then
4805 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 BUILD_CC=$ac_cv_prog_BUILD_CC
4825 if test -n "$BUILD_CC"; then
4826 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4827 echo "${ECHO_T}$BUILD_CC" >&6; }
4829 { echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6; }
4834 if test -z "$BUILD_CC"; then
4835 # Extract the first word of "gcc", so it can be a program name with args.
4836 set dummy gcc; ac_word=$2
4837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4839 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 if test -n "$BUILD_CC"; then
4843 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4852 ac_cv_prog_BUILD_CC="gcc"
4853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 BUILD_CC=$ac_cv_prog_BUILD_CC
4863 if test -n "$BUILD_CC"; then
4864 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4865 echo "${ECHO_T}$BUILD_CC" >&6; }
4867 { echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6; }
4872 if test -z "$BUILD_CC"; then
4873 # Extract the first word of "cc", so it can be a program name with args.
4874 set dummy cc; ac_word=$2
4875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4877 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 if test -n "$BUILD_CC"; then
4881 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4892 ac_prog_rejected=yes
4895 ac_cv_prog_BUILD_CC="cc"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 if test $ac_prog_rejected = yes; then
4904 # We found a bogon in the path, so make sure we never use it.
4905 set dummy $ac_cv_prog_BUILD_CC
4907 if test $# != 0; then
4908 # We chose a different compiler from the bogus one.
4909 # However, it has the same basename, so the bogon will be chosen
4910 # first if we set BUILD_CC to just the basename; use the full file name.
4912 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4917 BUILD_CC=$ac_cv_prog_BUILD_CC
4918 if test -n "$BUILD_CC"; then
4919 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4920 echo "${ECHO_T}$BUILD_CC" >&6; }
4922 { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4929 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4930 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4931 { (exit 1); exit 1; }; }
4932 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4934 echo 'int main () { return 0; }' > conftest.$ac_ext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4937 (eval $ac_build_link) 2>&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; then
4941 for file in conftest.*; do
4943 *.c | *.o | *.obj | *.dSYM) ;;
4944 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4948 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4949 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4950 { (exit 1); exit 1; }; }
4953 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4958 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4959 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4960 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4961 ac_build_exeext=$BUILD_EXEEXT
4963 ac_build_prefix=${build_alias}-
4964 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4965 set dummy ${ac_build_prefix}g++; ac_word=$2
4966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4968 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 if test -n "$BUILD_CXX"; then
4972 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4992 if test -n "$BUILD_CXX"; then
4993 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4994 echo "${ECHO_T}$BUILD_CXX" >&6; }
4996 { echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6; }
5001 if test -z "$BUILD_CXX"; then
5002 # Extract the first word of "g++", so it can be a program name with args.
5003 set dummy g++; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 if test -n "$BUILD_CXX"; then
5010 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_BUILD_CXX="g++"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5030 if test -n "$BUILD_CXX"; then
5031 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5032 echo "${ECHO_T}$BUILD_CXX" >&6; }
5034 { echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6; }
5039 if test -z "$BUILD_CXX"; then
5040 # Extract the first word of "c++", so it can be a program name with args.
5041 set dummy c++; ac_word=$2
5042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5044 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 if test -n "$BUILD_CXX"; then
5048 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5059 ac_prog_rejected=yes
5062 ac_cv_prog_BUILD_CXX="c++"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 if test $ac_prog_rejected = yes; then
5071 # We found a bogon in the path, so make sure we never use it.
5072 set dummy $ac_cv_prog_BUILD_CXX
5074 if test $# != 0; then
5075 # We chose a different compiler from the bogus one.
5076 # However, it has the same basename, so the bogon will be chosen
5077 # first if we set BUILD_CXX to just the basename; use the full file name.
5079 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5084 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5085 if test -n "$BUILD_CXX"; then
5086 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5087 echo "${ECHO_T}$BUILD_CXX" >&6; }
5089 { echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6; }
5097 LLVM_CROSS_COMPILING=0
5101 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5112 # Check whether --enable-libcpp was given.
5113 if test "${enable_libcpp+set}" = set; then
5114 enableval=$enable_libcpp;
5119 case "$enableval" in
5120 yes) ENABLE_LIBCPP=1
5124 default) ENABLE_LIBCPP=0
5126 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5127 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5128 { (exit 1); exit 1; }; } ;;
5131 # Check whether --enable-cxx11 was given.
5132 if test "${enable_cxx11+set}" = set; then
5133 enableval=$enable_cxx11;
5138 case "$enableval" in
5143 default) ENABLE_CXX11=0
5145 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5147 { (exit 1); exit 1; }; } ;;
5151 # Check whether --enable-clang-arcmt was given.
5152 if test "${enable_clang_arcmt+set}" = set; then
5153 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5158 case "$enableval" in
5159 yes) ENABLE_CLANG_ARCMT=1
5161 no) ENABLE_CLANG_ARCMT=0
5163 default) ENABLE_CLANG_ARCMT=1
5165 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5166 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5167 { (exit 1); exit 1; }; } ;;
5170 clang_static_analyzer="yes"
5171 # Check whether --enable-clang-static-analyzer was given.
5172 if test "${enable_clang_static_analyzer+set}" = set; then
5173 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5178 case "$enableval" in
5179 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5181 no) ENABLE_CLANG_STATIC_ANALYZER=0
5183 default) ENABLE_CLANG_STATIC_ANALYZER=1
5185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5190 # Check whether --enable-clang-rewriter was given.
5191 if test "${enable_clang_rewriter+set}" = set; then
5192 enableval=$enable_clang_rewriter;
5197 case "$enableval" in
5198 yes) ENABLE_CLANG_REWRITER=1
5201 if test ${clang_arcmt} != "no" ; then
5202 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5203 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5204 { (exit 1); exit 1; }; }
5206 if test ${clang_static_analyzer} != "no" ; then
5207 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5208 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5209 { (exit 1); exit 1; }; }
5211 ENABLE_CLANG_REWRITER=0
5214 default) ENABLE_CLANG_REWRITER=1
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5221 # Check whether --enable-optimized was given.
5222 if test "${enable_optimized+set}" = set; then
5223 enableval=$enable_optimized;
5228 if test ${enableval} = "no" ; then
5232 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5236 # Check whether --enable-profiling was given.
5237 if test "${enable_profiling+set}" = set; then
5238 enableval=$enable_profiling;
5243 if test ${enableval} = "no" ; then
5247 ENABLE_PROFILING=ENABLE_PROFILING=1
5251 # Check whether --enable-assertions was given.
5252 if test "${enable_assertions+set}" = set; then
5253 enableval=$enable_assertions;
5258 if test ${enableval} = "yes" ; then
5262 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5266 # Check whether --enable-werror was given.
5267 if test "${enable_werror+set}" = set; then
5268 enableval=$enable_werror;
5273 case "$enableval" in
5274 yes) ENABLE_WERROR=1
5278 default) ENABLE_WERROR=0
5280 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5281 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5282 { (exit 1); exit 1; }; } ;;
5285 # Check whether --enable-expensive-checks was given.
5286 if test "${enable_expensive_checks+set}" = set; then
5287 enableval=$enable_expensive_checks;
5292 if test ${enableval} = "yes" ; then
5293 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5295 EXPENSIVE_CHECKS=yes
5298 ENABLE_EXPENSIVE_CHECKS=
5304 # Check whether --enable-debug-runtime was given.
5305 if test "${enable_debug_runtime+set}" = set; then
5306 enableval=$enable_debug_runtime;
5311 if test ${enableval} = "no" ; then
5315 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5319 # Check whether --enable-debug-symbols was given.
5320 if test "${enable_debug_symbols+set}" = set; then
5321 enableval=$enable_debug_symbols;
5326 if test ${enableval} = "no" ; then
5330 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5334 # Check whether --enable-keep-symbols was given.
5335 if test "${enable_keep_symbols+set}" = set; then
5336 enableval=$enable_keep_symbols;
5341 if test ${enableval} = "no" ; then
5345 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5349 # Check whether --enable-jit was given.
5350 if test "${enable_jit+set}" = set; then
5351 enableval=$enable_jit;
5356 if test ${enableval} = "no"
5361 case "$llvm_cv_target_arch" in
5362 x86) TARGET_HAS_JIT=1
5364 Sparc) TARGET_HAS_JIT=0
5366 PowerPC) TARGET_HAS_JIT=1
5368 x86_64) TARGET_HAS_JIT=1
5370 ARM) TARGET_HAS_JIT=1
5372 Mips) TARGET_HAS_JIT=1
5374 XCore) TARGET_HAS_JIT=0
5376 MSP430) TARGET_HAS_JIT=0
5378 Hexagon) TARGET_HAS_JIT=0
5380 MBlaze) TARGET_HAS_JIT=0
5382 NVPTX) TARGET_HAS_JIT=0
5389 # Check whether --enable-docs was given.
5390 if test "${enable_docs+set}" = set; then
5391 enableval=$enable_docs;
5396 case "$enableval" in
5401 default) ENABLE_DOCS=1
5403 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5404 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5405 { (exit 1); exit 1; }; } ;;
5408 # Check whether --enable-doxygen was given.
5409 if test "${enable_doxygen+set}" = set; then
5410 enableval=$enable_doxygen;
5415 case "$enableval" in
5416 yes) ENABLE_DOXYGEN=1
5418 no) ENABLE_DOXYGEN=0
5420 default) ENABLE_DOXYGEN=0
5422 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5423 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5424 { (exit 1); exit 1; }; } ;;
5427 # Check whether --enable-threads was given.
5428 if test "${enable_threads+set}" = set; then
5429 enableval=$enable_threads;
5434 case "$enableval" in
5435 yes) LLVM_ENABLE_THREADS=1
5437 no) LLVM_ENABLE_THREADS=0
5439 default) LLVM_ENABLE_THREADS=1
5441 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5442 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5443 { (exit 1); exit 1; }; } ;;
5446 cat >>confdefs.h <<_ACEOF
5447 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5451 # Check whether --enable-pthreads was given.
5452 if test "${enable_pthreads+set}" = set; then
5453 enableval=$enable_pthreads;
5458 case "$enableval" in
5459 yes) ENABLE_PTHREADS=1
5461 no) ENABLE_PTHREADS=0
5463 default) ENABLE_PTHREADS=1
5465 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5466 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5467 { (exit 1); exit 1; }; } ;;
5470 # Check whether --enable-pic was given.
5471 if test "${enable_pic+set}" = set; then
5472 enableval=$enable_pic;
5477 case "$enableval" in
5482 default) ENABLE_PIC=1
5484 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5485 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5486 { (exit 1); exit 1; }; } ;;
5489 cat >>confdefs.h <<_ACEOF
5490 #define ENABLE_PIC $ENABLE_PIC
5494 # Check whether --enable-shared was given.
5495 if test "${enable_shared+set}" = set; then
5496 enableval=$enable_shared;
5501 case "$enableval" in
5502 yes) ENABLE_SHARED=1
5506 default) ENABLE_SHARED=0
5508 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5509 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5510 { (exit 1); exit 1; }; } ;;
5513 # Check whether --enable-embed-stdcxx was given.
5514 if test "${enable_embed_stdcxx+set}" = set; then
5515 enableval=$enable_embed_stdcxx;
5520 case "$enableval" in
5521 yes) ENABLE_EMBED_STDCXX=1
5523 no) ENABLE_EMBED_STDCXX=0
5525 default) ENABLE_EMBED_STDCXX=0
5527 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5528 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5529 { (exit 1); exit 1; }; } ;;
5532 # Check whether --enable-timestamps was given.
5533 if test "${enable_timestamps+set}" = set; then
5534 enableval=$enable_timestamps;
5539 case "$enableval" in
5540 yes) ENABLE_TIMESTAMPS=1
5542 no) ENABLE_TIMESTAMPS=0
5544 default) ENABLE_TIMESTAMPS=1
5546 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5547 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5548 { (exit 1); exit 1; }; } ;;
5551 cat >>confdefs.h <<_ACEOF
5552 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5557 # Check whether --enable-backtraces was given.
5558 if test "${enable_backtraces+set}" = set; then
5559 enableval=$enable_backtraces;
5564 case "$enableval" in
5565 yes) ENABLE_BACKTRACES=1
5567 no) ENABLE_BACKTRACES=0
5569 default) ENABLE_BACKTRACES=1
5571 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5572 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5573 { (exit 1); exit 1; }; } ;;
5576 cat >>confdefs.h <<_ACEOF
5577 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5582 # Check whether --enable-targets was given.
5583 if test "${enable_targets+set}" = set; then
5584 enableval=$enable_targets;
5589 if test "$enableval" = host-only ; then
5592 case "$enableval" in
5593 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5594 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5596 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5597 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5598 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5599 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5600 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5601 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5602 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5603 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5604 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5605 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5606 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5607 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5608 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5609 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5610 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5611 host) case "$llvm_cv_target_arch" in
5612 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5613 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5614 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5615 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5616 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5617 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5618 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5619 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5620 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5621 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5622 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5623 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5624 echo "$as_me: error: Can not set target to build" >&2;}
5625 { (exit 1); exit 1; }; } ;;
5627 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5628 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5629 { (exit 1); exit 1; }; } ;;
5635 # Check whether --enable-experimental-targets was given.
5636 if test "${enable_experimental_targets+set}" = set; then
5637 enableval=$enable_experimental_targets;
5643 if test ${enableval} != "disable"
5645 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5648 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5651 for a_target in $TARGETS_TO_BUILD; do
5652 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5654 cat >>confdefs.h <<_ACEOF
5655 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5658 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5659 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5660 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5661 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5662 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5663 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5665 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5666 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5669 cat >>confdefs.h <<_ACEOF
5670 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5674 cat >>confdefs.h <<_ACEOF
5675 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5679 cat >>confdefs.h <<_ACEOF
5680 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5684 cat >>confdefs.h <<_ACEOF
5685 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5688 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5690 cat >>confdefs.h <<_ACEOF
5691 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5695 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5697 cat >>confdefs.h <<_ACEOF
5698 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5705 LLVM_ENUM_TARGETS=""
5706 LLVM_ENUM_ASM_PRINTERS=""
5707 LLVM_ENUM_ASM_PARSERS=""
5708 LLVM_ENUM_DISASSEMBLERS=""
5709 for target_to_build in $TARGETS_TO_BUILD; do
5710 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5711 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5712 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5714 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5715 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5717 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5718 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5727 # Check whether --with-optimize-option was given.
5728 if test "${with_optimize_option+set}" = set; then
5729 withval=$with_optimize_option;
5734 { echo "$as_me:$LINENO: checking optimization flags" >&5
5735 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5738 case "$llvm_cv_os_type" in
5739 FreeBSD) optimize_option=-O2 ;;
5740 MingW) optimize_option=-O2 ;;
5741 *) optimize_option=-O3 ;;
5743 *) optimize_option="$withval" ;;
5745 OPTIMIZE_OPTION=$optimize_option
5747 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5748 echo "${ECHO_T}$optimize_option" >&6; }
5751 # Check whether --with-extra-options was given.
5752 if test "${with_extra_options+set}" = set; then
5753 withval=$with_extra_options;
5759 default) EXTRA_OPTIONS= ;;
5760 *) EXTRA_OPTIONS=$withval ;;
5762 EXTRA_OPTIONS=$EXTRA_OPTIONS
5766 # Check whether --with-extra-ld-options was given.
5767 if test "${with_extra_ld_options+set}" = set; then
5768 withval=$with_extra_ld_options;
5774 default) EXTRA_LD_OPTIONS= ;;
5775 *) EXTRA_LD_OPTIONS=$withval ;;
5777 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5780 # Check whether --enable-bindings was given.
5781 if test "${enable_bindings+set}" = set; then
5782 enableval=$enable_bindings;
5787 BINDINGS_TO_BUILD=""
5788 case "$enableval" in
5789 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5790 all ) BINDINGS_TO_BUILD="ocaml" ;;
5791 none | no) BINDINGS_TO_BUILD="" ;;
5792 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5793 case "$a_binding" in
5794 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5795 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5796 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5797 { (exit 1); exit 1; }; } ;;
5804 # Check whether --with-ocaml-libdir was given.
5805 if test "${with_ocaml_libdir+set}" = set; then
5806 withval=$with_ocaml_libdir;
5812 auto) with_ocaml_libdir="$withval" ;;
5813 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5814 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5815 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5816 { (exit 1); exit 1; }; } ;;
5820 # Check whether --with-clang-srcdir was given.
5821 if test "${with_clang_srcdir+set}" = set; then
5822 withval=$with_clang_srcdir;
5828 -) clang_src_root="" ;;
5829 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5830 *) clang_src_root="$ac_pwd/$withval" ;;
5832 CLANG_SRC_ROOT=$clang_src_root
5836 # Check whether --with-clang-resource-dir was given.
5837 if test "${with_clang_resource_dir+set}" = set; then
5838 withval=$with_clang_resource_dir;
5844 cat >>confdefs.h <<_ACEOF
5845 #define CLANG_RESOURCE_DIR "$withval"
5850 # Check whether --with-c-include-dirs was given.
5851 if test "${with_c_include_dirs+set}" = set; then
5852 withval=$with_c_include_dirs;
5858 cat >>confdefs.h <<_ACEOF
5859 #define C_INCLUDE_DIRS "$withval"
5863 # Clang normally uses the system c++ headers and libraries. With this option,
5864 # clang will use the ones provided by a gcc installation instead. This option should
5865 # be passed the same value that was used with --prefix when configuring gcc.
5867 # Check whether --with-gcc-toolchain was given.
5868 if test "${with_gcc_toolchain+set}" = set; then
5869 withval=$with_gcc_toolchain;
5875 cat >>confdefs.h <<_ACEOF
5876 #define GCC_INSTALL_PREFIX "$withval"
5881 # Check whether --with-default-sysroot was given.
5882 if test "${with_default_sysroot+set}" = set; then
5883 withval=$with_default_sysroot;
5889 cat >>confdefs.h <<_ACEOF
5890 #define DEFAULT_SYSROOT "$withval"
5895 # Check whether --with-binutils-include was given.
5896 if test "${with_binutils_include+set}" = set; then
5897 withval=$with_binutils_include;
5903 default) WITH_BINUTILS_INCDIR=default ;;
5904 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5905 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5906 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5907 { (exit 1); exit 1; }; } ;;
5909 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5910 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5912 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5913 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5914 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5915 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5916 { (exit 1); exit 1; }; };
5921 # Check whether --with-bug-report-url was given.
5922 if test "${with_bug_report_url+set}" = set; then
5923 withval=$with_bug_report_url;
5925 withval="http://llvm.org/bugs/"
5929 cat >>confdefs.h <<_ACEOF
5930 #define BUG_REPORT_URL "$withval"
5934 # Check whether --enable-libffi was given.
5935 if test "${enable_libffi+set}" = set; then
5936 enableval=$enable_libffi; case "$enableval" in
5937 yes) llvm_cv_enable_libffi="yes" ;;
5938 no) llvm_cv_enable_libffi="no" ;;
5939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5940 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5941 { (exit 1); exit 1; }; } ;;
5944 llvm_cv_enable_libffi=no
5949 # Check whether --with-internal-prefix was given.
5950 if test "${with_internal_prefix+set}" = set; then
5951 withval=$with_internal_prefix;
5956 INTERNAL_PREFIX=$withval
5960 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5961 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5962 if test "${lt_cv_path_NM+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 if test -n "$NM"; then
5966 # Let the user override the test.
5969 lt_nm_to_check="${ac_tool_prefix}nm"
5970 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5971 lt_nm_to_check="$lt_nm_to_check nm"
5973 for lt_tmp_nm in $lt_nm_to_check; do
5974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5975 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5977 test -z "$ac_dir" && ac_dir=.
5978 tmp_nm="$ac_dir/$lt_tmp_nm"
5979 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5980 # Check to see if the nm accepts a BSD-compat flag.
5981 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5982 # nm: unknown option "B" ignored
5983 # Tru64's nm complains that /dev/null is an invalid object file
5984 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5985 */dev/null* | *'Invalid file or object type'*)
5986 lt_cv_path_NM="$tmp_nm -B"
5990 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5992 lt_cv_path_NM="$tmp_nm -p"
5996 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5997 continue # so that we can try to find one that supports BSD flags
6006 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6009 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6010 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6015 { echo "$as_me:$LINENO: checking for GNU make" >&5
6016 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6017 if test "${llvm_cv_gnu_make_command+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 llvm_cv_gnu_make_command=''
6021 for a in "$MAKE" make gmake gnumake ; do
6022 if test -z "$a" ; then continue ; fi ;
6023 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6025 llvm_cv_gnu_make_command=$a ;
6030 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6031 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6032 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6036 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6037 echo "${ECHO_T}\"Not found\"" >&6; };
6041 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6042 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6044 if test "$LN_S" = "ln -s"; then
6045 { echo "$as_me:$LINENO: result: yes" >&5
6046 echo "${ECHO_T}yes" >&6; }
6048 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6049 echo "${ECHO_T}no, using $LN_S" >&6; }
6052 # Extract the first word of "cmp", so it can be a program name with args.
6053 set dummy cmp; ac_word=$2
6054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056 if test "${ac_cv_path_CMP+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6084 if test -n "$CMP"; then
6085 { echo "$as_me:$LINENO: result: $CMP" >&5
6086 echo "${ECHO_T}$CMP" >&6; }
6088 { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6093 # Extract the first word of "cp", so it can be a program name with args.
6094 set dummy cp; ac_word=$2
6095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097 if test "${ac_cv_path_CP+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6125 if test -n "$CP"; then
6126 { echo "$as_me:$LINENO: result: $CP" >&5
6127 echo "${ECHO_T}$CP" >&6; }
6129 { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6134 # Extract the first word of "date", so it can be a program name with args.
6135 set dummy date; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_path_DATE+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6165 DATE=$ac_cv_path_DATE
6166 if test -n "$DATE"; then
6167 { echo "$as_me:$LINENO: result: $DATE" >&5
6168 echo "${ECHO_T}$DATE" >&6; }
6170 { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6175 # Extract the first word of "find", so it can be a program name with args.
6176 set dummy find; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_path_FIND+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6206 FIND=$ac_cv_path_FIND
6207 if test -n "$FIND"; then
6208 { echo "$as_me:$LINENO: result: $FIND" >&5
6209 echo "${ECHO_T}$FIND" >&6; }
6211 { echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6; }
6216 # Extract the first word of "grep", so it can be a program name with args.
6217 set dummy grep; ac_word=$2
6218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220 if test "${ac_cv_path_GREP+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6235 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6247 GREP=$ac_cv_path_GREP
6248 if test -n "$GREP"; then
6249 { echo "$as_me:$LINENO: result: $GREP" >&5
6250 echo "${ECHO_T}$GREP" >&6; }
6252 { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6257 # Extract the first word of "mkdir", so it can be a program name with args.
6258 set dummy mkdir; ac_word=$2
6259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261 if test "${ac_cv_path_MKDIR+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6288 MKDIR=$ac_cv_path_MKDIR
6289 if test -n "$MKDIR"; then
6290 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6291 echo "${ECHO_T}$MKDIR" >&6; }
6293 { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6298 # Extract the first word of "mv", so it can be a program name with args.
6299 set dummy mv; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_MV+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6330 if test -n "$MV"; then
6331 { echo "$as_me:$LINENO: result: $MV" >&5
6332 echo "${ECHO_T}$MV" >&6; }
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6339 if test -n "$ac_tool_prefix"; then
6340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_prog_RANLIB+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 if test -n "$RANLIB"; then
6348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 RANLIB=$ac_cv_prog_RANLIB
6368 if test -n "$RANLIB"; then
6369 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6370 echo "${ECHO_T}$RANLIB" >&6; }
6372 { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6378 if test -z "$ac_cv_prog_RANLIB"; then
6379 ac_ct_RANLIB=$RANLIB
6380 # Extract the first word of "ranlib", so it can be a program name with args.
6381 set dummy ranlib; ac_word=$2
6382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 if test -n "$ac_ct_RANLIB"; then
6388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_ac_ct_RANLIB="ranlib"
6398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6408 if test -n "$ac_ct_RANLIB"; then
6409 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6410 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6412 { echo "$as_me:$LINENO: result: no" >&5
6413 echo "${ECHO_T}no" >&6; }
6416 if test "x$ac_ct_RANLIB" = x; then
6419 case $cross_compiling:$ac_tool_warned in
6421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6422 whose name does not start with the host triplet. If you think this
6423 configuration is useful to you, please write to autoconf@gnu.org." >&5
6424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6425 whose name does not start with the host triplet. If you think this
6426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6427 ac_tool_warned=yes ;;
6429 RANLIB=$ac_ct_RANLIB
6432 RANLIB="$ac_cv_prog_RANLIB"
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}ar; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_AR+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 if test -n "$AR"; then
6444 ac_cv_prog_AR="$AR" # Let the user override the test.
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_AR="${ac_tool_prefix}ar"
6454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 if test -n "$AR"; then
6465 { echo "$as_me:$LINENO: result: $AR" >&5
6466 echo "${ECHO_T}$AR" >&6; }
6468 { echo "$as_me:$LINENO: result: no" >&5
6469 echo "${ECHO_T}no" >&6; }
6474 if test -z "$ac_cv_prog_AR"; then
6476 # Extract the first word of "ar", so it can be a program name with args.
6477 set dummy ar; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 if test -n "$ac_ct_AR"; then
6484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_AR="ar"
6494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6504 if test -n "$ac_ct_AR"; then
6505 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6506 echo "${ECHO_T}$ac_ct_AR" >&6; }
6508 { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6512 if test "x$ac_ct_AR" = x; then
6515 case $cross_compiling:$ac_tool_warned in
6517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6518 whose name does not start with the host triplet. If you think this
6519 configuration is useful to you, please write to autoconf@gnu.org." >&5
6520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6521 whose name does not start with the host triplet. If you think this
6522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6523 ac_tool_warned=yes ;;
6531 # Extract the first word of "rm", so it can be a program name with args.
6532 set dummy rm; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_path_RM+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6563 if test -n "$RM"; then
6564 { echo "$as_me:$LINENO: result: $RM" >&5
6565 echo "${ECHO_T}$RM" >&6; }
6567 { echo "$as_me:$LINENO: result: no" >&5
6568 echo "${ECHO_T}no" >&6; }
6572 # Extract the first word of "sed", so it can be a program name with args.
6573 set dummy sed; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_path_SED+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6604 if test -n "$SED"; then
6605 { echo "$as_me:$LINENO: result: $SED" >&5
6606 echo "${ECHO_T}$SED" >&6; }
6608 { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6613 # Extract the first word of "tar", so it can be a program name with args.
6614 set dummy tar; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_TAR+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6645 if test -n "$TAR"; then
6646 { echo "$as_me:$LINENO: result: $TAR" >&5
6647 echo "${ECHO_T}$TAR" >&6; }
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6654 # Extract the first word of "pwd", so it can be a program name with args.
6655 set dummy pwd; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_BINPWD+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6685 BINPWD=$ac_cv_path_BINPWD
6686 if test -n "$BINPWD"; then
6687 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6688 echo "${ECHO_T}$BINPWD" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6696 # Extract the first word of "Graphviz", so it can be a program name with args.
6697 set dummy Graphviz; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6727 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6728 if test -n "$GRAPHVIZ"; then
6729 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6730 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6737 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_GRAPHVIZ 1
6743 if test "$llvm_cv_os_type" = "MingW" ; then
6744 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6747 cat >>confdefs.h <<_ACEOF
6748 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6752 # Extract the first word of "dot", so it can be a program name with args.
6753 set dummy dot; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_DOT+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6784 if test -n "$DOT"; then
6785 { echo "$as_me:$LINENO: result: $DOT" >&5
6786 echo "${ECHO_T}$DOT" >&6; }
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6793 if test "$DOT" != "echo dot" ; then
6795 cat >>confdefs.h <<\_ACEOF
6799 if test "$llvm_cv_os_type" = "MingW" ; then
6800 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6803 cat >>confdefs.h <<_ACEOF
6804 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6808 # Extract the first word of "fdp", so it can be a program name with args.
6809 set dummy fdp; ac_word=$2
6810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812 if test "${ac_cv_path_FDP+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6840 if test -n "$FDP"; then
6841 { echo "$as_me:$LINENO: result: $FDP" >&5
6842 echo "${ECHO_T}$FDP" >&6; }
6844 { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6849 if test "$FDP" != "echo fdp" ; then
6851 cat >>confdefs.h <<\_ACEOF
6855 if test "$llvm_cv_os_type" = "MingW" ; then
6856 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6859 cat >>confdefs.h <<_ACEOF
6860 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6864 # Extract the first word of "neato", so it can be a program name with args.
6865 set dummy neato; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_NEATO+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6895 NEATO=$ac_cv_path_NEATO
6896 if test -n "$NEATO"; then
6897 { echo "$as_me:$LINENO: result: $NEATO" >&5
6898 echo "${ECHO_T}$NEATO" >&6; }
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6905 if test "$NEATO" != "echo neato" ; then
6907 cat >>confdefs.h <<\_ACEOF
6908 #define HAVE_NEATO 1
6911 if test "$llvm_cv_os_type" = "MingW" ; then
6912 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6915 cat >>confdefs.h <<_ACEOF
6916 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6920 # Extract the first word of "twopi", so it can be a program name with args.
6921 set dummy twopi; ac_word=$2
6922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924 if test "${ac_cv_path_TWOPI+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6939 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6951 TWOPI=$ac_cv_path_TWOPI
6952 if test -n "$TWOPI"; then
6953 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6954 echo "${ECHO_T}$TWOPI" >&6; }
6956 { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6961 if test "$TWOPI" != "echo twopi" ; then
6963 cat >>confdefs.h <<\_ACEOF
6964 #define HAVE_TWOPI 1
6967 if test "$llvm_cv_os_type" = "MingW" ; then
6968 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6971 cat >>confdefs.h <<_ACEOF
6972 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6976 # Extract the first word of "circo", so it can be a program name with args.
6977 set dummy circo; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_CIRCO+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7007 CIRCO=$ac_cv_path_CIRCO
7008 if test -n "$CIRCO"; then
7009 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7010 echo "${ECHO_T}$CIRCO" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 if test "$CIRCO" != "echo circo" ; then
7019 cat >>confdefs.h <<\_ACEOF
7020 #define HAVE_CIRCO 1
7023 if test "$llvm_cv_os_type" = "MingW" ; then
7024 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027 cat >>confdefs.h <<_ACEOF
7028 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7032 for ac_prog in gv gsview32
7034 # Extract the first word of "$ac_prog", so it can be a program name with args.
7035 set dummy $ac_prog; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_GV+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 if test -n "$GV"; then
7066 { echo "$as_me:$LINENO: result: $GV" >&5
7067 echo "${ECHO_T}$GV" >&6; }
7069 { echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6; }
7074 test -n "$GV" && break
7076 test -n "$GV" || GV="echo gv"
7078 if test "$GV" != "echo gv" ; then
7080 cat >>confdefs.h <<\_ACEOF
7084 if test "$llvm_cv_os_type" = "MingW" ; then
7085 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7088 cat >>confdefs.h <<_ACEOF
7089 #define LLVM_PATH_GV "$GV${EXEEXT}"
7093 # Extract the first word of "dotty", so it can be a program name with args.
7094 set dummy dotty; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_DOTTY+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7124 DOTTY=$ac_cv_path_DOTTY
7125 if test -n "$DOTTY"; then
7126 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7127 echo "${ECHO_T}$DOTTY" >&6; }
7129 { echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6; }
7134 if test "$DOTTY" != "echo dotty" ; then
7136 cat >>confdefs.h <<\_ACEOF
7137 #define HAVE_DOTTY 1
7140 if test "$llvm_cv_os_type" = "MingW" ; then
7141 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7144 cat >>confdefs.h <<_ACEOF
7145 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7149 # Extract the first word of "xdot.py", so it can be a program name with args.
7150 set dummy xdot.py; ac_word=$2
7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7180 XDOT_PY=$ac_cv_path_XDOT_PY
7181 if test -n "$XDOT_PY"; then
7182 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7183 echo "${ECHO_T}$XDOT_PY" >&6; }
7185 { echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6; }
7190 if test "$XDOT_PY" != "echo xdot.py" ; then
7192 cat >>confdefs.h <<\_ACEOF
7193 #define HAVE_XDOT_PY 1
7196 if test "$llvm_cv_os_type" = "MingW" ; then
7197 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7200 cat >>confdefs.h <<_ACEOF
7201 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7206 # Find a good install program. We prefer a C program (faster),
7207 # so one script is as good as another. But avoid the broken or
7208 # incompatible versions:
7209 # SysV /etc/install, /usr/sbin/install
7210 # SunOS /usr/etc/install
7211 # IRIX /sbin/install
7213 # AmigaOS /C/install, which installs bootblocks on floppy discs
7214 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7215 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7216 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7217 # OS/2's system install, which has a completely different semantic
7218 # ./install, which can be erroneously created by make from ./install.sh.
7219 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7220 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7221 if test -z "$INSTALL"; then
7222 if test "${ac_cv_path_install+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 # Account for people who put trailing slashes in PATH elements.
7232 ./ | .// | /cC/* | \
7233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7234 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7237 # OSF1 and SCO ODT 3.0 have their own names for install.
7238 # Don't use installbsd from OSF since it installs stuff as root
7240 for ac_prog in ginstall scoinst install; do
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7243 if test $ac_prog = install &&
7244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7245 # AIX install. It has an incompatible calling convention.
7247 elif test $ac_prog = install &&
7248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7249 # program-specific install script used by HP pwplus--don't use.
7252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7265 if test "${ac_cv_path_install+set}" = set; then
7266 INSTALL=$ac_cv_path_install
7268 # As a last resort, use the slow shell script. Don't cache a
7269 # value for INSTALL within a source directory, because that will
7270 # break other packages using the cache if that directory is
7271 # removed, or if the value is a relative name.
7272 INSTALL=$ac_install_sh
7275 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7276 echo "${ECHO_T}$INSTALL" >&6; }
7278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7279 # It thinks the first close brace ends the variable substitution.
7280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7287 [\\/$]* | ?:[\\/]* ) ;;
7288 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7291 # Extract the first word of "bzip2", so it can be a program name with args.
7292 set dummy bzip2; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_BZIP2+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 BZIP2=$ac_cv_path_BZIP2
7322 if test -n "$BZIP2"; then
7323 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7324 echo "${ECHO_T}$BZIP2" >&6; }
7326 { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7331 # Extract the first word of "cat", so it can be a program name with args.
7332 set dummy cat; ac_word=$2
7333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335 if test "${ac_cv_path_CAT+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 if test -n "$CAT"; then
7363 { echo "$as_me:$LINENO: result: $CAT" >&5
7364 echo "${ECHO_T}$CAT" >&6; }
7366 { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7371 # Extract the first word of "doxygen", so it can be a program name with args.
7372 set dummy doxygen; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 DOXYGEN=$ac_cv_path_DOXYGEN
7402 if test -n "$DOXYGEN"; then
7403 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7404 echo "${ECHO_T}$DOXYGEN" >&6; }
7406 { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7411 # Extract the first word of "groff", so it can be a program name with args.
7412 set dummy groff; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_GROFF+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 GROFF=$ac_cv_path_GROFF
7442 if test -n "$GROFF"; then
7443 { echo "$as_me:$LINENO: result: $GROFF" >&5
7444 echo "${ECHO_T}$GROFF" >&6; }
7446 { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7451 # Extract the first word of "gzip", so it can be a program name with args.
7452 set dummy gzip; ac_word=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 GZIPBIN=$ac_cv_path_GZIPBIN
7482 if test -n "$GZIPBIN"; then
7483 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7484 echo "${ECHO_T}$GZIPBIN" >&6; }
7486 { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7491 # Extract the first word of "pdfroff", so it can be a program name with args.
7492 set dummy pdfroff; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_PDFROFF+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 PDFROFF=$ac_cv_path_PDFROFF
7522 if test -n "$PDFROFF"; then
7523 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7524 echo "${ECHO_T}$PDFROFF" >&6; }
7526 { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7531 # Extract the first word of "zip", so it can be a program name with args.
7532 set dummy zip; ac_word=$2
7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535 if test "${ac_cv_path_ZIP+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 if test -n "$ZIP"; then
7563 { echo "$as_me:$LINENO: result: $ZIP" >&5
7564 echo "${ECHO_T}$ZIP" >&6; }
7566 { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7571 for ac_prog in ocamlc
7573 # Extract the first word of "$ac_prog", so it can be a program name with args.
7574 set dummy $ac_prog; ac_word=$2
7575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577 if test "${ac_cv_path_OCAMLC+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 OCAMLC=$ac_cv_path_OCAMLC
7604 if test -n "$OCAMLC"; then
7605 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7606 echo "${ECHO_T}$OCAMLC" >&6; }
7608 { echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6; }
7613 test -n "$OCAMLC" && break
7616 for ac_prog in ocamlopt
7618 # Extract the first word of "$ac_prog", so it can be a program name with args.
7619 set dummy $ac_prog; ac_word=$2
7620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 OCAMLOPT=$ac_cv_path_OCAMLOPT
7649 if test -n "$OCAMLOPT"; then
7650 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7651 echo "${ECHO_T}$OCAMLOPT" >&6; }
7653 { echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6; }
7658 test -n "$OCAMLOPT" && break
7661 for ac_prog in ocamldep
7663 # Extract the first word of "$ac_prog", so it can be a program name with args.
7664 set dummy $ac_prog; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 OCAMLDEP=$ac_cv_path_OCAMLDEP
7694 if test -n "$OCAMLDEP"; then
7695 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7696 echo "${ECHO_T}$OCAMLDEP" >&6; }
7698 { echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6; }
7703 test -n "$OCAMLDEP" && break
7706 for ac_prog in ocamldoc
7708 # Extract the first word of "$ac_prog", so it can be a program name with args.
7709 set dummy $ac_prog; ac_word=$2
7710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7712 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 OCAMLDOC=$ac_cv_path_OCAMLDOC
7739 if test -n "$OCAMLDOC"; then
7740 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7741 echo "${ECHO_T}$OCAMLDOC" >&6; }
7743 { echo "$as_me:$LINENO: result: no" >&5
7744 echo "${ECHO_T}no" >&6; }
7748 test -n "$OCAMLDOC" && break
7751 for ac_prog in gas as
7753 # Extract the first word of "$ac_prog", so it can be a program name with args.
7754 set dummy $ac_prog; ac_word=$2
7755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757 if test "${ac_cv_path_GAS+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 if test -n "$GAS"; then
7785 { echo "$as_me:$LINENO: result: $GAS" >&5
7786 echo "${ECHO_T}$GAS" >&6; }
7788 { echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6; }
7793 test -n "$GAS" && break
7797 { echo "$as_me:$LINENO: checking for linker version" >&5
7798 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7799 if test "${llvm_cv_link_version+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 version_string="$(ld -v 2>&1 | head -1)"
7806 if (echo "$version_string" | grep -q "ld64"); then
7807 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7809 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7813 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7814 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7816 cat >>confdefs.h <<_ACEOF
7817 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7822 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7823 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7824 if test "${llvm_cv_link_use_r+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 ac_cpp='$CPP $CPPFLAGS'
7829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834 CFLAGS="$CFLAGS -Wl,-R."
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (ac_try="$ac_link"
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_link") 2>conftest.er1
7859 grep -v '^ *+' conftest.er1 >conftest.err
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } &&
7864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7865 { (case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_try") 2>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest$ac_exeext'
7875 { (case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_try") 2>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 llvm_cv_link_use_r=yes
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 llvm_cv_link_use_r=no
7892 rm -f core conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7904 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7905 if test "$llvm_cv_link_use_r" = yes ; then
7907 cat >>confdefs.h <<\_ACEOF
7908 #define HAVE_LINK_R 1
7914 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7915 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7916 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7927 cat >conftest.$ac_ext <<_ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7942 rm -f conftest.$ac_objext conftest$ac_exeext
7943 if { (ac_try="$ac_link"
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_link") 2>conftest.er1
7951 grep -v '^ *+' conftest.er1 >conftest.err
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7957 { (case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_try") 2>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest$ac_exeext'
7967 { (case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_try") 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7976 llvm_cv_link_use_export_dynamic=yes
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7981 llvm_cv_link_use_export_dynamic=no
7984 rm -f core conftest.err conftest.$ac_objext \
7985 conftest$ac_exeext conftest.$ac_ext
7988 ac_cpp='$CPP $CPPFLAGS'
7989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7996 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7997 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7999 cat >>confdefs.h <<\_ACEOF
8000 #define HAVE_LINK_EXPORT_DYNAMIC 1
8006 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8007 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8008 if test "${llvm_cv_link_use_version_script+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8019 # The following code is from the autoconf manual,
8020 # "11.13: Limitations of Usual Tools".
8021 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8022 # Use mktemp if possible; otherwise fall back on mkdir,
8023 # with $RANDOM to make collisions less likely.
8027 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8029 test -n "$tmp" && test -d "$tmp"
8031 tmp=$TMPDIR/foo$$-$RANDOM
8032 (umask 077 && mkdir "$tmp")
8035 echo "{" > "$tmp/export.map"
8036 echo " global: main;" >> "$tmp/export.map"
8037 echo " local: *;" >> "$tmp/export.map"
8038 echo "};" >> "$tmp/export.map"
8040 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (ac_try="$ac_link"
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063 (eval "$ac_link") 2>conftest.er1
8065 grep -v '^ *+' conftest.er1 >conftest.err
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8071 { (case "(($ac_try" in
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_try") 2>&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; } &&
8080 { ac_try='test -s conftest$ac_exeext'
8081 { (case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_try") 2>&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 llvm_cv_link_use_version_script=yes
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8095 llvm_cv_link_use_version_script=no
8098 rm -f core conftest.err conftest.$ac_objext \
8099 conftest$ac_exeext conftest.$ac_ext
8100 rm "$tmp/export.map"
8104 ac_cpp='$CPP $CPPFLAGS'
8105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8111 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8112 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8113 if test "$llvm_cv_link_use_version_script" = yes ; then
8114 HAVE_LINK_VERSION_SCRIPT=1
8121 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8122 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8123 if test "${ac_cv_c_const+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 cat >conftest.$ac_ext <<_ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8136 /* FIXME: Include the comments suggested by Paul. */
8138 /* Ultrix mips cc rejects this. */
8139 typedef int charset[2];
8141 /* SunOS 4.1.1 cc rejects this. */
8142 char const *const *ccp;
8144 /* NEC SVR4.0.2 mips cc rejects this. */
8145 struct point {int x, y;};
8146 static struct point const zero = {0,0};
8147 /* AIX XL C 1.02.0.0 rejects this.
8148 It does not let you subtract one const X* pointer from another in
8149 an arm of an if-expression whose if-part is not a constant
8151 const char *g = "string";
8152 ccp = &g + (g ? g-g : 0);
8153 /* HPUX 7.0 cc rejects these. */
8156 ccp = (char const *const *) p;
8157 { /* SCO 3.2v4 cc rejects this. */
8159 char const *s = 0 ? (char *) 0 : (char const *) 0;
8164 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8166 const int *foo = &x[0];
8169 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8170 typedef const int *iptr;
8174 { /* AIX XL C 1.02.0.0 rejects this saying
8175 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8176 struct s { int j; const int *ap[3]; };
8177 struct s *b; b->j = 5;
8179 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8183 return !x[0] && !zero.x;
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_compile") 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205 { (case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_try") 2>&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8235 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8236 if test $ac_cv_c_const = no; then
8238 cat >>confdefs.h <<\_ACEOF
8250 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8251 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8252 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8253 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 cat >conftest.$ac_ext <<_ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 #include <sys/types.h>
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 eval "$as_ac_Header=yes"
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 eval "$as_ac_Header=no"
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 ac_res=`eval echo '${'$as_ac_Header'}'`
8320 { echo "$as_me:$LINENO: result: $ac_res" >&5
8321 echo "${ECHO_T}$ac_res" >&6; }
8322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8323 cat >>confdefs.h <<_ACEOF
8324 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8327 ac_header_dirent=$ac_hdr; break
8331 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8332 if test $ac_header_dirent = dirent.h; then
8333 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8334 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8335 if test "${ac_cv_search_opendir+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 ac_func_search_save_LIBS=$LIBS
8339 cat >conftest.$ac_ext <<_ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8346 /* Override any GCC internal prototype to avoid an error.
8347 Use char because int might match the return type of a GCC
8348 builtin and then its argument prototype would still apply. */
8361 for ac_lib in '' dir; do
8362 if test -z "$ac_lib"; then
8363 ac_res="none required"
8366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (ac_try="$ac_link"
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_link") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8383 { (case "(($ac_try" in
8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 *) ac_try_echo=$ac_try;;
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_try") 2>&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest$ac_exeext'
8393 { (case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_try") 2>&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_search_opendir=$ac_res
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8410 rm -f core conftest.err conftest.$ac_objext \
8412 if test "${ac_cv_search_opendir+set}" = set; then
8416 if test "${ac_cv_search_opendir+set}" = set; then
8419 ac_cv_search_opendir=no
8422 LIBS=$ac_func_search_save_LIBS
8424 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8425 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8426 ac_res=$ac_cv_search_opendir
8427 if test "$ac_res" != no; then
8428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8433 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8434 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8435 if test "${ac_cv_search_opendir+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 ac_func_search_save_LIBS=$LIBS
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8446 /* Override any GCC internal prototype to avoid an error.
8447 Use char because int might match the return type of a GCC
8448 builtin and then its argument prototype would still apply. */
8461 for ac_lib in '' x; do
8462 if test -z "$ac_lib"; then
8463 ac_res="none required"
8466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8468 rm -f conftest.$ac_objext conftest$ac_exeext
8469 if { (ac_try="$ac_link"
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_link") 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8483 { (case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_try") 2>&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest$ac_exeext'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_cv_search_opendir=$ac_res
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8510 rm -f core conftest.err conftest.$ac_objext \
8512 if test "${ac_cv_search_opendir+set}" = set; then
8516 if test "${ac_cv_search_opendir+set}" = set; then
8519 ac_cv_search_opendir=no
8522 LIBS=$ac_func_search_save_LIBS
8524 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8525 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8526 ac_res=$ac_cv_search_opendir
8527 if test "$ac_res" != no; then
8528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8535 for ac_header in dlfcn.h
8537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 ac_res=`eval echo '${'$as_ac_Header'}'`
8545 { echo "$as_me:$LINENO: result: $ac_res" >&5
8546 echo "${ECHO_T}$ac_res" >&6; }
8548 # Is the header compilable?
8549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8558 #include <$ac_header>
8560 rm -f conftest.$ac_objext
8561 if { (ac_try="$ac_compile"
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_compile") 2>conftest.er1
8569 grep -v '^ *+' conftest.er1 >conftest.err
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8575 { (case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_try") 2>&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_try") 2>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_header_compiler=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 ac_header_compiler=no
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8604 echo "${ECHO_T}$ac_header_compiler" >&6; }
8606 # Is the header present?
8607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8609 cat >conftest.$ac_ext <<_ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615 #include <$ac_header>
8617 if { (ac_try="$ac_cpp conftest.$ac_ext"
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } >/dev/null; then
8630 if test -s conftest.err; then
8631 ac_cpp_err=$ac_c_preproc_warn_flag
8632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8639 if test -z "$ac_cpp_err"; then
8640 ac_header_preproc=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_header_preproc=no
8648 rm -f conftest.err conftest.$ac_ext
8649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8650 echo "${ECHO_T}$ac_header_preproc" >&6; }
8652 # So? What about this header?
8653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8659 ac_header_preproc=yes
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8675 ## ------------------------------------ ##
8676 ## Report this to http://llvm.org/bugs/ ##
8677 ## ------------------------------------ ##
8679 ) | sed "s/^/$as_me: WARNING: /" >&2
8682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 eval "$as_ac_Header=\$ac_header_preproc"
8689 ac_res=`eval echo '${'$as_ac_Header'}'`
8690 { echo "$as_me:$LINENO: result: $ac_res" >&5
8691 echo "${ECHO_T}$ac_res" >&6; }
8694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8695 cat >>confdefs.h <<_ACEOF
8696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8703 # Check whether --enable-ltdl-install was given.
8704 if test "${enable_ltdl_install+set}" = set; then
8705 enableval=$enable_ltdl_install;
8711 if test x"${enable_ltdl_install-no}" != xno; then
8713 INSTALL_LTDL_FALSE='#'
8715 INSTALL_LTDL_TRUE='#'
8721 if test x"${enable_ltdl_convenience-no}" != xno; then
8722 CONVENIENCE_LTDL_TRUE=
8723 CONVENIENCE_LTDL_FALSE='#'
8725 CONVENIENCE_LTDL_TRUE='#'
8726 CONVENIENCE_LTDL_FALSE=
8730 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8731 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8733 libname_spec='lib$name'
8741 shlibpath_overrides_runpath=unknown
8743 dynamic_linker="$host_os ld.so"
8744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8745 if test "$GCC" = yes; then
8746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8747 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8748 # if the path contains ";" then we assume it to be the separator
8749 # otherwise default to the standard path separator (i.e. ":") - it is
8750 # assumed that no part of a normal pathname contains ";" but that should
8751 # okay in the real world where ";" in dirpaths is itself problematic.
8752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8759 need_lib_prefix=unknown
8760 hardcode_into_libs=no
8762 # when you set need_version to no, make sure it does not cause -set_version
8763 # flags to be left without arguments
8764 need_version=unknown
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8770 shlibpath_var=LIBPATH
8772 # AIX 3 has no versioning support, so we append a major version to the name.
8773 soname_spec='${libname}${release}${shared_ext}$major'
8780 hardcode_into_libs=yes
8781 if test "$host_cpu" = ia64; then
8782 # AIX 5 supports IA64
8783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8784 shlibpath_var=LD_LIBRARY_PATH
8786 # With GCC up to 2.95.x, collect2 would create an import file
8787 # for dependence libraries. The import file would start with
8788 # the line `#! .'. This would cause the generated library to
8789 # depend on `.', always an invalid library. This was fixed in
8790 # development snapshots of GCC prior to 3.0.
8792 aix4 | aix4.[01] | aix4.[01].*)
8793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8795 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8803 # soname into executable. Probably we can add versioning support to
8804 # collect2, so additional links can be useful in future.
8805 if test "$aix_use_runtimelinking" = yes; then
8806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8807 # instead of lib<name>.a to let people know that these are not
8808 # typical AIX shared libraries.
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811 # We preserve .a as extension for shared libraries through AIX4.2
8812 # and later when we are not doing run time linking.
8813 library_names_spec='${libname}${release}.a $libname.a'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8816 shlibpath_var=LIBPATH
8821 library_names_spec='$libname.ixlibrary $libname.a'
8822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8823 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'
8827 library_names_spec='${libname}${shared_ext}'
8828 dynamic_linker="$host_os ld.so"
8829 shlibpath_var=LIBRARY_PATH
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8841 # the default ld.so.conf also contains /usr/contrib/lib and
8842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8843 # libtool to hard-code these into programs
8846 cygwin* | mingw* | pw32*)
8847 version_type=windows
8852 case $GCC,$host_os in
8853 yes,cygwin* | yes,mingw* | yes,pw32*)
8854 library_names_spec='$libname.dll.a'
8855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8856 postinstall_cmds='base_file=`basename \${file}`~
8857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8858 dldir=$destdir/`dirname \$dlpath`~
8859 test -d \$dldir || mkdir -p \$dldir~
8860 $install_prog $dir/$dlname \$dldir/$dlname~
8861 chmod a+x \$dldir/$dlname'
8862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8863 dlpath=$dir/\$dldll~
8865 shlibpath_overrides_runpath=yes
8869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8871 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8874 # MinGW DLLs use traditional 'lib' prefix
8875 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8877 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8878 # It is most probably a Windows format PATH printed by
8879 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8880 # path with ; separators, and with drive letters. We can handle the
8881 # drive letters (cygwin fileutils understands them), so leave them,
8882 # especially as we might pass files found there to a mingw objdump,
8883 # which wouldn't understand a cygwinified path. Ahh.
8884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8890 # pw32 DLLs use 'pw' prefix rather than 'lib'
8891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8900 dynamic_linker='Win32 ld.exe'
8901 # FIXME: first we should search . and the directory the executable is in
8905 darwin* | rhapsody*)
8906 dynamic_linker="$host_os dyld"
8910 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8911 soname_spec='${libname}${release}${major}$shared_ext'
8912 shlibpath_overrides_runpath=yes
8913 shlibpath_var=DYLD_LIBRARY_PATH
8914 shrext_cmds='.dylib'
8915 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8916 if test "$GCC" = yes; then
8917 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"`
8919 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 shlibpath_var=LD_LIBRARY_PATH
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=no
8945 hardcode_into_libs=yes
8946 dynamic_linker='GNU ld.so'
8949 freebsd* | dragonfly*)
8950 # DragonFly does not have aout. When/if they implement a new
8951 # versioning mechanism, adjust this.
8952 if test -x /usr/bin/objformat; then
8953 objformat=`/usr/bin/objformat`
8956 freebsd[123].*) objformat=aout ;;
8960 version_type=freebsd-$objformat
8961 case $version_type in
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8972 shlibpath_var=LD_LIBRARY_PATH
8975 shlibpath_overrides_runpath=yes
8977 freebsd3.[01]* | freebsdelf3.[01]*)
8978 shlibpath_overrides_runpath=yes
8979 hardcode_into_libs=yes
8981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8983 shlibpath_overrides_runpath=no
8984 hardcode_into_libs=yes
8986 freebsd*) # from 4.6 on
8987 shlibpath_overrides_runpath=yes
8988 hardcode_into_libs=yes
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 hardcode_into_libs=yes
9003 hpux9* | hpux10* | hpux11*)
9004 # Give a soname corresponding to the major version so that dld.sl refuses to
9005 # link against other versions.
9012 hardcode_into_libs=yes
9013 dynamic_linker="$host_os dld.so"
9014 shlibpath_var=LD_LIBRARY_PATH
9015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 if test "X$HPUX_IA64_MODE" = X32; then
9019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9027 hardcode_into_libs=yes
9028 dynamic_linker="$host_os dld.sl"
9029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9038 dynamic_linker="$host_os dld.sl"
9039 shlibpath_var=SHLIB_PATH
9040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9045 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9046 postinstall_cmds='chmod 555 $lib'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 shlibpath_overrides_runpath=no
9058 hardcode_into_libs=yes
9061 irix5* | irix6* | nonstopux*)
9063 nonstopux*) version_type=nonstopux ;;
9065 if test "$lt_cv_prog_gnu_ld" = yes; then
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9076 irix5* | nonstopux*)
9080 case $LD in # libtool.m4 will add one of these switches to LD
9081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9082 libsuff= shlibsuff= libmagic=32-bit;;
9083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9084 libsuff=32 shlibsuff=N32 libmagic=N32;;
9085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9087 *) libsuff= shlibsuff= libmagic=never-match;;
9091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9092 shlibpath_overrides_runpath=no
9093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9095 hardcode_into_libs=yes
9098 # No shared lib support for Linux oldld, aout, or coff.
9099 linux*oldld* | linux*aout* | linux*coff*)
9103 # This must be Linux ELF.
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 shlibpath_overrides_runpath=no
9113 # This implies no fast_install, which is unacceptable.
9114 # Some rework will be needed to allow for fast_install
9115 # before this can be enabled.
9116 hardcode_into_libs=yes
9118 # Append ld.so.conf contents to the search path
9119 if test -f /etc/ld.so.conf; then
9120 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' ' '`
9121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9124 # We used to test for /lib/ld.so.1 and disable shared libraries on
9125 # powerpc, because MkLinux only supported shared libraries with the
9126 # GNU dynamic linker. Since this was broken with cross compilers,
9127 # most powerpc-linux boxes support dynamic linking these days and
9128 # people can always --disable-shared, the test was removed, and we
9129 # assume the GNU/Linux dynamic linker is in use.
9130 dynamic_linker='GNU/Linux ld.so'
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 shlibpath_overrides_runpath=no
9141 hardcode_into_libs=yes
9142 dynamic_linker='GNU ld.so'
9149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9152 dynamic_linker='NetBSD (a.out) ld.so'
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 dynamic_linker='NetBSD ld.elf_so'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 shlibpath_overrides_runpath=yes
9160 hardcode_into_libs=yes
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 shlibpath_var=LD_LIBRARY_PATH
9167 shlibpath_overrides_runpath=yes
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=yes
9182 sys_lib_dlsearch_path_spec="/usr/lib"
9184 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9186 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9187 *) need_version=no ;;
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9194 openbsd2.[89] | openbsd2.[89].*)
9195 shlibpath_overrides_runpath=no
9198 shlibpath_overrides_runpath=yes
9202 shlibpath_overrides_runpath=yes
9207 libname_spec='$name'
9210 library_names_spec='$libname${shared_ext} $libname.a'
9211 dynamic_linker='OS/2 ld.exe'
9212 shlibpath_var=LIBPATH
9215 osf3* | osf4* | osf5*)
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9223 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=yes
9234 hardcode_into_libs=yes
9235 # ldd complains unless libraries are executable
9236 postinstall_cmds='chmod +x $lib'
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9243 shlibpath_var=LD_LIBRARY_PATH
9244 shlibpath_overrides_runpath=yes
9245 if test "$with_gnu_ld" = yes; then
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 case $host_vendor in
9258 shlibpath_overrides_runpath=no
9260 export_dynamic_flag_spec='${wl}-Blargedynsym'
9261 runpath_var=LD_RUN_PATH
9269 shlibpath_overrides_runpath=no
9270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9276 if test -d /usr/nec ;then
9278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9279 soname_spec='$libname${shared_ext}.$major'
9280 shlibpath_var=LD_LIBRARY_PATH
9284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9285 version_type=freebsd-elf
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 hardcode_into_libs=yes
9292 if test "$with_gnu_ld" = yes; then
9293 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9294 shlibpath_overrides_runpath=no
9296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9297 shlibpath_overrides_runpath=yes
9300 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9304 sys_lib_dlsearch_path_spec='/usr/lib'
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 shlibpath_var=LD_LIBRARY_PATH
9318 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9319 echo "${ECHO_T}$dynamic_linker" >&6; }
9320 test "$dynamic_linker" = no && can_build_shared=no
9322 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9323 if test "$GCC" = yes; then
9324 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9328 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9329 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9330 if test "${libltdl_cv_shlibext+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 eval libltdl_cv_shlibext=$shrext_cmds
9338 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9339 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9340 if test -n "$libltdl_cv_shlibext"; then
9342 cat >>confdefs.h <<_ACEOF
9343 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9349 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9350 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9351 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 libltdl_cv_shlibpath_var="$shlibpath_var"
9356 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9357 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9358 if test -n "$libltdl_cv_shlibpath_var"; then
9360 cat >>confdefs.h <<_ACEOF
9361 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9367 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9368 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9369 if test "${libltdl_cv_sys_search_path+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9374 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9375 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9376 if test -n "$libltdl_cv_sys_search_path"; then
9378 for dir in $libltdl_cv_sys_search_path; do
9379 if test -z "$sys_search_path"; then
9380 sys_search_path="$dir"
9382 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9386 cat >>confdefs.h <<_ACEOF
9387 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9392 { echo "$as_me:$LINENO: checking for objdir" >&5
9393 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9394 if test "${libltdl_cv_objdir+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 libltdl_cv_objdir="$objdir"
9398 if test -n "$objdir"; then
9401 rm -f .libs 2>/dev/null
9402 mkdir .libs 2>/dev/null
9403 if test -d .libs; then
9404 libltdl_cv_objdir=.libs
9406 # MS-DOS does not allow filenames that begin with a dot.
9407 libltdl_cv_objdir=_libs
9409 rmdir .libs 2>/dev/null
9413 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9414 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9416 cat >>confdefs.h <<_ACEOF
9417 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9425 # Check for command to grab the raw symbol name followed by C symbol from nm.
9426 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9427 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9428 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 # These are sane defaults that work on at least a few old systems.
9433 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9435 # Character class describing NM global symbol codes.
9436 symcode='[BCDEGRST]'
9438 # Regexp to match symbols that can be accessed directly from C.
9439 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9441 # Transform an extracted symbol line into a proper C declaration
9442 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9444 # Transform an extracted symbol line into symbol name and symbol address
9445 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'"
9447 # Define system-specific variables.
9452 cygwin* | mingw* | pw32*)
9453 symcode='[ABCDGISTW]'
9455 hpux*) # Its linker distinguishes data from code symbols
9456 if test "$host_cpu" = ia64; then
9457 symcode='[ABCDEGRST]'
9459 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9460 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'"
9463 if test "$host_cpu" = ia64; then
9464 symcode='[ABCDGIRSTW]'
9465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9466 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'"
9470 symcode='[BCDEGRST]'
9473 symcode='[BCDEGQRST]'
9484 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9492 # Handle CRLF in mingw tool chain
9496 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9500 # If we're using GNU nm, then use its standard symbol codes.
9501 case `$NM -V 2>&1` in
9502 *GNU* | *'with BFD'*)
9503 symcode='[ABCDGIRSTW]' ;;
9506 # Try without a prefix undercore, then with it.
9507 for ac_symprfx in "" "_"; do
9509 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9510 symxfrm="\\1 $ac_symprfx\\2 \\2"
9512 # Write the raw and C identifiers.
9513 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9515 # Check to see that the pipe works correctly.
9519 cat > conftest.$ac_ext <<EOF
9524 void nm_test_func(){}
9528 int main(){nm_test_var='a';nm_test_func();return(0);}
9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532 (eval $ac_compile) 2>&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; then
9536 # Now try to grab the symbols.
9538 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9539 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && test -s "$nlist"; then
9543 # Try sorting and uniquifying the output.
9544 if sort "$nlist" | uniq > "$nlist"T; then
9545 mv -f "$nlist"T "$nlist"
9550 # Make sure that we snagged all the symbols we need.
9551 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9552 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9553 cat <<EOF > conftest.$ac_ext
9559 # Now generate the symbol file.
9560 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9562 cat <<EOF >> conftest.$ac_ext
9563 #if defined (__STDC__) && __STDC__
9564 # define lt_ptr_t void *
9566 # define lt_ptr_t char *
9570 /* The mapping between symbol names and symbols. */
9575 lt_preloaded_symbols[] =
9578 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9579 cat <<\EOF >> conftest.$ac_ext
9587 # Now try linking the two files.
9588 mv conftest.$ac_objext conftstm.$ac_objext
9589 lt_save_LIBS="$LIBS"
9590 lt_save_CFLAGS="$CFLAGS"
9591 LIBS="conftstm.$ac_objext"
9592 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9600 LIBS="$lt_save_LIBS"
9601 CFLAGS="$lt_save_CFLAGS"
9603 echo "cannot find nm_test_func in $nlist" >&5
9606 echo "cannot find nm_test_var in $nlist" >&5
9609 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9612 echo "$progname: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9615 rm -f conftest* conftst*
9617 # Do not use the global_symbol_pipe unless it works.
9618 if test "$pipe_works" = yes; then
9621 lt_cv_sys_global_symbol_pipe=
9627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9628 lt_cv_sys_global_symbol_to_cdecl=
9630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9631 { echo "$as_me:$LINENO: result: failed" >&5
9632 echo "${ECHO_T}failed" >&6; }
9634 { echo "$as_me:$LINENO: result: ok" >&5
9635 echo "${ECHO_T}ok" >&6; }
9639 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9640 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9641 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9645 libltdl_cv_preloaded_symbols=yes
9647 libltdl_cv_preloaded_symbols=no
9651 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9652 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9653 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9655 cat >>confdefs.h <<\_ACEOF
9656 #define HAVE_PRELOADED_SYMBOLS 1
9664 ac_cpp='$CPP $CPPFLAGS'
9665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9670 { echo "$as_me:$LINENO: checking for shl_load" >&5
9671 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9672 if test "${ac_cv_func_shl_load+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 cat >conftest.$ac_ext <<_ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9681 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9683 #define shl_load innocuous_shl_load
9685 /* System header to define __stub macros and hopefully few prototypes,
9686 which can conflict with char shl_load (); below.
9687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9688 <limits.h> exists even on freestanding compilers. */
9691 # include <limits.h>
9693 # include <assert.h>
9698 /* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9705 /* The GNU C library defines this for functions which it implements
9706 to always fail with ENOSYS. Some functions are actually named
9707 something starting with __ and the normal name is an alias. */
9708 #if defined __stub_shl_load || defined __stub___shl_load
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9729 grep -v '^ *+' conftest.er1 >conftest.err
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9735 { (case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_try") 2>&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_func_shl_load=yes
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ac_cv_func_shl_load=no
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9765 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9766 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9767 if test $ac_cv_func_shl_load = yes; then
9769 cat >>confdefs.h <<\_ACEOF
9770 #define HAVE_SHL_LOAD 1
9774 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9775 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9776 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 ac_check_lib_save_LIBS=$LIBS
9781 cat >conftest.$ac_ext <<_ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9788 /* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
9790 builtin and then its argument prototype would still apply. */
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (ac_try="$ac_link"
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_link") 2>conftest.er1
9812 grep -v '^ *+' conftest.er1 >conftest.err
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9818 { (case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_try") 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_try") 2>&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
9837 ac_cv_lib_dld_shl_load=yes
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9842 ac_cv_lib_dld_shl_load=no
9845 rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9847 LIBS=$ac_check_lib_save_LIBS
9849 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9850 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9851 if test $ac_cv_lib_dld_shl_load = yes; then
9853 cat >>confdefs.h <<\_ACEOF
9854 #define HAVE_SHL_LOAD 1
9857 LIBADD_DL="$LIBADD_DL -ldld"
9859 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9860 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 ac_check_lib_save_LIBS=$LIBS
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_lib_dl_dlopen=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_cv_lib_dl_dlopen=no
9930 rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9935 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9936 if test $ac_cv_lib_dl_dlopen = yes; then
9938 cat >>confdefs.h <<\_ACEOF
9939 #define HAVE_LIBDL 1
9942 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9944 cat >conftest.$ac_ext <<_ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (ac_try="$ac_link"
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_link") 2>conftest.er1
9971 grep -v '^ *+' conftest.er1 >conftest.err
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9977 { (case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_try") 2>&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest$ac_exeext'
9987 { (case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_try") 2>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_LIBDL 1
10000 libltdl_cv_func_dlopen="yes"
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10005 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10006 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10007 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 ac_check_lib_save_LIBS=$LIBS
10011 LIBS="-lsvld $LIBS"
10012 cat >conftest.$ac_ext <<_ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10019 /* Override any GCC internal prototype to avoid an error.
10020 Use char because int might match the return type of a GCC
10021 builtin and then its argument prototype would still apply. */
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_link") 2>conftest.er1
10043 grep -v '^ *+' conftest.er1 >conftest.err
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10049 { (case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_try") 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 ac_cv_lib_svld_dlopen=yes
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 ac_cv_lib_svld_dlopen=no
10076 rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10078 LIBS=$ac_check_lib_save_LIBS
10080 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10081 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10082 if test $ac_cv_lib_svld_dlopen = yes; then
10084 cat >>confdefs.h <<\_ACEOF
10085 #define HAVE_LIBDL 1
10088 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10090 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_check_lib_save_LIBS=$LIBS
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10104 /* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
10114 return dld_link ();
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>conftest.er1
10128 grep -v '^ *+' conftest.er1 >conftest.err
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } &&
10133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_lib_dld_dld_link=yes
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 ac_cv_lib_dld_dld_link=no
10161 rm -f core conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10165 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10166 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10167 if test $ac_cv_lib_dld_dld_link = yes; then
10169 cat >>confdefs.h <<\_ACEOF
10173 LIBADD_DL="$LIBADD_DL -ldld"
10175 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10176 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10177 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 cat >conftest.$ac_ext <<_ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h. */
10186 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10188 #define _dyld_func_lookup innocuous__dyld_func_lookup
10190 /* System header to define __stub macros and hopefully few prototypes,
10191 which can conflict with char _dyld_func_lookup (); below.
10192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10193 <limits.h> exists even on freestanding compilers. */
10196 # include <limits.h>
10198 # include <assert.h>
10201 #undef _dyld_func_lookup
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10209 char _dyld_func_lookup ();
10210 /* The GNU C library defines this for functions which it implements
10211 to always fail with ENOSYS. Some functions are actually named
10212 something starting with __ and the normal name is an alias. */
10213 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10220 return _dyld_func_lookup ();
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (ac_try="$ac_link"
10227 case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_link") 2>conftest.er1
10234 grep -v '^ *+' conftest.er1 >conftest.err
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10240 { (case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_try") 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest$ac_exeext'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 ac_cv_func__dyld_func_lookup=yes
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ac_cv_func__dyld_func_lookup=no
10267 rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10270 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10271 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10272 if test $ac_cv_func__dyld_func_lookup = yes; then
10274 cat >>confdefs.h <<\_ACEOF
10275 #define HAVE_DYLD 1
10289 rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10301 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10303 lt_save_LIBS="$LIBS"
10304 LIBS="$LIBS $LIBADD_DL"
10306 for ac_func in dlerror
10308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 cat >conftest.$ac_ext <<_ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10322 #define $ac_func innocuous_$ac_func
10324 /* System header to define __stub macros and hopefully few prototypes,
10325 which can conflict with char $ac_func (); below.
10326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10327 <limits.h> exists even on freestanding compilers. */
10330 # include <limits.h>
10332 # include <assert.h>
10337 /* Override any GCC internal prototype to avoid an error.
10338 Use char because int might match the return type of a GCC
10339 builtin and then its argument prototype would still apply. */
10344 /* The GNU C library defines this for functions which it implements
10345 to always fail with ENOSYS. Some functions are actually named
10346 something starting with __ and the normal name is an alias. */
10347 #if defined __stub_$ac_func || defined __stub___$ac_func
10354 return $ac_func ();
10359 rm -f conftest.$ac_objext conftest$ac_exeext
10360 if { (ac_try="$ac_link"
10361 case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366 (eval "$ac_link") 2>conftest.er1
10368 grep -v '^ *+' conftest.er1 >conftest.err
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10374 { (case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_try") 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; } &&
10383 { ac_try='test -s conftest$ac_exeext'
10384 { (case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_try") 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 eval "$as_ac_var=yes"
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 eval "$as_ac_var=no"
10401 rm -f core conftest.err conftest.$ac_objext \
10402 conftest$ac_exeext conftest.$ac_ext
10404 ac_res=`eval echo '${'$as_ac_var'}'`
10405 { echo "$as_me:$LINENO: result: $ac_res" >&5
10406 echo "${ECHO_T}$ac_res" >&6; }
10407 if test `eval echo '${'$as_ac_var'}'` = yes; then
10408 cat >>confdefs.h <<_ACEOF
10409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10415 LIBS="$lt_save_LIBS"
10418 ac_cpp='$CPP $CPPFLAGS'
10419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10425 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10426 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10427 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 ac_cv_sys_symbol_underscore=no
10431 cat > conftest.$ac_ext <<EOF
10432 void nm_test_func(){}
10433 int main(){nm_test_func;return 0;}
10435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436 (eval $ac_compile) 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; then
10440 # Now try to grab the symbols.
10441 ac_nlist=conftest.nm
10442 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10443 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && test -s "$ac_nlist"; then
10447 # See whether the symbols have a leading underscore.
10448 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10449 ac_cv_sys_symbol_underscore=yes
10451 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10454 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10458 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10461 echo "configure: failed program was:" >&5
10467 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10468 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10471 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10472 if test x"$libltdl_cv_func_dlopen" = xyes ||
10473 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10474 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10475 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10476 if test "${libltdl_cv_need_uscore+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 libltdl_cv_need_uscore=unknown
10481 LIBS="$LIBS $LIBADD_DL"
10482 if test "$cross_compiling" = yes; then :
10483 libltdl_cv_need_uscore=cross
10485 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10486 lt_status=$lt_dlunknown
10487 cat > conftest.$ac_ext <<EOF
10488 #line 10488 "configure"
10489 #include "confdefs.h"
10498 # define LT_DLGLOBAL RTLD_GLOBAL
10501 # define LT_DLGLOBAL DL_GLOBAL
10503 # define LT_DLGLOBAL 0
10507 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10508 find out it does not work in some platform. */
10509 #ifndef LT_DLLAZY_OR_NOW
10511 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10514 # define LT_DLLAZY_OR_NOW DL_LAZY
10517 # define LT_DLLAZY_OR_NOW RTLD_NOW
10520 # define LT_DLLAZY_OR_NOW DL_NOW
10522 # define LT_DLLAZY_OR_NOW 0
10530 extern "C" void exit (int);
10533 void fnord() { int i=42;}
10536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10537 int status = $lt_dlunknown;
10541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10542 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10543 /* dlclose (self); */
10551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552 (eval $ac_link) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10556 (./conftest; exit; ) >&5 2>/dev/null
10558 case x$lt_status in
10559 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10560 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10561 x$lt_dlunknown|x*) ;;
10564 # compilation failed
10573 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10574 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10578 if test x"$libltdl_cv_need_uscore" = xyes; then
10580 cat >>confdefs.h <<\_ACEOF
10581 #define NEED_USCORE 1
10587 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10588 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10589 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 # PORTME does your system automatically load deplibs for dlopen?
10593 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10594 # For now, we just catch OSes we know something about -- in the
10595 # future, we'll try test this programmatically.
10596 libltdl_cv_sys_dlopen_deplibs=unknown
10598 aix3*|aix4.1.*|aix4.2.*)
10599 # Unknown whether this is true for these versions of AIX, but
10600 # we want this `case' here to explicitly catch those versions.
10601 libltdl_cv_sys_dlopen_deplibs=unknown
10604 libltdl_cv_sys_dlopen_deplibs=yes
10607 # Assuming the user has installed a libdl from somewhere, this is true
10608 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10609 libltdl_cv_sys_dlopen_deplibs=yes
10611 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10612 # GNU and its variants, using gnu ld.so (Glibc)
10613 libltdl_cv_sys_dlopen_deplibs=yes
10616 libltdl_cv_sys_dlopen_deplibs=yes
10619 libltdl_cv_sys_dlopen_deplibs=yes
10621 irix[12345]*|irix6.[01]*)
10622 # Catch all versions of IRIX before 6.2, and indicate that we don't
10623 # know how it worked for any of those versions.
10624 libltdl_cv_sys_dlopen_deplibs=unknown
10627 # The case above catches anything before 6.2, and it's known that
10628 # at 6.2 and later dlopen does load deplibs.
10629 libltdl_cv_sys_dlopen_deplibs=yes
10632 libltdl_cv_sys_dlopen_deplibs=yes
10635 libltdl_cv_sys_dlopen_deplibs=yes
10638 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10639 # it did *not* use an RPATH in a shared library to find objects the
10640 # library depends on, so we explicitly say `no'.
10641 libltdl_cv_sys_dlopen_deplibs=no
10643 osf5.0|osf5.0a|osf5.1)
10644 # dlopen *does* load deplibs and with the right loader patch applied
10645 # it even uses RPATH in a shared library to search for shared objects
10646 # that the library depends on, but there's no easy way to know if that
10647 # patch is installed. Since this is the case, all we can really
10648 # say is unknown -- it depends on the patch being installed. If
10649 # it is, this changes to `yes'. Without it, it would be `no'.
10650 libltdl_cv_sys_dlopen_deplibs=unknown
10653 # the two cases above should catch all versions of osf <= 5.1. Read
10654 # the comments above for what we know about them.
10655 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10656 # is used to find them so we can finally say `yes'.
10657 libltdl_cv_sys_dlopen_deplibs=yes
10660 libltdl_cv_sys_dlopen_deplibs=yes
10662 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10663 libltdl_cv_sys_dlopen_deplibs=yes
10668 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10669 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10670 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10672 cat >>confdefs.h <<\_ACEOF
10673 #define LTDL_DLOPEN_DEPLIBS 1
10679 for ac_header in argz.h
10681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 ac_res=`eval echo '${'$as_ac_Header'}'`
10689 { echo "$as_me:$LINENO: result: $ac_res" >&5
10690 echo "${ECHO_T}$ac_res" >&6; }
10692 # Is the header compilable?
10693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10695 cat >conftest.$ac_ext <<_ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 $ac_includes_default
10702 #include <$ac_header>
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719 { (case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_try") 2>&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest.$ac_objext'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_header_compiler=yes
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_header_compiler=no
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10748 echo "${ECHO_T}$ac_header_compiler" >&6; }
10750 # Is the header present?
10751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 #include <$ac_header>
10761 if { (ac_try="$ac_cpp conftest.$ac_ext"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } >/dev/null; then
10774 if test -s conftest.err; then
10775 ac_cpp_err=$ac_c_preproc_warn_flag
10776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10783 if test -z "$ac_cpp_err"; then
10784 ac_header_preproc=yes
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_header_preproc=no
10792 rm -f conftest.err conftest.$ac_ext
10793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10794 echo "${ECHO_T}$ac_header_preproc" >&6; }
10796 # So? What about this header?
10797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10803 ac_header_preproc=yes
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10819 ## ------------------------------------ ##
10820 ## Report this to http://llvm.org/bugs/ ##
10821 ## ------------------------------------ ##
10823 ) | sed "s/^/$as_me: WARNING: /" >&2
10826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 eval "$as_ac_Header=\$ac_header_preproc"
10833 ac_res=`eval echo '${'$as_ac_Header'}'`
10834 { echo "$as_me:$LINENO: result: $ac_res" >&5
10835 echo "${ECHO_T}$ac_res" >&6; }
10838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10848 { echo "$as_me:$LINENO: checking for error_t" >&5
10849 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10850 if test "${ac_cv_type_error_t+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 cat >conftest.$ac_ext <<_ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10863 typedef error_t ac__type_new_;
10867 if ((ac__type_new_ *) 0)
10869 if (sizeof (ac__type_new_))
10875 rm -f conftest.$ac_objext
10876 if { (ac_try="$ac_compile"
10877 case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_compile") 2>conftest.er1
10884 grep -v '^ *+' conftest.er1 >conftest.err
10886 cat conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890 { (case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_try") 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest.$ac_objext'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 ac_cv_type_error_t=yes
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 ac_cv_type_error_t=no
10917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10920 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10921 if test $ac_cv_type_error_t = yes; then
10923 cat >>confdefs.h <<_ACEOF
10924 #define HAVE_ERROR_T 1
10930 cat >>confdefs.h <<\_ACEOF
10931 #define error_t int
10942 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 cat >conftest.$ac_ext <<_ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10958 #define $ac_func innocuous_$ac_func
10960 /* System header to define __stub macros and hopefully few prototypes,
10961 which can conflict with char $ac_func (); below.
10962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10963 <limits.h> exists even on freestanding compilers. */
10966 # include <limits.h>
10968 # include <assert.h>
10973 /* Override any GCC internal prototype to avoid an error.
10974 Use char because int might match the return type of a GCC
10975 builtin and then its argument prototype would still apply. */
10980 /* The GNU C library defines this for functions which it implements
10981 to always fail with ENOSYS. Some functions are actually named
10982 something starting with __ and the normal name is an alias. */
10983 #if defined __stub_$ac_func || defined __stub___$ac_func
10990 return $ac_func ();
10995 rm -f conftest.$ac_objext conftest$ac_exeext
10996 if { (ac_try="$ac_link"
10997 case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_link") 2>conftest.er1
11004 grep -v '^ *+' conftest.er1 >conftest.err
11006 cat conftest.err >&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } &&
11009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11010 { (case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_try") 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 eval "$as_ac_var=yes"
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 eval "$as_ac_var=no"
11037 rm -f core conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11040 ac_res=`eval echo '${'$as_ac_var'}'`
11041 { echo "$as_me:$LINENO: result: $ac_res" >&5
11042 echo "${ECHO_T}$ac_res" >&6; }
11043 if test `eval echo '${'$as_ac_var'}'` = yes; then
11044 cat >>confdefs.h <<_ACEOF
11045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11078 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 ac_res=`eval echo '${'$as_ac_Header'}'`
11089 { echo "$as_me:$LINENO: result: $ac_res" >&5
11090 echo "${ECHO_T}$ac_res" >&6; }
11092 # Is the header compilable?
11093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 $ac_includes_default
11102 #include <$ac_header>
11104 rm -f conftest.$ac_objext
11105 if { (ac_try="$ac_compile"
11106 case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_compile") 2>conftest.er1
11113 grep -v '^ *+' conftest.er1 >conftest.err
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119 { (case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_try") 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_header_compiler=yes
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_header_compiler=no
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6; }
11150 # Is the header present?
11151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <$ac_header>
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11169 grep -v '^ *+' conftest.er1 >conftest.err
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null; then
11174 if test -s conftest.err; then
11175 ac_cpp_err=$ac_c_preproc_warn_flag
11176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11183 if test -z "$ac_cpp_err"; then
11184 ac_header_preproc=yes
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 ac_header_preproc=no
11192 rm -f conftest.err conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194 echo "${ECHO_T}$ac_header_preproc" >&6; }
11196 # So? What about this header?
11197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203 ac_header_preproc=yes
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11219 ## ------------------------------------ ##
11220 ## Report this to http://llvm.org/bugs/ ##
11221 ## ------------------------------------ ##
11223 ) | sed "s/^/$as_me: WARNING: /" >&2
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 eval "$as_ac_Header=\$ac_header_preproc"
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239 cat >>confdefs.h <<_ACEOF
11240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11251 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 ac_res=`eval echo '${'$as_ac_Header'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11264 # Is the header compilable?
11265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 $ac_includes_default
11274 #include <$ac_header>
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_compile") 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_header_compiler=yes
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 ac_header_compiler=no
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320 echo "${ECHO_T}$ac_header_compiler" >&6; }
11322 # Is the header present?
11323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 #include <$ac_header>
11333 if { (ac_try="$ac_cpp conftest.$ac_ext"
11334 case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11341 grep -v '^ *+' conftest.er1 >conftest.err
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } >/dev/null; then
11346 if test -s conftest.err; then
11347 ac_cpp_err=$ac_c_preproc_warn_flag
11348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11355 if test -z "$ac_cpp_err"; then
11356 ac_header_preproc=yes
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 ac_header_preproc=no
11364 rm -f conftest.err conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366 echo "${ECHO_T}$ac_header_preproc" >&6; }
11368 # So? What about this header?
11369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375 ac_header_preproc=yes
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11391 ## ------------------------------------ ##
11392 ## Report this to http://llvm.org/bugs/ ##
11393 ## ------------------------------------ ##
11395 ) | sed "s/^/$as_me: WARNING: /" >&2
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 eval "$as_ac_Header=\$ac_header_preproc"
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11421 for ac_header in string.h strings.h
11423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 ac_res=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11434 # Is the header compilable?
11435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 $ac_includes_default
11444 #include <$ac_header>
11446 rm -f conftest.$ac_objext
11447 if { (ac_try="$ac_compile"
11448 case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_compile") 2>conftest.er1
11455 grep -v '^ *+' conftest.er1 >conftest.err
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461 { (case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_try") 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_try") 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_header_compiler=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_header_compiler=no
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11490 echo "${ECHO_T}$ac_header_compiler" >&6; }
11492 # Is the header present?
11493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <$ac_header>
11503 if { (ac_try="$ac_cpp conftest.$ac_ext"
11504 case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11511 grep -v '^ *+' conftest.er1 >conftest.err
11513 cat conftest.err >&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } >/dev/null; then
11516 if test -s conftest.err; then
11517 ac_cpp_err=$ac_c_preproc_warn_flag
11518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11525 if test -z "$ac_cpp_err"; then
11526 ac_header_preproc=yes
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_header_preproc=no
11534 rm -f conftest.err conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536 echo "${ECHO_T}$ac_header_preproc" >&6; }
11538 # So? What about this header?
11539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545 ac_header_preproc=yes
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11561 ## ------------------------------------ ##
11562 ## Report this to http://llvm.org/bugs/ ##
11563 ## ------------------------------------ ##
11565 ) | sed "s/^/$as_me: WARNING: /" >&2
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 eval "$as_ac_Header=\$ac_header_preproc"
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592 for ac_func in strchr index
11594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 cat >conftest.$ac_ext <<_ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11608 #define $ac_func innocuous_$ac_func
11610 /* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11616 # include <limits.h>
11618 # include <assert.h>
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11630 /* The GNU C library defines this for functions which it implements
11631 to always fail with ENOSYS. Some functions are actually named
11632 something starting with __ and the normal name is an alias. */
11633 #if defined __stub_$ac_func || defined __stub___$ac_func
11640 return $ac_func ();
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (ac_try="$ac_link"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660 { (case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_try") 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest$ac_exeext'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 eval "$as_ac_var=yes"
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 eval "$as_ac_var=no"
11687 rm -f core conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11690 ac_res=`eval echo '${'$as_ac_var'}'`
11691 { echo "$as_me:$LINENO: result: $ac_res" >&5
11692 echo "${ECHO_T}$ac_res" >&6; }
11693 if test `eval echo '${'$as_ac_var'}'` = yes; then
11694 cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11703 for ac_func in strrchr rindex
11705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11719 #define $ac_func innocuous_$ac_func
11721 /* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11727 # include <limits.h>
11729 # include <assert.h>
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11741 /* The GNU C library defines this for functions which it implements
11742 to always fail with ENOSYS. Some functions are actually named
11743 something starting with __ and the normal name is an alias. */
11744 #if defined __stub_$ac_func || defined __stub___$ac_func
11751 return $ac_func ();
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (ac_try="$ac_link"
11758 case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_link") 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771 { (case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_try") 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_try") 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 eval "$as_ac_var=no"
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11801 ac_res=`eval echo '${'$as_ac_var'}'`
11802 { echo "$as_me:$LINENO: result: $ac_res" >&5
11803 echo "${ECHO_T}$ac_res" >&6; }
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11814 for ac_func in memcpy bcopy
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830 #define $ac_func innocuous_$ac_func
11832 /* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11838 # include <limits.h>
11840 # include <assert.h>
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined __stub_$ac_func || defined __stub___$ac_func
11862 return $ac_func ();
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 eval "$as_ac_var=yes"
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 eval "$as_ac_var=no"
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11912 ac_res=`eval echo '${'$as_ac_var'}'`
11913 { echo "$as_me:$LINENO: result: $ac_res" >&5
11914 echo "${ECHO_T}$ac_res" >&6; }
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11925 for ac_func in memmove strcmp
11927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11941 #define $ac_func innocuous_$ac_func
11943 /* System header to define __stub macros and hopefully few prototypes,
11944 which can conflict with char $ac_func (); below.
11945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11946 <limits.h> exists even on freestanding compilers. */
11949 # include <limits.h>
11951 # include <assert.h>
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11963 /* The GNU C library defines this for functions which it implements
11964 to always fail with ENOSYS. Some functions are actually named
11965 something starting with __ and the normal name is an alias. */
11966 #if defined __stub_$ac_func || defined __stub___$ac_func
11973 return $ac_func ();
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (ac_try="$ac_link"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_link") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 eval "$as_ac_var=yes"
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 eval "$as_ac_var=no"
12020 rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12023 ac_res=`eval echo '${'$as_ac_var'}'`
12024 { echo "$as_me:$LINENO: result: $ac_res" >&5
12025 echo "${ECHO_T}$ac_res" >&6; }
12026 if test `eval echo '${'$as_ac_var'}'` = yes; then
12027 cat >>confdefs.h <<_ACEOF
12028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12037 for ac_func in closedir opendir readdir
12039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 cat >conftest.$ac_ext <<_ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12053 #define $ac_func innocuous_$ac_func
12055 /* System header to define __stub macros and hopefully few prototypes,
12056 which can conflict with char $ac_func (); below.
12057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12058 <limits.h> exists even on freestanding compilers. */
12061 # include <limits.h>
12063 # include <assert.h>
12068 /* Override any GCC internal prototype to avoid an error.
12069 Use char because int might match the return type of a GCC
12070 builtin and then its argument prototype would still apply. */
12075 /* The GNU C library defines this for functions which it implements
12076 to always fail with ENOSYS. Some functions are actually named
12077 something starting with __ and the normal name is an alias. */
12078 #if defined __stub_$ac_func || defined __stub___$ac_func
12085 return $ac_func ();
12090 rm -f conftest.$ac_objext conftest$ac_exeext
12091 if { (ac_try="$ac_link"
12092 case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_link") 2>conftest.er1
12099 grep -v '^ *+' conftest.er1 >conftest.err
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12105 { (case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_try") 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_try") 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_var=yes"
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 eval "$as_ac_var=no"
12132 rm -f core conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12135 ac_res=`eval echo '${'$as_ac_var'}'`
12136 { echo "$as_me:$LINENO: result: $ac_res" >&5
12137 echo "${ECHO_T}$ac_res" >&6; }
12138 if test `eval echo '${'$as_ac_var'}'` = yes; then
12139 cat >>confdefs.h <<_ACEOF
12140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12148 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12149 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12162 if test "$GCC" != "yes" && test "$ICC" != "yes"
12164 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12165 echo "$as_me: error: gcc|icc required but not found" >&2;}
12166 { (exit 1); exit 1; }; }
12169 if test "$GXX" != "yes" && test "$IXX" != "yes"
12171 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12172 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12173 { (exit 1); exit 1; }; }
12176 if test "$GCC" = "yes"
12178 cat >conftest.$ac_ext <<_ACEOF
12179 #if !defined(__GNUC__) || __GNUC__ < 3
12180 #error Unsupported GCC version
12184 rm -f conftest.$ac_objext
12185 if { (ac_try="$ac_compile"
12186 case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_compile") 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest.$ac_objext'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12224 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12225 { (exit 1); exit 1; }; }
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12231 if test -z "$llvm_cv_gnu_make_command"
12233 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12234 echo "$as_me: error: GNU Make required but not found" >&2;}
12235 { (exit 1); exit 1; }; }
12238 { echo "$as_me:$LINENO: result: ok" >&5
12239 echo "${ECHO_T}ok" >&6; }
12241 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12242 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12243 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12245 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12247 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12249 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12250 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12254 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12255 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12256 if test "${ac_cv_lib_m_sin+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 ac_check_lib_save_LIBS=$LIBS
12261 cat >conftest.$ac_ext <<_ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12268 /* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (ac_try="$ac_link"
12285 case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_link") 2>conftest.er1
12292 grep -v '^ *+' conftest.er1 >conftest.err
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12298 { (case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_try") 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest$ac_exeext'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_lib_m_sin=yes
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12325 rm -f core conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12329 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12330 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12331 if test $ac_cv_lib_m_sin = yes; then
12332 cat >>confdefs.h <<_ACEOF
12333 #define HAVE_LIBM 1
12340 if test "$llvm_cv_os_type" = "MingW" ; then
12342 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12343 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12344 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12347 ac_check_lib_save_LIBS=$LIBS
12348 LIBS="-limagehlp $LIBS"
12349 cat >conftest.$ac_ext <<_ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (ac_try="$ac_link"
12367 case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_link") 2>conftest.er1
12374 grep -v '^ *+' conftest.er1 >conftest.err
12376 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12380 { (case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_try") 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest$ac_exeext'
12390 { (case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_try") 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_lib_imagehlp_main=yes
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_cv_lib_imagehlp_main=no
12407 rm -f core conftest.err conftest.$ac_objext \
12408 conftest$ac_exeext conftest.$ac_ext
12409 LIBS=$ac_check_lib_save_LIBS
12411 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12412 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12413 if test $ac_cv_lib_imagehlp_main = yes; then
12414 cat >>confdefs.h <<_ACEOF
12415 #define HAVE_LIBIMAGEHLP 1
12418 LIBS="-limagehlp $LIBS"
12423 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12424 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12425 if test "${ac_cv_lib_psapi_main+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 ac_check_lib_save_LIBS=$LIBS
12429 LIBS="-lpsapi $LIBS"
12430 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (ac_try="$ac_link"
12448 case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_link") 2>conftest.er1
12455 grep -v '^ *+' conftest.er1 >conftest.err
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12461 { (case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_try") 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_try") 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 ac_cv_lib_psapi_main=yes
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 ac_cv_lib_psapi_main=no
12488 rm -f core conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
12490 LIBS=$ac_check_lib_save_LIBS
12492 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12493 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12494 if test $ac_cv_lib_psapi_main = yes; then
12495 cat >>confdefs.h <<_ACEOF
12496 #define HAVE_LIBPSAPI 1
12499 LIBS="-lpsapi $LIBS"
12505 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12506 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12507 if test "${ac_cv_search_dlopen+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 ac_func_search_save_LIBS=$LIBS
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12518 /* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply. */
12533 for ac_lib in '' dl; do
12534 if test -z "$ac_lib"; then
12535 ac_res="none required"
12538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (ac_try="$ac_link"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_link") 2>conftest.er1
12549 grep -v '^ *+' conftest.er1 >conftest.err
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12555 { (case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_try") 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest$ac_exeext'
12565 { (case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_try") 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_search_dlopen=$ac_res
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12582 rm -f core conftest.err conftest.$ac_objext \
12584 if test "${ac_cv_search_dlopen+set}" = set; then
12588 if test "${ac_cv_search_dlopen+set}" = set; then
12591 ac_cv_search_dlopen=no
12593 rm conftest.$ac_ext
12594 LIBS=$ac_func_search_save_LIBS
12596 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12597 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12598 ac_res=$ac_cv_search_dlopen
12599 if test "$ac_res" != no; then
12600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12602 cat >>confdefs.h <<\_ACEOF
12603 #define HAVE_DLOPEN 1
12607 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12608 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12612 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12613 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12614 if test "${ac_cv_search_clock_gettime+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 ac_func_search_save_LIBS=$LIBS
12618 cat >conftest.$ac_ext <<_ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12625 /* Override any GCC internal prototype to avoid an error.
12626 Use char because int might match the return type of a GCC
12627 builtin and then its argument prototype would still apply. */
12631 char clock_gettime ();
12635 return clock_gettime ();
12640 for ac_lib in '' rt; do
12641 if test -z "$ac_lib"; then
12642 ac_res="none required"
12645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (ac_try="$ac_link"
12649 case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_link") 2>conftest.er1
12656 grep -v '^ *+' conftest.er1 >conftest.err
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12662 { (case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_try") 2>&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
12671 { ac_try='test -s conftest$ac_exeext'
12672 { (case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_try") 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_search_clock_gettime=$ac_res
12683 echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12689 rm -f core conftest.err conftest.$ac_objext \
12691 if test "${ac_cv_search_clock_gettime+set}" = set; then
12695 if test "${ac_cv_search_clock_gettime+set}" = set; then
12698 ac_cv_search_clock_gettime=no
12700 rm conftest.$ac_ext
12701 LIBS=$ac_func_search_save_LIBS
12703 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12704 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12705 ac_res=$ac_cv_search_clock_gettime
12706 if test "$ac_res" != no; then
12707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12712 if test "$llvm_cv_enable_libffi" = "yes" ; then
12713 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12714 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12715 if test "${ac_cv_search_ffi_call+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 ac_func_search_save_LIBS=$LIBS
12719 cat >conftest.$ac_ext <<_ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12736 return ffi_call ();
12741 for ac_lib in '' ffi; do
12742 if test -z "$ac_lib"; then
12743 ac_res="none required"
12746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12748 rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (ac_try="$ac_link"
12750 case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_link") 2>conftest.er1
12757 grep -v '^ *+' conftest.er1 >conftest.err
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try='test -s conftest$ac_exeext'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; }; then
12782 ac_cv_search_ffi_call=$ac_res
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12790 rm -f core conftest.err conftest.$ac_objext \
12792 if test "${ac_cv_search_ffi_call+set}" = set; then
12796 if test "${ac_cv_search_ffi_call+set}" = set; then
12799 ac_cv_search_ffi_call=no
12801 rm conftest.$ac_ext
12802 LIBS=$ac_func_search_save_LIBS
12804 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12805 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12806 ac_res=$ac_cv_search_ffi_call
12807 if test "$ac_res" != no; then
12808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12810 cat >>confdefs.h <<\_ACEOF
12811 #define HAVE_FFI_CALL 1
12815 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12816 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12817 { (exit 1); exit 1; }; }
12822 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12823 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12824 if test "${ac_cv_search_mallinfo+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 ac_func_search_save_LIBS=$LIBS
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12835 /* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
12845 return mallinfo ();
12850 for ac_lib in '' malloc; do
12851 if test -z "$ac_lib"; then
12852 ac_res="none required"
12855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12857 rm -f conftest.$ac_objext conftest$ac_exeext
12858 if { (ac_try="$ac_link"
12859 case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_link") 2>conftest.er1
12866 grep -v '^ *+' conftest.er1 >conftest.err
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12872 { (case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_try") 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; } &&
12881 { ac_try='test -s conftest$ac_exeext'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 ac_cv_search_mallinfo=$ac_res
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12899 rm -f core conftest.err conftest.$ac_objext \
12901 if test "${ac_cv_search_mallinfo+set}" = set; then
12905 if test "${ac_cv_search_mallinfo+set}" = set; then
12908 ac_cv_search_mallinfo=no
12910 rm conftest.$ac_ext
12911 LIBS=$ac_func_search_save_LIBS
12913 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12914 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12915 ac_res=$ac_cv_search_mallinfo
12916 if test "$ac_res" != no; then
12917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12919 cat >>confdefs.h <<\_ACEOF
12920 #define HAVE_MALLINFO 1
12926 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12928 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12929 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12930 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12933 ac_check_lib_save_LIBS=$LIBS
12934 LIBS="-lpthread $LIBS"
12935 cat >conftest.$ac_ext <<_ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h. */
12942 /* Override any GCC internal prototype to avoid an error.
12943 Use char because int might match the return type of a GCC
12944 builtin and then its argument prototype would still apply. */
12948 char pthread_mutex_init ();
12952 return pthread_mutex_init ();
12957 rm -f conftest.$ac_objext conftest$ac_exeext
12958 if { (ac_try="$ac_link"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_link") 2>conftest.er1
12966 grep -v '^ *+' conftest.er1 >conftest.err
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12972 { (case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_try") 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest$ac_exeext'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_lib_pthread_pthread_mutex_init=yes
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12996 ac_cv_lib_pthread_pthread_mutex_init=no
12999 rm -f core conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13001 LIBS=$ac_check_lib_save_LIBS
13003 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13004 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13005 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13006 cat >>confdefs.h <<_ACEOF
13007 #define HAVE_LIBPTHREAD 1
13010 LIBS="-lpthread $LIBS"
13014 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13015 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13016 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 ac_func_search_save_LIBS=$LIBS
13020 cat >conftest.$ac_ext <<_ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13027 /* Override any GCC internal prototype to avoid an error.
13028 Use char because int might match the return type of a GCC
13029 builtin and then its argument prototype would still apply. */
13033 char pthread_mutex_lock ();
13037 return pthread_mutex_lock ();
13042 for ac_lib in '' pthread; do
13043 if test -z "$ac_lib"; then
13044 ac_res="none required"
13047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13049 rm -f conftest.$ac_objext conftest$ac_exeext
13050 if { (ac_try="$ac_link"
13051 case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_link") 2>conftest.er1
13058 grep -v '^ *+' conftest.er1 >conftest.err
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13064 { (case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_try") 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; } &&
13073 { ac_try='test -s conftest$ac_exeext'
13074 { (case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_try") 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_search_pthread_mutex_lock=$ac_res
13085 echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13091 rm -f core conftest.err conftest.$ac_objext \
13093 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13097 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13100 ac_cv_search_pthread_mutex_lock=no
13102 rm conftest.$ac_ext
13103 LIBS=$ac_func_search_save_LIBS
13105 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13106 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13107 ac_res=$ac_cv_search_pthread_mutex_lock
13108 if test "$ac_res" != no; then
13109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13111 cat >>confdefs.h <<\_ACEOF
13112 #define HAVE_PTHREAD_MUTEX_LOCK 1
13117 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13118 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13119 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 ac_func_search_save_LIBS=$LIBS
13123 cat >conftest.$ac_ext <<_ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13130 /* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13136 char pthread_rwlock_init ();
13140 return pthread_rwlock_init ();
13145 for ac_lib in '' pthread; do
13146 if test -z "$ac_lib"; then
13147 ac_res="none required"
13150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (ac_try="$ac_link"
13154 case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_link") 2>conftest.er1
13161 grep -v '^ *+' conftest.er1 >conftest.err
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } &&
13166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13167 { (case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_try") 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } &&
13176 { ac_try='test -s conftest$ac_exeext'
13177 { (case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_try") 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
13186 ac_cv_search_pthread_rwlock_init=$ac_res
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13194 rm -f core conftest.err conftest.$ac_objext \
13196 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13200 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13203 ac_cv_search_pthread_rwlock_init=no
13205 rm conftest.$ac_ext
13206 LIBS=$ac_func_search_save_LIBS
13208 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13209 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13210 ac_res=$ac_cv_search_pthread_rwlock_init
13211 if test "$ac_res" != no; then
13212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13214 cat >>confdefs.h <<\_ACEOF
13215 #define HAVE_PTHREAD_RWLOCK_INIT 1
13220 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13221 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13222 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 ac_func_search_save_LIBS=$LIBS
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13233 /* Override any GCC internal prototype to avoid an error.
13234 Use char because int might match the return type of a GCC
13235 builtin and then its argument prototype would still apply. */
13239 char pthread_getspecific ();
13243 return pthread_getspecific ();
13248 for ac_lib in '' pthread; do
13249 if test -z "$ac_lib"; then
13250 ac_res="none required"
13253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13255 rm -f conftest.$ac_objext conftest$ac_exeext
13256 if { (ac_try="$ac_link"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_link") 2>conftest.er1
13264 grep -v '^ *+' conftest.er1 >conftest.err
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13270 { (case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_try") 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_search_pthread_getspecific=$ac_res
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13297 rm -f core conftest.err conftest.$ac_objext \
13299 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13303 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13306 ac_cv_search_pthread_getspecific=no
13308 rm conftest.$ac_ext
13309 LIBS=$ac_func_search_save_LIBS
13311 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13312 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13313 ac_res=$ac_cv_search_pthread_getspecific
13314 if test "$ac_res" != no; then
13315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13317 cat >>confdefs.h <<\_ACEOF
13318 #define HAVE_PTHREAD_GETSPECIFIC 1
13326 # Check whether --with-udis86 was given.
13327 if test "${with_udis86+set}" = set; then
13328 withval=$with_udis86;
13333 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13336 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13337 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13338 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 ac_check_lib_save_LIBS=$LIBS
13342 LIBS="-ludis86 $LIBS"
13343 cat >conftest.$ac_ext <<_ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13350 /* Override any GCC internal prototype to avoid an error.
13351 Use char because int might match the return type of a GCC
13352 builtin and then its argument prototype would still apply. */
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (ac_try="$ac_link"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_link") 2>conftest.er1
13374 grep -v '^ *+' conftest.er1 >conftest.err
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
13379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380 { (case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_try") 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try='test -s conftest$ac_exeext'
13390 { (case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_try") 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 ac_cv_lib_udis86_ud_init=yes
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 ac_cv_lib_udis86_ud_init=no
13407 rm -f core conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13409 LIBS=$ac_check_lib_save_LIBS
13411 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13412 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13413 if test $ac_cv_lib_udis86_ud_init = yes; then
13414 cat >>confdefs.h <<_ACEOF
13415 #define HAVE_LIBUDIS86 1
13418 LIBS="-ludis86 $LIBS"
13422 echo "Error! You need to have libudis86 around."
13434 cat >>confdefs.h <<_ACEOF
13435 #define USE_UDIS86 $USE_UDIS86
13440 # Check whether --with-oprofile was given.
13441 if test "${with_oprofile+set}" = set; then
13442 withval=$with_oprofile;
13446 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13447 no) llvm_cv_oppath=
13450 *) llvm_cv_oppath="${withval}/lib/oprofile"
13451 CPPFLAGS="-I${withval}/include";;
13453 case $llvm_cv_os_type in
13455 if test -n "$llvm_cv_oppath" ; then
13456 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13457 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13458 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13459 if test "${ac_cv_search_bfd_init+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 ac_func_search_save_LIBS=$LIBS
13463 cat >conftest.$ac_ext <<_ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13470 /* Override any GCC internal prototype to avoid an error.
13471 Use char because int might match the return type of a GCC
13472 builtin and then its argument prototype would still apply. */
13480 return bfd_init ();
13485 for ac_lib in '' bfd; do
13486 if test -z "$ac_lib"; then
13487 ac_res="none required"
13490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_link") 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13507 { (case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_try") 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } &&
13516 { ac_try='test -s conftest$ac_exeext'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 ac_cv_search_bfd_init=$ac_res
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13534 rm -f core conftest.err conftest.$ac_objext \
13536 if test "${ac_cv_search_bfd_init+set}" = set; then
13540 if test "${ac_cv_search_bfd_init+set}" = set; then
13543 ac_cv_search_bfd_init=no
13545 rm conftest.$ac_ext
13546 LIBS=$ac_func_search_save_LIBS
13548 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13549 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13550 ac_res=$ac_cv_search_bfd_init
13551 if test "$ac_res" != no; then
13552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13556 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13557 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13558 if test "${ac_cv_search_op_open_agent+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 ac_func_search_save_LIBS=$LIBS
13562 cat >conftest.$ac_ext <<_ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13569 /* Override any GCC internal prototype to avoid an error.
13570 Use char because int might match the return type of a GCC
13571 builtin and then its argument prototype would still apply. */
13575 char op_open_agent ();
13579 return op_open_agent ();
13584 for ac_lib in '' opagent; do
13585 if test -z "$ac_lib"; then
13586 ac_res="none required"
13589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13591 rm -f conftest.$ac_objext conftest$ac_exeext
13592 if { (ac_try="$ac_link"
13593 case "(($ac_try" in
13594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595 *) ac_try_echo=$ac_try;;
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598 (eval "$ac_link") 2>conftest.er1
13600 grep -v '^ *+' conftest.er1 >conftest.err
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13606 { (case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_try") 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; } &&
13615 { ac_try='test -s conftest$ac_exeext'
13616 { (case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_try") 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_search_op_open_agent=$ac_res
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13633 rm -f core conftest.err conftest.$ac_objext \
13635 if test "${ac_cv_search_op_open_agent+set}" = set; then
13639 if test "${ac_cv_search_op_open_agent+set}" = set; then
13642 ac_cv_search_op_open_agent=no
13644 rm conftest.$ac_ext
13645 LIBS=$ac_func_search_save_LIBS
13647 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13648 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13649 ac_res=$ac_cv_search_op_open_agent
13650 if test "$ac_res" != no; then
13651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13655 echo "Error! You need to have libopagent around."
13660 if test "${ac_cv_header_opagent_h+set}" = set; then
13661 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13662 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13663 if test "${ac_cv_header_opagent_h+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13667 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13669 # Is the header compilable?
13670 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13671 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13672 cat >conftest.$ac_ext <<_ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 $ac_includes_default
13679 #include <opagent.h>
13681 rm -f conftest.$ac_objext
13682 if { (ac_try="$ac_compile"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_compile") 2>conftest.er1
13690 grep -v '^ *+' conftest.er1 >conftest.err
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } &&
13695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13696 { (case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_try") 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; } &&
13705 { ac_try='test -s conftest.$ac_objext'
13706 { (case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_try") 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 ac_header_compiler=yes
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13720 ac_header_compiler=no
13723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13725 echo "${ECHO_T}$ac_header_compiler" >&6; }
13727 # Is the header present?
13728 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13729 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <opagent.h>
13738 if { (ac_try="$ac_cpp conftest.$ac_ext"
13739 case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } >/dev/null; then
13751 if test -s conftest.err; then
13752 ac_cpp_err=$ac_c_preproc_warn_flag
13753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13760 if test -z "$ac_cpp_err"; then
13761 ac_header_preproc=yes
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13766 ac_header_preproc=no
13769 rm -f conftest.err conftest.$ac_ext
13770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13771 echo "${ECHO_T}$ac_header_preproc" >&6; }
13773 # So? What about this header?
13774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13776 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13777 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13778 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13779 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13780 ac_header_preproc=yes
13783 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13784 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13786 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13788 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13790 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13792 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13794 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13796 ## ------------------------------------ ##
13797 ## Report this to http://llvm.org/bugs/ ##
13798 ## ------------------------------------ ##
13800 ) | sed "s/^/$as_me: WARNING: /" >&2
13803 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13804 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13805 if test "${ac_cv_header_opagent_h+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 ac_cv_header_opagent_h=$ac_header_preproc
13810 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13811 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13814 if test $ac_cv_header_opagent_h = yes; then
13818 echo "Error! You need to have opagent.h around."
13826 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13827 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13828 { (exit 1); exit 1; }; } ;;
13839 cat >>confdefs.h <<_ACEOF
13840 #define LLVM_USE_OPROFILE $USE_OPROFILE
13845 # Check whether --with-intel-jitevents was given.
13846 if test "${with_intel_jitevents+set}" = set; then
13847 withval=$with_intel_jitevents;
13849 yes) USE_INTEL_JITEVENTS=1
13851 no) USE_INTEL_JITEVENTS=0
13853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13854 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13855 { (exit 1); exit 1; }; };;
13858 case $llvm_cv_os_type in
13859 Linux|Win32|Cygwin|MingW) ;;
13860 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13861 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13862 { (exit 1); exit 1; }; };;
13865 case "$llvm_cv_target_arch" in
13867 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13868 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13869 { (exit 1); exit 1; }; };;
13874 USE_INTEL_JITEVENTS=0
13880 cat >>confdefs.h <<_ACEOF
13881 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13885 for ac_prog in xml2-config
13887 # Extract the first word of "$ac_prog", so it can be a program name with args.
13888 set dummy $ac_prog; ac_word=$2
13889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13891 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 if test -n "$XML2CONFIG"; then
13895 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898 for as_dir in $PATH
13901 test -z "$as_dir" && as_dir=.
13902 for ac_exec_ext in '' $ac_executable_extensions; do
13903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13904 ac_cv_prog_XML2CONFIG="$ac_prog"
13905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13914 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13915 if test -n "$XML2CONFIG"; then
13916 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13917 echo "${ECHO_T}$XML2CONFIG" >&6; }
13919 { echo "$as_me:$LINENO: result: no" >&5
13920 echo "${ECHO_T}no" >&6; }
13924 test -n "$XML2CONFIG" && break
13928 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13929 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13930 if test "x$XML2CONFIG" = "x"; then
13931 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13932 echo "${ECHO_T}xml2-config not found" >&6; }
13934 LIBXML2_INC=`$XML2CONFIG --cflags`
13935 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13936 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13937 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13938 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13939 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 ac_check_lib_save_LIBS=$LIBS
13943 LIBS="-lxml2 $LIBS"
13944 cat >conftest.$ac_ext <<_ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13951 /* Override any GCC internal prototype to avoid an error.
13952 Use char because int might match the return type of a GCC
13953 builtin and then its argument prototype would still apply. */
13957 char xmlReadFile ();
13961 return xmlReadFile ();
13966 rm -f conftest.$ac_objext conftest$ac_exeext
13967 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981 { (case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_try") 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest$ac_exeext'
13991 { (case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_try") 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_lib_xml2_xmlReadFile=yes
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_cv_lib_xml2_xmlReadFile=no
14008 rm -f core conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14012 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14013 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14014 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14016 cat >>confdefs.h <<\_ACEOF
14017 #define CLANG_HAVE_LIBXML 1
14020 LIBXML2_LIBS="-lxml2"
14033 ac_header_dirent=no
14034 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14035 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14036 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14037 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14047 #include <sys/types.h>
14059 rm -f conftest.$ac_objext
14060 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14068 grep -v '^ *+' conftest.er1 >conftest.err
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } &&
14073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14074 { (case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_try") 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
14093 eval "$as_ac_Header=yes"
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 eval "$as_ac_Header=no"
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14103 ac_res=`eval echo '${'$as_ac_Header'}'`
14104 { echo "$as_me:$LINENO: result: $ac_res" >&5
14105 echo "${ECHO_T}$ac_res" >&6; }
14106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14107 cat >>confdefs.h <<_ACEOF
14108 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14111 ac_header_dirent=$ac_hdr; break
14115 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14116 if test $ac_header_dirent = dirent.h; then
14117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14119 if test "${ac_cv_search_opendir+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14122 ac_func_search_save_LIBS=$LIBS
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14130 /* Override any GCC internal prototype to avoid an error.
14131 Use char because int might match the return type of a GCC
14132 builtin and then its argument prototype would still apply. */
14145 for ac_lib in '' dir; do
14146 if test -z "$ac_lib"; then
14147 ac_res="none required"
14150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14152 rm -f conftest.$ac_objext conftest$ac_exeext
14153 if { (ac_try="$ac_link"
14154 case "(($ac_try" in
14155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156 *) ac_try_echo=$ac_try;;
14158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159 (eval "$ac_link") 2>conftest.er1
14161 grep -v '^ *+' conftest.er1 >conftest.err
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14167 { (case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_try") 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest$ac_exeext'
14177 { (case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_try") 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 ac_cv_search_opendir=$ac_res
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14194 rm -f core conftest.err conftest.$ac_objext \
14196 if test "${ac_cv_search_opendir+set}" = set; then
14200 if test "${ac_cv_search_opendir+set}" = set; then
14203 ac_cv_search_opendir=no
14205 rm conftest.$ac_ext
14206 LIBS=$ac_func_search_save_LIBS
14208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14210 ac_res=$ac_cv_search_opendir
14211 if test "$ac_res" != no; then
14212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14217 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14219 if test "${ac_cv_search_opendir+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 ac_func_search_save_LIBS=$LIBS
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14230 /* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
14245 for ac_lib in '' x; do
14246 if test -z "$ac_lib"; then
14247 ac_res="none required"
14250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14252 rm -f conftest.$ac_objext conftest$ac_exeext
14253 if { (ac_try="$ac_link"
14254 case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14267 { (case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_try") 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest$ac_exeext'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_cv_search_opendir=$ac_res
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14294 rm -f core conftest.err conftest.$ac_objext \
14296 if test "${ac_cv_search_opendir+set}" = set; then
14300 if test "${ac_cv_search_opendir+set}" = set; then
14303 ac_cv_search_opendir=no
14305 rm conftest.$ac_ext
14306 LIBS=$ac_func_search_save_LIBS
14308 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14309 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14310 ac_res=$ac_cv_search_opendir
14311 if test "$ac_res" != no; then
14312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14318 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14319 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14320 if test "${ac_cv_header_mmap_anon+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 ac_cpp='$CPP $CPPFLAGS'
14325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14329 cat >conftest.$ac_ext <<_ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h. */
14335 #include <sys/mman.h>
14336 #include <unistd.h>
14341 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14346 rm -f conftest.$ac_objext
14347 if { (ac_try="$ac_compile"
14348 case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_compile") 2>conftest.er1
14355 grep -v '^ *+' conftest.er1 >conftest.err
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14361 { (case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_try") 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_cv_header_mmap_anon=yes
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14385 ac_cv_header_mmap_anon=no
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390 ac_cpp='$CPP $CPPFLAGS'
14391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14397 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14398 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14399 if test "$ac_cv_header_mmap_anon" = yes; then
14401 cat >>confdefs.h <<\_ACEOF
14402 #define HAVE_MMAP_ANONYMOUS 1
14407 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14408 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14409 if test "${ac_cv_header_stat_broken+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 cat >conftest.$ac_ext <<_ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 #include <sys/types.h>
14419 #include <sys/stat.h>
14421 #if defined S_ISBLK && defined S_IFDIR
14422 # if S_ISBLK (S_IFDIR)
14427 #if defined S_ISBLK && defined S_IFCHR
14428 # if S_ISBLK (S_IFCHR)
14433 #if defined S_ISLNK && defined S_IFREG
14434 # if S_ISLNK (S_IFREG)
14439 #if defined S_ISSOCK && defined S_IFREG
14440 # if S_ISSOCK (S_IFREG)
14446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14447 $EGREP "You lose" >/dev/null 2>&1; then
14448 ac_cv_header_stat_broken=yes
14450 ac_cv_header_stat_broken=no
14455 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14456 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14457 if test $ac_cv_header_stat_broken = yes; then
14459 cat >>confdefs.h <<\_ACEOF
14460 #define STAT_MACROS_BROKEN 1
14465 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14466 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14467 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 cat >conftest.$ac_ext <<_ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 #include <sys/types.h>
14477 #include <sys/wait.h>
14478 #ifndef WEXITSTATUS
14479 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14482 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14490 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14495 rm -f conftest.$ac_objext
14496 if { (ac_try="$ac_compile"
14497 case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_compile") 2>conftest.er1
14504 grep -v '^ *+' conftest.er1 >conftest.err
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14510 { (case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_try") 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest.$ac_objext'
14520 { (case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_try") 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_cv_header_sys_wait_h=yes
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ac_cv_header_sys_wait_h=no
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14540 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14541 if test $ac_cv_header_sys_wait_h = yes; then
14543 cat >>confdefs.h <<\_ACEOF
14544 #define HAVE_SYS_WAIT_H 1
14549 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14550 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14551 if test "${ac_cv_header_time+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 cat >conftest.$ac_ext <<_ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 #include <sys/types.h>
14561 #include <sys/time.h>
14567 if ((struct tm *) 0)
14573 rm -f conftest.$ac_objext
14574 if { (ac_try="$ac_compile"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_compile") 2>conftest.er1
14582 grep -v '^ *+' conftest.er1 >conftest.err
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14588 { (case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_try") 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_try") 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 ac_cv_header_time=yes
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_cv_header_time=no
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14618 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14619 if test $ac_cv_header_time = yes; then
14621 cat >>confdefs.h <<\_ACEOF
14622 #define TIME_WITH_SYS_TIME 1
14634 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 ac_res=`eval echo '${'$as_ac_Header'}'`
14644 { echo "$as_me:$LINENO: result: $ac_res" >&5
14645 echo "${ECHO_T}$ac_res" >&6; }
14647 # Is the header compilable?
14648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14650 cat >conftest.$ac_ext <<_ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 $ac_includes_default
14657 #include <$ac_header>
14659 rm -f conftest.$ac_objext
14660 if { (ac_try="$ac_compile"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_compile") 2>conftest.er1
14668 grep -v '^ *+' conftest.er1 >conftest.err
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14674 { (case "(($ac_try" in
14675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679 (eval "$ac_try") 2>&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; } &&
14683 { ac_try='test -s conftest.$ac_objext'
14684 { (case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_try") 2>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 ac_header_compiler=yes
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 ac_header_compiler=no
14701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14703 echo "${ECHO_T}$ac_header_compiler" >&6; }
14705 # Is the header present?
14706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 #include <$ac_header>
14716 if { (ac_try="$ac_cpp conftest.$ac_ext"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } >/dev/null; then
14729 if test -s conftest.err; then
14730 ac_cpp_err=$ac_c_preproc_warn_flag
14731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14738 if test -z "$ac_cpp_err"; then
14739 ac_header_preproc=yes
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ac_header_preproc=no
14747 rm -f conftest.err conftest.$ac_ext
14748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14749 echo "${ECHO_T}$ac_header_preproc" >&6; }
14751 # So? What about this header?
14752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14758 ac_header_preproc=yes
14761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14774 ## ------------------------------------ ##
14775 ## Report this to http://llvm.org/bugs/ ##
14776 ## ------------------------------------ ##
14778 ) | sed "s/^/$as_me: WARNING: /" >&2
14781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 eval "$as_ac_Header=\$ac_header_preproc"
14788 ac_res=`eval echo '${'$as_ac_Header'}'`
14789 { echo "$as_me:$LINENO: result: $ac_res" >&5
14790 echo "${ECHO_T}$ac_res" >&6; }
14793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14794 cat >>confdefs.h <<_ACEOF
14795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14808 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 ac_res=`eval echo '${'$as_ac_Header'}'`
14818 { echo "$as_me:$LINENO: result: $ac_res" >&5
14819 echo "${ECHO_T}$ac_res" >&6; }
14821 # Is the header compilable?
14822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14824 cat >conftest.$ac_ext <<_ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830 $ac_includes_default
14831 #include <$ac_header>
14833 rm -f conftest.$ac_objext
14834 if { (ac_try="$ac_compile"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_compile") 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14848 { (case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_try") 2>&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest.$ac_objext'
14858 { (case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_try") 2>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_header_compiler=yes
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_header_compiler=no
14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14877 echo "${ECHO_T}$ac_header_compiler" >&6; }
14879 # Is the header present?
14880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14882 cat >conftest.$ac_ext <<_ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h. */
14888 #include <$ac_header>
14890 if { (ac_try="$ac_cpp conftest.$ac_ext"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14898 grep -v '^ *+' conftest.er1 >conftest.err
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } >/dev/null; then
14903 if test -s conftest.err; then
14904 ac_cpp_err=$ac_c_preproc_warn_flag
14905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14912 if test -z "$ac_cpp_err"; then
14913 ac_header_preproc=yes
14915 echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14918 ac_header_preproc=no
14921 rm -f conftest.err conftest.$ac_ext
14922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14923 echo "${ECHO_T}$ac_header_preproc" >&6; }
14925 # So? What about this header?
14926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14932 ac_header_preproc=yes
14935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14948 ## ------------------------------------ ##
14949 ## Report this to http://llvm.org/bugs/ ##
14950 ## ------------------------------------ ##
14952 ) | sed "s/^/$as_me: WARNING: /" >&2
14955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 eval "$as_ac_Header=\$ac_header_preproc"
14962 ac_res=`eval echo '${'$as_ac_Header'}'`
14963 { echo "$as_me:$LINENO: result: $ac_res" >&5
14964 echo "${ECHO_T}$ac_res" >&6; }
14967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14968 cat >>confdefs.h <<_ACEOF
14969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14978 for ac_header in utime.h windows.h
14980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 ac_res=`eval echo '${'$as_ac_Header'}'`
14988 { echo "$as_me:$LINENO: result: $ac_res" >&5
14989 echo "${ECHO_T}$ac_res" >&6; }
14991 # Is the header compilable?
14992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14994 cat >conftest.$ac_ext <<_ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 $ac_includes_default
15001 #include <$ac_header>
15003 rm -f conftest.$ac_objext
15004 if { (ac_try="$ac_compile"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_compile") 2>conftest.er1
15012 grep -v '^ *+' conftest.er1 >conftest.err
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037 ac_header_compiler=yes
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_header_compiler=no
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15047 echo "${ECHO_T}$ac_header_compiler" >&6; }
15049 # Is the header present?
15050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15052 cat >conftest.$ac_ext <<_ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 #include <$ac_header>
15060 if { (ac_try="$ac_cpp conftest.$ac_ext"
15061 case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15068 grep -v '^ *+' conftest.er1 >conftest.err
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } >/dev/null; then
15073 if test -s conftest.err; then
15074 ac_cpp_err=$ac_c_preproc_warn_flag
15075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15082 if test -z "$ac_cpp_err"; then
15083 ac_header_preproc=yes
15085 echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15088 ac_header_preproc=no
15091 rm -f conftest.err conftest.$ac_ext
15092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15093 echo "${ECHO_T}$ac_header_preproc" >&6; }
15095 # So? What about this header?
15096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15102 ac_header_preproc=yes
15105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15118 ## ------------------------------------ ##
15119 ## Report this to http://llvm.org/bugs/ ##
15120 ## ------------------------------------ ##
15122 ) | sed "s/^/$as_me: WARNING: /" >&2
15125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 eval "$as_ac_Header=\$ac_header_preproc"
15132 ac_res=`eval echo '${'$as_ac_Header'}'`
15133 { echo "$as_me:$LINENO: result: $ac_res" >&5
15134 echo "${ECHO_T}$ac_res" >&6; }
15137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15138 cat >>confdefs.h <<_ACEOF
15139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15151 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15160 ac_res=`eval echo '${'$as_ac_Header'}'`
15161 { echo "$as_me:$LINENO: result: $ac_res" >&5
15162 echo "${ECHO_T}$ac_res" >&6; }
15164 # Is the header compilable?
15165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 $ac_includes_default
15174 #include <$ac_header>
15176 rm -f conftest.$ac_objext
15177 if { (ac_try="$ac_compile"
15178 case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_compile") 2>conftest.er1
15185 grep -v '^ *+' conftest.er1 >conftest.err
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191 { (case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_try") 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest.$ac_objext'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 ac_header_compiler=yes
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_header_compiler=no
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15220 echo "${ECHO_T}$ac_header_compiler" >&6; }
15222 # Is the header present?
15223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 #include <$ac_header>
15233 if { (ac_try="$ac_cpp conftest.$ac_ext"
15234 case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15241 grep -v '^ *+' conftest.er1 >conftest.err
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } >/dev/null; then
15246 if test -s conftest.err; then
15247 ac_cpp_err=$ac_c_preproc_warn_flag
15248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15255 if test -z "$ac_cpp_err"; then
15256 ac_header_preproc=yes
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15261 ac_header_preproc=no
15264 rm -f conftest.err conftest.$ac_ext
15265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15266 echo "${ECHO_T}$ac_header_preproc" >&6; }
15268 # So? What about this header?
15269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15275 ac_header_preproc=yes
15278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15291 ## ------------------------------------ ##
15292 ## Report this to http://llvm.org/bugs/ ##
15293 ## ------------------------------------ ##
15295 ) | sed "s/^/$as_me: WARNING: /" >&2
15298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 eval "$as_ac_Header=\$ac_header_preproc"
15305 ac_res=`eval echo '${'$as_ac_Header'}'`
15306 { echo "$as_me:$LINENO: result: $ac_res" >&5
15307 echo "${ECHO_T}$ac_res" >&6; }
15310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15311 cat >>confdefs.h <<_ACEOF
15312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15323 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 ac_res=`eval echo '${'$as_ac_Header'}'`
15333 { echo "$as_me:$LINENO: result: $ac_res" >&5
15334 echo "${ECHO_T}$ac_res" >&6; }
15336 # Is the header compilable?
15337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15339 cat >conftest.$ac_ext <<_ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15345 $ac_includes_default
15346 #include <$ac_header>
15348 rm -f conftest.$ac_objext
15349 if { (ac_try="$ac_compile"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_compile") 2>conftest.er1
15357 grep -v '^ *+' conftest.er1 >conftest.err
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } &&
15362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15363 { (case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_try") 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try='test -s conftest.$ac_objext'
15373 { (case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_try") 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_header_compiler=yes
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_header_compiler=no
15390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15392 echo "${ECHO_T}$ac_header_compiler" >&6; }
15394 # Is the header present?
15395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15397 cat >conftest.$ac_ext <<_ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 #include <$ac_header>
15405 if { (ac_try="$ac_cpp conftest.$ac_ext"
15406 case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15413 grep -v '^ *+' conftest.er1 >conftest.err
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } >/dev/null; then
15418 if test -s conftest.err; then
15419 ac_cpp_err=$ac_c_preproc_warn_flag
15420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15427 if test -z "$ac_cpp_err"; then
15428 ac_header_preproc=yes
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_header_preproc=no
15436 rm -f conftest.err conftest.$ac_ext
15437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15438 echo "${ECHO_T}$ac_header_preproc" >&6; }
15440 # So? What about this header?
15441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15447 ac_header_preproc=yes
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15463 ## ------------------------------------ ##
15464 ## Report this to http://llvm.org/bugs/ ##
15465 ## ------------------------------------ ##
15467 ) | sed "s/^/$as_me: WARNING: /" >&2
15470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 eval "$as_ac_Header=\$ac_header_preproc"
15477 ac_res=`eval echo '${'$as_ac_Header'}'`
15478 { echo "$as_me:$LINENO: result: $ac_res" >&5
15479 echo "${ECHO_T}$ac_res" >&6; }
15482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15483 cat >>confdefs.h <<_ACEOF
15484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15492 for ac_header in valgrind/valgrind.h
15494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502 { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15505 # Is the header compilable?
15506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 $ac_includes_default
15515 #include <$ac_header>
15517 rm -f conftest.$ac_objext
15518 if { (ac_try="$ac_compile"
15519 case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_compile") 2>conftest.er1
15526 grep -v '^ *+' conftest.er1 >conftest.err
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15532 { (case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_try") 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest.$ac_objext'
15542 { (case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_try") 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_header_compiler=yes
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ac_header_compiler=no
15559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15561 echo "${ECHO_T}$ac_header_compiler" >&6; }
15563 # Is the header present?
15564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15566 cat >conftest.$ac_ext <<_ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15572 #include <$ac_header>
15574 if { (ac_try="$ac_cpp conftest.$ac_ext"
15575 case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15582 grep -v '^ *+' conftest.er1 >conftest.err
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } >/dev/null; then
15587 if test -s conftest.err; then
15588 ac_cpp_err=$ac_c_preproc_warn_flag
15589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15596 if test -z "$ac_cpp_err"; then
15597 ac_header_preproc=yes
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 ac_header_preproc=no
15605 rm -f conftest.err conftest.$ac_ext
15606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15607 echo "${ECHO_T}$ac_header_preproc" >&6; }
15609 # So? What about this header?
15610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15616 ac_header_preproc=yes
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15632 ## ------------------------------------ ##
15633 ## Report this to http://llvm.org/bugs/ ##
15634 ## ------------------------------------ ##
15636 ) | sed "s/^/$as_me: WARNING: /" >&2
15639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 eval "$as_ac_Header=\$ac_header_preproc"
15646 ac_res=`eval echo '${'$as_ac_Header'}'`
15647 { echo "$as_me:$LINENO: result: $ac_res" >&5
15648 echo "${ECHO_T}$ac_res" >&6; }
15651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15652 cat >>confdefs.h <<_ACEOF
15653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15661 for ac_header in fenv.h
15663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 ac_res=`eval echo '${'$as_ac_Header'}'`
15671 { echo "$as_me:$LINENO: result: $ac_res" >&5
15672 echo "${ECHO_T}$ac_res" >&6; }
15674 # Is the header compilable?
15675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 $ac_includes_default
15684 #include <$ac_header>
15686 rm -f conftest.$ac_objext
15687 if { (ac_try="$ac_compile"
15688 case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_compile") 2>conftest.er1
15695 grep -v '^ *+' conftest.er1 >conftest.err
15697 cat conftest.err >&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15701 { (case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest.$ac_objext'
15711 { (case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_try") 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 ac_header_compiler=yes
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 ac_header_compiler=no
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15730 echo "${ECHO_T}$ac_header_compiler" >&6; }
15732 # Is the header present?
15733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 #include <$ac_header>
15743 if { (ac_try="$ac_cpp conftest.$ac_ext"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15751 grep -v '^ *+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } >/dev/null; then
15756 if test -s conftest.err; then
15757 ac_cpp_err=$ac_c_preproc_warn_flag
15758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15765 if test -z "$ac_cpp_err"; then
15766 ac_header_preproc=yes
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_header_preproc=no
15774 rm -f conftest.err conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15776 echo "${ECHO_T}$ac_header_preproc" >&6; }
15778 # So? What about this header?
15779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15785 ac_header_preproc=yes
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15801 ## ------------------------------------ ##
15802 ## Report this to http://llvm.org/bugs/ ##
15803 ## ------------------------------------ ##
15805 ) | sed "s/^/$as_me: WARNING: /" >&2
15808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15813 eval "$as_ac_Header=\$ac_header_preproc"
15815 ac_res=`eval echo '${'$as_ac_Header'}'`
15816 { echo "$as_me:$LINENO: result: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15821 cat >>confdefs.h <<_ACEOF
15822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15829 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15831 for ac_header in pthread.h
15833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 ac_res=`eval echo '${'$as_ac_Header'}'`
15841 { echo "$as_me:$LINENO: result: $ac_res" >&5
15842 echo "${ECHO_T}$ac_res" >&6; }
15844 # Is the header compilable?
15845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 $ac_includes_default
15854 #include <$ac_header>
15856 rm -f conftest.$ac_objext
15857 if { (ac_try="$ac_compile"
15858 case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_compile") 2>conftest.er1
15865 grep -v '^ *+' conftest.er1 >conftest.err
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15871 { (case "(($ac_try" in
15872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873 *) ac_try_echo=$ac_try;;
15875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876 (eval "$ac_try") 2>&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest.$ac_objext'
15881 { (case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_try") 2>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_header_compiler=yes
15892 echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15895 ac_header_compiler=no
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15900 echo "${ECHO_T}$ac_header_compiler" >&6; }
15902 # Is the header present?
15903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15905 cat >conftest.$ac_ext <<_ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 #include <$ac_header>
15913 if { (ac_try="$ac_cpp conftest.$ac_ext"
15914 case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15921 grep -v '^ *+' conftest.er1 >conftest.err
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } >/dev/null; then
15926 if test -s conftest.err; then
15927 ac_cpp_err=$ac_c_preproc_warn_flag
15928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15935 if test -z "$ac_cpp_err"; then
15936 ac_header_preproc=yes
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_header_preproc=no
15944 rm -f conftest.err conftest.$ac_ext
15945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15946 echo "${ECHO_T}$ac_header_preproc" >&6; }
15948 # So? What about this header?
15949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15955 ac_header_preproc=yes
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15971 ## ------------------------------------ ##
15972 ## Report this to http://llvm.org/bugs/ ##
15973 ## ------------------------------------ ##
15975 ) | sed "s/^/$as_me: WARNING: /" >&2
15978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 eval "$as_ac_Header=\$ac_header_preproc"
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15991 cat >>confdefs.h <<_ACEOF
15992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16008 if test "$llvm_cv_enable_libffi" = "yes" ; then
16011 for ac_header in ffi.h ffi/ffi.h
16013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 ac_res=`eval echo '${'$as_ac_Header'}'`
16021 { echo "$as_me:$LINENO: result: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16024 # Is the header compilable?
16025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16027 cat >conftest.$ac_ext <<_ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h. */
16033 $ac_includes_default
16034 #include <$ac_header>
16036 rm -f conftest.$ac_objext
16037 if { (ac_try="$ac_compile"
16038 case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_compile") 2>conftest.er1
16045 grep -v '^ *+' conftest.er1 >conftest.err
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16051 { (case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_try") 2>&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; } &&
16060 { ac_try='test -s conftest.$ac_objext'
16061 { (case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_try") 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_header_compiler=yes
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16075 ac_header_compiler=no
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16080 echo "${ECHO_T}$ac_header_compiler" >&6; }
16082 # Is the header present?
16083 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 #include <$ac_header>
16093 if { (ac_try="$ac_cpp conftest.$ac_ext"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16101 grep -v '^ *+' conftest.er1 >conftest.err
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } >/dev/null; then
16106 if test -s conftest.err; then
16107 ac_cpp_err=$ac_c_preproc_warn_flag
16108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16115 if test -z "$ac_cpp_err"; then
16116 ac_header_preproc=yes
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 ac_header_preproc=no
16124 rm -f conftest.err conftest.$ac_ext
16125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16126 echo "${ECHO_T}$ac_header_preproc" >&6; }
16128 # So? What about this header?
16129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16135 ac_header_preproc=yes
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16151 ## ------------------------------------ ##
16152 ## Report this to http://llvm.org/bugs/ ##
16153 ## ------------------------------------ ##
16155 ) | sed "s/^/$as_me: WARNING: /" >&2
16158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 eval "$as_ac_Header=\$ac_header_preproc"
16165 ac_res=`eval echo '${'$as_ac_Header'}'`
16166 { echo "$as_me:$LINENO: result: $ac_res" >&5
16167 echo "${ECHO_T}$ac_res" >&6; }
16170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16171 cat >>confdefs.h <<_ACEOF
16172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16182 for ac_header in CrashReporterClient.h
16184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 ac_res=`eval echo '${'$as_ac_Header'}'`
16192 { echo "$as_me:$LINENO: result: $ac_res" >&5
16193 echo "${ECHO_T}$ac_res" >&6; }
16195 # Is the header compilable?
16196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16198 cat >conftest.$ac_ext <<_ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 $ac_includes_default
16205 #include <$ac_header>
16207 rm -f conftest.$ac_objext
16208 if { (ac_try="$ac_compile"
16209 case "(($ac_try" in
16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211 *) ac_try_echo=$ac_try;;
16213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214 (eval "$ac_compile") 2>conftest.er1
16216 grep -v '^ *+' conftest.er1 >conftest.err
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16222 { (case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_try") 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; } &&
16231 { ac_try='test -s conftest.$ac_objext'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_header_compiler=yes
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 ac_header_compiler=no
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16251 echo "${ECHO_T}$ac_header_compiler" >&6; }
16253 # Is the header present?
16254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16256 cat >conftest.$ac_ext <<_ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262 #include <$ac_header>
16264 if { (ac_try="$ac_cpp conftest.$ac_ext"
16265 case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16272 grep -v '^ *+' conftest.er1 >conftest.err
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } >/dev/null; then
16277 if test -s conftest.err; then
16278 ac_cpp_err=$ac_c_preproc_warn_flag
16279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16286 if test -z "$ac_cpp_err"; then
16287 ac_header_preproc=yes
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ac_header_preproc=no
16295 rm -f conftest.err conftest.$ac_ext
16296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16297 echo "${ECHO_T}$ac_header_preproc" >&6; }
16299 # So? What about this header?
16300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16306 ac_header_preproc=yes
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16322 ## ------------------------------------ ##
16323 ## Report this to http://llvm.org/bugs/ ##
16324 ## ------------------------------------ ##
16326 ) | sed "s/^/$as_me: WARNING: /" >&2
16329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 eval "$as_ac_Header=\$ac_header_preproc"
16336 ac_res=`eval echo '${'$as_ac_Header'}'`
16337 { echo "$as_me:$LINENO: result: $ac_res" >&5
16338 echo "${ECHO_T}$ac_res" >&6; }
16341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16342 cat >>confdefs.h <<_ACEOF
16343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16351 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16352 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16353 cat >conftest.$ac_ext <<_ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h. */
16359 extern const char *__crashreporter_info__;
16361 __crashreporter_info__ = "test";
16366 rm -f conftest.$ac_objext conftest$ac_exeext
16367 if { (ac_try="$ac_link"
16368 case "(($ac_try" in
16369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370 *) ac_try_echo=$ac_try;;
16372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373 (eval "$ac_link") 2>conftest.er1
16375 grep -v '^ *+' conftest.er1 >conftest.err
16377 cat conftest.err >&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } &&
16380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16381 { (case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_try") 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; } &&
16390 { ac_try='test -s conftest$ac_exeext'
16391 { (case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; }; then
16400 { echo "$as_me:$LINENO: result: yes" >&5
16401 echo "${ECHO_T}yes" >&6; }
16403 cat >>confdefs.h <<\_ACEOF
16404 #define HAVE_CRASHREPORTER_INFO 1
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 { echo "$as_me:$LINENO: result: no" >&5
16412 echo "${ECHO_T}no" >&6; }
16414 cat >>confdefs.h <<\_ACEOF
16415 #define HAVE_CRASHREPORTER_INFO 0
16420 rm -f core conftest.err conftest.$ac_objext \
16421 conftest$ac_exeext conftest.$ac_ext
16425 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16426 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16427 if test "${ac_cv_huge_val_sanity+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 ac_cpp='$CXXCPP $CPPFLAGS'
16433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16437 ac_save_CXXFLAGS=$CXXFLAGS
16438 CXXFLAGS="$CXXFLAGS -pedantic"
16439 if test "$cross_compiling" = yes; then
16440 ac_cv_huge_val_sanity=yes
16442 cat >conftest.$ac_ext <<_ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16452 double x = HUGE_VAL; return x != x;
16457 rm -f conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
16477 ac_cv_huge_val_sanity=yes
16479 echo "$as_me: program exited with status $ac_status" >&5
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16483 ( exit $ac_status )
16484 ac_cv_huge_val_sanity=no
16486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16490 CXXFLAGS=$ac_save_CXXFLAGS
16492 ac_cpp='$CPP $CPPFLAGS'
16493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16499 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16500 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16501 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16504 { echo "$as_me:$LINENO: checking for pid_t" >&5
16505 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16506 if test "${ac_cv_type_pid_t+set}" = set; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 cat >conftest.$ac_ext <<_ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h. */
16515 $ac_includes_default
16516 typedef pid_t ac__type_new_;
16520 if ((ac__type_new_ *) 0)
16522 if (sizeof (ac__type_new_))
16528 rm -f conftest.$ac_objext
16529 if { (ac_try="$ac_compile"
16530 case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_compile") 2>conftest.er1
16537 grep -v '^ *+' conftest.er1 >conftest.err
16539 cat conftest.err >&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
16542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16543 { (case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548 (eval "$ac_try") 2>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; } &&
16552 { ac_try='test -s conftest.$ac_objext'
16553 { (case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_try") 2>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 ac_cv_type_pid_t=yes
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16567 ac_cv_type_pid_t=no
16570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16573 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16574 if test $ac_cv_type_pid_t = yes; then
16578 cat >>confdefs.h <<_ACEOF
16584 { echo "$as_me:$LINENO: checking for size_t" >&5
16585 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16586 if test "${ac_cv_type_size_t+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 cat >conftest.$ac_ext <<_ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595 $ac_includes_default
16596 typedef size_t ac__type_new_;
16600 if ((ac__type_new_ *) 0)
16602 if (sizeof (ac__type_new_))
16608 rm -f conftest.$ac_objext
16609 if { (ac_try="$ac_compile"
16610 case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_compile") 2>conftest.er1
16617 grep -v '^ *+' conftest.er1 >conftest.err
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16623 { (case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_try") 2>&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; } &&
16632 { ac_try='test -s conftest.$ac_objext'
16633 { (case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_try") 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; }; then
16642 ac_cv_type_size_t=yes
16644 echo "$as_me: failed program was:" >&5
16645 sed 's/^/| /' conftest.$ac_ext >&5
16647 ac_cv_type_size_t=no
16650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16653 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16654 if test $ac_cv_type_size_t = yes; then
16658 cat >>confdefs.h <<_ACEOF
16659 #define size_t unsigned int
16665 cat >>confdefs.h <<_ACEOF
16666 #define RETSIGTYPE void
16669 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16670 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16671 if test "${ac_cv_struct_tm+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 cat >conftest.$ac_ext <<_ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 #include <sys/types.h>
16686 struct tm *tp; tp->tm_sec;
16691 rm -f conftest.$ac_objext
16692 if { (ac_try="$ac_compile"
16693 case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_compile") 2>conftest.er1
16700 grep -v '^ *+' conftest.er1 >conftest.err
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest.$ac_objext'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16725 ac_cv_struct_tm=time.h
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 ac_cv_struct_tm=sys/time.h
16733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16736 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16737 if test $ac_cv_struct_tm = sys/time.h; then
16739 cat >>confdefs.h <<\_ACEOF
16740 #define TM_IN_SYS_TIME 1
16745 { echo "$as_me:$LINENO: checking for int64_t" >&5
16746 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16747 if test "${ac_cv_type_int64_t+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 cat >conftest.$ac_ext <<_ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 $ac_includes_default
16757 typedef int64_t ac__type_new_;
16761 if ((ac__type_new_ *) 0)
16763 if (sizeof (ac__type_new_))
16769 rm -f conftest.$ac_objext
16770 if { (ac_try="$ac_compile"
16771 case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_compile") 2>conftest.er1
16778 grep -v '^ *+' conftest.er1 >conftest.err
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16784 { (case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_try") 2>&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; } &&
16793 { ac_try='test -s conftest.$ac_objext'
16794 { (case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_try") 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_cv_type_int64_t=yes
16805 echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16808 ac_cv_type_int64_t=no
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16813 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16814 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16815 if test $ac_cv_type_int64_t = yes; then
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_INT64_T 1
16823 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16824 echo "$as_me: error: Type int64_t required but not found" >&2;}
16825 { (exit 1); exit 1; }; }
16828 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16829 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16830 if test "${ac_cv_type_uint64_t+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 cat >conftest.$ac_ext <<_ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 $ac_includes_default
16840 typedef uint64_t ac__type_new_;
16844 if ((ac__type_new_ *) 0)
16846 if (sizeof (ac__type_new_))
16852 rm -f conftest.$ac_objext
16853 if { (ac_try="$ac_compile"
16854 case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_compile") 2>conftest.er1
16861 grep -v '^ *+' conftest.er1 >conftest.err
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest.$ac_objext'
16877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_cv_type_uint64_t=yes
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 ac_cv_type_uint64_t=no
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16897 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16898 if test $ac_cv_type_uint64_t = yes; then
16900 cat >>confdefs.h <<_ACEOF
16901 #define HAVE_UINT64_T 1
16906 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16907 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16908 if test "${ac_cv_type_u_int64_t+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 cat >conftest.$ac_ext <<_ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16917 $ac_includes_default
16918 typedef u_int64_t ac__type_new_;
16922 if ((ac__type_new_ *) 0)
16924 if (sizeof (ac__type_new_))
16930 rm -f conftest.$ac_objext
16931 if { (ac_try="$ac_compile"
16932 case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_compile") 2>conftest.er1
16939 grep -v '^ *+' conftest.er1 >conftest.err
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16945 { (case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_try") 2>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest.$ac_objext'
16955 { (case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_try") 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16964 ac_cv_type_u_int64_t=yes
16966 echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16969 ac_cv_type_u_int64_t=no
16972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16975 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16976 if test $ac_cv_type_u_int64_t = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define HAVE_U_INT64_T 1
16984 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16985 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16986 { (exit 1); exit 1; }; }
17000 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 cat >conftest.$ac_ext <<_ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17016 #define $ac_func innocuous_$ac_func
17018 /* System header to define __stub macros and hopefully few prototypes,
17019 which can conflict with char $ac_func (); below.
17020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17021 <limits.h> exists even on freestanding compilers. */
17024 # include <limits.h>
17026 # include <assert.h>
17031 /* Override any GCC internal prototype to avoid an error.
17032 Use char because int might match the return type of a GCC
17033 builtin and then its argument prototype would still apply. */
17038 /* The GNU C library defines this for functions which it implements
17039 to always fail with ENOSYS. Some functions are actually named
17040 something starting with __ and the normal name is an alias. */
17041 #if defined __stub_$ac_func || defined __stub___$ac_func
17048 return $ac_func ();
17053 rm -f conftest.$ac_objext conftest$ac_exeext
17054 if { (ac_try="$ac_link"
17055 case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_link") 2>conftest.er1
17062 grep -v '^ *+' conftest.er1 >conftest.err
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17068 { (case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_try") 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; } &&
17077 { ac_try='test -s conftest$ac_exeext'
17078 { (case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_try") 2>&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; }; then
17087 eval "$as_ac_var=yes"
17089 echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17092 eval "$as_ac_var=no"
17095 rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17098 ac_res=`eval echo '${'$as_ac_var'}'`
17099 { echo "$as_me:$LINENO: result: $ac_res" >&5
17100 echo "${ECHO_T}$ac_res" >&6; }
17101 if test `eval echo '${'$as_ac_var'}'` = yes; then
17102 cat >>confdefs.h <<_ACEOF
17103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17113 for ac_func in powf fmodf strtof round
17115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17121 cat >conftest.$ac_ext <<_ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17129 #define $ac_func innocuous_$ac_func
17131 /* System header to define __stub macros and hopefully few prototypes,
17132 which can conflict with char $ac_func (); below.
17133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134 <limits.h> exists even on freestanding compilers. */
17137 # include <limits.h>
17139 # include <assert.h>
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17151 /* The GNU C library defines this for functions which it implements
17152 to always fail with ENOSYS. Some functions are actually named
17153 something starting with __ and the normal name is an alias. */
17154 #if defined __stub_$ac_func || defined __stub___$ac_func
17161 return $ac_func ();
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (ac_try="$ac_link"
17168 case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_link") 2>conftest.er1
17175 grep -v '^ *+' conftest.er1 >conftest.err
17177 cat conftest.err >&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } &&
17180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest$ac_exeext'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 eval "$as_ac_var=yes"
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 eval "$as_ac_var=no"
17208 rm -f core conftest.err conftest.$ac_objext \
17209 conftest$ac_exeext conftest.$ac_ext
17211 ac_res=`eval echo '${'$as_ac_var'}'`
17212 { echo "$as_me:$LINENO: result: $ac_res" >&5
17213 echo "${ECHO_T}$ac_res" >&6; }
17214 if test `eval echo '${'$as_ac_var'}'` = yes; then
17215 cat >>confdefs.h <<_ACEOF
17216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17227 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 cat >conftest.$ac_ext <<_ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17243 #define $ac_func innocuous_$ac_func
17245 /* System header to define __stub macros and hopefully few prototypes,
17246 which can conflict with char $ac_func (); below.
17247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17248 <limits.h> exists even on freestanding compilers. */
17251 # include <limits.h>
17253 # include <assert.h>
17258 /* Override any GCC internal prototype to avoid an error.
17259 Use char because int might match the return type of a GCC
17260 builtin and then its argument prototype would still apply. */
17265 /* The GNU C library defines this for functions which it implements
17266 to always fail with ENOSYS. Some functions are actually named
17267 something starting with __ and the normal name is an alias. */
17268 #if defined __stub_$ac_func || defined __stub___$ac_func
17275 return $ac_func ();
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (ac_try="$ac_link"
17282 case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_link") 2>conftest.er1
17289 grep -v '^ *+' conftest.er1 >conftest.err
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17295 { (case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_try") 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest$ac_exeext'
17305 { (case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_try") 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 eval "$as_ac_var=yes"
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 eval "$as_ac_var=no"
17322 rm -f core conftest.err conftest.$ac_objext \
17323 conftest$ac_exeext conftest.$ac_ext
17325 ac_res=`eval echo '${'$as_ac_var'}'`
17326 { echo "$as_me:$LINENO: result: $ac_res" >&5
17327 echo "${ECHO_T}$ac_res" >&6; }
17328 if test `eval echo '${'$as_ac_var'}'` = yes; then
17329 cat >>confdefs.h <<_ACEOF
17330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17339 for ac_func in isatty mkdtemp mkstemp
17341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 cat >conftest.$ac_ext <<_ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17355 #define $ac_func innocuous_$ac_func
17357 /* System header to define __stub macros and hopefully few prototypes,
17358 which can conflict with char $ac_func (); below.
17359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17360 <limits.h> exists even on freestanding compilers. */
17363 # include <limits.h>
17365 # include <assert.h>
17370 /* Override any GCC internal prototype to avoid an error.
17371 Use char because int might match the return type of a GCC
17372 builtin and then its argument prototype would still apply. */
17377 /* The GNU C library defines this for functions which it implements
17378 to always fail with ENOSYS. Some functions are actually named
17379 something starting with __ and the normal name is an alias. */
17380 #if defined __stub_$ac_func || defined __stub___$ac_func
17387 return $ac_func ();
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (ac_try="$ac_link"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_link") 2>conftest.er1
17401 grep -v '^ *+' conftest.er1 >conftest.err
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } &&
17406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17407 { (case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_try") 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest$ac_exeext'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 eval "$as_ac_var=yes"
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 eval "$as_ac_var=no"
17434 rm -f core conftest.err conftest.$ac_objext \
17435 conftest$ac_exeext conftest.$ac_ext
17437 ac_res=`eval echo '${'$as_ac_var'}'`
17438 { echo "$as_me:$LINENO: result: $ac_res" >&5
17439 echo "${ECHO_T}$ac_res" >&6; }
17440 if test `eval echo '${'$as_ac_var'}'` = yes; then
17441 cat >>confdefs.h <<_ACEOF
17442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17455 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17471 #define $ac_func innocuous_$ac_func
17473 /* System header to define __stub macros and hopefully few prototypes,
17474 which can conflict with char $ac_func (); below.
17475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17476 <limits.h> exists even on freestanding compilers. */
17479 # include <limits.h>
17481 # include <assert.h>
17486 /* Override any GCC internal prototype to avoid an error.
17487 Use char because int might match the return type of a GCC
17488 builtin and then its argument prototype would still apply. */
17493 /* The GNU C library defines this for functions which it implements
17494 to always fail with ENOSYS. Some functions are actually named
17495 something starting with __ and the normal name is an alias. */
17496 #if defined __stub_$ac_func || defined __stub___$ac_func
17503 return $ac_func ();
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (ac_try="$ac_link"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_link") 2>conftest.er1
17517 grep -v '^ *+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 eval "$as_ac_var=yes"
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 eval "$as_ac_var=no"
17550 rm -f core conftest.err conftest.$ac_objext \
17551 conftest$ac_exeext conftest.$ac_ext
17553 ac_res=`eval echo '${'$as_ac_var'}'`
17554 { echo "$as_me:$LINENO: result: $ac_res" >&5
17555 echo "${ECHO_T}$ac_res" >&6; }
17556 if test `eval echo '${'$as_ac_var'}'` = yes; then
17557 cat >>confdefs.h <<_ACEOF
17558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17568 for ac_func in strerror strerror_r setenv arc4random
17570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17576 cat >conftest.$ac_ext <<_ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17584 #define $ac_func innocuous_$ac_func
17586 /* System header to define __stub macros and hopefully few prototypes,
17587 which can conflict with char $ac_func (); below.
17588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17589 <limits.h> exists even on freestanding compilers. */
17592 # include <limits.h>
17594 # include <assert.h>
17599 /* Override any GCC internal prototype to avoid an error.
17600 Use char because int might match the return type of a GCC
17601 builtin and then its argument prototype would still apply. */
17606 /* The GNU C library defines this for functions which it implements
17607 to always fail with ENOSYS. Some functions are actually named
17608 something starting with __ and the normal name is an alias. */
17609 #if defined __stub_$ac_func || defined __stub___$ac_func
17616 return $ac_func ();
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (ac_try="$ac_link"
17623 case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_link") 2>conftest.er1
17630 grep -v '^ *+' conftest.er1 >conftest.err
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest$ac_exeext'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 eval "$as_ac_var=yes"
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 eval "$as_ac_var=no"
17663 rm -f core conftest.err conftest.$ac_objext \
17664 conftest$ac_exeext conftest.$ac_ext
17666 ac_res=`eval echo '${'$as_ac_var'}'`
17667 { echo "$as_me:$LINENO: result: $ac_res" >&5
17668 echo "${ECHO_T}$ac_res" >&6; }
17669 if test `eval echo '${'$as_ac_var'}'` = yes; then
17670 cat >>confdefs.h <<_ACEOF
17671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17681 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 cat >conftest.$ac_ext <<_ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17697 #define $ac_func innocuous_$ac_func
17699 /* System header to define __stub macros and hopefully few prototypes,
17700 which can conflict with char $ac_func (); below.
17701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17702 <limits.h> exists even on freestanding compilers. */
17705 # include <limits.h>
17707 # include <assert.h>
17712 /* Override any GCC internal prototype to avoid an error.
17713 Use char because int might match the return type of a GCC
17714 builtin and then its argument prototype would still apply. */
17719 /* The GNU C library defines this for functions which it implements
17720 to always fail with ENOSYS. Some functions are actually named
17721 something starting with __ and the normal name is an alias. */
17722 #if defined __stub_$ac_func || defined __stub___$ac_func
17729 return $ac_func ();
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (ac_try="$ac_link"
17736 case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_link") 2>conftest.er1
17743 grep -v '^ *+' conftest.er1 >conftest.err
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest$ac_exeext'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 eval "$as_ac_var=yes"
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 eval "$as_ac_var=no"
17776 rm -f core conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17779 ac_res=`eval echo '${'$as_ac_var'}'`
17780 { echo "$as_me:$LINENO: result: $ac_res" >&5
17781 echo "${ECHO_T}$ac_res" >&6; }
17782 if test `eval echo '${'$as_ac_var'}'` = yes; then
17783 cat >>confdefs.h <<_ACEOF
17784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17795 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 cat >conftest.$ac_ext <<_ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h. */
17809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17811 #define $ac_func innocuous_$ac_func
17813 /* System header to define __stub macros and hopefully few prototypes,
17814 which can conflict with char $ac_func (); below.
17815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17816 <limits.h> exists even on freestanding compilers. */
17819 # include <limits.h>
17821 # include <assert.h>
17826 /* Override any GCC internal prototype to avoid an error.
17827 Use char because int might match the return type of a GCC
17828 builtin and then its argument prototype would still apply. */
17833 /* The GNU C library defines this for functions which it implements
17834 to always fail with ENOSYS. Some functions are actually named
17835 something starting with __ and the normal name is an alias. */
17836 #if defined __stub_$ac_func || defined __stub___$ac_func
17843 return $ac_func ();
17848 rm -f conftest.$ac_objext conftest$ac_exeext
17849 if { (ac_try="$ac_link"
17850 case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_link") 2>conftest.er1
17857 grep -v '^ *+' conftest.er1 >conftest.err
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
17862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17863 { (case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_try") 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest$ac_exeext'
17873 { (case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_try") 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 eval "$as_ac_var=yes"
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 eval "$as_ac_var=no"
17890 rm -f core conftest.err conftest.$ac_objext \
17891 conftest$ac_exeext conftest.$ac_ext
17893 ac_res=`eval echo '${'$as_ac_var'}'`
17894 { echo "$as_me:$LINENO: result: $ac_res" >&5
17895 echo "${ECHO_T}$ac_res" >&6; }
17896 if test `eval echo '${'$as_ac_var'}'` = yes; then
17897 cat >>confdefs.h <<_ACEOF
17898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17904 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17905 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17906 if test "${llvm_cv_c_printf_a+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 ac_cpp='$CPP $CPPFLAGS'
17911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17915 if test "$cross_compiling" = yes; then
17916 llvmac_cv_c_printf_a=no
17918 cat >conftest.$ac_ext <<_ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17927 #include <stdlib.h>
17933 volatile double A, B;
17937 sprintf(Buffer, "%a", A);
17941 if (A != 0x1.999999999999ap-4)
17948 rm -f conftest$ac_exeext
17949 if { (ac_try="$ac_link"
17950 case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_link") 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17959 { (case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_try") 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 llvm_cv_c_printf_a=yes
17970 echo "$as_me: program exited with status $ac_status" >&5
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17974 ( exit $ac_status )
17975 llvmac_cv_c_printf_a=no
17977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17982 ac_cpp='$CPP $CPPFLAGS'
17983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17988 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17989 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17990 if test "$llvm_cv_c_printf_a" = "yes"; then
17992 cat >>confdefs.h <<\_ACEOF
17993 #define HAVE_PRINTF_A 1
17999 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18000 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18001 if test "${ac_cv_func_rand48+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 ac_cpp='$CXXCPP $CPPFLAGS'
18006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18010 cat >conftest.$ac_ext <<_ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h. */
18016 #include <stdlib.h>
18020 srand48(0);lrand48();drand48();
18025 rm -f conftest.$ac_objext
18026 if { (ac_try="$ac_compile"
18027 case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_compile") 2>conftest.er1
18034 grep -v '^ *+' conftest.er1 >conftest.err
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18040 { (case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_try") 2>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; } &&
18049 { ac_try='test -s conftest.$ac_objext'
18050 { (case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_try") 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 ac_cv_func_rand48=yes
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18064 ac_cv_func_rand48=no
18067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18069 ac_cpp='$CPP $CPPFLAGS'
18070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18075 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18076 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18078 if test "$ac_cv_func_rand48" = "yes" ; then
18080 cat >>confdefs.h <<\_ACEOF
18081 #define HAVE_RAND48 1
18087 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18088 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18089 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 cat >conftest.$ac_ext <<_ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18098 $ac_includes_default
18103 char *p = (char *) strerror_s;
18111 rm -f conftest.$ac_objext
18112 if { (ac_try="$ac_compile"
18113 case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118 (eval "$ac_compile") 2>conftest.er1
18120 grep -v '^ *+' conftest.er1 >conftest.err
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18126 { (case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_try") 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; } &&
18135 { ac_try='test -s conftest.$ac_objext'
18136 { (case "(($ac_try" in
18137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141 (eval "$ac_try") 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_cv_have_decl_strerror_s=yes
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18150 ac_cv_have_decl_strerror_s=no
18153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18156 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18157 if test $ac_cv_have_decl_strerror_s = yes; then
18159 cat >>confdefs.h <<_ACEOF
18160 #define HAVE_DECL_STRERROR_S 1
18165 cat >>confdefs.h <<_ACEOF
18166 #define HAVE_DECL_STRERROR_S 0
18174 if test "$llvm_cv_os_type" = "MingW" ; then
18175 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18176 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18177 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 ac_check_lib_save_LIBS=$LIBS
18182 cat >conftest.$ac_ext <<_ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18189 /* Override any GCC internal prototype to avoid an error.
18190 Use char because int might match the return type of a GCC
18191 builtin and then its argument prototype would still apply. */
18204 rm -f conftest.$ac_objext conftest$ac_exeext
18205 if { (ac_try="$ac_link"
18206 case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_link") 2>conftest.er1
18213 grep -v '^ *+' conftest.er1 >conftest.err
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18219 { (case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_try") 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest$ac_exeext'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 ac_cv_lib_gcc__alloca=yes
18240 echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18243 ac_cv_lib_gcc__alloca=no
18246 rm -f core conftest.err conftest.$ac_objext \
18247 conftest$ac_exeext conftest.$ac_ext
18248 LIBS=$ac_check_lib_save_LIBS
18250 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18251 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18252 if test $ac_cv_lib_gcc__alloca = yes; then
18254 cat >>confdefs.h <<\_ACEOF
18255 #define HAVE__ALLOCA 1
18260 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18261 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18262 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 ac_check_lib_save_LIBS=$LIBS
18267 cat >conftest.$ac_ext <<_ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18274 /* Override any GCC internal prototype to avoid an error.
18275 Use char because int might match the return type of a GCC
18276 builtin and then its argument prototype would still apply. */
18284 return __alloca ();
18289 rm -f conftest.$ac_objext conftest$ac_exeext
18290 if { (ac_try="$ac_link"
18291 case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_link") 2>conftest.er1
18298 grep -v '^ *+' conftest.er1 >conftest.err
18300 cat conftest.err >&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } &&
18303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18304 { (case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_try") 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; } &&
18313 { ac_try='test -s conftest$ac_exeext'
18314 { (case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319 (eval "$ac_try") 2>&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; }; then
18323 ac_cv_lib_gcc___alloca=yes
18325 echo "$as_me: failed program was:" >&5
18326 sed 's/^/| /' conftest.$ac_ext >&5
18328 ac_cv_lib_gcc___alloca=no
18331 rm -f core conftest.err conftest.$ac_objext \
18332 conftest$ac_exeext conftest.$ac_ext
18333 LIBS=$ac_check_lib_save_LIBS
18335 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18336 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18337 if test $ac_cv_lib_gcc___alloca = yes; then
18339 cat >>confdefs.h <<\_ACEOF
18340 #define HAVE___ALLOCA 1
18345 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18346 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18347 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 ac_check_lib_save_LIBS=$LIBS
18352 cat >conftest.$ac_ext <<_ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18359 /* Override any GCC internal prototype to avoid an error.
18360 Use char because int might match the return type of a GCC
18361 builtin and then its argument prototype would still apply. */
18369 return __chkstk ();
18374 rm -f conftest.$ac_objext conftest$ac_exeext
18375 if { (ac_try="$ac_link"
18376 case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_link") 2>conftest.er1
18383 grep -v '^ *+' conftest.er1 >conftest.err
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
18388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18389 { (case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_try") 2>&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; } &&
18398 { ac_try='test -s conftest$ac_exeext'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_lib_gcc___chkstk=yes
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18413 ac_cv_lib_gcc___chkstk=no
18416 rm -f core conftest.err conftest.$ac_objext \
18417 conftest$ac_exeext conftest.$ac_ext
18418 LIBS=$ac_check_lib_save_LIBS
18420 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18421 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18422 if test $ac_cv_lib_gcc___chkstk = yes; then
18424 cat >>confdefs.h <<\_ACEOF
18425 #define HAVE___CHKSTK 1
18430 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18431 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18432 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18435 ac_check_lib_save_LIBS=$LIBS
18437 cat >conftest.$ac_ext <<_ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18444 /* Override any GCC internal prototype to avoid an error.
18445 Use char because int might match the return type of a GCC
18446 builtin and then its argument prototype would still apply. */
18454 return ___chkstk ();
18459 rm -f conftest.$ac_objext conftest$ac_exeext
18460 if { (ac_try="$ac_link"
18461 case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_link") 2>conftest.er1
18468 grep -v '^ *+' conftest.er1 >conftest.err
18470 cat conftest.err >&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } &&
18473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18474 { (case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_try") 2>&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; } &&
18483 { ac_try='test -s conftest$ac_exeext'
18484 { (case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_try") 2>&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 ac_cv_lib_gcc____chkstk=yes
18495 echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 ac_cv_lib_gcc____chkstk=no
18501 rm -f core conftest.err conftest.$ac_objext \
18502 conftest$ac_exeext conftest.$ac_ext
18503 LIBS=$ac_check_lib_save_LIBS
18505 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18506 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18507 if test $ac_cv_lib_gcc____chkstk = yes; then
18509 cat >>confdefs.h <<\_ACEOF
18510 #define HAVE____CHKSTK 1
18516 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18517 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18518 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 ac_check_lib_save_LIBS=$LIBS
18523 cat >conftest.$ac_ext <<_ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18530 /* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply. */
18540 return __ashldi3 ();
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (ac_try="$ac_link"
18547 case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_link") 2>conftest.er1
18554 grep -v '^ *+' conftest.er1 >conftest.err
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
18559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18560 { (case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_try") 2>&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; } &&
18569 { ac_try='test -s conftest$ac_exeext'
18570 { (case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_try") 2>&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 ac_cv_lib_gcc___ashldi3=yes
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18584 ac_cv_lib_gcc___ashldi3=no
18587 rm -f core conftest.err conftest.$ac_objext \
18588 conftest$ac_exeext conftest.$ac_ext
18589 LIBS=$ac_check_lib_save_LIBS
18591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18592 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18593 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18595 cat >>confdefs.h <<\_ACEOF
18596 #define HAVE___ASHLDI3 1
18601 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18602 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18603 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18604 echo $ECHO_N "(cached) $ECHO_C" >&6
18606 ac_check_lib_save_LIBS=$LIBS
18608 cat >conftest.$ac_ext <<_ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18615 /* Override any GCC internal prototype to avoid an error.
18616 Use char because int might match the return type of a GCC
18617 builtin and then its argument prototype would still apply. */
18625 return __ashrdi3 ();
18630 rm -f conftest.$ac_objext conftest$ac_exeext
18631 if { (ac_try="$ac_link"
18632 case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_link") 2>conftest.er1
18639 grep -v '^ *+' conftest.er1 >conftest.err
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18645 { (case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_try") 2>&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } &&
18654 { ac_try='test -s conftest$ac_exeext'
18655 { (case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_try") 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; }; then
18664 ac_cv_lib_gcc___ashrdi3=yes
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18669 ac_cv_lib_gcc___ashrdi3=no
18672 rm -f core conftest.err conftest.$ac_objext \
18673 conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_check_lib_save_LIBS
18676 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18677 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18678 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18680 cat >>confdefs.h <<\_ACEOF
18681 #define HAVE___ASHRDI3 1
18686 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18687 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18688 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 ac_check_lib_save_LIBS=$LIBS
18693 cat >conftest.$ac_ext <<_ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h. */
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18710 return __divdi3 ();
18715 rm -f conftest.$ac_objext conftest$ac_exeext
18716 if { (ac_try="$ac_link"
18717 case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_link") 2>conftest.er1
18724 grep -v '^ *+' conftest.er1 >conftest.err
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
18729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18730 { (case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_try") 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; } &&
18739 { ac_try='test -s conftest$ac_exeext'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749 ac_cv_lib_gcc___divdi3=yes
18751 echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18754 ac_cv_lib_gcc___divdi3=no
18757 rm -f core conftest.err conftest.$ac_objext \
18758 conftest$ac_exeext conftest.$ac_ext
18759 LIBS=$ac_check_lib_save_LIBS
18761 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18762 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18763 if test $ac_cv_lib_gcc___divdi3 = yes; then
18765 cat >>confdefs.h <<\_ACEOF
18766 #define HAVE___DIVDI3 1
18771 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18772 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18773 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 ac_check_lib_save_LIBS=$LIBS
18778 cat >conftest.$ac_ext <<_ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18785 /* Override any GCC internal prototype to avoid an error.
18786 Use char because int might match the return type of a GCC
18787 builtin and then its argument prototype would still apply. */
18795 return __fixdfdi ();
18800 rm -f conftest.$ac_objext conftest$ac_exeext
18801 if { (ac_try="$ac_link"
18802 case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_link") 2>conftest.er1
18809 grep -v '^ *+' conftest.er1 >conftest.err
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18815 { (case "(($ac_try" in
18816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_try") 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest$ac_exeext'
18825 { (case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_try") 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
18834 ac_cv_lib_gcc___fixdfdi=yes
18836 echo "$as_me: failed program was:" >&5
18837 sed 's/^/| /' conftest.$ac_ext >&5
18839 ac_cv_lib_gcc___fixdfdi=no
18842 rm -f core conftest.err conftest.$ac_objext \
18843 conftest$ac_exeext conftest.$ac_ext
18844 LIBS=$ac_check_lib_save_LIBS
18846 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18847 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18848 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18850 cat >>confdefs.h <<\_ACEOF
18851 #define HAVE___FIXDFDI 1
18856 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18857 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18858 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18861 ac_check_lib_save_LIBS=$LIBS
18863 cat >conftest.$ac_ext <<_ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18870 /* Override any GCC internal prototype to avoid an error.
18871 Use char because int might match the return type of a GCC
18872 builtin and then its argument prototype would still apply. */
18880 return __fixsfdi ();
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (ac_try="$ac_link"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_link") 2>conftest.er1
18894 grep -v '^ *+' conftest.er1 >conftest.err
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } &&
18899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18900 { (case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_try") 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } &&
18909 { ac_try='test -s conftest$ac_exeext'
18910 { (case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_try") 2>&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_cv_lib_gcc___fixsfdi=yes
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 ac_cv_lib_gcc___fixsfdi=no
18927 rm -f core conftest.err conftest.$ac_objext \
18928 conftest$ac_exeext conftest.$ac_ext
18929 LIBS=$ac_check_lib_save_LIBS
18931 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18932 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18933 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18935 cat >>confdefs.h <<\_ACEOF
18936 #define HAVE___FIXSFDI 1
18941 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18942 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18943 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 ac_check_lib_save_LIBS=$LIBS
18948 cat >conftest.$ac_ext <<_ACEOF
18951 cat confdefs.h >>conftest.$ac_ext
18952 cat >>conftest.$ac_ext <<_ACEOF
18953 /* end confdefs.h. */
18955 /* Override any GCC internal prototype to avoid an error.
18956 Use char because int might match the return type of a GCC
18957 builtin and then its argument prototype would still apply. */
18961 char __floatdidf ();
18965 return __floatdidf ();
18970 rm -f conftest.$ac_objext conftest$ac_exeext
18971 if { (ac_try="$ac_link"
18972 case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_link") 2>conftest.er1
18979 grep -v '^ *+' conftest.er1 >conftest.err
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18985 { (case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_try") 2>&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; } &&
18994 { ac_try='test -s conftest$ac_exeext'
18995 { (case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_try") 2>&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 ac_cv_lib_gcc___floatdidf=yes
19006 echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19009 ac_cv_lib_gcc___floatdidf=no
19012 rm -f core conftest.err conftest.$ac_objext \
19013 conftest$ac_exeext conftest.$ac_ext
19014 LIBS=$ac_check_lib_save_LIBS
19016 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19017 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19018 if test $ac_cv_lib_gcc___floatdidf = yes; then
19020 cat >>confdefs.h <<\_ACEOF
19021 #define HAVE___FLOATDIDF 1
19026 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19027 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19028 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 ac_check_lib_save_LIBS=$LIBS
19033 cat >conftest.$ac_ext <<_ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19050 return __lshrdi3 ();
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_link") 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest$ac_exeext'
19080 { (case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_try") 2>&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; }; then
19089 ac_cv_lib_gcc___lshrdi3=yes
19091 echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 ac_cv_lib_gcc___lshrdi3=no
19097 rm -f core conftest.err conftest.$ac_objext \
19098 conftest$ac_exeext conftest.$ac_ext
19099 LIBS=$ac_check_lib_save_LIBS
19101 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19102 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19103 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE___LSHRDI3 1
19111 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19112 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19113 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19116 ac_check_lib_save_LIBS=$LIBS
19118 cat >conftest.$ac_ext <<_ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19125 /* Override any GCC internal prototype to avoid an error.
19126 Use char because int might match the return type of a GCC
19127 builtin and then its argument prototype would still apply. */
19135 return __moddi3 ();
19140 rm -f conftest.$ac_objext conftest$ac_exeext
19141 if { (ac_try="$ac_link"
19142 case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_link") 2>conftest.er1
19149 grep -v '^ *+' conftest.er1 >conftest.err
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19155 { (case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_try") 2>&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest$ac_exeext'
19165 { (case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_try") 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174 ac_cv_lib_gcc___moddi3=yes
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 ac_cv_lib_gcc___moddi3=no
19182 rm -f core conftest.err conftest.$ac_objext \
19183 conftest$ac_exeext conftest.$ac_ext
19184 LIBS=$ac_check_lib_save_LIBS
19186 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19187 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19188 if test $ac_cv_lib_gcc___moddi3 = yes; then
19190 cat >>confdefs.h <<\_ACEOF
19191 #define HAVE___MODDI3 1
19196 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19197 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19198 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19199 echo $ECHO_N "(cached) $ECHO_C" >&6
19201 ac_check_lib_save_LIBS=$LIBS
19203 cat >conftest.$ac_ext <<_ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19210 /* Override any GCC internal prototype to avoid an error.
19211 Use char because int might match the return type of a GCC
19212 builtin and then its argument prototype would still apply. */
19220 return __udivdi3 ();
19225 rm -f conftest.$ac_objext conftest$ac_exeext
19226 if { (ac_try="$ac_link"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_link") 2>conftest.er1
19234 grep -v '^ *+' conftest.er1 >conftest.err
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240 { (case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; } &&
19249 { ac_try='test -s conftest$ac_exeext'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259 ac_cv_lib_gcc___udivdi3=yes
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 ac_cv_lib_gcc___udivdi3=no
19267 rm -f core conftest.err conftest.$ac_objext \
19268 conftest$ac_exeext conftest.$ac_ext
19269 LIBS=$ac_check_lib_save_LIBS
19271 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19272 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19273 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE___UDIVDI3 1
19281 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19282 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19283 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 ac_check_lib_save_LIBS=$LIBS
19288 cat >conftest.$ac_ext <<_ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19295 /* Override any GCC internal prototype to avoid an error.
19296 Use char because int might match the return type of a GCC
19297 builtin and then its argument prototype would still apply. */
19305 return __umoddi3 ();
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (ac_try="$ac_link"
19312 case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_link") 2>conftest.er1
19319 grep -v '^ *+' conftest.er1 >conftest.err
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; } &&
19334 { ac_try='test -s conftest$ac_exeext'
19335 { (case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_try") 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_lib_gcc___umoddi3=yes
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 ac_cv_lib_gcc___umoddi3=no
19352 rm -f core conftest.err conftest.$ac_objext \
19353 conftest$ac_exeext conftest.$ac_ext
19354 LIBS=$ac_check_lib_save_LIBS
19356 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19357 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19358 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19360 cat >>confdefs.h <<\_ACEOF
19361 #define HAVE___UMODDI3 1
19367 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19368 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19369 if test "${ac_cv_lib_gcc___main+set}" = set; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 ac_check_lib_save_LIBS=$LIBS
19374 cat >conftest.$ac_ext <<_ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19396 rm -f conftest.$ac_objext conftest$ac_exeext
19397 if { (ac_try="$ac_link"
19398 case "(($ac_try" in
19399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400 *) ac_try_echo=$ac_try;;
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403 (eval "$ac_link") 2>conftest.er1
19405 grep -v '^ *+' conftest.er1 >conftest.err
19407 cat conftest.err >&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
19410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19411 { (case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_try") 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; } &&
19420 { ac_try='test -s conftest$ac_exeext'
19421 { (case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_try") 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19430 ac_cv_lib_gcc___main=yes
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ac_cv_lib_gcc___main=no
19438 rm -f core conftest.err conftest.$ac_objext \
19439 conftest$ac_exeext conftest.$ac_ext
19440 LIBS=$ac_check_lib_save_LIBS
19442 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19443 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19444 if test $ac_cv_lib_gcc___main = yes; then
19446 cat >>confdefs.h <<\_ACEOF
19447 #define HAVE___MAIN 1
19452 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19453 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19454 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 ac_check_lib_save_LIBS=$LIBS
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19466 /* Override any GCC internal prototype to avoid an error.
19467 Use char because int might match the return type of a GCC
19468 builtin and then its argument prototype would still apply. */
19476 return __cmpdi2 ();
19481 rm -f conftest.$ac_objext conftest$ac_exeext
19482 if { (ac_try="$ac_link"
19483 case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_link") 2>conftest.er1
19490 grep -v '^ *+' conftest.er1 >conftest.err
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19496 { (case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_try") 2>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try='test -s conftest$ac_exeext'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 ac_cv_lib_gcc___cmpdi2=yes
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 ac_cv_lib_gcc___cmpdi2=no
19523 rm -f core conftest.err conftest.$ac_objext \
19524 conftest$ac_exeext conftest.$ac_ext
19525 LIBS=$ac_check_lib_save_LIBS
19527 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19528 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19529 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE___CMPDI2 1
19539 if test "$llvm_cv_os_type" = "MingW" ; then
19540 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19541 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19542 cat >conftest.$ac_ext <<_ACEOF
19543 #include <windows.h>
19544 #include <imagehlp.h>
19545 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19546 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19548 rm -f conftest.$ac_objext
19549 if { (ac_try="$ac_compile"
19550 case "(($ac_try" in
19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_compile") 2>conftest.er1
19557 grep -v '^ *+' conftest.er1 >conftest.err
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
19562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19563 { (case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_try") 2>&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try='test -s conftest.$ac_objext'
19573 { (case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_try") 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19583 { echo "$as_me:$LINENO: result: yes" >&5
19584 echo "${ECHO_T}yes" >&6; }
19585 llvm_cv_win32_elmcb_pcstr="PCSTR"
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19592 { echo "$as_me:$LINENO: result: no" >&5
19593 echo "${ECHO_T}no" >&6; }
19594 llvm_cv_win32_elmcb_pcstr="PSTR"
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19600 cat >>confdefs.h <<_ACEOF
19601 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19607 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19608 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19609 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 ac_cpp='$CXXCPP $CPPFLAGS'
19614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19618 cat >conftest.$ac_ext <<_ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h. */
19633 rm -f conftest.$ac_objext
19634 if { (ac_try="$ac_compile"
19635 case "(($ac_try" in
19636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637 *) ac_try_echo=$ac_try;;
19639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640 (eval "$ac_compile") 2>conftest.er1
19642 grep -v '^ *+' conftest.er1 >conftest.err
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19648 { (case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_try") 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest.$ac_objext'
19658 { (case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_try") 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_cv_func_isnan_in_math_h=yes
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 ac_cv_func_isnan_in_math_h=no
19675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677 ac_cpp='$CPP $CPPFLAGS'
19678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19683 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19684 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19687 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19689 cat >>confdefs.h <<\_ACEOF
19690 #define HAVE_ISNAN_IN_MATH_H 1
19695 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19696 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19697 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 ac_cpp='$CXXCPP $CPPFLAGS'
19702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19721 rm -f conftest.$ac_objext
19722 if { (ac_try="$ac_compile"
19723 case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_compile") 2>conftest.er1
19730 grep -v '^ *+' conftest.er1 >conftest.err
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
19735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19736 { (case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_try") 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; } &&
19745 { ac_try='test -s conftest.$ac_objext'
19746 { (case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_try") 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_cv_func_isnan_in_cmath=yes
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 ac_cv_func_isnan_in_cmath=no
19763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19765 ac_cpp='$CPP $CPPFLAGS'
19766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19771 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19772 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19774 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19776 cat >>confdefs.h <<\_ACEOF
19777 #define HAVE_ISNAN_IN_CMATH 1
19782 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19783 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19784 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 ac_cpp='$CXXCPP $CPPFLAGS'
19789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19793 cat >conftest.$ac_ext <<_ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19803 float f; std::isnan(f);
19808 rm -f conftest.$ac_objext
19809 if { (ac_try="$ac_compile"
19810 case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_compile") 2>conftest.er1
19817 grep -v '^ *+' conftest.er1 >conftest.err
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest.$ac_objext'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; }; then
19842 ac_cv_func_std_isnan_in_cmath=yes
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19847 ac_cv_func_std_isnan_in_cmath=no
19850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19852 ac_cpp='$CPP $CPPFLAGS'
19853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19858 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19859 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19861 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19863 cat >>confdefs.h <<\_ACEOF
19864 #define HAVE_STD_ISNAN_IN_CMATH 1
19870 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19871 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19872 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 ac_cpp='$CXXCPP $CPPFLAGS'
19877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19881 cat >conftest.$ac_ext <<_ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19896 rm -f conftest.$ac_objext
19897 if { (ac_try="$ac_compile"
19898 case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_compile") 2>conftest.er1
19905 grep -v '^ *+' conftest.er1 >conftest.err
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19911 { (case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_try") 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; } &&
19920 { ac_try='test -s conftest.$ac_objext'
19921 { (case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_try") 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_cv_func_isinf_in_math_h=yes
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_func_isinf_in_math_h=no
19938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940 ac_cpp='$CPP $CPPFLAGS'
19941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19946 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19947 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19949 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19951 cat >>confdefs.h <<\_ACEOF
19952 #define HAVE_ISINF_IN_MATH_H 1
19957 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19958 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19959 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 ac_cpp='$CXXCPP $CPPFLAGS'
19964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19983 rm -f conftest.$ac_objext
19984 if { (ac_try="$ac_compile"
19985 case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_compile") 2>conftest.er1
19992 grep -v '^ *+' conftest.er1 >conftest.err
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19998 { (case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_try") 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_try") 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_cv_func_isinf_in_cmath=yes
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ac_cv_func_isinf_in_cmath=no
20025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 ac_cpp='$CPP $CPPFLAGS'
20028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20033 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20034 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20036 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20038 cat >>confdefs.h <<\_ACEOF
20039 #define HAVE_ISINF_IN_CMATH 1
20044 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20045 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20046 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 ac_cpp='$CXXCPP $CPPFLAGS'
20051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20065 float f; std::isinf(f);
20070 rm -f conftest.$ac_objext
20071 if { (ac_try="$ac_compile"
20072 case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_compile") 2>conftest.er1
20079 grep -v '^ *+' conftest.er1 >conftest.err
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
20084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20085 { (case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_try") 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest.$ac_objext'
20095 { (case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_try") 2>&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
20104 ac_cv_func_std_isinf_in_cmath=yes
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 ac_cv_func_std_isinf_in_cmath=no
20112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20114 ac_cpp='$CPP $CPPFLAGS'
20115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20120 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20121 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20123 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20125 cat >>confdefs.h <<\_ACEOF
20126 #define HAVE_STD_ISINF_IN_CMATH 1
20131 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20132 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20133 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 ac_cpp='$CXXCPP $CPPFLAGS'
20138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20142 cat >conftest.$ac_ext <<_ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <ieeefp.h>
20152 float f; finite(f);
20157 rm -f conftest.$ac_objext
20158 if { (ac_try="$ac_compile"
20159 case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_compile") 2>conftest.er1
20166 grep -v '^ *+' conftest.er1 >conftest.err
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20172 { (case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_try") 2>&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; } &&
20181 { ac_try='test -s conftest.$ac_objext'
20182 { (case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_try") 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 ac_cv_func_finite_in_ieeefp_h=yes
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 ac_cv_func_finite_in_ieeefp_h=no
20199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20201 ac_cpp='$CPP $CPPFLAGS'
20202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20207 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20208 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20210 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_FINITE_IN_IEEEFP_H 1
20220 if test "$llvm_cv_platform_type" = "Unix" ; then
20223 for ac_header in stdlib.h unistd.h
20225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20232 ac_res=`eval echo '${'$as_ac_Header'}'`
20233 { echo "$as_me:$LINENO: result: $ac_res" >&5
20234 echo "${ECHO_T}$ac_res" >&6; }
20236 # Is the header compilable?
20237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20239 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20245 $ac_includes_default
20246 #include <$ac_header>
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_compile") 2>conftest.er1
20257 grep -v '^ *+' conftest.er1 >conftest.err
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } &&
20262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20263 { (case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_try") 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest.$ac_objext'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_header_compiler=yes
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ac_header_compiler=no
20290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20292 echo "${ECHO_T}$ac_header_compiler" >&6; }
20294 # Is the header present?
20295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20297 cat >conftest.$ac_ext <<_ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 #include <$ac_header>
20305 if { (ac_try="$ac_cpp conftest.$ac_ext"
20306 case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20313 grep -v '^ *+' conftest.er1 >conftest.err
20315 cat conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } >/dev/null; then
20318 if test -s conftest.err; then
20319 ac_cpp_err=$ac_c_preproc_warn_flag
20320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20327 if test -z "$ac_cpp_err"; then
20328 ac_header_preproc=yes
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20333 ac_header_preproc=no
20336 rm -f conftest.err conftest.$ac_ext
20337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20338 echo "${ECHO_T}$ac_header_preproc" >&6; }
20340 # So? What about this header?
20341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20347 ac_header_preproc=yes
20350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20363 ## ------------------------------------ ##
20364 ## Report this to http://llvm.org/bugs/ ##
20365 ## ------------------------------------ ##
20367 ) | sed "s/^/$as_me: WARNING: /" >&2
20370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20375 eval "$as_ac_Header=\$ac_header_preproc"
20377 ac_res=`eval echo '${'$as_ac_Header'}'`
20378 { echo "$as_me:$LINENO: result: $ac_res" >&5
20379 echo "${ECHO_T}$ac_res" >&6; }
20382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20383 cat >>confdefs.h <<_ACEOF
20384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20392 for ac_func in getpagesize
20394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20400 cat >conftest.$ac_ext <<_ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20408 #define $ac_func innocuous_$ac_func
20410 /* System header to define __stub macros and hopefully few prototypes,
20411 which can conflict with char $ac_func (); below.
20412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413 <limits.h> exists even on freestanding compilers. */
20416 # include <limits.h>
20418 # include <assert.h>
20423 /* Override any GCC internal prototype to avoid an error.
20424 Use char because int might match the return type of a GCC
20425 builtin and then its argument prototype would still apply. */
20430 /* The GNU C library defines this for functions which it implements
20431 to always fail with ENOSYS. Some functions are actually named
20432 something starting with __ and the normal name is an alias. */
20433 #if defined __stub_$ac_func || defined __stub___$ac_func
20440 return $ac_func ();
20445 rm -f conftest.$ac_objext conftest$ac_exeext
20446 if { (ac_try="$ac_link"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_link") 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20460 { (case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_try") 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } &&
20469 { ac_try='test -s conftest$ac_exeext'
20470 { (case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_try") 2>&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 eval "$as_ac_var=yes"
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20484 eval "$as_ac_var=no"
20487 rm -f core conftest.err conftest.$ac_objext \
20488 conftest$ac_exeext conftest.$ac_ext
20490 ac_res=`eval echo '${'$as_ac_var'}'`
20491 { echo "$as_me:$LINENO: result: $ac_res" >&5
20492 echo "${ECHO_T}$ac_res" >&6; }
20493 if test `eval echo '${'$as_ac_var'}'` = yes; then
20494 cat >>confdefs.h <<_ACEOF
20495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20501 { echo "$as_me:$LINENO: checking for working mmap" >&5
20502 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20503 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 if test "$cross_compiling" = yes; then
20507 ac_cv_func_mmap_fixed_mapped=no
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 $ac_includes_default
20516 /* malloc might have been renamed as rpl_malloc. */
20519 /* Thanks to Mike Haertel and Jim Avera for this test.
20520 Here is a matrix of mmap possibilities:
20521 mmap private not fixed
20522 mmap private fixed at somewhere currently unmapped
20523 mmap private fixed at somewhere already mapped
20524 mmap shared not fixed
20525 mmap shared fixed at somewhere currently unmapped
20526 mmap shared fixed at somewhere already mapped
20527 For private mappings, we should verify that changes cannot be read()
20528 back from the file, nor mmap's back from the file at a different
20529 address. (There have been systems where private was not correctly
20530 implemented like the infamous i386 svr4.0, and systems where the
20531 VM page cache was not coherent with the file system buffer cache
20532 like early versions of FreeBSD and possibly contemporary NetBSD.)
20533 For shared mappings, we should conversely verify that changes get
20534 propagated back to all the places they're supposed to be.
20536 Grep wants private fixed already mapped.
20537 The main things grep needs to know about mmap are:
20538 * does it exist and is it safe to write into the mmap'd area
20539 * how to use it (BSD variants) */
20542 #include <sys/mman.h>
20544 #if !STDC_HEADERS && !HAVE_STDLIB_H
20548 /* This mess was copied from the GNU getpagesize.h. */
20549 #if !HAVE_GETPAGESIZE
20550 /* Assume that all systems that can run configure have sys/param.h. */
20551 # if !HAVE_SYS_PARAM_H
20552 # define HAVE_SYS_PARAM_H 1
20555 # ifdef _SC_PAGESIZE
20556 # define getpagesize() sysconf(_SC_PAGESIZE)
20557 # else /* no _SC_PAGESIZE */
20558 # if HAVE_SYS_PARAM_H
20559 # include <sys/param.h>
20560 # ifdef EXEC_PAGESIZE
20561 # define getpagesize() EXEC_PAGESIZE
20562 # else /* no EXEC_PAGESIZE */
20564 # define getpagesize() NBPG * CLSIZE
20567 # endif /* no CLSIZE */
20568 # else /* no NBPG */
20570 # define getpagesize() NBPC
20571 # else /* no NBPC */
20573 # define getpagesize() PAGESIZE
20574 # endif /* PAGESIZE */
20575 # endif /* no NBPC */
20576 # endif /* no NBPG */
20577 # endif /* no EXEC_PAGESIZE */
20578 # else /* no HAVE_SYS_PARAM_H */
20579 # define getpagesize() 8192 /* punt totally */
20580 # endif /* no HAVE_SYS_PARAM_H */
20581 # endif /* no _SC_PAGESIZE */
20583 #endif /* no HAVE_GETPAGESIZE */
20588 char *data, *data2, *data3;
20592 pagesize = getpagesize ();
20594 /* First, make a file with some known garbage in it. */
20595 data = (char *) malloc (pagesize);
20598 for (i = 0; i < pagesize; ++i)
20599 *(data + i) = rand ();
20601 fd = creat ("conftest.mmap", 0600);
20604 if (write (fd, data, pagesize) != pagesize)
20608 /* Next, try to mmap the file at a fixed address which already has
20609 something else allocated at it. If we can, also make sure that
20610 we see the same garbage. */
20611 fd = open ("conftest.mmap", O_RDWR);
20614 data2 = (char *) malloc (2 * pagesize);
20617 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20618 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20619 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20621 for (i = 0; i < pagesize; ++i)
20622 if (*(data + i) != *(data2 + i))
20625 /* Finally, make sure that changes to the mapped area do not
20626 percolate back to the file as seen by read(). (This is a bug on
20627 some variants of i386 svr4.0.) */
20628 for (i = 0; i < pagesize; ++i)
20629 *(data2 + i) = *(data2 + i) + 1;
20630 data3 = (char *) malloc (pagesize);
20633 if (read (fd, data3, pagesize) != pagesize)
20635 for (i = 0; i < pagesize; ++i)
20636 if (*(data + i) != *(data3 + i))
20642 rm -f conftest$ac_exeext
20643 if { (ac_try="$ac_link"
20644 case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_link") 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20653 { (case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_try") 2>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; }; then
20662 ac_cv_func_mmap_fixed_mapped=yes
20664 echo "$as_me: program exited with status $ac_status" >&5
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20668 ( exit $ac_status )
20669 ac_cv_func_mmap_fixed_mapped=no
20671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20676 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20677 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20678 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_MMAP 1
20685 rm -f conftest.mmap
20687 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20688 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20689 if test "${ac_cv_func_mmap_file+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 ac_cpp='$CPP $CPPFLAGS'
20694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20698 if test "$cross_compiling" = yes; then
20699 ac_cv_func_mmap_file=no
20701 cat >conftest.$ac_ext <<_ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20709 #include <sys/types.h>
20710 #include <sys/mman.h>
20718 fd = creat ("foo",0777);
20719 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20721 return (fd != (int) MAP_FAILED);
20726 rm -f conftest$ac_exeext
20727 if { (ac_try="$ac_link"
20728 case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_link") 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20737 { (case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_try") 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 ac_cv_func_mmap_file=yes
20748 echo "$as_me: program exited with status $ac_status" >&5
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ( exit $ac_status )
20753 ac_cv_func_mmap_file=no
20755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20760 ac_cpp='$CPP $CPPFLAGS'
20761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20768 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20769 if test "$ac_cv_func_mmap_file" = yes; then
20771 cat >>confdefs.h <<\_ACEOF
20772 #define HAVE_MMAP_FILE
20779 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20780 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20781 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20784 if test "$llvm_cv_os_type" = "Interix" ; then
20785 ac_cv_need_dev_zero_for_mmap=yes
20787 ac_cv_need_dev_zero_for_mmap=no
20791 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20792 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20793 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20795 cat >>confdefs.h <<\_ACEOF
20796 #define NEED_DEV_ZERO_FOR_MMAP 1
20801 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20803 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20804 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20806 if test "$ac_cv_func_mmap_file" = "no"
20808 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20809 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20813 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20814 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20816 ac_cpp='$CXXCPP $CPPFLAGS'
20817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20828 volatile unsigned long val = 1;
20829 __sync_synchronize();
20830 __sync_val_compare_and_swap(&val, 1, 0);
20831 __sync_add_and_fetch(&val, 1);
20832 __sync_sub_and_fetch(&val, 1);
20837 rm -f conftest.$ac_objext conftest$ac_exeext
20838 if { (ac_try="$ac_link"
20839 case "(($ac_try" in
20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841 *) ac_try_echo=$ac_try;;
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844 (eval "$ac_link") 2>conftest.er1
20846 grep -v '^ *+' conftest.er1 >conftest.err
20848 cat conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } &&
20851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20852 { (case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_try") 2>&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; } &&
20861 { ac_try='test -s conftest$ac_exeext'
20862 { (case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_try") 2>&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; }; then
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
20877 { echo "$as_me:$LINENO: result: yes" >&5
20878 echo "${ECHO_T}yes" >&6; }
20880 cat >>confdefs.h <<\_ACEOF
20881 #define LLVM_HAS_ATOMICS 1
20885 echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20888 { echo "$as_me:$LINENO: result: no" >&5
20889 echo "${ECHO_T}no" >&6; }
20891 cat >>confdefs.h <<\_ACEOF
20892 #define LLVM_HAS_ATOMICS 0
20895 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20896 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20899 rm -f core conftest.err conftest.$ac_objext \
20900 conftest$ac_exeext conftest.$ac_ext
20903 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20904 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20905 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20906 if test "${llvm_cv_linux_mixed+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 ac_cpp='$CPP $CPPFLAGS'
20911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20915 cat >conftest.$ac_ext <<_ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20922 error: Not x86-64 even if uname says so!
20933 rm -f conftest.$ac_objext
20934 if { (ac_try="$ac_compile"
20935 case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_compile") 2>conftest.er1
20942 grep -v '^ *+' conftest.er1 >conftest.err
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } &&
20947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20948 { (case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_try") 2>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; } &&
20957 { ac_try='test -s conftest.$ac_objext'
20958 { (case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_try") 2>&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }; then
20967 llvm_cv_linux_mixed=no
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 llvm_cv_linux_mixed=yes
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20977 ac_cpp='$CPP $CPPFLAGS'
20978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20984 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20985 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20987 if test "$llvm_cv_linux_mixed" = "yes"; then
20988 llvm_cv_target_arch="x86"
20994 for ac_func in __dso_handle
20996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21010 #define $ac_func innocuous_$ac_func
21012 /* System header to define __stub macros and hopefully few prototypes,
21013 which can conflict with char $ac_func (); below.
21014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21015 <limits.h> exists even on freestanding compilers. */
21018 # include <limits.h>
21020 # include <assert.h>
21025 /* Override any GCC internal prototype to avoid an error.
21026 Use char because int might match the return type of a GCC
21027 builtin and then its argument prototype would still apply. */
21032 /* The GNU C library defines this for functions which it implements
21033 to always fail with ENOSYS. Some functions are actually named
21034 something starting with __ and the normal name is an alias. */
21035 #if defined __stub_$ac_func || defined __stub___$ac_func
21042 return $ac_func ();
21047 rm -f conftest.$ac_objext conftest$ac_exeext
21048 if { (ac_try="$ac_link"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_link") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } &&
21061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21062 { (case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_try") 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest$ac_exeext'
21072 { (case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_try") 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 eval "$as_ac_var=yes"
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21086 eval "$as_ac_var=no"
21089 rm -f core conftest.err conftest.$ac_objext \
21090 conftest$ac_exeext conftest.$ac_ext
21092 ac_res=`eval echo '${'$as_ac_var'}'`
21093 { echo "$as_me:$LINENO: result: $ac_res" >&5
21094 echo "${ECHO_T}$ac_res" >&6; }
21095 if test `eval echo '${'$as_ac_var'}'` = yes; then
21096 cat >>confdefs.h <<_ACEOF
21097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21104 SHLIBEXT=$libltdl_cv_shlibext
21107 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21110 if test "${prefix}" = "NONE" ; then
21111 prefix="/usr/local"
21113 eval LLVM_PREFIX="${prefix}";
21114 eval LLVM_BINDIR="${prefix}/bin";
21115 eval LLVM_LIBDIR="${prefix}/lib";
21116 eval LLVM_DATADIR="${prefix}/share/llvm";
21117 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21118 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21119 eval LLVM_INCLUDEDIR="${prefix}/include";
21120 eval LLVM_INFODIR="${prefix}/info";
21121 eval LLVM_MANDIR="${prefix}/man";
21122 LLVM_CONFIGTIME=`date`
21134 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21135 LLVM_CONFIGTIME="(timestamp not enabled)"
21139 cat >>confdefs.h <<_ACEOF
21140 #define LLVM_PREFIX "$LLVM_PREFIX"
21144 cat >>confdefs.h <<_ACEOF
21145 #define LLVM_BINDIR "$LLVM_BINDIR"
21149 cat >>confdefs.h <<_ACEOF
21150 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21154 cat >>confdefs.h <<_ACEOF
21155 #define LLVM_DATADIR "$LLVM_DATADIR"
21159 cat >>confdefs.h <<_ACEOF
21160 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21164 cat >>confdefs.h <<_ACEOF
21165 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21169 cat >>confdefs.h <<_ACEOF
21170 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21174 cat >>confdefs.h <<_ACEOF
21175 #define LLVM_INFODIR "$LLVM_INFODIR"
21179 cat >>confdefs.h <<_ACEOF
21180 #define LLVM_MANDIR "$LLVM_MANDIR"
21184 cat >>confdefs.h <<_ACEOF
21185 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21189 cat >>confdefs.h <<_ACEOF
21190 #define LLVM_HOSTTRIPLE "$host"
21194 cat >>confdefs.h <<_ACEOF
21195 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21199 if test "$BINDINGS_TO_BUILD" = auto ; then
21200 BINDINGS_TO_BUILD=""
21201 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21202 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21205 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21211 binding_prereqs_failed=0
21212 for a_binding in $BINDINGS_TO_BUILD ; do
21213 case "$a_binding" in
21215 if test "x$OCAMLC" = x ; then
21216 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21217 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21218 binding_prereqs_failed=1
21220 if test "x$OCAMLDEP" = x ; then
21221 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21222 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21223 binding_prereqs_failed=1
21225 if test "x$OCAMLOPT" = x ; then
21226 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21227 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21229 if test "x$with_ocaml_libdir" != xauto ; then
21230 OCAML_LIBDIR=$with_ocaml_libdir
21233 ocaml_stdlib="`"$OCAMLC" -where`"
21234 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21236 # ocaml stdlib is beneath our prefix; use stdlib
21237 OCAML_LIBDIR=$ocaml_stdlib
21240 # ocaml stdlib is outside our prefix; use libdir/ocaml
21241 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21248 if test "$binding_prereqs_failed" = 1 ; then
21249 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21250 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21251 { (exit 1); exit 1; }; }
21254 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21255 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21256 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 ac_cpp='$CXXCPP $CPPFLAGS'
21261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21265 oldcxxflags="$CXXFLAGS"
21266 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21267 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21282 rm -f conftest.$ac_objext
21283 if { (ac_try="$ac_compile"
21284 case "(($ac_try" in
21285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286 *) ac_try_echo=$ac_try;;
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289 (eval "$ac_compile") 2>conftest.er1
21291 grep -v '^ *+' conftest.er1 >conftest.err
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21297 { (case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_try") 2>&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; } &&
21306 { ac_try='test -s conftest.$ac_objext'
21307 { (case "(($ac_try" in
21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_try") 2>&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
21316 llvm_cv_cxx_visibility_inlines_hidden=yes
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21321 llvm_cv_cxx_visibility_inlines_hidden=no
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 CXXFLAGS="$oldcxxflags"
21327 ac_cpp='$CPP $CPPFLAGS'
21328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21334 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21335 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21336 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21337 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21340 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21345 if test "$llvm_cv_link_use_r" = "yes" ; then
21352 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21353 RDYNAMIC="-Wl,-export-dynamic"
21360 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21367 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21369 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21371 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21373 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21375 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21378 ac_config_files="$ac_config_files Makefile.config"
21381 ac_config_files="$ac_config_files llvm.spec"
21384 ac_config_files="$ac_config_files docs/doxygen.cfg"
21387 if test "${clang_src_root}" = ""; then
21388 clang_src_root="$srcdir/tools/clang"
21390 if test -f ${clang_src_root}/README.txt; then
21391 configh="include/clang/Config/config.h"
21392 doxy="docs/doxygen.cfg"
21393 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21395 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21399 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21402 test "x$program_prefix" = "xNONE" && program_prefix=""
21406 ac_config_commands="$ac_config_commands setup"
21408 ac_config_commands="$ac_config_commands Makefile"
21411 ac_config_commands="$ac_config_commands Makefile.common"
21414 ac_config_commands="$ac_config_commands examples/Makefile"
21417 ac_config_commands="$ac_config_commands lib/Makefile"
21420 ac_config_commands="$ac_config_commands runtime/Makefile"
21423 ac_config_commands="$ac_config_commands test/Makefile"
21426 ac_config_commands="$ac_config_commands test/Makefile.tests"
21429 ac_config_commands="$ac_config_commands unittests/Makefile"
21432 ac_config_commands="$ac_config_commands tools/Makefile"
21435 ac_config_commands="$ac_config_commands utils/Makefile"
21438 ac_config_commands="$ac_config_commands projects/Makefile"
21441 ac_config_commands="$ac_config_commands bindings/Makefile"
21444 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21448 cat >confcache <<\_ACEOF
21449 # This file is a shell script that caches the results of configure
21450 # tests run on this system so they can be shared between configure
21451 # scripts and configure runs, see configure's option --config-cache.
21452 # It is not useful on other systems. If it contains results you don't
21453 # want to keep, you may remove or edit it.
21455 # config.status only pays attention to the cache file if you give it
21456 # the --recheck option to rerun configure.
21458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21460 # following values.
21464 # The following way of writing the cache mishandles newlines in values,
21465 # but we know of no workaround that is simple, portable, and efficient.
21466 # So, we kill variables containing newlines.
21467 # Ultrix sh set writes to stderr and can't be redirected directly,
21468 # and sets the high bit in the cache file unless we assign to the vars.
21470 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21471 eval ac_val=\$$ac_var
21475 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21476 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21479 _ | IFS | as_nl) ;; #(
21480 *) $as_unset $ac_var ;;
21486 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21487 *${as_nl}ac_space=\ *)
21488 # `set' does not quote correctly, so add quotes (double-quote
21489 # substitution turns \\\\ into \\, and sed turns \\ into \).
21492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21495 # `set' quotes correctly as required by POSIX, so do not add quotes.
21496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21505 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21507 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21509 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21510 if test -w "$cache_file"; then
21511 test "x$cache_file" != "x/dev/null" &&
21512 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21513 echo "$as_me: updating cache $cache_file" >&6;}
21514 cat confcache >$cache_file
21516 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21517 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21523 # Let make expand exec_prefix.
21524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21526 DEFS=-DHAVE_CONFIG_H
21530 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21531 # 1. Remove the extension, and $U if already installed.
21532 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21533 ac_i=`echo "$ac_i" | sed "$ac_script"`
21534 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21535 # will be set to the directory where LIBOBJS objects are built.
21536 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21537 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21539 LIBOBJS=$ac_libobjs
21541 LTLIBOBJS=$ac_ltlibobjs
21544 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21545 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21546 Usually this means the macro was only invoked conditionally." >&5
21547 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21548 Usually this means the macro was only invoked conditionally." >&2;}
21549 { (exit 1); exit 1; }; }
21551 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21552 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21553 Usually this means the macro was only invoked conditionally." >&5
21554 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21555 Usually this means the macro was only invoked conditionally." >&2;}
21556 { (exit 1); exit 1; }; }
21559 : ${CONFIG_STATUS=./config.status}
21560 ac_clean_files_save=$ac_clean_files
21561 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21562 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21563 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21564 cat >$CONFIG_STATUS <<_ACEOF
21566 # Generated by $as_me.
21567 # Run this file to recreate the current configuration.
21568 # Compiler output produced by configure, useful for debugging
21569 # configure, is in config.log if it exists.
21572 ac_cs_recheck=false
21574 SHELL=\${CONFIG_SHELL-$SHELL}
21577 cat >>$CONFIG_STATUS <<\_ACEOF
21578 ## --------------------- ##
21579 ## M4sh Initialization. ##
21580 ## --------------------- ##
21582 # Be Bourne compatible
21583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21586 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21587 # is contrary to our usage. Disable this feature.
21588 alias -g '${1+"$@"}'='"$@"'
21589 setopt NO_GLOB_SUBST
21591 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21593 BIN_SH=xpg4; export BIN_SH # for Tru64
21594 DUALCASE=1; export DUALCASE # for MKS sh
21598 # Avoid depending upon Character Ranges.
21599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21602 as_cr_digits='0123456789'
21603 as_cr_alnum=$as_cr_Letters$as_cr_digits
21605 # The user is always right.
21606 if test "${PATH_SEPARATOR+set}" != set; then
21607 echo "#! /bin/sh" >conf$$.sh
21608 echo "exit 0" >>conf$$.sh
21610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21618 # Support unset when possible.
21619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21627 # We need space, tab and new line, in precisely that order. Quoting is
21628 # there to prevent editors from complaining about space-tab.
21629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21630 # splitting by setting IFS to empty value.)
21635 # Find who we are. Look in the path if we contain no directory separator.
21637 *[\\/]* ) as_myself=$0 ;;
21638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21639 for as_dir in $PATH
21642 test -z "$as_dir" && as_dir=.
21643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21649 # We did not find ourselves, most probably we were run as `sh COMMAND'
21650 # in which case we are not to be found in the path.
21651 if test "x$as_myself" = x; then
21654 if test ! -f "$as_myself"; then
21655 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21656 { (exit 1); exit 1; }
21659 # Work around bugs in pre-3.0 UWIN ksh.
21660 for as_var in ENV MAIL MAILPATH
21661 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21671 LC_TELEPHONE LC_TIME
21673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21674 eval $as_var=C; export $as_var
21676 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21680 # Required to use basename.
21681 if expr a : '\(a\)' >/dev/null 2>&1 &&
21682 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21688 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21689 as_basename=basename
21695 # Name of the executable.
21696 as_me=`$as_basename -- "$0" ||
21697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21698 X"$0" : 'X\(//\)$' \| \
21699 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21701 sed '/^.*\/\([^/][^/]*\)\/*$/{
21720 as_lineno_1=$LINENO
21721 as_lineno_2=$LINENO
21722 test "x$as_lineno_1" != "x$as_lineno_2" &&
21723 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21726 # uniformly replaced by the line number. The first 'sed' inserts a
21727 # line-number line after each line using $LINENO; the second 'sed'
21728 # does the real work. The second script uses 'N' to pair each
21729 # line-number line with the line containing $LINENO, and appends
21730 # trailing '-' during substitution so that $LINENO is not a special
21731 # case at line end.
21732 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21733 # scripts with optimization help from Paolo Bonzini. Blame Lee
21734 # E. McMahon (1931-1989) for sed's syntax. :-)
21746 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21749 ' >$as_me.lineno &&
21750 chmod +x "$as_me.lineno" ||
21751 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21752 { (exit 1); exit 1; }; }
21754 # Don't try to exec as it changes $[0], causing all sort of problems
21755 # (the dirname of $[0] is not the place where we might find the
21756 # original and so on. Autoconf is especially sensitive to this).
21757 . "./$as_me.lineno"
21758 # Exit status is that of the last command.
21763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21769 ECHO_C= ECHO_N= ECHO_T=
21770 case `echo -n x` in
21772 case `echo 'x\c'` in
21773 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21780 if expr a : '\(a\)' >/dev/null 2>&1 &&
21781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21787 rm -f conf$$ conf$$.exe conf$$.file
21788 if test -d conf$$.dir; then
21789 rm -f conf$$.dir/conf$$.file
21795 if ln -s conf$$.file conf$$ 2>/dev/null; then
21797 # ... but there are two gotchas:
21798 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21799 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21800 # In both cases, we have to default to `cp -p'.
21801 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21803 elif ln conf$$.file conf$$ 2>/dev/null; then
21808 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21809 rmdir conf$$.dir 2>/dev/null
21811 if mkdir -p . 2>/dev/null; then
21814 test -d ./-p && rmdir ./-p
21818 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21819 # systems may use methods other than mode bits to determine executability.
21820 cat >conf$$.file <<_ASEOF
21824 chmod +x conf$$.file
21825 if test -x conf$$.file >/dev/null 2>&1; then
21826 as_executable_p="test -x"
21832 # Sed expression to map a string onto a valid CPP name.
21833 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21835 # Sed expression to map a string onto a valid variable name.
21836 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21841 # Save the log message, to keep $[0] and so on meaningful, and to
21842 # report actual input values of CONFIG_FILES etc. instead of their
21843 # values after options handling.
21845 This file was extended by LLVM $as_me 3.3svn, which was
21846 generated by GNU Autoconf 2.60. Invocation command line was
21848 CONFIG_FILES = $CONFIG_FILES
21849 CONFIG_HEADERS = $CONFIG_HEADERS
21850 CONFIG_LINKS = $CONFIG_LINKS
21851 CONFIG_COMMANDS = $CONFIG_COMMANDS
21854 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21859 cat >>$CONFIG_STATUS <<_ACEOF
21860 # Files that config.status was made for.
21861 config_files="$ac_config_files"
21862 config_headers="$ac_config_headers"
21863 config_commands="$ac_config_commands"
21867 cat >>$CONFIG_STATUS <<\_ACEOF
21869 \`$as_me' instantiates files from templates according to the
21870 current configuration.
21872 Usage: $0 [OPTIONS] [FILE]...
21874 -h, --help print this help, then exit
21875 -V, --version print version number, then exit
21876 -q, --quiet do not print progress messages
21877 -d, --debug don't remove temporary files
21878 --recheck update $as_me by reconfiguring in the same conditions
21879 --file=FILE[:TEMPLATE]
21880 instantiate the configuration file FILE
21881 --header=FILE[:TEMPLATE]
21882 instantiate the configuration header FILE
21884 Configuration files:
21887 Configuration headers:
21890 Configuration commands:
21893 Report bugs to <bug-autoconf@gnu.org>."
21896 cat >>$CONFIG_STATUS <<_ACEOF
21898 LLVM config.status 3.3svn
21899 configured by $0, generated by GNU Autoconf 2.60,
21900 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21902 Copyright (C) 2006 Free Software Foundation, Inc.
21903 This config.status script is free software; the Free Software Foundation
21904 gives unlimited permission to copy, distribute and modify it."
21911 cat >>$CONFIG_STATUS <<\_ACEOF
21912 # If no file are specified by the user, then we need to provide default
21913 # value. By we need to know if files were specified by the user.
21919 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21920 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21931 # Handling of the options.
21932 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21934 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21935 echo "$ac_cs_version"; exit ;;
21936 --debug | --debu | --deb | --de | --d | -d )
21938 --file | --fil | --fi | --f )
21940 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21941 ac_need_defaults=false;;
21942 --header | --heade | --head | --hea )
21944 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21945 ac_need_defaults=false;;
21947 # Conflict between --help and --header
21948 { echo "$as_me: error: ambiguous option: $1
21949 Try \`$0 --help' for more information." >&2
21950 { (exit 1); exit 1; }; };;
21951 --help | --hel | -h )
21952 echo "$ac_cs_usage"; exit ;;
21953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21954 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21957 # This is an error.
21958 -*) { echo "$as_me: error: unrecognized option: $1
21959 Try \`$0 --help' for more information." >&2
21960 { (exit 1); exit 1; }; } ;;
21962 *) ac_config_targets="$ac_config_targets $1"
21963 ac_need_defaults=false ;;
21969 ac_configure_extra_args=
21971 if $ac_cs_silent; then
21973 ac_configure_extra_args="$ac_configure_extra_args --silent"
21977 cat >>$CONFIG_STATUS <<_ACEOF
21978 if \$ac_cs_recheck; then
21979 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21980 CONFIG_SHELL=$SHELL
21981 export CONFIG_SHELL
21982 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21986 cat >>$CONFIG_STATUS <<\_ACEOF
21990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21991 ## Running $as_me. ##
21997 cat >>$CONFIG_STATUS <<_ACEOF
22001 llvm_src="${srcdir}"
22005 cat >>$CONFIG_STATUS <<\_ACEOF
22007 # Handling of arguments.
22008 for ac_config_target in $ac_config_targets
22010 case $ac_config_target in
22011 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22012 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22013 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22014 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22015 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22016 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22017 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22018 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22019 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22020 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22021 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22022 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22023 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22024 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22025 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22026 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22027 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22028 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22029 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22030 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22031 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22032 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22033 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22034 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22035 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22036 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22037 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22039 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22040 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22041 { (exit 1); exit 1; }; };;
22046 # If the user did not use the arguments to specify the items to instantiate,
22047 # then the envvar interface is used. Set only those that are not.
22048 # We use the long form for the default assignment because of an extremely
22049 # bizarre bug on SunOS 4.1.3.
22050 if $ac_need_defaults; then
22051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22056 # Have a temporary directory for convenience. Make it in the build tree
22057 # simply because there is no reason against having it here, and in addition,
22058 # creating and moving files from /tmp can sometimes cause problems.
22059 # Hook for its removal unless debugging.
22060 # Note that there is a small window in which the directory will not be cleaned:
22061 # after its creation but before its name has been assigned to `$tmp'.
22065 trap 'exit_status=$?
22066 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22068 trap '{ (exit 1); exit 1; }' 1 2 13 15
22070 # Create a (secure) tmp directory for tmp files.
22073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22074 test -n "$tmp" && test -d "$tmp"
22077 tmp=./conf$$-$RANDOM
22078 (umask 077 && mkdir "$tmp")
22081 echo "$me: cannot create a temporary directory in ." >&2
22082 { (exit 1); exit 1; }
22086 # Set up the sed scripts for CONFIG_FILES section.
22089 # No need to generate the scripts if there are no CONFIG_FILES.
22090 # This happens for instance when ./config.status config.h
22091 if test -n "$CONFIG_FILES"; then
22098 for ac_last_try in false false false false false :; do
22099 cat >conf$$subs.sed <<_ACEOF
22100 SHELL!$SHELL$ac_delim
22101 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22102 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22103 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22104 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22105 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22106 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22107 exec_prefix!$exec_prefix$ac_delim
22108 prefix!$prefix$ac_delim
22109 program_transform_name!$program_transform_name$ac_delim
22110 bindir!$bindir$ac_delim
22111 sbindir!$sbindir$ac_delim
22112 libexecdir!$libexecdir$ac_delim
22113 datarootdir!$datarootdir$ac_delim
22114 datadir!$datadir$ac_delim
22115 sysconfdir!$sysconfdir$ac_delim
22116 sharedstatedir!$sharedstatedir$ac_delim
22117 localstatedir!$localstatedir$ac_delim
22118 includedir!$includedir$ac_delim
22119 oldincludedir!$oldincludedir$ac_delim
22120 docdir!$docdir$ac_delim
22121 infodir!$infodir$ac_delim
22122 htmldir!$htmldir$ac_delim
22123 dvidir!$dvidir$ac_delim
22124 pdfdir!$pdfdir$ac_delim
22125 psdir!$psdir$ac_delim
22126 libdir!$libdir$ac_delim
22127 localedir!$localedir$ac_delim
22128 mandir!$mandir$ac_delim
22129 DEFS!$DEFS$ac_delim
22130 ECHO_C!$ECHO_C$ac_delim
22131 ECHO_N!$ECHO_N$ac_delim
22132 ECHO_T!$ECHO_T$ac_delim
22133 LIBS!$LIBS$ac_delim
22134 build_alias!$build_alias$ac_delim
22135 host_alias!$host_alias$ac_delim
22136 target_alias!$target_alias$ac_delim
22137 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22139 CFLAGS!$CFLAGS$ac_delim
22140 LDFLAGS!$LDFLAGS$ac_delim
22141 CPPFLAGS!$CPPFLAGS$ac_delim
22142 ac_ct_CC!$ac_ct_CC$ac_delim
22143 EXEEXT!$EXEEXT$ac_delim
22144 OBJEXT!$OBJEXT$ac_delim
22146 CXXFLAGS!$CXXFLAGS$ac_delim
22147 ac_ct_CXX!$ac_ct_CXX$ac_delim
22149 subdirs!$subdirs$ac_delim
22150 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22151 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22152 build!$build$ac_delim
22153 build_cpu!$build_cpu$ac_delim
22154 build_vendor!$build_vendor$ac_delim
22155 build_os!$build_os$ac_delim
22156 host!$host$ac_delim
22157 host_cpu!$host_cpu$ac_delim
22158 host_vendor!$host_vendor$ac_delim
22159 host_os!$host_os$ac_delim
22160 target!$target$ac_delim
22161 target_cpu!$target_cpu$ac_delim
22162 target_vendor!$target_vendor$ac_delim
22163 target_os!$target_os$ac_delim
22165 HOST_OS!$HOST_OS$ac_delim
22166 TARGET_OS!$TARGET_OS$ac_delim
22167 LINKALL!$LINKALL$ac_delim
22168 NOLINKALL!$NOLINKALL$ac_delim
22169 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22170 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22171 ARCH!$ARCH$ac_delim
22172 HOST_ARCH!$HOST_ARCH$ac_delim
22173 ENDIAN!$ENDIAN$ac_delim
22174 GREP!$GREP$ac_delim
22175 EGREP!$EGREP$ac_delim
22176 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22177 BUILD_CC!$BUILD_CC$ac_delim
22178 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22179 BUILD_CXX!$BUILD_CXX$ac_delim
22180 CVSBUILD!$CVSBUILD$ac_delim
22181 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22182 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22183 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22184 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22185 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22186 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22187 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22188 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22189 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22190 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22191 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22192 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22193 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22194 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22196 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22199 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22201 elif $ac_last_try; then
22202 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22203 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22204 { (exit 1); exit 1; }; }
22206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22210 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22211 if test -n "$ac_eof"; then
22212 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22213 ac_eof=`expr $ac_eof + 1`
22216 cat >>$CONFIG_STATUS <<_ACEOF
22217 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22221 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22222 s/^/s,@/; s/!/@,|#_!!_#|/
22225 s/'"$ac_delim"'$/,g/; t
22227 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22228 ' >>$CONFIG_STATUS <conf$$subs.sed
22229 rm -f conf$$subs.sed
22230 cat >>$CONFIG_STATUS <<_ACEOF
22236 for ac_last_try in false false false false false :; do
22237 cat >conf$$subs.sed <<_ACEOF
22238 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22239 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22240 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22241 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22242 ENABLE_PIC!$ENABLE_PIC$ac_delim
22243 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22244 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22245 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22246 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22247 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22248 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22249 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22250 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22251 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22252 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22253 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22254 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22255 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22256 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22257 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22259 ifGNUmake!$ifGNUmake$ac_delim
22260 LN_S!$LN_S$ac_delim
22263 DATE!$DATE$ac_delim
22264 FIND!$FIND$ac_delim
22265 MKDIR!$MKDIR$ac_delim
22267 RANLIB!$RANLIB$ac_delim
22272 BINPWD!$BINPWD$ac_delim
22273 GRAPHVIZ!$GRAPHVIZ$ac_delim
22276 NEATO!$NEATO$ac_delim
22277 TWOPI!$TWOPI$ac_delim
22278 CIRCO!$CIRCO$ac_delim
22280 DOTTY!$DOTTY$ac_delim
22281 XDOT_PY!$XDOT_PY$ac_delim
22282 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22283 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22284 INSTALL_DATA!$INSTALL_DATA$ac_delim
22285 BZIP2!$BZIP2$ac_delim
22287 DOXYGEN!$DOXYGEN$ac_delim
22288 GROFF!$GROFF$ac_delim
22289 GZIPBIN!$GZIPBIN$ac_delim
22290 PDFROFF!$PDFROFF$ac_delim
22292 OCAMLC!$OCAMLC$ac_delim
22293 OCAMLOPT!$OCAMLOPT$ac_delim
22294 OCAMLDEP!$OCAMLDEP$ac_delim
22295 OCAMLDOC!$OCAMLDOC$ac_delim
22297 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22298 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22299 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22300 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22301 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22302 LIBADD_DL!$LIBADD_DL$ac_delim
22303 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22304 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22305 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22306 USE_UDIS86!$USE_UDIS86$ac_delim
22307 USE_OPROFILE!$USE_OPROFILE$ac_delim
22308 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22309 XML2CONFIG!$XML2CONFIG$ac_delim
22310 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22311 LIBXML2_INC!$LIBXML2_INC$ac_delim
22312 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22313 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22314 MMAP_FILE!$MMAP_FILE$ac_delim
22315 SHLIBEXT!$SHLIBEXT$ac_delim
22316 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22317 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22318 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22319 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22320 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22321 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22322 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22323 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22324 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22325 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22326 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22327 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22328 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22329 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22330 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22331 RPATH!$RPATH$ac_delim
22332 RDYNAMIC!$RDYNAMIC$ac_delim
22333 program_prefix!$program_prefix$ac_delim
22334 LIBOBJS!$LIBOBJS$ac_delim
22337 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22339 elif $ac_last_try; then
22340 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22341 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22342 { (exit 1); exit 1; }; }
22344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22348 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22349 if test -n "$ac_eof"; then
22350 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22351 ac_eof=`expr $ac_eof + 1`
22354 cat >>$CONFIG_STATUS <<_ACEOF
22355 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22356 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22359 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22360 s/^/s,@/; s/!/@,|#_!!_#|/
22363 s/'"$ac_delim"'$/,g/; t
22365 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22366 ' >>$CONFIG_STATUS <conf$$subs.sed
22367 rm -f conf$$subs.sed
22368 cat >>$CONFIG_STATUS <<_ACEOF
22374 for ac_last_try in false false false false false :; do
22375 cat >conf$$subs.sed <<_ACEOF
22376 LTLIBOBJS!$LTLIBOBJS$ac_delim
22379 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
22381 elif $ac_last_try; then
22382 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22383 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22384 { (exit 1); exit 1; }; }
22386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22390 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22391 if test -n "$ac_eof"; then
22392 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22393 ac_eof=`expr $ac_eof + 1`
22396 cat >>$CONFIG_STATUS <<_ACEOF
22397 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22401 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22402 s/^/s,@/; s/!/@,|#_!!_#|/
22405 s/'"$ac_delim"'$/,g/; t
22407 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22408 ' >>$CONFIG_STATUS <conf$$subs.sed
22409 rm -f conf$$subs.sed
22410 cat >>$CONFIG_STATUS <<_ACEOF
22417 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22418 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22419 # trailing colons and then remove the whole line if VPATH becomes empty
22420 # (actually we leave an empty line to preserve line numbers).
22421 if test "x$srcdir" = x.; then
22422 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22423 s/:*\$(srcdir):*/:/
22424 s/:*\${srcdir}:*/:/
22426 s/^\([^=]*=[ ]*\):*/\1/
22432 cat >>$CONFIG_STATUS <<\_ACEOF
22433 fi # test -n "$CONFIG_FILES"
22436 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22439 :[FHLC]) ac_mode=$ac_tag; continue;;
22441 case $ac_mode$ac_tag in
22443 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22444 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22445 { (exit 1); exit 1; }; };;
22446 :[FH]-) ac_tag=-:-;;
22447 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22464 -) ac_f="$tmp/stdin";;
22465 *) # Look for the file first in the build tree, then in the source tree
22466 # (if the path is not absolute). The absolute path cannot be DOS-style,
22467 # because $ac_f cannot contain `:'.
22471 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22473 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22474 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22475 { (exit 1); exit 1; }; };;
22477 ac_file_inputs="$ac_file_inputs $ac_f"
22480 # Let's still pretend it is `configure' which instantiates (i.e., don't
22481 # use $as_me), people would be surprised to read:
22482 # /* config.h. Generated by config.status. */
22483 configure_input="Generated from "`IFS=:
22484 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22485 if test x"$ac_file" != x-; then
22486 configure_input="$ac_file. $configure_input"
22487 { echo "$as_me:$LINENO: creating $ac_file" >&5
22488 echo "$as_me: creating $ac_file" >&6;}
22492 *:-:* | *:-) cat >"$tmp/stdin";;
22497 ac_dir=`$as_dirname -- "$ac_file" ||
22498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22499 X"$ac_file" : 'X\(//\)[^/]' \| \
22500 X"$ac_file" : 'X\(//\)$' \| \
22501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22507 /^X\(\/\/\)[^/].*/{
22522 -*) as_dir=./$as_dir;;
22524 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22528 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22529 *) as_qdir=$as_dir;;
22531 as_dirs="'$as_qdir' $as_dirs"
22532 as_dir=`$as_dirname -- "$as_dir" ||
22533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22534 X"$as_dir" : 'X\(//\)[^/]' \| \
22535 X"$as_dir" : 'X\(//\)$' \| \
22536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22542 /^X\(\/\/\)[^/].*/{
22555 test -d "$as_dir" && break
22557 test -z "$as_dirs" || eval "mkdir $as_dirs"
22558 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22559 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22560 { (exit 1); exit 1; }; }; }
22564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22566 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22567 # A ".." for each directory in $ac_dir_suffix.
22568 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22569 case $ac_top_builddir_sub in
22570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22574 ac_abs_top_builddir=$ac_pwd
22575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22576 # for backward compatibility:
22577 ac_top_builddir=$ac_top_build_prefix
22580 .) # We are building in place.
22582 ac_top_srcdir=$ac_top_builddir_sub
22583 ac_abs_top_srcdir=$ac_pwd ;;
22584 [\\/]* | ?:[\\/]* ) # Absolute name.
22585 ac_srcdir=$srcdir$ac_dir_suffix;
22586 ac_top_srcdir=$srcdir
22587 ac_abs_top_srcdir=$srcdir ;;
22588 *) # Relative name.
22589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22590 ac_top_srcdir=$ac_top_build_prefix$srcdir
22591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22604 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22608 cat >>$CONFIG_STATUS <<\_ACEOF
22609 # If the template does not know about datarootdir, expand it.
22610 # FIXME: This hack should be removed a few years after 2.60.
22611 ac_datarootdir_hack=; ac_datarootdir_seen=
22613 case `sed -n '/datarootdir/ {
22622 ' $ac_file_inputs` in
22623 *datarootdir*) ac_datarootdir_seen=yes;;
22624 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22625 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22626 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22628 cat >>$CONFIG_STATUS <<_ACEOF
22629 ac_datarootdir_hack='
22630 s&@datadir@&$datadir&g
22631 s&@docdir@&$docdir&g
22632 s&@infodir@&$infodir&g
22633 s&@localedir@&$localedir&g
22634 s&@mandir@&$mandir&g
22635 s&\\\${datarootdir}&$datarootdir&g' ;;
22639 # Neutralize VPATH when `$srcdir' = `.'.
22640 # Shell code in configure.ac might set extrasub.
22641 # FIXME: do we really want to maintain this feature?
22642 cat >>$CONFIG_STATUS <<_ACEOF
22646 cat >>$CONFIG_STATUS <<\_ACEOF
22648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22649 s&@configure_input@&$configure_input&;t t
22650 s&@top_builddir@&$ac_top_builddir_sub&;t t
22651 s&@srcdir@&$ac_srcdir&;t t
22652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22653 s&@top_srcdir@&$ac_top_srcdir&;t t
22654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22655 s&@builddir@&$ac_builddir&;t t
22656 s&@abs_builddir@&$ac_abs_builddir&;t t
22657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22658 s&@INSTALL@&$ac_INSTALL&;t t
22659 $ac_datarootdir_hack
22660 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22665 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22666 which seems to be undefined. Please make sure it is defined." >&5
22667 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22668 which seems to be undefined. Please make sure it is defined." >&2;}
22672 -) cat "$tmp/out"; rm -f "$tmp/out";;
22673 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22682 # Transform confdefs.h into a sed script `conftest.defines', that
22683 # substitutes the proper values into config.h.in to produce config.h.
22684 rm -f conftest.defines conftest.tail
22685 # First, append a space to every undef/define line, to ease matching.
22686 echo 's/$/ /' >conftest.defines
22687 # Then, protect against being on the right side of a sed subst, or in
22688 # an unquoted here document, in config.status. If some macros were
22689 # called several times there might be several #defines for the same
22690 # symbol, which is useless. But do not sort them, since the last
22691 # AC_DEFINE must be honored.
22692 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22693 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22694 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22695 # PARAMS is the parameter list in the macro definition--in most cases, it's
22696 # just an empty string.
22697 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22698 ac_dB='\\)[ (].*,\\1define\\2'
22706 s/^[ ]*#[ ]*define[ ][ ]*//
22711 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22712 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22713 ' >>conftest.defines
22715 # Remove the space that was appended to ease matching.
22716 # Then replace #undef with comments. This is necessary, for
22717 # example, in the case of _POSIX_SOURCE, which is predefined and required
22718 # on some systems where configure will not decide to define it.
22719 # (The regexp can be short, since the line contains either #define or #undef.)
22721 s,^[ #]*u.*,/* & */,' >>conftest.defines
22723 # Break up conftest.defines:
22724 ac_max_sed_lines=50
22726 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22727 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22728 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22730 ac_in='$ac_file_inputs'
22731 ac_out='"$tmp/out1"'
22732 ac_nxt='"$tmp/out2"'
22736 # Write a here document:
22737 cat >>$CONFIG_STATUS <<_ACEOF
22738 # First, check the format of the line:
22739 cat >"\$tmp/defines.sed" <<\\CEOF
22740 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22741 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22745 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22747 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22748 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22749 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22750 grep . conftest.tail >/dev/null || break
22751 rm -f conftest.defines
22752 mv conftest.tail conftest.defines
22754 rm -f conftest.defines conftest.tail
22756 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22757 cat >>$CONFIG_STATUS <<\_ACEOF
22758 if test x"$ac_file" != x-; then
22759 echo "/* $configure_input */" >"$tmp/config.h"
22760 cat "$ac_result" >>"$tmp/config.h"
22761 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22762 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22763 echo "$as_me: $ac_file is unchanged" >&6;}
22766 mv "$tmp/config.h" $ac_file
22769 echo "/* $configure_input */"
22775 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22776 echo "$as_me: executing $ac_file commands" >&6;}
22781 case $ac_file$ac_mode in
22782 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22783 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22784 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22785 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22786 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22787 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22788 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22789 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22790 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22791 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22792 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22793 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22794 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22795 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22796 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22797 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22798 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22799 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22800 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22801 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22802 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22803 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22804 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22805 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22806 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22807 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22813 { (exit 0); exit 0; }
22815 chmod +x $CONFIG_STATUS
22816 ac_clean_files=$ac_clean_files_save
22819 # configure is writing to config.log, and then calls config.status.
22820 # config.status does its own redirection, appending to config.log.
22821 # Unfortunately, on DOS this fails, as config.log is still kept open
22822 # by configure, so config.status won't be able to write to it; its
22823 # output is simply discarded. So we exec the FD to /dev/null,
22824 # effectively closing config.log, so it can be properly (re)opened and
22825 # appended to by config.status. When coming back to configure, we
22826 # need to make the FD available again.
22827 if test "$no_create" != yes; then
22829 ac_config_status_args=
22830 test "$silent" = yes &&
22831 ac_config_status_args="$ac_config_status_args --quiet"
22833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22836 # would make configure fail if this is the last instruction.
22837 $ac_cs_success || { (exit 1); exit 1; }
22841 # CONFIG_SUBDIRS section.
22843 if test "$no_recursion" != yes; then
22845 # Remove --cache-file and --srcdir arguments so they do not pile up.
22846 ac_sub_configure_args=
22848 eval "set x $ac_configure_args"
22852 if test -n "$ac_prev"; then
22857 -cache-file | --cache-file | --cache-fil | --cache-fi \
22858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22859 ac_prev=cache_file ;;
22860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22864 --config-cache | -C)
22866 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22868 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22870 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22872 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22876 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22878 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22882 # Always prepend --prefix to ensure using the same prefix
22883 # in subdir configurations.
22884 ac_arg="--prefix=$prefix"
22886 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22888 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22891 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22893 # Do not complain, so a configure script can configure whichever
22894 # parts of a large source tree are present.
22895 test -d "$srcdir/$ac_dir" || continue
22897 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22898 echo "$as_me:$LINENO: $ac_msg" >&5
22902 -*) as_dir=./$as_dir;;
22904 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22908 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22909 *) as_qdir=$as_dir;;
22911 as_dirs="'$as_qdir' $as_dirs"
22912 as_dir=`$as_dirname -- "$as_dir" ||
22913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22914 X"$as_dir" : 'X\(//\)[^/]' \| \
22915 X"$as_dir" : 'X\(//\)$' \| \
22916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22922 /^X\(\/\/\)[^/].*/{
22935 test -d "$as_dir" && break
22937 test -z "$as_dirs" || eval "mkdir $as_dirs"
22938 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22940 { (exit 1); exit 1; }; }; }
22944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22946 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22947 # A ".." for each directory in $ac_dir_suffix.
22948 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22949 case $ac_top_builddir_sub in
22950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22954 ac_abs_top_builddir=$ac_pwd
22955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22956 # for backward compatibility:
22957 ac_top_builddir=$ac_top_build_prefix
22960 .) # We are building in place.
22962 ac_top_srcdir=$ac_top_builddir_sub
22963 ac_abs_top_srcdir=$ac_pwd ;;
22964 [\\/]* | ?:[\\/]* ) # Absolute name.
22965 ac_srcdir=$srcdir$ac_dir_suffix;
22966 ac_top_srcdir=$srcdir
22967 ac_abs_top_srcdir=$srcdir ;;
22968 *) # Relative name.
22969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22970 ac_top_srcdir=$ac_top_build_prefix$srcdir
22971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22978 # Check for guested configure; otherwise get Cygnus style configure.
22979 if test -f "$ac_srcdir/configure.gnu"; then
22980 ac_sub_configure=$ac_srcdir/configure.gnu
22981 elif test -f "$ac_srcdir/configure"; then
22982 ac_sub_configure=$ac_srcdir/configure
22983 elif test -f "$ac_srcdir/configure.in"; then
22984 # This should be Cygnus configure.
22985 ac_sub_configure=$ac_aux_dir/configure
22987 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22988 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22992 # The recursion is here.
22993 if test -n "$ac_sub_configure"; then
22994 # Make the cache file name correct relative to the subdirectory.
22995 case $cache_file in
22996 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22997 *) # Relative name.
22998 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23001 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23002 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23003 # The eval makes quoting arguments work.
23004 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23005 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23006 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23007 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23008 { (exit 1); exit 1; }; }