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
770 NO_MAYBE_UNINITIALIZED
796 ENABLE_VISIBILITY_INLINES_HIDDEN
803 ac_precious_vars='build_alias
814 ac_subdirs_all='projects/llvm-gcc
818 projects/llvm-poolalloc
821 projects/llvm-stacker
829 # Initialize some variables set by options.
831 ac_init_version=false
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
841 program_transform_name=s,x,x,
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 # Accept the important Cygnus configure options, so we can diagnose typos.
893 case $ac_dashdash$ac_option in
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
915 cache_file=config.cache ;;
917 -datadir | --datadir | --datadi | --datad)
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
929 -disable-* | --disable-*)
930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934 { (exit 1); exit 1; }; }
935 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936 eval enable_$ac_feature=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 -enable-* | --enable-*)
949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_$ac_feature=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
970 -help | --help | --hel | --he | -h)
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1119 -site=* | --site=* | --sit=*)
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package| sed 's/-/_/g'`
1152 eval with_$ac_package=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid package name: $ac_package" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_package=`echo $ac_package | sed 's/-/_/g'`
1161 eval with_$ac_package=no ;;
1164 # Obsolete; use --with-x.
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1181 -*) { echo "$as_me: error: unrecognized option: $ac_option
1182 Try \`$0 --help' for more information." >&2
1183 { (exit 1); exit 1; }; }
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191 { (exit 1); exit 1; }; }
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1196 # FIXME: should be removed in autoconf 3.0.
1197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 { echo "$as_me: error: missing argument to $ac_option" >&2
1209 { (exit 1); exit 1; }; }
1212 # Be sure to have absolute directory names.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1218 eval ac_val=\$$ac_var
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 { echo "$as_me: error: Working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 { echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$0" ||
1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$0" : 'X\(//\)[^/]' \| \
1268 X"$0" : 'X\(//\)$' \| \
1269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1329 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-polly Use polly if available (default is YES)
1403 --enable-libcpp Use libc++ if available (default is NO)
1404 --enable-cxx11 Use c++11 if available (default is NO)
1405 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1406 --enable-clang-static-analyzer
1407 Enable building of clang Static Analyzer (default is
1409 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1410 --enable-optimized Compile with optimizations enabled (default is NO)
1411 --enable-profiling Compile with profiling enabled (default is NO)
1412 --enable-assertions Compile with assertion checks enabled (default is
1414 --enable-werror Compile with -Werror enabled (default is NO)
1415 --enable-expensive-checks
1416 Compile with expensive debug checks enabled (default
1418 --enable-debug-runtime Build runtime libs with debug symbols (default is
1420 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1421 optimization is on and YES if it's off)
1422 --enable-keep-symbols Do not strip installed executables)
1423 --enable-jit Enable Just In Time Compiling (default is YES)
1424 --enable-docs Build documents (default is YES)
1425 --enable-doxygen Build doxygen documentation (default is NO)
1426 --enable-threads Use threads if available (default is YES)
1427 --enable-pthreads Use pthreads if available (default is YES)
1428 --enable-pic Build LLVM with Position Independent Code (default
1430 --enable-shared Build a shared library and link tools against it
1432 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1433 Win32 DLL (default is NO)
1434 --enable-timestamps Enable embedding timestamp information in build
1436 --enable-backtraces Enable embedding backtraces on crash (default is
1438 --enable-targets Build specific host targets: all or
1439 target1,target2,... Valid targets are: host, x86,
1440 x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1441 msp430, nvptx, and cpp (default=all)
1442 --enable-experimental-targets
1443 Build experimental host targets: disable or
1444 target1,target2,... (default=disable)
1445 --enable-bindings Build specific language bindings:
1446 all,auto,none,{binding-name} (default=auto)
1447 --enable-libffi Check for the presence of libffi (default is NO)
1448 --enable-ltdl-install install libltdl
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-optimize-option Select the compiler options to use for optimized
1455 --with-extra-options Specify additional options to compile LLVM with
1456 --with-extra-ld-options Specify additional options to link LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1459 --with-clang-srcdir Directory to the out-of-tree Clang source
1460 --with-clang-resource-dir
1461 Relative directory from the Clang binary for
1463 --with-c-include-dirs Colon separated list of directories clang will
1465 --with-gcc-toolchain Directory where gcc is installed.
1466 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
1469 --with-bug-report-url Specify the URL where bug reports should be
1470 submitted (default=http://llvm.org/bugs/)
1471 --with-internal-prefix Installation directory for internal files
1472 --with-udis86=<path> Use udis86 external x86 disassembler library
1473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
1475 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1478 Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to <http://llvm.org/bugs/>.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" || continue
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1520 .) # We are building in place.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1553 LLVM configure 3.3svn
1554 generated by GNU Autoconf 2.60
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1561 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by LLVM $as_me 3.3svn, which was
1570 generated by GNU Autoconf 2.60. Invocation command line was
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_must_keep_next=false
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 -* ) ac_must_keep_next=true ;;
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1686 # The following way of writing the cache mishandles newlines in values,
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1723 for ac_var in $ac_subst_vars
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1733 if test -n "$ac_subst_files"; then
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1740 for ac_var in $ac_subst_files
1742 eval ac_val=\$$ac_var
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 echo "$ac_var='\''$ac_val'\''"
1751 if test -s confdefs.h; then
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769 for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1777 # Predefined preprocessor variables.
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1842 # Check that the precious variables saved in the cache have kept the same
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865 echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867 echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 cat >>confdefs.h <<\_ACEOF
1924 #define LLVM_VERSION_MAJOR 3
1928 cat >>confdefs.h <<\_ACEOF
1929 #define LLVM_VERSION_MINOR 3
1933 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1942 for ac_dir in autoconf "$srcdir"/autoconf; do
1943 if test -f "$ac_dir/install-sh"; then
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 elif test -f "$ac_dir/install.sh"; then
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 elif test -f "$ac_dir/shtool"; then
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 if test -z "$ac_aux_dir"; then
1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1973 if test ${srcdir} != "." ; then
1974 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1975 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1976 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1977 { (exit 1); exit 1; }; }
1982 ac_cpp='$CPP $CPPFLAGS'
1983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1986 if test -n "$ac_tool_prefix"; then
1987 for ac_prog in clang llvm-gcc gcc
1989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 if test -n "$CC"; then
2018 { echo "$as_me:$LINENO: result: $CC" >&5
2019 echo "${ECHO_T}$CC" >&6; }
2021 { echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6; }
2026 test -n "$CC" && break
2029 if test -z "$CC"; then
2031 for ac_prog in clang llvm-gcc gcc
2033 # Extract the first word of "$ac_prog", so it can be a program name with args.
2034 set dummy $ac_prog; ac_word=$2
2035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test -n "$ac_ct_CC"; then
2041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2050 ac_cv_prog_ac_ct_CC="$ac_prog"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061 if test -n "$ac_ct_CC"; then
2062 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063 echo "${ECHO_T}$ac_ct_CC" >&6; }
2065 { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2070 test -n "$ac_ct_CC" && break
2073 if test "x$ac_ct_CC" = x; then
2076 case $cross_compiling:$ac_tool_warned in
2078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2079 whose name does not start with the host triplet. If you think this
2080 configuration is useful to you, please write to autoconf@gnu.org." >&5
2081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2082 whose name does not start with the host triplet. If you think this
2083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2084 ac_tool_warned=yes ;;
2091 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: no acceptable C compiler found in \$PATH
2094 See \`config.log' for more details." >&2;}
2095 { (exit 1); exit 1; }; }
2097 # Provide some information about the compiler.
2098 echo "$as_me:$LINENO: checking for C compiler version" >&5
2099 ac_compiler=`set X $ac_compile; echo $2`
2100 { (ac_try="$ac_compiler --version >&5"
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler --version >&5") 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110 { (ac_try="$ac_compiler -v >&5"
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler -v >&5") 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (ac_try="$ac_compiler -V >&5"
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126 (eval "$ac_compiler -V >&5") 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2131 cat >conftest.$ac_ext <<_ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2146 ac_clean_files_save=$ac_clean_files
2147 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2151 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2152 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2153 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2155 # List of possible output files, starting from the most likely.
2156 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2157 # only as a last resort. b.out is created by i960 compilers.
2158 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2160 # The IRIX 6 linker writes into existing files which may not be
2161 # executable, retaining their permissions. Remove them first so a
2162 # subsequent execution test works.
2164 for ac_file in $ac_files
2167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2168 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2173 if { (ac_try="$ac_link_default"
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2179 (eval "$ac_link_default") 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
2183 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2184 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2185 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2186 # so that the user can short-circuit this test for compilers unknown to
2188 for ac_file in $ac_files
2190 test -f "$ac_file" || continue
2192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2195 # We found the default executable, but exeext='' is most
2199 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2203 # We set ac_cv_exeext here because the later test for it is not
2204 # safe: cross compilers may not add the suffix if given an `-o'
2205 # argument, so we may need to know it at that point already.
2206 # Even if this section looks crufty: it has the advantage of
2213 test "$ac_cv_exeext" = no && ac_cv_exeext=
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&2;}
2223 { (exit 77); exit 77; }; }
2226 ac_exeext=$ac_cv_exeext
2227 { echo "$as_me:$LINENO: result: $ac_file" >&5
2228 echo "${ECHO_T}$ac_file" >&6; }
2230 # Check that the compiler produces executables we can run. If not, either
2231 # the compiler is broken, or we cross compile.
2232 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235 # If not cross compiling, check that we can run a simple program.
2236 if test "$cross_compiling" != yes; then
2237 if { ac_try='./$ac_file'
2238 { (case "(($ac_try" in
2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240 *) ac_try_echo=$ac_try;;
2242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243 (eval "$ac_try") 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 if test "$cross_compiling" = maybe; then
2252 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2262 { echo "$as_me:$LINENO: result: yes" >&5
2263 echo "${ECHO_T}yes" >&6; }
2265 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2266 ac_clean_files=$ac_clean_files_save
2267 # Check that the compiler produces executables we can run. If not, either
2268 # the compiler is broken, or we cross compile.
2269 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2271 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272 echo "${ECHO_T}$cross_compiling" >&6; }
2274 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2276 if { (ac_try="$ac_link"
2278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279 *) ac_try_echo=$ac_try;;
2281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2282 (eval "$ac_link") 2>&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; then
2286 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2288 # work properly (i.e., refer to `conftest.exe'), while it won't with
2290 for ac_file in conftest.exe conftest conftest.*; do
2291 test -f "$ac_file" || continue
2293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&2;}
2304 { (exit 1); exit 1; }; }
2307 rm -f conftest$ac_cv_exeext
2308 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2309 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2311 rm -f conftest.$ac_ext
2312 EXEEXT=$ac_cv_exeext
2314 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2315 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2316 if test "${ac_cv_objext+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 cat >conftest.$ac_ext <<_ACEOF
2322 cat confdefs.h >>conftest.$ac_ext
2323 cat >>conftest.$ac_ext <<_ACEOF
2324 /* end confdefs.h. */
2334 rm -f conftest.o conftest.obj
2335 if { (ac_try="$ac_compile"
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2341 (eval "$ac_compile") 2>&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; then
2345 for ac_file in conftest.o conftest.obj conftest.*; do
2346 test -f "$ac_file" || continue;
2348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2357 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2358 See \`config.log' for more details." >&5
2359 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&2;}
2361 { (exit 1); exit 1; }; }
2364 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2366 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2367 echo "${ECHO_T}$ac_cv_objext" >&6; }
2368 OBJEXT=$ac_cv_objext
2370 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2371 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 cat >conftest.$ac_ext <<_ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2393 rm -f conftest.$ac_objext
2394 if { (ac_try="$ac_compile"
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_compile") 2>conftest.er1
2402 grep -v '^ *+' conftest.er1 >conftest.err
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2408 { (case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_try") 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_try") 2>&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2429 echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2439 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2440 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2441 GCC=`test $ac_compiler_gnu = yes && echo yes`
2442 ac_test_CFLAGS=${CFLAGS+set}
2443 ac_save_CFLAGS=$CFLAGS
2444 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2445 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_cc_g+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 ac_save_c_werror_flag=$ac_c_werror_flag
2450 ac_c_werror_flag=yes
2453 cat >conftest.$ac_ext <<_ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2468 rm -f conftest.$ac_objext
2469 if { (ac_try="$ac_compile"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compile") 2>conftest.er1
2477 grep -v '^ *+' conftest.er1 >conftest.err
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_try") 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2508 cat >conftest.$ac_ext <<_ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (ac_try="$ac_compile"
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2532 grep -v '^ *+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2538 { (case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_try") 2>&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_try") 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2562 ac_c_werror_flag=$ac_save_c_werror_flag
2564 cat >conftest.$ac_ext <<_ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2579 rm -f conftest.$ac_objext
2580 if { (ac_try="$ac_compile"
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_compile") 2>conftest.er1
2588 grep -v '^ *+' conftest.er1 >conftest.err
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2594 { (case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_try") 2>&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_try") 2>&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_c_werror_flag=$ac_save_c_werror_flag
2630 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2631 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2632 if test "$ac_test_CFLAGS" = set; then
2633 CFLAGS=$ac_save_CFLAGS
2634 elif test $ac_cv_prog_cc_g = yes; then
2635 if test "$GCC" = yes; then
2641 if test "$GCC" = yes; then
2647 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2648 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2649 if test "${ac_cv_prog_cc_c89+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 ac_cv_prog_cc_c89=no
2654 cat >conftest.$ac_ext <<_ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2662 #include <sys/types.h>
2663 #include <sys/stat.h>
2664 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2665 struct buf { int x; };
2666 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2667 static char *e (p, i)
2673 static char *f (char * (*g) (char **, int), char **p, ...)
2678 s = g (p, va_arg (v,int));
2683 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2684 function prototypes and stuff, but not '\xHH' hex character constants.
2685 These don't provoke an error unfortunately, instead are silently treated
2686 as 'x'. The following induces an error, until -std is added to get
2687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2688 array size at least. It's necessary to write '\x00'==0 to get something
2689 that's true only with -std. */
2690 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2692 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2693 inside strings and character constants. */
2695 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2697 int test (int i, double x);
2698 struct s1 {int (*f) (int a);};
2699 struct s2 {int (*f) (double a);};
2700 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2706 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2711 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2712 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2714 CC="$ac_save_CC $ac_arg"
2715 rm -f conftest.$ac_objext
2716 if { (ac_try="$ac_compile"
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compile") 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2730 { (case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_try") 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; } &&
2739 { ac_try='test -s conftest.$ac_objext'
2740 { (case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_try") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 ac_cv_prog_cc_c89=$ac_arg
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2757 rm -f core conftest.err conftest.$ac_objext
2758 test "x$ac_cv_prog_cc_c89" != "xno" && break
2760 rm -f conftest.$ac_ext
2765 case "x$ac_cv_prog_cc_c89" in
2767 { echo "$as_me:$LINENO: result: none needed" >&5
2768 echo "${ECHO_T}none needed" >&6; } ;;
2770 { echo "$as_me:$LINENO: result: unsupported" >&5
2771 echo "${ECHO_T}unsupported" >&6; } ;;
2773 CC="$CC $ac_cv_prog_cc_c89"
2774 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2775 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 ac_cpp='$CXXCPP $CPPFLAGS'
2787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2790 if test -z "$CXX"; then
2791 if test -n "$CCC"; then
2794 if test -n "$ac_tool_prefix"; then
2795 for ac_prog in clang++ llvm-g++ g++
2797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801 if test "${ac_cv_prog_CXX+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 if test -n "$CXX"; then
2805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 if test -n "$CXX"; then
2826 { echo "$as_me:$LINENO: result: $CXX" >&5
2827 echo "${ECHO_T}$CXX" >&6; }
2829 { echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6; }
2834 test -n "$CXX" && break
2837 if test -z "$CXX"; then
2839 for ac_prog in clang++ llvm-g++ g++
2841 # Extract the first word of "$ac_prog", so it can be a program name with args.
2842 set dummy $ac_prog; ac_word=$2
2843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 if test -n "$ac_ct_CXX"; then
2849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_ac_ct_CXX="$ac_prog"
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2869 if test -n "$ac_ct_CXX"; then
2870 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2871 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2873 { echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6; }
2878 test -n "$ac_ct_CXX" && break
2881 if test "x$ac_ct_CXX" = x; then
2884 case $cross_compiling:$ac_tool_warned in
2886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2887 whose name does not start with the host triplet. If you think this
2888 configuration is useful to you, please write to autoconf@gnu.org." >&5
2889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2890 whose name does not start with the host triplet. If you think this
2891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2892 ac_tool_warned=yes ;;
2900 # Provide some information about the compiler.
2901 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2902 ac_compiler=`set X $ac_compile; echo $2`
2903 { (ac_try="$ac_compiler --version >&5"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler --version >&5") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913 { (ac_try="$ac_compiler -v >&5"
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compiler -v >&5") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2923 { (ac_try="$ac_compiler -V >&5"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_compiler -V >&5") 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }
2934 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2935 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2936 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2957 rm -f conftest.$ac_objext
2958 if { (ac_try="$ac_compile"
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_compile") 2>conftest.er1
2966 grep -v '^ *+' conftest.er1 >conftest.err
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2972 { (case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_try") 2>&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_try") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3003 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3004 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3005 GXX=`test $ac_compiler_gnu = yes && echo yes`
3006 ac_test_CXXFLAGS=${CXXFLAGS+set}
3007 ac_save_CXXFLAGS=$CXXFLAGS
3008 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3009 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_cxx_g+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3014 ac_cxx_werror_flag=yes
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compile") 2>conftest.er1
3041 grep -v '^ *+' conftest.er1 >conftest.err
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3047 { (case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_try") 2>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; } &&
3056 { ac_try='test -s conftest.$ac_objext'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 ac_cv_prog_cxx_g=yes
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3152 grep -v '^ *+' conftest.er1 >conftest.err
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; } &&
3167 { ac_try='test -s conftest.$ac_objext'
3168 { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 ac_cv_prog_cxx_g=yes
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3194 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3195 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3196 if test "$ac_test_CXXFLAGS" = set; then
3197 CXXFLAGS=$ac_save_CXXFLAGS
3198 elif test $ac_cv_prog_cxx_g = yes; then
3199 if test "$GXX" = yes; then
3205 if test "$GXX" = yes; then
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3223 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3224 # On Suns, sometimes $CPP names a directory.
3225 if test -n "$CPP" && test -d "$CPP"; then
3228 if test -z "$CPP"; then
3229 if test "${ac_cv_prog_CPP+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 # Double quotes because CPP needs to be expanded
3233 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3236 for ac_c_preproc_warn_flag in '' yes
3238 # Use a header file that comes with gcc, so configuring glibc
3239 # with a fresh cross-compiler works.
3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241 # <limits.h> exists even on freestanding compilers.
3242 # On the NeXT, cc -E runs the code through the compiler's parser,
3243 # not just through cpp. "Syntax error" is here to catch this case.
3244 cat >conftest.$ac_ext <<_ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3251 # include <limits.h>
3253 # include <assert.h>
3257 if { (ac_try="$ac_cpp conftest.$ac_ext"
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3265 grep -v '^ *+' conftest.er1 >conftest.err
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } >/dev/null; then
3270 if test -s conftest.err; then
3271 ac_cpp_err=$ac_c_preproc_warn_flag
3272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3279 if test -z "$ac_cpp_err"; then
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 # Broken: fails on valid input.
3289 rm -f conftest.err conftest.$ac_ext
3291 # OK, works on sane cases. Now check whether nonexistent headers
3292 # can be detected and how.
3293 cat >conftest.$ac_ext <<_ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299 #include <ac_nonexistent.h>
3301 if { (ac_try="$ac_cpp conftest.$ac_ext"
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3309 grep -v '^ *+' conftest.er1 >conftest.err
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } >/dev/null; then
3314 if test -s conftest.err; then
3315 ac_cpp_err=$ac_c_preproc_warn_flag
3316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3323 if test -z "$ac_cpp_err"; then
3324 # Broken: success on invalid input.
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 # Passes both tests.
3335 rm -f conftest.err conftest.$ac_ext
3338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339 rm -f conftest.err conftest.$ac_ext
3340 if $ac_preproc_ok; then
3352 { echo "$as_me:$LINENO: result: $CPP" >&5
3353 echo "${ECHO_T}$CPP" >&6; }
3355 for ac_c_preproc_warn_flag in '' yes
3357 # Use a header file that comes with gcc, so configuring glibc
3358 # with a fresh cross-compiler works.
3359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360 # <limits.h> exists even on freestanding compilers.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp. "Syntax error" is here to catch this case.
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3370 # include <limits.h>
3372 # include <assert.h>
3376 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384 grep -v '^ *+' conftest.er1 >conftest.err
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } >/dev/null; then
3389 if test -s conftest.err; then
3390 ac_cpp_err=$ac_c_preproc_warn_flag
3391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3398 if test -z "$ac_cpp_err"; then
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3404 # Broken: fails on valid input.
3408 rm -f conftest.err conftest.$ac_ext
3410 # OK, works on sane cases. Now check whether nonexistent headers
3411 # can be detected and how.
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 #include <ac_nonexistent.h>
3420 if { (ac_try="$ac_cpp conftest.$ac_ext"
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3428 grep -v '^ *+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 if test -z "$ac_cpp_err"; then
3443 # Broken: success on invalid input.
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 # Passes both tests.
3454 rm -f conftest.err conftest.$ac_ext
3457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458 rm -f conftest.err conftest.$ac_ext
3459 if $ac_preproc_ok; then
3462 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3463 See \`config.log' for more details." >&5
3464 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3465 See \`config.log' for more details." >&2;}
3466 { (exit 1); exit 1; }; }
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 if test "$CXX" = "clang++" ; then
3477 { echo "$as_me:$LINENO: checking whether clang works" >&5
3478 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3480 ac_cpp='$CXXCPP $CPPFLAGS'
3481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3493 #if __has_include (<cxxabi.h>)
3496 #if __has_include (<unwind.h>)
3508 rm -f conftest.$ac_objext
3509 if { (ac_try="$ac_compile"
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3515 (eval "$ac_compile") 2>conftest.er1
3517 grep -v '^ *+' conftest.er1 >conftest.err
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3523 { (case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_try") 2>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_try") 2>&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3543 { echo "$as_me:$LINENO: result: yes" >&5
3544 echo "${ECHO_T}yes" >&6; }
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3551 { echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6; }
3553 { { 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
3554 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;}
3555 { (exit 1); exit 1; }; }
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 if test -d ${srcdir}/projects/llvm-gcc ; then
3571 subdirs="$subdirs projects/llvm-gcc"
3575 if test -d ${srcdir}/projects/test-suite ; then
3576 subdirs="$subdirs projects/test-suite"
3580 if test -d ${srcdir}/projects/llvm-test ; then
3581 subdirs="$subdirs projects/llvm-test"
3585 if test -d ${srcdir}/projects/poolalloc ; then
3586 subdirs="$subdirs projects/poolalloc"
3590 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3591 subdirs="$subdirs projects/llvm-poolalloc"
3595 for i in `ls ${srcdir}/projects`
3597 if test -d ${srcdir}/projects/${i} ; then
3599 sample) subdirs="$subdirs projects/sample"
3601 privbracket) subdirs="$subdirs projects/privbracket"
3603 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3605 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3607 llvm-java) subdirs="$subdirs projects/llvm-java"
3609 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3611 safecode) subdirs="$subdirs projects/safecode"
3613 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3622 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3623 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3629 # Check whether --enable-polly was given.
3630 if test "${enable_polly+set}" = set; then
3631 enableval=$enable_polly;
3636 case "$enableval" in
3641 default) ENABLE_POLLY=1
3643 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3644 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3645 { (exit 1); exit 1; }; } ;;
3649 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3652 subdirs="$subdirs tools/polly"
3657 # Make sure we can run config.sub.
3658 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3659 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3660 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3661 { (exit 1); exit 1; }; }
3663 { echo "$as_me:$LINENO: checking build system type" >&5
3664 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3665 if test "${ac_cv_build+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_build_alias=$build_alias
3669 test "x$ac_build_alias" = x &&
3670 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3671 test "x$ac_build_alias" = x &&
3672 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3673 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3674 { (exit 1); exit 1; }; }
3675 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3676 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3677 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3678 { (exit 1); exit 1; }; }
3681 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3682 echo "${ECHO_T}$ac_cv_build" >&6; }
3683 case $ac_cv_build in
3685 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3686 echo "$as_me: error: invalid value of canonical build" >&2;}
3687 { (exit 1); exit 1; }; };;
3690 ac_save_IFS=$IFS; IFS='-'
3696 # Remember, the first character of IFS is used to create $*,
3697 # except with old shells:
3700 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3703 { echo "$as_me:$LINENO: checking host system type" >&5
3704 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3705 if test "${ac_cv_host+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 if test "x$host_alias" = x; then
3709 ac_cv_host=$ac_cv_build
3711 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3712 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3713 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3714 { (exit 1); exit 1; }; }
3718 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3719 echo "${ECHO_T}$ac_cv_host" >&6; }
3722 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3723 echo "$as_me: error: invalid value of canonical host" >&2;}
3724 { (exit 1); exit 1; }; };;
3727 ac_save_IFS=$IFS; IFS='-'
3733 # Remember, the first character of IFS is used to create $*,
3734 # except with old shells:
3737 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3740 { echo "$as_me:$LINENO: checking target system type" >&5
3741 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3742 if test "${ac_cv_target+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 if test "x$target_alias" = x; then
3746 ac_cv_target=$ac_cv_host
3748 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3749 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3750 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3751 { (exit 1); exit 1; }; }
3755 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3756 echo "${ECHO_T}$ac_cv_target" >&6; }
3757 case $ac_cv_target in
3759 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3760 echo "$as_me: error: invalid value of canonical target" >&2;}
3761 { (exit 1); exit 1; }; };;
3763 target=$ac_cv_target
3764 ac_save_IFS=$IFS; IFS='-'
3770 # Remember, the first character of IFS is used to create $*,
3771 # except with old shells:
3774 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3777 # The aliases save the names the user supplied, while $host etc.
3778 # will get canonicalized.
3779 test -n "$target_alias" &&
3780 test "$program_prefix$program_suffix$program_transform_name" = \
3782 program_prefix=${target_alias}-
3784 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3785 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3786 if test "${llvm_cv_os_type+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 llvm_cv_link_all_option="-Wl,--whole-archive"
3792 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3793 llvm_cv_os_type="AIX"
3794 llvm_cv_platform_type="Unix" ;;
3796 llvm_cv_link_all_option="-Wl,--whole-archive"
3797 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3798 llvm_cv_os_type="IRIX"
3799 llvm_cv_platform_type="Unix" ;;
3801 llvm_cv_link_all_option="-Wl,--whole-archive"
3802 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3803 llvm_cv_os_type="Cygwin"
3804 llvm_cv_platform_type="Unix" ;;
3806 llvm_cv_link_all_option="-Wl,-all_load"
3807 llvm_cv_no_link_all_option="-Wl,-noall_load"
3808 llvm_cv_os_type="Darwin"
3809 llvm_cv_platform_type="Unix" ;;
3811 llvm_cv_link_all_option="-Wl,-all_load"
3812 llvm_cv_no_link_all_option="-Wl,-noall_load"
3813 llvm_cv_os_type="Minix"
3814 llvm_cv_platform_type="Unix" ;;
3815 *-*-freebsd* | *-*-kfreebsd-gnu)
3816 llvm_cv_link_all_option="-Wl,--whole-archive"
3817 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3818 llvm_cv_os_type="FreeBSD"
3819 llvm_cv_platform_type="Unix" ;;
3821 llvm_cv_link_all_option="-Wl,--whole-archive"
3822 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3823 llvm_cv_os_type="OpenBSD"
3824 llvm_cv_platform_type="Unix" ;;
3826 llvm_cv_link_all_option="-Wl,--whole-archive"
3827 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3828 llvm_cv_os_type="NetBSD"
3829 llvm_cv_platform_type="Unix" ;;
3831 llvm_cv_link_all_option="-Wl,--whole-archive"
3832 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3833 llvm_cv_os_type="DragonFly"
3834 llvm_cv_platform_type="Unix" ;;
3836 llvm_cv_link_all_option="-Wl,--whole-archive"
3837 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3838 llvm_cv_os_type="HP-UX"
3839 llvm_cv_platform_type="Unix" ;;
3841 llvm_cv_link_all_option="-Wl,--whole-archive"
3842 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3843 llvm_cv_os_type="Interix"
3844 llvm_cv_platform_type="Unix" ;;
3846 llvm_cv_link_all_option="-Wl,--whole-archive"
3847 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3848 llvm_cv_os_type="Linux"
3849 llvm_cv_platform_type="Unix" ;;
3851 llvm_cv_link_all_option="-Wl,--whole-archive"
3852 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3853 llvm_cv_os_type="GNU"
3854 llvm_cv_platform_type="Unix" ;;
3856 llvm_cv_link_all_option="-Wl,-z,allextract"
3857 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3858 llvm_cv_os_type="SunOS"
3859 llvm_cv_platform_type="Unix" ;;
3861 llvm_cv_link_all_option="-Wl,-z,allextract"
3862 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3863 llvm_cv_os_type="AuroraUX"
3864 llvm_cv_platform_type="Unix" ;;
3866 llvm_cv_link_all_option="-Wl,--whole-archive"
3867 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3868 llvm_cv_os_type="Win32"
3869 llvm_cv_platform_type="Win32" ;;
3871 llvm_cv_link_all_option="-Wl,--whole-archive"
3872 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3873 llvm_cv_os_type="MingW"
3874 llvm_cv_platform_type="Win32" ;;
3876 llvm_cv_link_all_option="-Wl,--whole-archive"
3877 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3878 llvm_cv_os_type="Haiku"
3879 llvm_cv_platform_type="Unix" ;;
3881 llvm_cv_link_all_option="-Wl,--whole-archive"
3882 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3883 llvm_cv_os_type="Freestanding"
3884 llvm_cv_platform_type="Unix" ;;
3886 llvm_cv_link_all_option="-Wl,--whole-archive"
3887 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3888 llvm_cv_os_type="Freestanding"
3889 llvm_cv_platform_type="Unix" ;;
3891 llvm_cv_link_all_option=""
3892 llvm_cv_no_link_all_option=""
3893 llvm_cv_os_type="Unknown"
3894 llvm_cv_platform_type="Unknown" ;;
3897 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3898 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3900 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3901 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3902 if test "${llvm_cv_target_os_type+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 llvm_cv_target_os_type="AIX" ;;
3909 llvm_cv_target_os_type="IRIX" ;;
3911 llvm_cv_target_os_type="Cygwin" ;;
3913 llvm_cv_target_os_type="Darwin" ;;
3915 llvm_cv_target_os_type="Minix" ;;
3916 *-*-freebsd* | *-*-kfreebsd-gnu)
3917 llvm_cv_target_os_type="FreeBSD" ;;
3919 llvm_cv_target_os_type="OpenBSD" ;;
3921 llvm_cv_target_os_type="NetBSD" ;;
3923 llvm_cv_target_os_type="DragonFly" ;;
3925 llvm_cv_target_os_type="HP-UX" ;;
3927 llvm_cv_target_os_type="Interix" ;;
3929 llvm_cv_target_os_type="Linux" ;;
3931 llvm_cv_target_os_type="GNU" ;;
3933 llvm_cv_target_os_type="SunOS" ;;
3935 llvm_cv_target_os_type="AuroraUX" ;;
3937 llvm_cv_target_os_type="Win32" ;;
3939 llvm_cv_target_os_type="MingW" ;;
3941 llvm_cv_target_os_type="Haiku" ;;
3943 llvm_cv_target_os_type="RTEMS" ;;
3945 llvm_cv_target_os_type="NativeClient" ;;
3947 llvm_cv_target_os_type="Freestanding" ;;
3949 llvm_cv_target_os_type="Unknown" ;;
3952 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3953 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3955 if test "$llvm_cv_os_type" = "Unknown" ; then
3956 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3957 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3958 { (exit 1); exit 1; }; }
3963 HOST_OS=$llvm_cv_os_type
3965 TARGET_OS=$llvm_cv_target_os_type
3968 LINKALL=$llvm_cv_link_all_option
3970 NOLINKALL=$llvm_cv_no_link_all_option
3973 case $llvm_cv_platform_type in
3976 cat >>confdefs.h <<\_ACEOF
3977 #define LLVM_ON_UNIX 1
3987 cat >>confdefs.h <<\_ACEOF
3988 #define LLVM_ON_WIN32 1
3998 { echo "$as_me:$LINENO: checking target architecture" >&5
3999 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4000 if test "${llvm_cv_target_arch+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 i?86-*) llvm_cv_target_arch="x86" ;;
4005 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4006 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4007 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4008 arm*-*) llvm_cv_target_arch="ARM" ;;
4009 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4010 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4011 xcore-*) llvm_cv_target_arch="XCore" ;;
4012 msp430-*) llvm_cv_target_arch="MSP430" ;;
4013 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4014 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4015 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4016 *) llvm_cv_target_arch="Unknown" ;;
4019 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4020 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4022 if test "$llvm_cv_target_arch" = "Unknown" ; then
4023 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4024 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4027 case "$llvm_cv_target_arch" in
4028 x86) LLVM_NATIVE_ARCH="X86" ;;
4029 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4030 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4033 ARCH=$llvm_cv_target_arch
4037 i?86-*) host_arch="x86" ;;
4038 amd64-* | x86_64-*) host_arch="x86_64" ;;
4039 sparc*-*) host_arch="Sparc" ;;
4040 powerpc*-*) host_arch="PowerPC" ;;
4041 arm*-*) host_arch="ARM" ;;
4042 mips-* | mips64-*) host_arch="Mips" ;;
4043 mipsel-* | mips64el-*) host_arch="Mips" ;;
4044 xcore-*) host_arch="XCore" ;;
4045 msp430-*) host_arch="MSP430" ;;
4046 hexagon-*) host_arch="Hexagon" ;;
4047 mblaze-*) host_arch="MBlaze" ;;
4048 *) host_arch="Unknown" ;;
4051 if test "$host_arch" = "Unknown" ; then
4052 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4053 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4056 HOST_ARCH=$host_arch
4061 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4062 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4063 if test "${ac_cv_path_GREP+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 # Extract the first word of "grep ggrep" to use in msg output
4067 if test -z "$GREP"; then
4068 set dummy grep ggrep; ac_prog_name=$2
4069 if test "${ac_cv_path_GREP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_path_GREP_found=false
4073 # Loop through the user's path and test for each of PROGNAME-LIST
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 test -z "$as_dir" && as_dir=.
4079 for ac_prog in grep ggrep; do
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4082 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4083 # Check for GNU ac_path_GREP and select it if it is found.
4084 # Check for GNU $ac_path_GREP
4085 case `"$ac_path_GREP" --version 2>&1` in
4087 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4090 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4093 cat "conftest.in" "conftest.in" >"conftest.tmp"
4094 mv "conftest.tmp" "conftest.in"
4095 cp "conftest.in" "conftest.nl"
4096 echo 'GREP' >> "conftest.nl"
4097 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099 ac_count=`expr $ac_count + 1`
4100 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4101 # Best one so far, save it but keep looking for a better one
4102 ac_cv_path_GREP="$ac_path_GREP"
4103 ac_path_GREP_max=$ac_count
4105 # 10*(2^10) chars as input seems more than enough
4106 test $ac_count -gt 10 && break
4108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112 $ac_path_GREP_found && break 3
4122 GREP="$ac_cv_path_GREP"
4123 if test -z "$GREP"; then
4124 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4125 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4126 { (exit 1); exit 1; }; }
4130 ac_cv_path_GREP=$GREP
4135 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4136 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4137 GREP="$ac_cv_path_GREP"
4140 { echo "$as_me:$LINENO: checking for egrep" >&5
4141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4142 if test "${ac_cv_path_EGREP+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4146 then ac_cv_path_EGREP="$GREP -E"
4148 # Extract the first word of "egrep" to use in msg output
4149 if test -z "$EGREP"; then
4150 set dummy egrep; ac_prog_name=$2
4151 if test "${ac_cv_path_EGREP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 ac_path_EGREP_found=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4160 test -z "$as_dir" && as_dir=.
4161 for ac_prog in egrep; do
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4164 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4165 # Check for GNU ac_path_EGREP and select it if it is found.
4166 # Check for GNU $ac_path_EGREP
4167 case `"$ac_path_EGREP" --version 2>&1` in
4169 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4172 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
4178 echo 'EGREP' >> "conftest.nl"
4179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4181 ac_count=`expr $ac_count + 1`
4182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_EGREP="$ac_path_EGREP"
4185 ac_path_EGREP_max=$ac_count
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 $ac_path_EGREP_found && break 3
4204 EGREP="$ac_cv_path_EGREP"
4205 if test -z "$EGREP"; then
4206 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4207 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4208 { (exit 1); exit 1; }; }
4212 ac_cv_path_EGREP=$EGREP
4218 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4219 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4220 EGREP="$ac_cv_path_EGREP"
4223 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4224 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4225 if test "${ac_cv_header_stdc+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4247 rm -f conftest.$ac_objext
4248 if { (ac_try="$ac_compile"
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_compile") 2>conftest.er1
4256 grep -v '^ *+' conftest.er1 >conftest.err
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_header_stdc=yes
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 ac_cv_header_stdc=no
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 if test $ac_cv_header_stdc = yes; then
4292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 $EGREP "memchr" >/dev/null 2>&1; then
4306 ac_cv_header_stdc=no
4312 if test $ac_cv_header_stdc = yes; then
4313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324 $EGREP "free" >/dev/null 2>&1; then
4327 ac_cv_header_stdc=no
4333 if test $ac_cv_header_stdc = yes; then
4334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4335 if test "$cross_compiling" = yes; then
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4346 #if ((' ' & 0x0FF) == 0x020)
4347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4350 # define ISLOWER(c) \
4351 (('a' <= (c) && (c) <= 'i') \
4352 || ('j' <= (c) && (c) <= 'r') \
4353 || ('s' <= (c) && (c) <= 'z'))
4354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4362 for (i = 0; i < 256; i++)
4363 if (XOR (islower (i), ISLOWER (i))
4364 || toupper (i) != TOUPPER (i))
4369 rm -f conftest$ac_exeext
4370 if { (ac_try="$ac_link"
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376 (eval "$ac_link") 2>&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4380 { (case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_try") 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4391 echo "$as_me: program exited with status $ac_status" >&5
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4396 ac_cv_header_stdc=no
4398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4404 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4405 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4406 if test $ac_cv_header_stdc = yes; then
4408 cat >>confdefs.h <<\_ACEOF
4409 #define STDC_HEADERS 1
4414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4425 inttypes.h stdint.h unistd.h
4427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 cat >conftest.$ac_ext <<_ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4441 #include <$ac_header>
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_compile") 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458 { (case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_try") 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_try") 2>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 eval "$as_ac_Header=yes"
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 eval "$as_ac_Header=no"
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 ac_res=`eval echo '${'$as_ac_Header'}'`
4488 { echo "$as_me:$LINENO: result: $ac_res" >&5
4489 echo "${ECHO_T}$ac_res" >&6; }
4490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4491 cat >>confdefs.h <<_ACEOF
4492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4500 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4501 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4502 if test "${ac_cv_c_bigendian+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 # See if sys/param.h defines the BYTE_ORDER macro.
4506 cat >conftest.$ac_ext <<_ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 #include <sys/types.h>
4513 #include <sys/param.h>
4518 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4526 rm -f conftest.$ac_objext
4527 if { (ac_try="$ac_compile"
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_compile") 2>conftest.er1
4535 grep -v '^ *+' conftest.er1 >conftest.err
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4541 { (case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_try") 2>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_try") 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 # It does; now see whether it defined to BIG_ENDIAN or not.
4561 cat >conftest.$ac_ext <<_ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 #include <sys/types.h>
4568 #include <sys/param.h>
4573 #if BYTE_ORDER != BIG_ENDIAN
4581 rm -f conftest.$ac_objext
4582 if { (ac_try="$ac_compile"
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_compile") 2>conftest.er1
4590 grep -v '^ *+' conftest.er1 >conftest.err
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4596 { (case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_try") 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_try") 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_c_bigendian=yes
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 ac_cv_c_bigendian=no
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 # It does not; compile a test program.
4629 if test "$cross_compiling" = yes; then
4630 # try to guess the endianness by grepping values into an object file
4631 ac_cv_c_bigendian=unknown
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4639 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4640 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4641 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4642 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4643 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4647 _ascii (); _ebcdic ();
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_compile") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1 >conftest.err
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4667 { (case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_try") 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4687 ac_cv_c_bigendian=yes
4689 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4690 if test "$ac_cv_c_bigendian" = unknown; then
4691 ac_cv_c_bigendian=no
4693 # finding both strings is unlikely to happen, but who knows?
4694 ac_cv_c_bigendian=unknown
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 cat >conftest.$ac_ext <<_ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 $ac_includes_default
4717 /* Are we little or big endian? From Harbison&Steele. */
4721 char c[sizeof (long int)];
4724 return u.c[sizeof (long int) - 1] == 1;
4730 rm -f conftest$ac_exeext
4731 if { (ac_try="$ac_link"
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737 (eval "$ac_link") 2>&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4741 { (case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_try") 2>&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 ac_cv_c_bigendian=no
4752 echo "$as_me: program exited with status $ac_status" >&5
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4757 ac_cv_c_bigendian=yes
4759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4768 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4769 case $ac_cv_c_bigendian in
4777 { { echo "$as_me:$LINENO: error: unknown endianness
4778 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4779 echo "$as_me: error: unknown endianness
4780 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4781 { (exit 1); exit 1; }; } ;;
4785 if test "$cross_compiling" = yes; then
4786 LLVM_CROSS_COMPILING=1
4789 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4790 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4791 if test "${ac_cv_build_exeext+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4795 ac_cv_build_exeext=.exe
4797 ac_build_prefix=${build_alias}-
4799 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4800 set dummy ${ac_build_prefix}gcc; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 if test -n "$BUILD_CC"; then
4807 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 BUILD_CC=$ac_cv_prog_BUILD_CC
4827 if test -n "$BUILD_CC"; then
4828 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4829 echo "${ECHO_T}$BUILD_CC" >&6; }
4831 { echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6; }
4836 if test -z "$BUILD_CC"; then
4837 # Extract the first word of "gcc", so it can be a program name with args.
4838 set dummy gcc; ac_word=$2
4839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4841 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 if test -n "$BUILD_CC"; then
4845 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4854 ac_cv_prog_BUILD_CC="gcc"
4855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 BUILD_CC=$ac_cv_prog_BUILD_CC
4865 if test -n "$BUILD_CC"; then
4866 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4867 echo "${ECHO_T}$BUILD_CC" >&6; }
4869 { echo "$as_me:$LINENO: result: no" >&5
4870 echo "${ECHO_T}no" >&6; }
4874 if test -z "$BUILD_CC"; then
4875 # Extract the first word of "cc", so it can be a program name with args.
4876 set dummy cc; ac_word=$2
4877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4879 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 if test -n "$BUILD_CC"; then
4883 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4894 ac_prog_rejected=yes
4897 ac_cv_prog_BUILD_CC="cc"
4898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 if test $ac_prog_rejected = yes; then
4906 # We found a bogon in the path, so make sure we never use it.
4907 set dummy $ac_cv_prog_BUILD_CC
4909 if test $# != 0; then
4910 # We chose a different compiler from the bogus one.
4911 # However, it has the same basename, so the bogon will be chosen
4912 # first if we set BUILD_CC to just the basename; use the full file name.
4914 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4919 BUILD_CC=$ac_cv_prog_BUILD_CC
4920 if test -n "$BUILD_CC"; then
4921 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4922 echo "${ECHO_T}$BUILD_CC" >&6; }
4924 { echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6; }
4931 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4932 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4933 { (exit 1); exit 1; }; }
4934 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4936 echo 'int main () { return 0; }' > conftest.$ac_ext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4939 (eval $ac_build_link) 2>&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; then
4943 for file in conftest.*; do
4945 *.c | *.o | *.obj | *.dSYM) ;;
4946 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4950 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4951 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4952 { (exit 1); exit 1; }; }
4955 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4960 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4961 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4962 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4963 ac_build_exeext=$BUILD_EXEEXT
4965 ac_build_prefix=${build_alias}-
4966 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4967 set dummy ${ac_build_prefix}g++; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 if test -n "$BUILD_CXX"; then
4974 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4994 if test -n "$BUILD_CXX"; then
4995 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4996 echo "${ECHO_T}$BUILD_CXX" >&6; }
4998 { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5003 if test -z "$BUILD_CXX"; then
5004 # Extract the first word of "g++", so it can be a program name with args.
5005 set dummy g++; ac_word=$2
5006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5008 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 if test -n "$BUILD_CXX"; then
5012 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_prog_BUILD_CXX="g++"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5032 if test -n "$BUILD_CXX"; then
5033 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5034 echo "${ECHO_T}$BUILD_CXX" >&6; }
5036 { echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6; }
5041 if test -z "$BUILD_CXX"; then
5042 # Extract the first word of "c++", so it can be a program name with args.
5043 set dummy c++; ac_word=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 if test -n "$BUILD_CXX"; then
5050 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5061 ac_prog_rejected=yes
5064 ac_cv_prog_BUILD_CXX="c++"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 if test $ac_prog_rejected = yes; then
5073 # We found a bogon in the path, so make sure we never use it.
5074 set dummy $ac_cv_prog_BUILD_CXX
5076 if test $# != 0; then
5077 # We chose a different compiler from the bogus one.
5078 # However, it has the same basename, so the bogon will be chosen
5079 # first if we set BUILD_CXX to just the basename; use the full file name.
5081 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5086 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5087 if test -n "$BUILD_CXX"; then
5088 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5089 echo "${ECHO_T}$BUILD_CXX" >&6; }
5091 { echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6; }
5099 LLVM_CROSS_COMPILING=0
5103 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5114 # Check whether --enable-libcpp was given.
5115 if test "${enable_libcpp+set}" = set; then
5116 enableval=$enable_libcpp;
5121 case "$enableval" in
5122 yes) ENABLE_LIBCPP=1
5126 default) ENABLE_LIBCPP=0
5128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5133 # Check whether --enable-cxx11 was given.
5134 if test "${enable_cxx11+set}" = set; then
5135 enableval=$enable_cxx11;
5140 case "$enableval" in
5145 default) ENABLE_CXX11=0
5147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5148 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
5153 # Check whether --enable-clang-arcmt was given.
5154 if test "${enable_clang_arcmt+set}" = set; then
5155 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5160 case "$enableval" in
5161 yes) ENABLE_CLANG_ARCMT=1
5163 no) ENABLE_CLANG_ARCMT=0
5165 default) ENABLE_CLANG_ARCMT=1
5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
5172 clang_static_analyzer="yes"
5173 # Check whether --enable-clang-static-analyzer was given.
5174 if test "${enable_clang_static_analyzer+set}" = set; then
5175 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5180 case "$enableval" in
5181 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5183 no) ENABLE_CLANG_STATIC_ANALYZER=0
5185 default) ENABLE_CLANG_STATIC_ANALYZER=1
5187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5188 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
5192 # Check whether --enable-clang-rewriter was given.
5193 if test "${enable_clang_rewriter+set}" = set; then
5194 enableval=$enable_clang_rewriter;
5199 case "$enableval" in
5200 yes) ENABLE_CLANG_REWRITER=1
5203 if test ${clang_arcmt} != "no" ; then
5204 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5205 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5206 { (exit 1); exit 1; }; }
5208 if test ${clang_static_analyzer} != "no" ; then
5209 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5210 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5211 { (exit 1); exit 1; }; }
5213 ENABLE_CLANG_REWRITER=0
5216 default) ENABLE_CLANG_REWRITER=1
5218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5223 # Check whether --enable-optimized was given.
5224 if test "${enable_optimized+set}" = set; then
5225 enableval=$enable_optimized;
5230 if test ${enableval} = "no" ; then
5234 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5238 # Check whether --enable-profiling was given.
5239 if test "${enable_profiling+set}" = set; then
5240 enableval=$enable_profiling;
5245 if test ${enableval} = "no" ; then
5249 ENABLE_PROFILING=ENABLE_PROFILING=1
5253 # Check whether --enable-assertions was given.
5254 if test "${enable_assertions+set}" = set; then
5255 enableval=$enable_assertions;
5260 if test ${enableval} = "yes" ; then
5264 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5268 # Check whether --enable-werror was given.
5269 if test "${enable_werror+set}" = set; then
5270 enableval=$enable_werror;
5275 case "$enableval" in
5276 yes) ENABLE_WERROR=1
5280 default) ENABLE_WERROR=0
5282 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5283 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5284 { (exit 1); exit 1; }; } ;;
5287 # Check whether --enable-expensive-checks was given.
5288 if test "${enable_expensive_checks+set}" = set; then
5289 enableval=$enable_expensive_checks;
5294 if test ${enableval} = "yes" ; then
5295 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5297 EXPENSIVE_CHECKS=yes
5300 ENABLE_EXPENSIVE_CHECKS=
5306 # Check whether --enable-debug-runtime was given.
5307 if test "${enable_debug_runtime+set}" = set; then
5308 enableval=$enable_debug_runtime;
5313 if test ${enableval} = "no" ; then
5317 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5321 # Check whether --enable-debug-symbols was given.
5322 if test "${enable_debug_symbols+set}" = set; then
5323 enableval=$enable_debug_symbols;
5328 if test ${enableval} = "no" ; then
5332 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5336 # Check whether --enable-keep-symbols was given.
5337 if test "${enable_keep_symbols+set}" = set; then
5338 enableval=$enable_keep_symbols;
5343 if test ${enableval} = "no" ; then
5347 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5351 # Check whether --enable-jit was given.
5352 if test "${enable_jit+set}" = set; then
5353 enableval=$enable_jit;
5358 if test ${enableval} = "no"
5363 case "$llvm_cv_target_arch" in
5364 x86) TARGET_HAS_JIT=1
5366 Sparc) TARGET_HAS_JIT=0
5368 PowerPC) TARGET_HAS_JIT=1
5370 x86_64) TARGET_HAS_JIT=1
5372 ARM) TARGET_HAS_JIT=1
5374 Mips) TARGET_HAS_JIT=1
5376 XCore) TARGET_HAS_JIT=0
5378 MSP430) TARGET_HAS_JIT=0
5380 Hexagon) TARGET_HAS_JIT=0
5382 MBlaze) TARGET_HAS_JIT=0
5384 NVPTX) TARGET_HAS_JIT=0
5391 # Check whether --enable-docs was given.
5392 if test "${enable_docs+set}" = set; then
5393 enableval=$enable_docs;
5398 case "$enableval" in
5403 default) ENABLE_DOCS=1
5405 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5406 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5407 { (exit 1); exit 1; }; } ;;
5410 # Check whether --enable-doxygen was given.
5411 if test "${enable_doxygen+set}" = set; then
5412 enableval=$enable_doxygen;
5417 case "$enableval" in
5418 yes) ENABLE_DOXYGEN=1
5420 no) ENABLE_DOXYGEN=0
5422 default) ENABLE_DOXYGEN=0
5424 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5425 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5426 { (exit 1); exit 1; }; } ;;
5429 # Check whether --enable-threads was given.
5430 if test "${enable_threads+set}" = set; then
5431 enableval=$enable_threads;
5436 case "$enableval" in
5437 yes) LLVM_ENABLE_THREADS=1
5439 no) LLVM_ENABLE_THREADS=0
5441 default) LLVM_ENABLE_THREADS=1
5443 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5444 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5445 { (exit 1); exit 1; }; } ;;
5448 cat >>confdefs.h <<_ACEOF
5449 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5453 # Check whether --enable-pthreads was given.
5454 if test "${enable_pthreads+set}" = set; then
5455 enableval=$enable_pthreads;
5460 case "$enableval" in
5461 yes) ENABLE_PTHREADS=1
5463 no) ENABLE_PTHREADS=0
5465 default) ENABLE_PTHREADS=1
5467 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5468 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5469 { (exit 1); exit 1; }; } ;;
5472 # Check whether --enable-pic was given.
5473 if test "${enable_pic+set}" = set; then
5474 enableval=$enable_pic;
5479 case "$enableval" in
5484 default) ENABLE_PIC=1
5486 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5487 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5488 { (exit 1); exit 1; }; } ;;
5491 cat >>confdefs.h <<_ACEOF
5492 #define ENABLE_PIC $ENABLE_PIC
5496 # Check whether --enable-shared was given.
5497 if test "${enable_shared+set}" = set; then
5498 enableval=$enable_shared;
5503 case "$enableval" in
5504 yes) ENABLE_SHARED=1
5508 default) ENABLE_SHARED=0
5510 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5511 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5512 { (exit 1); exit 1; }; } ;;
5515 # Check whether --enable-embed-stdcxx was given.
5516 if test "${enable_embed_stdcxx+set}" = set; then
5517 enableval=$enable_embed_stdcxx;
5522 case "$enableval" in
5523 yes) ENABLE_EMBED_STDCXX=1
5525 no) ENABLE_EMBED_STDCXX=0
5527 default) ENABLE_EMBED_STDCXX=0
5529 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5530 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5531 { (exit 1); exit 1; }; } ;;
5534 # Check whether --enable-timestamps was given.
5535 if test "${enable_timestamps+set}" = set; then
5536 enableval=$enable_timestamps;
5541 case "$enableval" in
5542 yes) ENABLE_TIMESTAMPS=1
5544 no) ENABLE_TIMESTAMPS=0
5546 default) ENABLE_TIMESTAMPS=1
5548 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5549 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5550 { (exit 1); exit 1; }; } ;;
5553 cat >>confdefs.h <<_ACEOF
5554 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5559 # Check whether --enable-backtraces was given.
5560 if test "${enable_backtraces+set}" = set; then
5561 enableval=$enable_backtraces;
5566 case "$enableval" in
5567 yes) ENABLE_BACKTRACES=1
5569 no) ENABLE_BACKTRACES=0
5571 default) ENABLE_BACKTRACES=1
5573 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5574 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5575 { (exit 1); exit 1; }; } ;;
5578 cat >>confdefs.h <<_ACEOF
5579 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5584 # Check whether --enable-targets was given.
5585 if test "${enable_targets+set}" = set; then
5586 enableval=$enable_targets;
5591 if test "$enableval" = host-only ; then
5594 case "$enableval" in
5595 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5596 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5598 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5599 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5600 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5601 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5602 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5603 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5604 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5605 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5606 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5607 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5608 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5609 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5610 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5611 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5612 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5613 host) case "$llvm_cv_target_arch" in
5614 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5615 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5616 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5617 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5618 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5619 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5620 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5621 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5622 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5623 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5624 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5625 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5626 echo "$as_me: error: Can not set target to build" >&2;}
5627 { (exit 1); exit 1; }; } ;;
5629 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5630 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5631 { (exit 1); exit 1; }; } ;;
5637 # Check whether --enable-experimental-targets was given.
5638 if test "${enable_experimental_targets+set}" = set; then
5639 enableval=$enable_experimental_targets;
5645 if test ${enableval} != "disable"
5647 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5650 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5653 for a_target in $TARGETS_TO_BUILD; do
5654 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5656 cat >>confdefs.h <<_ACEOF
5657 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5660 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5661 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5662 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5663 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5664 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5665 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5667 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5668 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5671 cat >>confdefs.h <<_ACEOF
5672 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5676 cat >>confdefs.h <<_ACEOF
5677 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5681 cat >>confdefs.h <<_ACEOF
5682 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5686 cat >>confdefs.h <<_ACEOF
5687 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5690 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5692 cat >>confdefs.h <<_ACEOF
5693 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5697 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5699 cat >>confdefs.h <<_ACEOF
5700 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5707 LLVM_ENUM_TARGETS=""
5708 LLVM_ENUM_ASM_PRINTERS=""
5709 LLVM_ENUM_ASM_PARSERS=""
5710 LLVM_ENUM_DISASSEMBLERS=""
5711 for target_to_build in $TARGETS_TO_BUILD; do
5712 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5713 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5714 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5716 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5717 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5719 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5720 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5729 # Check whether --with-optimize-option was given.
5730 if test "${with_optimize_option+set}" = set; then
5731 withval=$with_optimize_option;
5736 { echo "$as_me:$LINENO: checking optimization flags" >&5
5737 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5740 case "$llvm_cv_os_type" in
5741 FreeBSD) optimize_option=-O2 ;;
5742 MingW) optimize_option=-O2 ;;
5743 *) optimize_option=-O3 ;;
5745 *) optimize_option="$withval" ;;
5747 OPTIMIZE_OPTION=$optimize_option
5749 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5750 echo "${ECHO_T}$optimize_option" >&6; }
5753 # Check whether --with-extra-options was given.
5754 if test "${with_extra_options+set}" = set; then
5755 withval=$with_extra_options;
5761 default) EXTRA_OPTIONS= ;;
5762 *) EXTRA_OPTIONS=$withval ;;
5764 EXTRA_OPTIONS=$EXTRA_OPTIONS
5768 # Check whether --with-extra-ld-options was given.
5769 if test "${with_extra_ld_options+set}" = set; then
5770 withval=$with_extra_ld_options;
5776 default) EXTRA_LD_OPTIONS= ;;
5777 *) EXTRA_LD_OPTIONS=$withval ;;
5779 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5782 # Check whether --enable-bindings was given.
5783 if test "${enable_bindings+set}" = set; then
5784 enableval=$enable_bindings;
5789 BINDINGS_TO_BUILD=""
5790 case "$enableval" in
5791 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5792 all ) BINDINGS_TO_BUILD="ocaml" ;;
5793 none | no) BINDINGS_TO_BUILD="" ;;
5794 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5795 case "$a_binding" in
5796 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5797 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5798 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5799 { (exit 1); exit 1; }; } ;;
5806 # Check whether --with-ocaml-libdir was given.
5807 if test "${with_ocaml_libdir+set}" = set; then
5808 withval=$with_ocaml_libdir;
5814 auto) with_ocaml_libdir="$withval" ;;
5815 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5816 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5817 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5818 { (exit 1); exit 1; }; } ;;
5822 # Check whether --with-clang-srcdir was given.
5823 if test "${with_clang_srcdir+set}" = set; then
5824 withval=$with_clang_srcdir;
5830 -) clang_src_root="" ;;
5831 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5832 *) clang_src_root="$ac_pwd/$withval" ;;
5834 CLANG_SRC_ROOT=$clang_src_root
5838 # Check whether --with-clang-resource-dir was given.
5839 if test "${with_clang_resource_dir+set}" = set; then
5840 withval=$with_clang_resource_dir;
5846 cat >>confdefs.h <<_ACEOF
5847 #define CLANG_RESOURCE_DIR "$withval"
5852 # Check whether --with-c-include-dirs was given.
5853 if test "${with_c_include_dirs+set}" = set; then
5854 withval=$with_c_include_dirs;
5860 cat >>confdefs.h <<_ACEOF
5861 #define C_INCLUDE_DIRS "$withval"
5865 # Clang normally uses the system c++ headers and libraries. With this option,
5866 # clang will use the ones provided by a gcc installation instead. This option should
5867 # be passed the same value that was used with --prefix when configuring gcc.
5869 # Check whether --with-gcc-toolchain was given.
5870 if test "${with_gcc_toolchain+set}" = set; then
5871 withval=$with_gcc_toolchain;
5877 cat >>confdefs.h <<_ACEOF
5878 #define GCC_INSTALL_PREFIX "$withval"
5883 # Check whether --with-default-sysroot was given.
5884 if test "${with_default_sysroot+set}" = set; then
5885 withval=$with_default_sysroot;
5891 cat >>confdefs.h <<_ACEOF
5892 #define DEFAULT_SYSROOT "$withval"
5897 # Check whether --with-binutils-include was given.
5898 if test "${with_binutils_include+set}" = set; then
5899 withval=$with_binutils_include;
5905 default) WITH_BINUTILS_INCDIR=default ;;
5906 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5907 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5908 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5909 { (exit 1); exit 1; }; } ;;
5911 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5912 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5914 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5915 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5916 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5917 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5918 { (exit 1); exit 1; }; };
5923 # Check whether --with-bug-report-url was given.
5924 if test "${with_bug_report_url+set}" = set; then
5925 withval=$with_bug_report_url;
5927 withval="http://llvm.org/bugs/"
5931 cat >>confdefs.h <<_ACEOF
5932 #define BUG_REPORT_URL "$withval"
5936 # Check whether --enable-libffi was given.
5937 if test "${enable_libffi+set}" = set; then
5938 enableval=$enable_libffi; case "$enableval" in
5939 yes) llvm_cv_enable_libffi="yes" ;;
5940 no) llvm_cv_enable_libffi="no" ;;
5941 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5942 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5943 { (exit 1); exit 1; }; } ;;
5946 llvm_cv_enable_libffi=no
5951 # Check whether --with-internal-prefix was given.
5952 if test "${with_internal_prefix+set}" = set; then
5953 withval=$with_internal_prefix;
5958 INTERNAL_PREFIX=$withval
5962 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5963 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5964 if test "${lt_cv_path_NM+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 if test -n "$NM"; then
5968 # Let the user override the test.
5971 lt_nm_to_check="${ac_tool_prefix}nm"
5972 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5973 lt_nm_to_check="$lt_nm_to_check nm"
5975 for lt_tmp_nm in $lt_nm_to_check; do
5976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5977 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5979 test -z "$ac_dir" && ac_dir=.
5980 tmp_nm="$ac_dir/$lt_tmp_nm"
5981 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5982 # Check to see if the nm accepts a BSD-compat flag.
5983 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5984 # nm: unknown option "B" ignored
5985 # Tru64's nm complains that /dev/null is an invalid object file
5986 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5987 */dev/null* | *'Invalid file or object type'*)
5988 lt_cv_path_NM="$tmp_nm -B"
5992 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5994 lt_cv_path_NM="$tmp_nm -p"
5998 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5999 continue # so that we can try to find one that supports BSD flags
6008 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6011 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6012 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6017 { echo "$as_me:$LINENO: checking for GNU make" >&5
6018 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6019 if test "${llvm_cv_gnu_make_command+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 llvm_cv_gnu_make_command=''
6023 for a in "$MAKE" make gmake gnumake ; do
6024 if test -z "$a" ; then continue ; fi ;
6025 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6027 llvm_cv_gnu_make_command=$a ;
6032 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6033 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6034 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6038 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6039 echo "${ECHO_T}\"Not found\"" >&6; };
6043 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6044 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6046 if test "$LN_S" = "ln -s"; then
6047 { echo "$as_me:$LINENO: result: yes" >&5
6048 echo "${ECHO_T}yes" >&6; }
6050 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6051 echo "${ECHO_T}no, using $LN_S" >&6; }
6054 # Extract the first word of "cmp", so it can be a program name with args.
6055 set dummy cmp; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_path_CMP+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6086 if test -n "$CMP"; then
6087 { echo "$as_me:$LINENO: result: $CMP" >&5
6088 echo "${ECHO_T}$CMP" >&6; }
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6095 # Extract the first word of "cp", so it can be a program name with args.
6096 set dummy cp; ac_word=$2
6097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6099 if test "${ac_cv_path_CP+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6127 if test -n "$CP"; then
6128 { echo "$as_me:$LINENO: result: $CP" >&5
6129 echo "${ECHO_T}$CP" >&6; }
6131 { echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6; }
6136 # Extract the first word of "date", so it can be a program name with args.
6137 set dummy date; ac_word=$2
6138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140 if test "${ac_cv_path_DATE+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6167 DATE=$ac_cv_path_DATE
6168 if test -n "$DATE"; then
6169 { echo "$as_me:$LINENO: result: $DATE" >&5
6170 echo "${ECHO_T}$DATE" >&6; }
6172 { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6177 # Extract the first word of "find", so it can be a program name with args.
6178 set dummy find; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_path_FIND+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6208 FIND=$ac_cv_path_FIND
6209 if test -n "$FIND"; then
6210 { echo "$as_me:$LINENO: result: $FIND" >&5
6211 echo "${ECHO_T}$FIND" >&6; }
6213 { echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6; }
6218 # Extract the first word of "grep", so it can be a program name with args.
6219 set dummy grep; ac_word=$2
6220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6222 if test "${ac_cv_path_GREP+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6249 GREP=$ac_cv_path_GREP
6250 if test -n "$GREP"; then
6251 { echo "$as_me:$LINENO: result: $GREP" >&5
6252 echo "${ECHO_T}$GREP" >&6; }
6254 { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6259 # Extract the first word of "mkdir", so it can be a program name with args.
6260 set dummy mkdir; ac_word=$2
6261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263 if test "${ac_cv_path_MKDIR+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6290 MKDIR=$ac_cv_path_MKDIR
6291 if test -n "$MKDIR"; then
6292 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6293 echo "${ECHO_T}$MKDIR" >&6; }
6295 { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6300 # Extract the first word of "mv", so it can be a program name with args.
6301 set dummy mv; ac_word=$2
6302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304 if test "${ac_cv_path_MV+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6332 if test -n "$MV"; then
6333 { echo "$as_me:$LINENO: result: $MV" >&5
6334 echo "${ECHO_T}$MV" >&6; }
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6341 if test -n "$ac_tool_prefix"; then
6342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_prog_RANLIB+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 if test -n "$RANLIB"; then
6350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 RANLIB=$ac_cv_prog_RANLIB
6370 if test -n "$RANLIB"; then
6371 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6372 echo "${ECHO_T}$RANLIB" >&6; }
6374 { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6380 if test -z "$ac_cv_prog_RANLIB"; then
6381 ac_ct_RANLIB=$RANLIB
6382 # Extract the first word of "ranlib", so it can be a program name with args.
6383 set dummy ranlib; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 if test -n "$ac_ct_RANLIB"; then
6390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_prog_ac_ct_RANLIB="ranlib"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6410 if test -n "$ac_ct_RANLIB"; then
6411 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6412 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6414 { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6418 if test "x$ac_ct_RANLIB" = x; then
6421 case $cross_compiling:$ac_tool_warned in
6423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6424 whose name does not start with the host triplet. If you think this
6425 configuration is useful to you, please write to autoconf@gnu.org." >&5
6426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6427 whose name does not start with the host triplet. If you think this
6428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6429 ac_tool_warned=yes ;;
6431 RANLIB=$ac_ct_RANLIB
6434 RANLIB="$ac_cv_prog_RANLIB"
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}ar; ac_word=$2
6440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6442 if test "${ac_cv_prog_AR+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 if test -n "$AR"; then
6446 ac_cv_prog_AR="$AR" # Let the user override the test.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_AR="${ac_tool_prefix}ar"
6456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 if test -n "$AR"; then
6467 { echo "$as_me:$LINENO: result: $AR" >&5
6468 echo "${ECHO_T}$AR" >&6; }
6470 { echo "$as_me:$LINENO: result: no" >&5
6471 echo "${ECHO_T}no" >&6; }
6476 if test -z "$ac_cv_prog_AR"; then
6478 # Extract the first word of "ar", so it can be a program name with args.
6479 set dummy ar; ac_word=$2
6480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 if test -n "$ac_ct_AR"; then
6486 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_ac_ct_AR="ar"
6496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6506 if test -n "$ac_ct_AR"; then
6507 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6508 echo "${ECHO_T}$ac_ct_AR" >&6; }
6510 { echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6; }
6514 if test "x$ac_ct_AR" = x; then
6517 case $cross_compiling:$ac_tool_warned in
6519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6520 whose name does not start with the host triplet. If you think this
6521 configuration is useful to you, please write to autoconf@gnu.org." >&5
6522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6523 whose name does not start with the host triplet. If you think this
6524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6525 ac_tool_warned=yes ;;
6533 # Extract the first word of "rm", so it can be a program name with args.
6534 set dummy rm; ac_word=$2
6535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6537 if test "${ac_cv_path_RM+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6565 if test -n "$RM"; then
6566 { echo "$as_me:$LINENO: result: $RM" >&5
6567 echo "${ECHO_T}$RM" >&6; }
6569 { echo "$as_me:$LINENO: result: no" >&5
6570 echo "${ECHO_T}no" >&6; }
6574 # Extract the first word of "sed", so it can be a program name with args.
6575 set dummy sed; ac_word=$2
6576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578 if test "${ac_cv_path_SED+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6593 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6606 if test -n "$SED"; then
6607 { echo "$as_me:$LINENO: result: $SED" >&5
6608 echo "${ECHO_T}$SED" >&6; }
6610 { echo "$as_me:$LINENO: result: no" >&5
6611 echo "${ECHO_T}no" >&6; }
6615 # Extract the first word of "tar", so it can be a program name with args.
6616 set dummy tar; ac_word=$2
6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619 if test "${ac_cv_path_TAR+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6647 if test -n "$TAR"; then
6648 { echo "$as_me:$LINENO: result: $TAR" >&5
6649 echo "${ECHO_T}$TAR" >&6; }
6651 { echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6; }
6656 # Extract the first word of "pwd", so it can be a program name with args.
6657 set dummy pwd; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_path_BINPWD+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6687 BINPWD=$ac_cv_path_BINPWD
6688 if test -n "$BINPWD"; then
6689 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6690 echo "${ECHO_T}$BINPWD" >&6; }
6692 { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6698 # Extract the first word of "Graphviz", so it can be a program name with args.
6699 set dummy Graphviz; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6729 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6730 if test -n "$GRAPHVIZ"; then
6731 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6732 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6734 { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6739 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6741 cat >>confdefs.h <<\_ACEOF
6742 #define HAVE_GRAPHVIZ 1
6745 if test "$llvm_cv_os_type" = "MingW" ; then
6746 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6749 cat >>confdefs.h <<_ACEOF
6750 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6754 # Extract the first word of "dot", so it can be a program name with args.
6755 set dummy dot; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_DOT+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6786 if test -n "$DOT"; then
6787 { echo "$as_me:$LINENO: result: $DOT" >&5
6788 echo "${ECHO_T}$DOT" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6795 if test "$DOT" != "echo dot" ; then
6797 cat >>confdefs.h <<\_ACEOF
6801 if test "$llvm_cv_os_type" = "MingW" ; then
6802 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6805 cat >>confdefs.h <<_ACEOF
6806 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6810 # Extract the first word of "fdp", so it can be a program name with args.
6811 set dummy fdp; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_FDP+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6842 if test -n "$FDP"; then
6843 { echo "$as_me:$LINENO: result: $FDP" >&5
6844 echo "${ECHO_T}$FDP" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6851 if test "$FDP" != "echo fdp" ; then
6853 cat >>confdefs.h <<\_ACEOF
6857 if test "$llvm_cv_os_type" = "MingW" ; then
6858 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6861 cat >>confdefs.h <<_ACEOF
6862 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6866 # Extract the first word of "neato", so it can be a program name with args.
6867 set dummy neato; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_NEATO+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6897 NEATO=$ac_cv_path_NEATO
6898 if test -n "$NEATO"; then
6899 { echo "$as_me:$LINENO: result: $NEATO" >&5
6900 echo "${ECHO_T}$NEATO" >&6; }
6902 { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6907 if test "$NEATO" != "echo neato" ; then
6909 cat >>confdefs.h <<\_ACEOF
6910 #define HAVE_NEATO 1
6913 if test "$llvm_cv_os_type" = "MingW" ; then
6914 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6917 cat >>confdefs.h <<_ACEOF
6918 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6922 # Extract the first word of "twopi", so it can be a program name with args.
6923 set dummy twopi; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_TWOPI+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6953 TWOPI=$ac_cv_path_TWOPI
6954 if test -n "$TWOPI"; then
6955 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6956 echo "${ECHO_T}$TWOPI" >&6; }
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6963 if test "$TWOPI" != "echo twopi" ; then
6965 cat >>confdefs.h <<\_ACEOF
6966 #define HAVE_TWOPI 1
6969 if test "$llvm_cv_os_type" = "MingW" ; then
6970 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6973 cat >>confdefs.h <<_ACEOF
6974 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6978 # Extract the first word of "circo", so it can be a program name with args.
6979 set dummy circo; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_CIRCO+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7009 CIRCO=$ac_cv_path_CIRCO
7010 if test -n "$CIRCO"; then
7011 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7012 echo "${ECHO_T}$CIRCO" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7019 if test "$CIRCO" != "echo circo" ; then
7021 cat >>confdefs.h <<\_ACEOF
7022 #define HAVE_CIRCO 1
7025 if test "$llvm_cv_os_type" = "MingW" ; then
7026 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7029 cat >>confdefs.h <<_ACEOF
7030 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7034 for ac_prog in gv gsview32
7036 # Extract the first word of "$ac_prog", so it can be a program name with args.
7037 set dummy $ac_prog; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_GV+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 if test -n "$GV"; then
7068 { echo "$as_me:$LINENO: result: $GV" >&5
7069 echo "${ECHO_T}$GV" >&6; }
7071 { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7076 test -n "$GV" && break
7078 test -n "$GV" || GV="echo gv"
7080 if test "$GV" != "echo gv" ; then
7082 cat >>confdefs.h <<\_ACEOF
7086 if test "$llvm_cv_os_type" = "MingW" ; then
7087 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7090 cat >>confdefs.h <<_ACEOF
7091 #define LLVM_PATH_GV "$GV${EXEEXT}"
7095 # Extract the first word of "dotty", so it can be a program name with args.
7096 set dummy dotty; ac_word=$2
7097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099 if test "${ac_cv_path_DOTTY+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7126 DOTTY=$ac_cv_path_DOTTY
7127 if test -n "$DOTTY"; then
7128 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7129 echo "${ECHO_T}$DOTTY" >&6; }
7131 { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7136 if test "$DOTTY" != "echo dotty" ; then
7138 cat >>confdefs.h <<\_ACEOF
7139 #define HAVE_DOTTY 1
7142 if test "$llvm_cv_os_type" = "MingW" ; then
7143 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7146 cat >>confdefs.h <<_ACEOF
7147 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7151 # Extract the first word of "xdot.py", so it can be a program name with args.
7152 set dummy xdot.py; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7182 XDOT_PY=$ac_cv_path_XDOT_PY
7183 if test -n "$XDOT_PY"; then
7184 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7185 echo "${ECHO_T}$XDOT_PY" >&6; }
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7192 if test "$XDOT_PY" != "echo xdot.py" ; then
7194 cat >>confdefs.h <<\_ACEOF
7195 #define HAVE_XDOT_PY 1
7198 if test "$llvm_cv_os_type" = "MingW" ; then
7199 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7202 cat >>confdefs.h <<_ACEOF
7203 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7208 # Find a good install program. We prefer a C program (faster),
7209 # so one script is as good as another. But avoid the broken or
7210 # incompatible versions:
7211 # SysV /etc/install, /usr/sbin/install
7212 # SunOS /usr/etc/install
7213 # IRIX /sbin/install
7215 # AmigaOS /C/install, which installs bootblocks on floppy discs
7216 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7219 # OS/2's system install, which has a completely different semantic
7220 # ./install, which can be erroneously created by make from ./install.sh.
7221 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7222 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7223 if test -z "$INSTALL"; then
7224 if test "${ac_cv_path_install+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 test -z "$as_dir" && as_dir=.
7232 # Account for people who put trailing slashes in PATH elements.
7234 ./ | .// | /cC/* | \
7235 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7236 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7239 # OSF1 and SCO ODT 3.0 have their own names for install.
7240 # Don't use installbsd from OSF since it installs stuff as root
7242 for ac_prog in ginstall scoinst install; do
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7245 if test $ac_prog = install &&
7246 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7247 # AIX install. It has an incompatible calling convention.
7249 elif test $ac_prog = install &&
7250 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7251 # program-specific install script used by HP pwplus--don't use.
7254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7267 if test "${ac_cv_path_install+set}" = set; then
7268 INSTALL=$ac_cv_path_install
7270 # As a last resort, use the slow shell script. Don't cache a
7271 # value for INSTALL within a source directory, because that will
7272 # break other packages using the cache if that directory is
7273 # removed, or if the value is a relative name.
7274 INSTALL=$ac_install_sh
7277 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7278 echo "${ECHO_T}$INSTALL" >&6; }
7280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7281 # It thinks the first close brace ends the variable substitution.
7282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7289 [\\/$]* | ?:[\\/]* ) ;;
7290 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7293 # Extract the first word of "bzip2", so it can be a program name with args.
7294 set dummy bzip2; ac_word=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_path_BZIP2+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 BZIP2=$ac_cv_path_BZIP2
7324 if test -n "$BZIP2"; then
7325 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7326 echo "${ECHO_T}$BZIP2" >&6; }
7328 { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7333 # Extract the first word of "cat", so it can be a program name with args.
7334 set dummy cat; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_CAT+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 if test -n "$CAT"; then
7365 { echo "$as_me:$LINENO: result: $CAT" >&5
7366 echo "${ECHO_T}$CAT" >&6; }
7368 { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7373 # Extract the first word of "doxygen", so it can be a program name with args.
7374 set dummy doxygen; ac_word=$2
7375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 DOXYGEN=$ac_cv_path_DOXYGEN
7404 if test -n "$DOXYGEN"; then
7405 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7406 echo "${ECHO_T}$DOXYGEN" >&6; }
7408 { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7413 # Extract the first word of "groff", so it can be a program name with args.
7414 set dummy groff; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_path_GROFF+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 GROFF=$ac_cv_path_GROFF
7444 if test -n "$GROFF"; then
7445 { echo "$as_me:$LINENO: result: $GROFF" >&5
7446 echo "${ECHO_T}$GROFF" >&6; }
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7453 # Extract the first word of "gzip", so it can be a program name with args.
7454 set dummy gzip; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 GZIPBIN=$ac_cv_path_GZIPBIN
7484 if test -n "$GZIPBIN"; then
7485 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7486 echo "${ECHO_T}$GZIPBIN" >&6; }
7488 { echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6; }
7493 # Extract the first word of "pdfroff", so it can be a program name with args.
7494 set dummy pdfroff; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_PDFROFF+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 PDFROFF=$ac_cv_path_PDFROFF
7524 if test -n "$PDFROFF"; then
7525 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7526 echo "${ECHO_T}$PDFROFF" >&6; }
7528 { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7533 # Extract the first word of "zip", so it can be a program name with args.
7534 set dummy zip; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_ZIP+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 if test -n "$ZIP"; then
7565 { echo "$as_me:$LINENO: result: $ZIP" >&5
7566 echo "${ECHO_T}$ZIP" >&6; }
7568 { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7573 for ac_prog in ocamlc
7575 # Extract the first word of "$ac_prog", so it can be a program name with args.
7576 set dummy $ac_prog; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_OCAMLC+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 OCAMLC=$ac_cv_path_OCAMLC
7606 if test -n "$OCAMLC"; then
7607 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7608 echo "${ECHO_T}$OCAMLC" >&6; }
7610 { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7615 test -n "$OCAMLC" && break
7618 for ac_prog in ocamlopt
7620 # Extract the first word of "$ac_prog", so it can be a program name with args.
7621 set dummy $ac_prog; ac_word=$2
7622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 OCAMLOPT=$ac_cv_path_OCAMLOPT
7651 if test -n "$OCAMLOPT"; then
7652 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7653 echo "${ECHO_T}$OCAMLOPT" >&6; }
7655 { echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6; }
7660 test -n "$OCAMLOPT" && break
7663 for ac_prog in ocamldep
7665 # Extract the first word of "$ac_prog", so it can be a program name with args.
7666 set dummy $ac_prog; ac_word=$2
7667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 OCAMLDEP=$ac_cv_path_OCAMLDEP
7696 if test -n "$OCAMLDEP"; then
7697 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7698 echo "${ECHO_T}$OCAMLDEP" >&6; }
7700 { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7705 test -n "$OCAMLDEP" && break
7708 for ac_prog in ocamldoc
7710 # Extract the first word of "$ac_prog", so it can be a program name with args.
7711 set dummy $ac_prog; ac_word=$2
7712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7714 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7729 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 OCAMLDOC=$ac_cv_path_OCAMLDOC
7741 if test -n "$OCAMLDOC"; then
7742 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7743 echo "${ECHO_T}$OCAMLDOC" >&6; }
7745 { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7750 test -n "$OCAMLDOC" && break
7753 for ac_prog in gas as
7755 # Extract the first word of "$ac_prog", so it can be a program name with args.
7756 set dummy $ac_prog; ac_word=$2
7757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7759 if test "${ac_cv_path_GAS+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 if test -n "$GAS"; then
7787 { echo "$as_me:$LINENO: result: $GAS" >&5
7788 echo "${ECHO_T}$GAS" >&6; }
7790 { echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6; }
7795 test -n "$GAS" && break
7799 { echo "$as_me:$LINENO: checking for linker version" >&5
7800 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7801 if test "${llvm_cv_link_version+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 version_string="$(ld -v 2>&1 | head -1)"
7808 if (echo "$version_string" | grep -q "ld64"); then
7809 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7811 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7815 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7816 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7818 cat >>confdefs.h <<_ACEOF
7819 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7824 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7825 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7826 if test "${llvm_cv_link_use_r+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836 CFLAGS="$CFLAGS -Wl,-R."
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_link") 2>conftest.er1
7861 grep -v '^ *+' conftest.er1 >conftest.err
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } &&
7866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7867 { (case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_try") 2>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; } &&
7876 { ac_try='test -s conftest$ac_exeext'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 llvm_cv_link_use_r=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 llvm_cv_link_use_r=no
7894 rm -f core conftest.err conftest.$ac_objext \
7895 conftest$ac_exeext conftest.$ac_ext
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7906 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7907 if test "$llvm_cv_link_use_r" = yes ; then
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_LINK_R 1
7916 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7917 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 ac_cpp='$CPP $CPPFLAGS'
7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7929 cat >conftest.$ac_ext <<_ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_link") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1 >conftest.err
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959 { (case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_try") 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 llvm_cv_link_use_export_dynamic=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 llvm_cv_link_use_export_dynamic=no
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7998 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7999 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_LINK_EXPORT_DYNAMIC 1
8008 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8009 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8010 if test "${llvm_cv_link_use_version_script+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 ac_cpp='$CPP $CPPFLAGS'
8015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021 # The following code is from the autoconf manual,
8022 # "11.13: Limitations of Usual Tools".
8023 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8024 # Use mktemp if possible; otherwise fall back on mkdir,
8025 # with $RANDOM to make collisions less likely.
8029 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8031 test -n "$tmp" && test -d "$tmp"
8033 tmp=$TMPDIR/foo$$-$RANDOM
8034 (umask 077 && mkdir "$tmp")
8037 echo "{" > "$tmp/export.map"
8038 echo " global: main;" >> "$tmp/export.map"
8039 echo " local: *;" >> "$tmp/export.map"
8040 echo "};" >> "$tmp/export.map"
8042 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8058 rm -f conftest.$ac_objext conftest$ac_exeext
8059 if { (ac_try="$ac_link"
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_link") 2>conftest.er1
8067 grep -v '^ *+' conftest.er1 >conftest.err
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_try") 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 llvm_cv_link_use_version_script=yes
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 llvm_cv_link_use_version_script=no
8100 rm -f core conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102 rm "$tmp/export.map"
8106 ac_cpp='$CPP $CPPFLAGS'
8107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8113 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8114 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8115 if test "$llvm_cv_link_use_version_script" = yes ; then
8116 HAVE_LINK_VERSION_SCRIPT=1
8123 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8124 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8125 if test "${ac_cv_c_const+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 cat >conftest.$ac_ext <<_ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8138 /* FIXME: Include the comments suggested by Paul. */
8140 /* Ultrix mips cc rejects this. */
8141 typedef int charset[2];
8143 /* SunOS 4.1.1 cc rejects this. */
8144 char const *const *ccp;
8146 /* NEC SVR4.0.2 mips cc rejects this. */
8147 struct point {int x, y;};
8148 static struct point const zero = {0,0};
8149 /* AIX XL C 1.02.0.0 rejects this.
8150 It does not let you subtract one const X* pointer from another in
8151 an arm of an if-expression whose if-part is not a constant
8153 const char *g = "string";
8154 ccp = &g + (g ? g-g : 0);
8155 /* HPUX 7.0 cc rejects these. */
8158 ccp = (char const *const *) p;
8159 { /* SCO 3.2v4 cc rejects this. */
8161 char const *s = 0 ? (char *) 0 : (char const *) 0;
8166 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8168 const int *foo = &x[0];
8171 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8172 typedef const int *iptr;
8176 { /* AIX XL C 1.02.0.0 rejects this saying
8177 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8178 struct s { int j; const int *ap[3]; };
8179 struct s *b; b->j = 5;
8181 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8185 return !x[0] && !zero.x;
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8201 grep -v '^ *+' conftest.er1 >conftest.err
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } &&
8206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8207 { (case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_try") 2>&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; } &&
8216 { ac_try='test -s conftest.$ac_objext'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8237 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8238 if test $ac_cv_c_const = no; then
8240 cat >>confdefs.h <<\_ACEOF
8252 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8253 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8254 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8255 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 cat >conftest.$ac_ext <<_ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 #include <sys/types.h>
8277 rm -f conftest.$ac_objext
8278 if { (ac_try="$ac_compile"
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_compile") 2>conftest.er1
8286 grep -v '^ *+' conftest.er1 >conftest.err
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8292 { (case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_try") 2>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest.$ac_objext'
8302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_try") 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 eval "$as_ac_Header=yes"
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 eval "$as_ac_Header=no"
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 ac_res=`eval echo '${'$as_ac_Header'}'`
8322 { echo "$as_me:$LINENO: result: $ac_res" >&5
8323 echo "${ECHO_T}$ac_res" >&6; }
8324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8325 cat >>confdefs.h <<_ACEOF
8326 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8329 ac_header_dirent=$ac_hdr; break
8333 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8334 if test $ac_header_dirent = dirent.h; then
8335 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8336 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8337 if test "${ac_cv_search_opendir+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 ac_func_search_save_LIBS=$LIBS
8341 cat >conftest.$ac_ext <<_ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8348 /* Override any GCC internal prototype to avoid an error.
8349 Use char because int might match the return type of a GCC
8350 builtin and then its argument prototype would still apply. */
8363 for ac_lib in '' dir; do
8364 if test -z "$ac_lib"; then
8365 ac_res="none required"
8368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (ac_try="$ac_link"
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_link") 2>conftest.er1
8379 grep -v '^ *+' conftest.er1 >conftest.err
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8385 { (case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_try") 2>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest$ac_exeext'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_search_opendir=$ac_res
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8412 rm -f core conftest.err conftest.$ac_objext \
8414 if test "${ac_cv_search_opendir+set}" = set; then
8418 if test "${ac_cv_search_opendir+set}" = set; then
8421 ac_cv_search_opendir=no
8424 LIBS=$ac_func_search_save_LIBS
8426 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8427 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8428 ac_res=$ac_cv_search_opendir
8429 if test "$ac_res" != no; then
8430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8435 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8436 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8437 if test "${ac_cv_search_opendir+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 ac_func_search_save_LIBS=$LIBS
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8448 /* Override any GCC internal prototype to avoid an error.
8449 Use char because int might match the return type of a GCC
8450 builtin and then its argument prototype would still apply. */
8463 for ac_lib in '' x; do
8464 if test -z "$ac_lib"; then
8465 ac_res="none required"
8468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (ac_try="$ac_link"
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_link") 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8485 { (case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_try") 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_try") 2>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_cv_search_opendir=$ac_res
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8512 rm -f core conftest.err conftest.$ac_objext \
8514 if test "${ac_cv_search_opendir+set}" = set; then
8518 if test "${ac_cv_search_opendir+set}" = set; then
8521 ac_cv_search_opendir=no
8524 LIBS=$ac_func_search_save_LIBS
8526 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8527 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8528 ac_res=$ac_cv_search_opendir
8529 if test "$ac_res" != no; then
8530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8537 for ac_header in dlfcn.h
8539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 ac_res=`eval echo '${'$as_ac_Header'}'`
8547 { echo "$as_me:$LINENO: result: $ac_res" >&5
8548 echo "${ECHO_T}$ac_res" >&6; }
8550 # Is the header compilable?
8551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 $ac_includes_default
8560 #include <$ac_header>
8562 rm -f conftest.$ac_objext
8563 if { (ac_try="$ac_compile"
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_compile") 2>conftest.er1
8571 grep -v '^ *+' conftest.er1 >conftest.err
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8577 { (case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_try") 2>&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; } &&
8586 { ac_try='test -s conftest.$ac_objext'
8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 ac_header_compiler=yes
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8601 ac_header_compiler=no
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8606 echo "${ECHO_T}$ac_header_compiler" >&6; }
8608 # Is the header present?
8609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 #include <$ac_header>
8619 if { (ac_try="$ac_cpp conftest.$ac_ext"
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8627 grep -v '^ *+' conftest.er1 >conftest.err
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } >/dev/null; then
8632 if test -s conftest.err; then
8633 ac_cpp_err=$ac_c_preproc_warn_flag
8634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8641 if test -z "$ac_cpp_err"; then
8642 ac_header_preproc=yes
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8647 ac_header_preproc=no
8650 rm -f conftest.err conftest.$ac_ext
8651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8652 echo "${ECHO_T}$ac_header_preproc" >&6; }
8654 # So? What about this header?
8655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8661 ac_header_preproc=yes
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8677 ## ------------------------------------ ##
8678 ## Report this to http://llvm.org/bugs/ ##
8679 ## ------------------------------------ ##
8681 ) | sed "s/^/$as_me: WARNING: /" >&2
8684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 eval "$as_ac_Header=\$ac_header_preproc"
8691 ac_res=`eval echo '${'$as_ac_Header'}'`
8692 { echo "$as_me:$LINENO: result: $ac_res" >&5
8693 echo "${ECHO_T}$ac_res" >&6; }
8696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8697 cat >>confdefs.h <<_ACEOF
8698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8705 # Check whether --enable-ltdl-install was given.
8706 if test "${enable_ltdl_install+set}" = set; then
8707 enableval=$enable_ltdl_install;
8713 if test x"${enable_ltdl_install-no}" != xno; then
8715 INSTALL_LTDL_FALSE='#'
8717 INSTALL_LTDL_TRUE='#'
8723 if test x"${enable_ltdl_convenience-no}" != xno; then
8724 CONVENIENCE_LTDL_TRUE=
8725 CONVENIENCE_LTDL_FALSE='#'
8727 CONVENIENCE_LTDL_TRUE='#'
8728 CONVENIENCE_LTDL_FALSE=
8732 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8733 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8735 libname_spec='lib$name'
8743 shlibpath_overrides_runpath=unknown
8745 dynamic_linker="$host_os ld.so"
8746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8747 if test "$GCC" = yes; then
8748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8749 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8750 # if the path contains ";" then we assume it to be the separator
8751 # otherwise default to the standard path separator (i.e. ":") - it is
8752 # assumed that no part of a normal pathname contains ";" but that should
8753 # okay in the real world where ";" in dirpaths is itself problematic.
8754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8759 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8761 need_lib_prefix=unknown
8762 hardcode_into_libs=no
8764 # when you set need_version to no, make sure it does not cause -set_version
8765 # flags to be left without arguments
8766 need_version=unknown
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8772 shlibpath_var=LIBPATH
8774 # AIX 3 has no versioning support, so we append a major version to the name.
8775 soname_spec='${libname}${release}${shared_ext}$major'
8782 hardcode_into_libs=yes
8783 if test "$host_cpu" = ia64; then
8784 # AIX 5 supports IA64
8785 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8786 shlibpath_var=LD_LIBRARY_PATH
8788 # With GCC up to 2.95.x, collect2 would create an import file
8789 # for dependence libraries. The import file would start with
8790 # the line `#! .'. This would cause the generated library to
8791 # depend on `.', always an invalid library. This was fixed in
8792 # development snapshots of GCC prior to 3.0.
8794 aix4 | aix4.[01] | aix4.[01].*)
8795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8797 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8804 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8805 # soname into executable. Probably we can add versioning support to
8806 # collect2, so additional links can be useful in future.
8807 if test "$aix_use_runtimelinking" = yes; then
8808 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8809 # instead of lib<name>.a to let people know that these are not
8810 # typical AIX shared libraries.
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 # We preserve .a as extension for shared libraries through AIX4.2
8814 # and later when we are not doing run time linking.
8815 library_names_spec='${libname}${release}.a $libname.a'
8816 soname_spec='${libname}${release}${shared_ext}$major'
8818 shlibpath_var=LIBPATH
8823 library_names_spec='$libname.ixlibrary $libname.a'
8824 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8825 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'
8829 library_names_spec='${libname}${shared_ext}'
8830 dynamic_linker="$host_os ld.so"
8831 shlibpath_var=LIBRARY_PATH
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8843 # the default ld.so.conf also contains /usr/contrib/lib and
8844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8845 # libtool to hard-code these into programs
8848 cygwin* | mingw* | pw32*)
8849 version_type=windows
8854 case $GCC,$host_os in
8855 yes,cygwin* | yes,mingw* | yes,pw32*)
8856 library_names_spec='$libname.dll.a'
8857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8858 postinstall_cmds='base_file=`basename \${file}`~
8859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8860 dldir=$destdir/`dirname \$dlpath`~
8861 test -d \$dldir || mkdir -p \$dldir~
8862 $install_prog $dir/$dlname \$dldir/$dlname~
8863 chmod a+x \$dldir/$dlname'
8864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8865 dlpath=$dir/\$dldll~
8867 shlibpath_overrides_runpath=yes
8871 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8872 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8873 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8876 # MinGW DLLs use traditional 'lib' prefix
8877 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8878 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8879 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8880 # It is most probably a Windows format PATH printed by
8881 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8882 # path with ; separators, and with drive letters. We can handle the
8883 # drive letters (cygwin fileutils understands them), so leave them,
8884 # especially as we might pass files found there to a mingw objdump,
8885 # which wouldn't understand a cygwinified path. Ahh.
8886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8892 # pw32 DLLs use 'pw' prefix rather than 'lib'
8893 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8902 dynamic_linker='Win32 ld.exe'
8903 # FIXME: first we should search . and the directory the executable is in
8907 darwin* | rhapsody*)
8908 dynamic_linker="$host_os dyld"
8912 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8913 soname_spec='${libname}${release}${major}$shared_ext'
8914 shlibpath_overrides_runpath=yes
8915 shlibpath_var=DYLD_LIBRARY_PATH
8916 shrext_cmds='.dylib'
8917 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8918 if test "$GCC" = yes; then
8919 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"`
8921 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8923 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 shlibpath_var=LD_LIBRARY_PATH
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=no
8947 hardcode_into_libs=yes
8948 dynamic_linker='GNU ld.so'
8951 freebsd* | dragonfly*)
8952 # DragonFly does not have aout. When/if they implement a new
8953 # versioning mechanism, adjust this.
8954 if test -x /usr/bin/objformat; then
8955 objformat=`/usr/bin/objformat`
8958 freebsd[123].*) objformat=aout ;;
8962 version_type=freebsd-$objformat
8963 case $version_type in
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8974 shlibpath_var=LD_LIBRARY_PATH
8977 shlibpath_overrides_runpath=yes
8979 freebsd3.[01]* | freebsdelf3.[01]*)
8980 shlibpath_overrides_runpath=yes
8981 hardcode_into_libs=yes
8983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8985 shlibpath_overrides_runpath=no
8986 hardcode_into_libs=yes
8988 freebsd*) # from 4.6 on
8989 shlibpath_overrides_runpath=yes
8990 hardcode_into_libs=yes
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 hardcode_into_libs=yes
9005 hpux9* | hpux10* | hpux11*)
9006 # Give a soname corresponding to the major version so that dld.sl refuses to
9007 # link against other versions.
9014 hardcode_into_libs=yes
9015 dynamic_linker="$host_os dld.so"
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 if test "X$HPUX_IA64_MODE" = X32; then
9021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9029 hardcode_into_libs=yes
9030 dynamic_linker="$host_os dld.sl"
9031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9040 dynamic_linker="$host_os dld.sl"
9041 shlibpath_var=SHLIB_PATH
9042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9047 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9048 postinstall_cmds='chmod 555 $lib'
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=no
9060 hardcode_into_libs=yes
9063 irix5* | irix6* | nonstopux*)
9065 nonstopux*) version_type=nonstopux ;;
9067 if test "$lt_cv_prog_gnu_ld" = yes; then
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9078 irix5* | nonstopux*)
9082 case $LD in # libtool.m4 will add one of these switches to LD
9083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9084 libsuff= shlibsuff= libmagic=32-bit;;
9085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9086 libsuff=32 shlibsuff=N32 libmagic=N32;;
9087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9089 *) libsuff= shlibsuff= libmagic=never-match;;
9093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9094 shlibpath_overrides_runpath=no
9095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9097 hardcode_into_libs=yes
9100 # No shared lib support for Linux oldld, aout, or coff.
9101 linux*oldld* | linux*aout* | linux*coff*)
9105 # This must be Linux ELF.
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=no
9115 # This implies no fast_install, which is unacceptable.
9116 # Some rework will be needed to allow for fast_install
9117 # before this can be enabled.
9118 hardcode_into_libs=yes
9120 # Append ld.so.conf contents to the search path
9121 if test -f /etc/ld.so.conf; then
9122 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' ' '`
9123 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9126 # We used to test for /lib/ld.so.1 and disable shared libraries on
9127 # powerpc, because MkLinux only supported shared libraries with the
9128 # GNU dynamic linker. Since this was broken with cross compilers,
9129 # most powerpc-linux boxes support dynamic linking these days and
9130 # people can always --disable-shared, the test was removed, and we
9131 # assume the GNU/Linux dynamic linker is in use.
9132 dynamic_linker='GNU/Linux ld.so'
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=no
9143 hardcode_into_libs=yes
9144 dynamic_linker='GNU ld.so'
9151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9154 dynamic_linker='NetBSD (a.out) ld.so'
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 dynamic_linker='NetBSD ld.elf_so'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes
9162 hardcode_into_libs=yes
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177 soname_spec='${libname}${release}${shared_ext}$major'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=yes
9184 sys_lib_dlsearch_path_spec="/usr/lib"
9186 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9188 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9189 *) need_version=no ;;
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9196 openbsd2.[89] | openbsd2.[89].*)
9197 shlibpath_overrides_runpath=no
9200 shlibpath_overrides_runpath=yes
9204 shlibpath_overrides_runpath=yes
9209 libname_spec='$name'
9212 library_names_spec='$libname${shared_ext} $libname.a'
9213 dynamic_linker='OS/2 ld.exe'
9214 shlibpath_var=LIBPATH
9217 osf3* | osf4* | osf5*)
9221 soname_spec='${libname}${release}${shared_ext}$major'
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=yes
9236 hardcode_into_libs=yes
9237 # ldd complains unless libraries are executable
9238 postinstall_cmds='chmod +x $lib'
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9244 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 shlibpath_overrides_runpath=yes
9247 if test "$with_gnu_ld" = yes; then
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256 soname_spec='${libname}${release}${shared_ext}$major'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 case $host_vendor in
9260 shlibpath_overrides_runpath=no
9262 export_dynamic_flag_spec='${wl}-Blargedynsym'
9263 runpath_var=LD_RUN_PATH
9271 shlibpath_overrides_runpath=no
9272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9278 if test -d /usr/nec ;then
9280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9281 soname_spec='$libname${shared_ext}.$major'
9282 shlibpath_var=LD_LIBRARY_PATH
9286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9287 version_type=freebsd-elf
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 hardcode_into_libs=yes
9294 if test "$with_gnu_ld" = yes; then
9295 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9296 shlibpath_overrides_runpath=no
9298 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9299 shlibpath_overrides_runpath=yes
9302 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9306 sys_lib_dlsearch_path_spec='/usr/lib'
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 shlibpath_var=LD_LIBRARY_PATH
9320 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9321 echo "${ECHO_T}$dynamic_linker" >&6; }
9322 test "$dynamic_linker" = no && can_build_shared=no
9324 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9325 if test "$GCC" = yes; then
9326 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9330 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9331 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9332 if test "${libltdl_cv_shlibext+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 eval libltdl_cv_shlibext=$shrext_cmds
9340 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9341 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9342 if test -n "$libltdl_cv_shlibext"; then
9344 cat >>confdefs.h <<_ACEOF
9345 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9351 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9352 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9353 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 libltdl_cv_shlibpath_var="$shlibpath_var"
9358 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9359 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9360 if test -n "$libltdl_cv_shlibpath_var"; then
9362 cat >>confdefs.h <<_ACEOF
9363 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9369 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9370 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9371 if test "${libltdl_cv_sys_search_path+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9376 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9377 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9378 if test -n "$libltdl_cv_sys_search_path"; then
9380 for dir in $libltdl_cv_sys_search_path; do
9381 if test -z "$sys_search_path"; then
9382 sys_search_path="$dir"
9384 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9388 cat >>confdefs.h <<_ACEOF
9389 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9394 { echo "$as_me:$LINENO: checking for objdir" >&5
9395 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9396 if test "${libltdl_cv_objdir+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 libltdl_cv_objdir="$objdir"
9400 if test -n "$objdir"; then
9403 rm -f .libs 2>/dev/null
9404 mkdir .libs 2>/dev/null
9405 if test -d .libs; then
9406 libltdl_cv_objdir=.libs
9408 # MS-DOS does not allow filenames that begin with a dot.
9409 libltdl_cv_objdir=_libs
9411 rmdir .libs 2>/dev/null
9415 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9416 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9418 cat >>confdefs.h <<_ACEOF
9419 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9427 # Check for command to grab the raw symbol name followed by C symbol from nm.
9428 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9429 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9430 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 # These are sane defaults that work on at least a few old systems.
9435 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9437 # Character class describing NM global symbol codes.
9438 symcode='[BCDEGRST]'
9440 # Regexp to match symbols that can be accessed directly from C.
9441 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9443 # Transform an extracted symbol line into a proper C declaration
9444 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9446 # Transform an extracted symbol line into symbol name and symbol address
9447 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'"
9449 # Define system-specific variables.
9454 cygwin* | mingw* | pw32*)
9455 symcode='[ABCDGISTW]'
9457 hpux*) # Its linker distinguishes data from code symbols
9458 if test "$host_cpu" = ia64; then
9459 symcode='[ABCDEGRST]'
9461 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9462 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'"
9465 if test "$host_cpu" = ia64; then
9466 symcode='[ABCDGIRSTW]'
9467 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9468 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'"
9472 symcode='[BCDEGRST]'
9475 symcode='[BCDEGQRST]'
9486 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9494 # Handle CRLF in mingw tool chain
9498 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9502 # If we're using GNU nm, then use its standard symbol codes.
9503 case `$NM -V 2>&1` in
9504 *GNU* | *'with BFD'*)
9505 symcode='[ABCDGIRSTW]' ;;
9508 # Try without a prefix undercore, then with it.
9509 for ac_symprfx in "" "_"; do
9511 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9512 symxfrm="\\1 $ac_symprfx\\2 \\2"
9514 # Write the raw and C identifiers.
9515 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9517 # Check to see that the pipe works correctly.
9521 cat > conftest.$ac_ext <<EOF
9526 void nm_test_func(){}
9530 int main(){nm_test_var='a';nm_test_func();return(0);}
9533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534 (eval $ac_compile) 2>&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; then
9538 # Now try to grab the symbols.
9540 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9541 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } && test -s "$nlist"; then
9545 # Try sorting and uniquifying the output.
9546 if sort "$nlist" | uniq > "$nlist"T; then
9547 mv -f "$nlist"T "$nlist"
9552 # Make sure that we snagged all the symbols we need.
9553 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9554 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9555 cat <<EOF > conftest.$ac_ext
9561 # Now generate the symbol file.
9562 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9564 cat <<EOF >> conftest.$ac_ext
9565 #if defined (__STDC__) && __STDC__
9566 # define lt_ptr_t void *
9568 # define lt_ptr_t char *
9572 /* The mapping between symbol names and symbols. */
9577 lt_preloaded_symbols[] =
9580 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9581 cat <<\EOF >> conftest.$ac_ext
9589 # Now try linking the two files.
9590 mv conftest.$ac_objext conftstm.$ac_objext
9591 lt_save_LIBS="$LIBS"
9592 lt_save_CFLAGS="$CFLAGS"
9593 LIBS="conftstm.$ac_objext"
9594 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596 (eval $ac_link) 2>&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9602 LIBS="$lt_save_LIBS"
9603 CFLAGS="$lt_save_CFLAGS"
9605 echo "cannot find nm_test_func in $nlist" >&5
9608 echo "cannot find nm_test_var in $nlist" >&5
9611 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9614 echo "$progname: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9617 rm -f conftest* conftst*
9619 # Do not use the global_symbol_pipe unless it works.
9620 if test "$pipe_works" = yes; then
9623 lt_cv_sys_global_symbol_pipe=
9629 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9630 lt_cv_sys_global_symbol_to_cdecl=
9632 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9633 { echo "$as_me:$LINENO: result: failed" >&5
9634 echo "${ECHO_T}failed" >&6; }
9636 { echo "$as_me:$LINENO: result: ok" >&5
9637 echo "${ECHO_T}ok" >&6; }
9641 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9642 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9643 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9647 libltdl_cv_preloaded_symbols=yes
9649 libltdl_cv_preloaded_symbols=no
9653 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9654 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9655 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9657 cat >>confdefs.h <<\_ACEOF
9658 #define HAVE_PRELOADED_SYMBOLS 1
9666 ac_cpp='$CPP $CPPFLAGS'
9667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9672 { echo "$as_me:$LINENO: checking for shl_load" >&5
9673 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9674 if test "${ac_cv_func_shl_load+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 cat >conftest.$ac_ext <<_ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9685 #define shl_load innocuous_shl_load
9687 /* System header to define __stub macros and hopefully few prototypes,
9688 which can conflict with char shl_load (); below.
9689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9690 <limits.h> exists even on freestanding compilers. */
9693 # include <limits.h>
9695 # include <assert.h>
9700 /* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
9707 /* The GNU C library defines this for functions which it implements
9708 to always fail with ENOSYS. Some functions are actually named
9709 something starting with __ and the normal name is an alias. */
9710 #if defined __stub_shl_load || defined __stub___shl_load
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
9731 grep -v '^ *+' conftest.er1 >conftest.err
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } &&
9736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9737 { (case "(($ac_try" in
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_try") 2>&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_cv_func_shl_load=yes
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 ac_cv_func_shl_load=no
9764 rm -f core conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9767 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9768 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9769 if test $ac_cv_func_shl_load = yes; then
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_SHL_LOAD 1
9776 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9777 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9778 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 ac_check_lib_save_LIBS=$LIBS
9783 cat >conftest.$ac_ext <<_ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9790 /* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (ac_try="$ac_link"
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; } &&
9829 { ac_try='test -s conftest$ac_exeext'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_lib_dld_shl_load=yes
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ac_cv_lib_dld_shl_load=no
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9851 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9852 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9853 if test $ac_cv_lib_dld_shl_load = yes; then
9855 cat >>confdefs.h <<\_ACEOF
9856 #define HAVE_SHL_LOAD 1
9859 LIBADD_DL="$LIBADD_DL -ldld"
9861 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9862 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 ac_check_lib_save_LIBS=$LIBS
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9875 /* Override any GCC internal prototype to avoid an error.
9876 Use char because int might match the return type of a GCC
9877 builtin and then its argument prototype would still apply. */
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (ac_try="$ac_link"
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_link") 2>conftest.er1
9899 grep -v '^ *+' conftest.er1 >conftest.err
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9905 { (case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_try") 2>&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest$ac_exeext'
9915 { (case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_try") 2>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_cv_lib_dl_dlopen=yes
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 ac_cv_lib_dl_dlopen=no
9932 rm -f core conftest.err conftest.$ac_objext \
9933 conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9936 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9937 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9938 if test $ac_cv_lib_dl_dlopen = yes; then
9940 cat >>confdefs.h <<\_ACEOF
9941 #define HAVE_LIBDL 1
9944 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
9973 grep -v '^ *+' conftest.er1 >conftest.err
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; } &&
9988 { ac_try='test -s conftest$ac_exeext'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_LIBDL 1
10002 libltdl_cv_func_dlopen="yes"
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10008 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10009 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 ac_check_lib_save_LIBS=$LIBS
10013 LIBS="-lsvld $LIBS"
10014 cat >conftest.$ac_ext <<_ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10021 /* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (ac_try="$ac_link"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_link") 2>conftest.er1
10045 grep -v '^ *+' conftest.er1 >conftest.err
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10051 { (case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 ac_cv_lib_svld_dlopen=yes
10072 echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10075 ac_cv_lib_svld_dlopen=no
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10082 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10083 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10084 if test $ac_cv_lib_svld_dlopen = yes; then
10086 cat >>confdefs.h <<\_ACEOF
10087 #define HAVE_LIBDL 1
10090 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10092 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10093 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10094 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 ac_check_lib_save_LIBS=$LIBS
10099 cat >conftest.$ac_ext <<_ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10106 /* Override any GCC internal prototype to avoid an error.
10107 Use char because int might match the return type of a GCC
10108 builtin and then its argument prototype would still apply. */
10116 return dld_link ();
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (ac_try="$ac_link"
10123 case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_link") 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10136 { (case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_try") 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; } &&
10145 { ac_try='test -s conftest$ac_exeext'
10146 { (case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_try") 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_lib_dld_dld_link=yes
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 ac_cv_lib_dld_dld_link=no
10163 rm -f core conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 LIBS=$ac_check_lib_save_LIBS
10167 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10168 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10169 if test $ac_cv_lib_dld_dld_link = yes; then
10171 cat >>confdefs.h <<\_ACEOF
10175 LIBADD_DL="$LIBADD_DL -ldld"
10177 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10178 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10179 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10190 #define _dyld_func_lookup innocuous__dyld_func_lookup
10192 /* System header to define __stub macros and hopefully few prototypes,
10193 which can conflict with char _dyld_func_lookup (); below.
10194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10195 <limits.h> exists even on freestanding compilers. */
10198 # include <limits.h>
10200 # include <assert.h>
10203 #undef _dyld_func_lookup
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10211 char _dyld_func_lookup ();
10212 /* The GNU C library defines this for functions which it implements
10213 to always fail with ENOSYS. Some functions are actually named
10214 something starting with __ and the normal name is an alias. */
10215 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10222 return _dyld_func_lookup ();
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_try") 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_func__dyld_func_lookup=yes
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_cv_func__dyld_func_lookup=no
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10272 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10273 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10274 if test $ac_cv_func__dyld_func_lookup = yes; then
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_DYLD 1
10291 rm -f core conftest.err conftest.$ac_objext \
10292 conftest$ac_exeext conftest.$ac_ext
10303 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10305 lt_save_LIBS="$LIBS"
10306 LIBS="$LIBS $LIBADD_DL"
10308 for ac_func in dlerror
10310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 cat >conftest.$ac_ext <<_ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10324 #define $ac_func innocuous_$ac_func
10326 /* System header to define __stub macros and hopefully few prototypes,
10327 which can conflict with char $ac_func (); below.
10328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10329 <limits.h> exists even on freestanding compilers. */
10332 # include <limits.h>
10334 # include <assert.h>
10339 /* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
10346 /* The GNU C library defines this for functions which it implements
10347 to always fail with ENOSYS. Some functions are actually named
10348 something starting with __ and the normal name is an alias. */
10349 #if defined __stub_$ac_func || defined __stub___$ac_func
10356 return $ac_func ();
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (ac_try="$ac_link"
10363 case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_link") 2>conftest.er1
10370 grep -v '^ *+' conftest.er1 >conftest.err
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } &&
10375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10376 { (case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_try") 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; } &&
10385 { ac_try='test -s conftest$ac_exeext'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 eval "$as_ac_var=yes"
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 eval "$as_ac_var=no"
10403 rm -f core conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10406 ac_res=`eval echo '${'$as_ac_var'}'`
10407 { echo "$as_me:$LINENO: result: $ac_res" >&5
10408 echo "${ECHO_T}$ac_res" >&6; }
10409 if test `eval echo '${'$as_ac_var'}'` = yes; then
10410 cat >>confdefs.h <<_ACEOF
10411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10417 LIBS="$lt_save_LIBS"
10420 ac_cpp='$CPP $CPPFLAGS'
10421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10427 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10428 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10429 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 ac_cv_sys_symbol_underscore=no
10433 cat > conftest.$ac_ext <<EOF
10434 void nm_test_func(){}
10435 int main(){nm_test_func;return 0;}
10437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10438 (eval $ac_compile) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; then
10442 # Now try to grab the symbols.
10443 ac_nlist=conftest.nm
10444 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10445 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } && test -s "$ac_nlist"; then
10449 # See whether the symbols have a leading underscore.
10450 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10451 ac_cv_sys_symbol_underscore=yes
10453 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10456 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10460 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10463 echo "configure: failed program was:" >&5
10469 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10470 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10473 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10474 if test x"$libltdl_cv_func_dlopen" = xyes ||
10475 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10476 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10477 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10478 if test "${libltdl_cv_need_uscore+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 libltdl_cv_need_uscore=unknown
10483 LIBS="$LIBS $LIBADD_DL"
10484 if test "$cross_compiling" = yes; then :
10485 libltdl_cv_need_uscore=cross
10487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488 lt_status=$lt_dlunknown
10489 cat > conftest.$ac_ext <<EOF
10490 #line 10490 "configure"
10491 #include "confdefs.h"
10500 # define LT_DLGLOBAL RTLD_GLOBAL
10503 # define LT_DLGLOBAL DL_GLOBAL
10505 # define LT_DLGLOBAL 0
10509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510 find out it does not work in some platform. */
10511 #ifndef LT_DLLAZY_OR_NOW
10513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10516 # define LT_DLLAZY_OR_NOW DL_LAZY
10519 # define LT_DLLAZY_OR_NOW RTLD_NOW
10522 # define LT_DLLAZY_OR_NOW DL_NOW
10524 # define LT_DLLAZY_OR_NOW 0
10532 extern "C" void exit (int);
10535 void fnord() { int i=42;}
10538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10539 int status = $lt_dlunknown;
10543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10544 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10545 /* dlclose (self); */
10553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10554 (eval $ac_link) 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10558 (./conftest; exit; ) >&5 2>/dev/null
10560 case x$lt_status in
10561 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10562 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10563 x$lt_dlunknown|x*) ;;
10566 # compilation failed
10575 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10576 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10580 if test x"$libltdl_cv_need_uscore" = xyes; then
10582 cat >>confdefs.h <<\_ACEOF
10583 #define NEED_USCORE 1
10589 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10590 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10591 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 # PORTME does your system automatically load deplibs for dlopen?
10595 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10596 # For now, we just catch OSes we know something about -- in the
10597 # future, we'll try test this programmatically.
10598 libltdl_cv_sys_dlopen_deplibs=unknown
10600 aix3*|aix4.1.*|aix4.2.*)
10601 # Unknown whether this is true for these versions of AIX, but
10602 # we want this `case' here to explicitly catch those versions.
10603 libltdl_cv_sys_dlopen_deplibs=unknown
10606 libltdl_cv_sys_dlopen_deplibs=yes
10609 # Assuming the user has installed a libdl from somewhere, this is true
10610 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10611 libltdl_cv_sys_dlopen_deplibs=yes
10613 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10614 # GNU and its variants, using gnu ld.so (Glibc)
10615 libltdl_cv_sys_dlopen_deplibs=yes
10618 libltdl_cv_sys_dlopen_deplibs=yes
10621 libltdl_cv_sys_dlopen_deplibs=yes
10623 irix[12345]*|irix6.[01]*)
10624 # Catch all versions of IRIX before 6.2, and indicate that we don't
10625 # know how it worked for any of those versions.
10626 libltdl_cv_sys_dlopen_deplibs=unknown
10629 # The case above catches anything before 6.2, and it's known that
10630 # at 6.2 and later dlopen does load deplibs.
10631 libltdl_cv_sys_dlopen_deplibs=yes
10634 libltdl_cv_sys_dlopen_deplibs=yes
10637 libltdl_cv_sys_dlopen_deplibs=yes
10640 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10641 # it did *not* use an RPATH in a shared library to find objects the
10642 # library depends on, so we explicitly say `no'.
10643 libltdl_cv_sys_dlopen_deplibs=no
10645 osf5.0|osf5.0a|osf5.1)
10646 # dlopen *does* load deplibs and with the right loader patch applied
10647 # it even uses RPATH in a shared library to search for shared objects
10648 # that the library depends on, but there's no easy way to know if that
10649 # patch is installed. Since this is the case, all we can really
10650 # say is unknown -- it depends on the patch being installed. If
10651 # it is, this changes to `yes'. Without it, it would be `no'.
10652 libltdl_cv_sys_dlopen_deplibs=unknown
10655 # the two cases above should catch all versions of osf <= 5.1. Read
10656 # the comments above for what we know about them.
10657 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10658 # is used to find them so we can finally say `yes'.
10659 libltdl_cv_sys_dlopen_deplibs=yes
10662 libltdl_cv_sys_dlopen_deplibs=yes
10664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10665 libltdl_cv_sys_dlopen_deplibs=yes
10670 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10671 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10672 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10674 cat >>confdefs.h <<\_ACEOF
10675 #define LTDL_DLOPEN_DEPLIBS 1
10681 for ac_header in argz.h
10683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 ac_res=`eval echo '${'$as_ac_Header'}'`
10691 { echo "$as_me:$LINENO: result: $ac_res" >&5
10692 echo "${ECHO_T}$ac_res" >&6; }
10694 # Is the header compilable?
10695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10697 cat >conftest.$ac_ext <<_ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10704 #include <$ac_header>
10706 rm -f conftest.$ac_objext
10707 if { (ac_try="$ac_compile"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_header_compiler=yes
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_header_compiler=no
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6; }
10752 # Is the header present?
10753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #include <$ac_header>
10763 if { (ac_try="$ac_cpp conftest.$ac_ext"
10764 case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } >/dev/null; then
10776 if test -s conftest.err; then
10777 ac_cpp_err=$ac_c_preproc_warn_flag
10778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10785 if test -z "$ac_cpp_err"; then
10786 ac_header_preproc=yes
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ac_header_preproc=no
10794 rm -f conftest.err conftest.$ac_ext
10795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10796 echo "${ECHO_T}$ac_header_preproc" >&6; }
10798 # So? What about this header?
10799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10805 ac_header_preproc=yes
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10821 ## ------------------------------------ ##
10822 ## Report this to http://llvm.org/bugs/ ##
10823 ## ------------------------------------ ##
10825 ) | sed "s/^/$as_me: WARNING: /" >&2
10828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 eval "$as_ac_Header=\$ac_header_preproc"
10835 ac_res=`eval echo '${'$as_ac_Header'}'`
10836 { echo "$as_me:$LINENO: result: $ac_res" >&5
10837 echo "${ECHO_T}$ac_res" >&6; }
10840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10841 cat >>confdefs.h <<_ACEOF
10842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10850 { echo "$as_me:$LINENO: checking for error_t" >&5
10851 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10852 if test "${ac_cv_type_error_t+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 cat >conftest.$ac_ext <<_ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10865 typedef error_t ac__type_new_;
10869 if ((ac__type_new_ *) 0)
10871 if (sizeof (ac__type_new_))
10877 rm -f conftest.$ac_objext
10878 if { (ac_try="$ac_compile"
10879 case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_compile") 2>conftest.er1
10886 grep -v '^ *+' conftest.er1 >conftest.err
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10892 { (case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_try") 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } &&
10901 { ac_try='test -s conftest.$ac_objext'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_try") 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_type_error_t=yes
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10916 ac_cv_type_error_t=no
10919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10921 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10922 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10923 if test $ac_cv_type_error_t = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926 #define HAVE_ERROR_T 1
10932 cat >>confdefs.h <<\_ACEOF
10933 #define error_t int
10944 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 cat >conftest.$ac_ext <<_ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10960 #define $ac_func innocuous_$ac_func
10962 /* System header to define __stub macros and hopefully few prototypes,
10963 which can conflict with char $ac_func (); below.
10964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965 <limits.h> exists even on freestanding compilers. */
10968 # include <limits.h>
10970 # include <assert.h>
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10982 /* The GNU C library defines this for functions which it implements
10983 to always fail with ENOSYS. Some functions are actually named
10984 something starting with __ and the normal name is an alias. */
10985 #if defined __stub_$ac_func || defined __stub___$ac_func
10992 return $ac_func ();
10997 rm -f conftest.$ac_objext conftest$ac_exeext
10998 if { (ac_try="$ac_link"
10999 case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_link") 2>conftest.er1
11006 grep -v '^ *+' conftest.er1 >conftest.err
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012 { (case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_try") 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest$ac_exeext'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 eval "$as_ac_var=yes"
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 eval "$as_ac_var=no"
11039 rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11042 ac_res=`eval echo '${'$as_ac_var'}'`
11043 { echo "$as_me:$LINENO: result: $ac_res" >&5
11044 echo "${ECHO_T}$ac_res" >&6; }
11045 if test `eval echo '${'$as_ac_var'}'` = yes; then
11046 cat >>confdefs.h <<_ACEOF
11047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11080 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 ac_res=`eval echo '${'$as_ac_Header'}'`
11091 { echo "$as_me:$LINENO: result: $ac_res" >&5
11092 echo "${ECHO_T}$ac_res" >&6; }
11094 # Is the header compilable?
11095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11097 cat >conftest.$ac_ext <<_ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 $ac_includes_default
11104 #include <$ac_header>
11106 rm -f conftest.$ac_objext
11107 if { (ac_try="$ac_compile"
11108 case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_compile") 2>conftest.er1
11115 grep -v '^ *+' conftest.er1 >conftest.err
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_try") 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; } &&
11130 { ac_try='test -s conftest.$ac_objext'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_header_compiler=yes
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ac_header_compiler=no
11148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150 echo "${ECHO_T}$ac_header_compiler" >&6; }
11152 # Is the header present?
11153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #include <$ac_header>
11163 if { (ac_try="$ac_cpp conftest.$ac_ext"
11164 case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11171 grep -v '^ *+' conftest.er1 >conftest.err
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } >/dev/null; then
11176 if test -s conftest.err; then
11177 ac_cpp_err=$ac_c_preproc_warn_flag
11178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11185 if test -z "$ac_cpp_err"; then
11186 ac_header_preproc=yes
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 ac_header_preproc=no
11194 rm -f conftest.err conftest.$ac_ext
11195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11196 echo "${ECHO_T}$ac_header_preproc" >&6; }
11198 # So? What about this header?
11199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11205 ac_header_preproc=yes
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11221 ## ------------------------------------ ##
11222 ## Report this to http://llvm.org/bugs/ ##
11223 ## ------------------------------------ ##
11225 ) | sed "s/^/$as_me: WARNING: /" >&2
11228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 eval "$as_ac_Header=\$ac_header_preproc"
11235 ac_res=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237 echo "${ECHO_T}$ac_res" >&6; }
11240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11241 cat >>confdefs.h <<_ACEOF
11242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11253 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 ac_res=`eval echo '${'$as_ac_Header'}'`
11263 { echo "$as_me:$LINENO: result: $ac_res" >&5
11264 echo "${ECHO_T}$ac_res" >&6; }
11266 # Is the header compilable?
11267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 $ac_includes_default
11276 #include <$ac_header>
11278 rm -f conftest.$ac_objext
11279 if { (ac_try="$ac_compile"
11280 case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_compile") 2>conftest.er1
11287 grep -v '^ *+' conftest.er1 >conftest.err
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11293 { (case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_try") 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; } &&
11302 { ac_try='test -s conftest.$ac_objext'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_try") 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_header_compiler=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_header_compiler=no
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11322 echo "${ECHO_T}$ac_header_compiler" >&6; }
11324 # Is the header present?
11325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 #include <$ac_header>
11335 if { (ac_try="$ac_cpp conftest.$ac_ext"
11336 case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11343 grep -v '^ *+' conftest.er1 >conftest.err
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } >/dev/null; then
11348 if test -s conftest.err; then
11349 ac_cpp_err=$ac_c_preproc_warn_flag
11350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11357 if test -z "$ac_cpp_err"; then
11358 ac_header_preproc=yes
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 ac_header_preproc=no
11366 rm -f conftest.err conftest.$ac_ext
11367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11368 echo "${ECHO_T}$ac_header_preproc" >&6; }
11370 # So? What about this header?
11371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11377 ac_header_preproc=yes
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11393 ## ------------------------------------ ##
11394 ## Report this to http://llvm.org/bugs/ ##
11395 ## ------------------------------------ ##
11397 ) | sed "s/^/$as_me: WARNING: /" >&2
11400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 eval "$as_ac_Header=\$ac_header_preproc"
11407 ac_res=`eval echo '${'$as_ac_Header'}'`
11408 { echo "$as_me:$LINENO: result: $ac_res" >&5
11409 echo "${ECHO_T}$ac_res" >&6; }
11412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11413 cat >>confdefs.h <<_ACEOF
11414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11423 for ac_header in string.h strings.h
11425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 ac_res=`eval echo '${'$as_ac_Header'}'`
11433 { echo "$as_me:$LINENO: result: $ac_res" >&5
11434 echo "${ECHO_T}$ac_res" >&6; }
11436 # Is the header compilable?
11437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11439 cat >conftest.$ac_ext <<_ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 $ac_includes_default
11446 #include <$ac_header>
11448 rm -f conftest.$ac_objext
11449 if { (ac_try="$ac_compile"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_compile") 2>conftest.er1
11457 grep -v '^ *+' conftest.er1 >conftest.err
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11463 { (case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_try") 2>&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try='test -s conftest.$ac_objext'
11473 { (case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_try") 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_header_compiler=yes
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 ac_header_compiler=no
11490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11492 echo "${ECHO_T}$ac_header_compiler" >&6; }
11494 # Is the header present?
11495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include <$ac_header>
11505 if { (ac_try="$ac_cpp conftest.$ac_ext"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11513 grep -v '^ *+' conftest.er1 >conftest.err
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } >/dev/null; then
11518 if test -s conftest.err; then
11519 ac_cpp_err=$ac_c_preproc_warn_flag
11520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11527 if test -z "$ac_cpp_err"; then
11528 ac_header_preproc=yes
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 ac_header_preproc=no
11536 rm -f conftest.err conftest.$ac_ext
11537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11538 echo "${ECHO_T}$ac_header_preproc" >&6; }
11540 # So? What about this header?
11541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11547 ac_header_preproc=yes
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11563 ## ------------------------------------ ##
11564 ## Report this to http://llvm.org/bugs/ ##
11565 ## ------------------------------------ ##
11567 ) | sed "s/^/$as_me: WARNING: /" >&2
11570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 eval "$as_ac_Header=\$ac_header_preproc"
11577 ac_res=`eval echo '${'$as_ac_Header'}'`
11578 { echo "$as_me:$LINENO: result: $ac_res" >&5
11579 echo "${ECHO_T}$ac_res" >&6; }
11582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11583 cat >>confdefs.h <<_ACEOF
11584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11594 for ac_func in strchr index
11596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11610 #define $ac_func innocuous_$ac_func
11612 /* System header to define __stub macros and hopefully few prototypes,
11613 which can conflict with char $ac_func (); below.
11614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11615 <limits.h> exists even on freestanding compilers. */
11618 # include <limits.h>
11620 # include <assert.h>
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11632 /* The GNU C library defines this for functions which it implements
11633 to always fail with ENOSYS. Some functions are actually named
11634 something starting with __ and the normal name is an alias. */
11635 #if defined __stub_$ac_func || defined __stub___$ac_func
11642 return $ac_func ();
11647 rm -f conftest.$ac_objext conftest$ac_exeext
11648 if { (ac_try="$ac_link"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_link") 2>conftest.er1
11656 grep -v '^ *+' conftest.er1 >conftest.err
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11662 { (case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_try") 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try='test -s conftest$ac_exeext'
11672 { (case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_try") 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 eval "$as_ac_var=yes"
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11686 eval "$as_ac_var=no"
11689 rm -f core conftest.err conftest.$ac_objext \
11690 conftest$ac_exeext conftest.$ac_ext
11692 ac_res=`eval echo '${'$as_ac_var'}'`
11693 { echo "$as_me:$LINENO: result: $ac_res" >&5
11694 echo "${ECHO_T}$ac_res" >&6; }
11695 if test `eval echo '${'$as_ac_var'}'` = yes; then
11696 cat >>confdefs.h <<_ACEOF
11697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11705 for ac_func in strrchr rindex
11707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11721 #define $ac_func innocuous_$ac_func
11723 /* System header to define __stub macros and hopefully few prototypes,
11724 which can conflict with char $ac_func (); below.
11725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11726 <limits.h> exists even on freestanding compilers. */
11729 # include <limits.h>
11731 # include <assert.h>
11736 /* Override any GCC internal prototype to avoid an error.
11737 Use char because int might match the return type of a GCC
11738 builtin and then its argument prototype would still apply. */
11743 /* The GNU C library defines this for functions which it implements
11744 to always fail with ENOSYS. Some functions are actually named
11745 something starting with __ and the normal name is an alias. */
11746 #if defined __stub_$ac_func || defined __stub___$ac_func
11753 return $ac_func ();
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (ac_try="$ac_link"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_link") 2>conftest.er1
11767 grep -v '^ *+' conftest.er1 >conftest.err
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11773 { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_try") 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest$ac_exeext'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 eval "$as_ac_var=yes"
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 eval "$as_ac_var=no"
11800 rm -f core conftest.err conftest.$ac_objext \
11801 conftest$ac_exeext conftest.$ac_ext
11803 ac_res=`eval echo '${'$as_ac_var'}'`
11804 { echo "$as_me:$LINENO: result: $ac_res" >&5
11805 echo "${ECHO_T}$ac_res" >&6; }
11806 if test `eval echo '${'$as_ac_var'}'` = yes; then
11807 cat >>confdefs.h <<_ACEOF
11808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11816 for ac_func in memcpy bcopy
11818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 cat >conftest.$ac_ext <<_ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11832 #define $ac_func innocuous_$ac_func
11834 /* System header to define __stub macros and hopefully few prototypes,
11835 which can conflict with char $ac_func (); below.
11836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11837 <limits.h> exists even on freestanding compilers. */
11840 # include <limits.h>
11842 # include <assert.h>
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11854 /* The GNU C library defines this for functions which it implements
11855 to always fail with ENOSYS. Some functions are actually named
11856 something starting with __ and the normal name is an alias. */
11857 #if defined __stub_$ac_func || defined __stub___$ac_func
11864 return $ac_func ();
11869 rm -f conftest.$ac_objext conftest$ac_exeext
11870 if { (ac_try="$ac_link"
11871 case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_link") 2>conftest.er1
11878 grep -v '^ *+' conftest.er1 >conftest.err
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11884 { (case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 eval "$as_ac_var=yes"
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 eval "$as_ac_var=no"
11911 rm -f core conftest.err conftest.$ac_objext \
11912 conftest$ac_exeext conftest.$ac_ext
11914 ac_res=`eval echo '${'$as_ac_var'}'`
11915 { echo "$as_me:$LINENO: result: $ac_res" >&5
11916 echo "${ECHO_T}$ac_res" >&6; }
11917 if test `eval echo '${'$as_ac_var'}'` = yes; then
11918 cat >>confdefs.h <<_ACEOF
11919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11927 for ac_func in memmove strcmp
11929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11943 #define $ac_func innocuous_$ac_func
11945 /* System header to define __stub macros and hopefully few prototypes,
11946 which can conflict with char $ac_func (); below.
11947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948 <limits.h> exists even on freestanding compilers. */
11951 # include <limits.h>
11953 # include <assert.h>
11958 /* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11965 /* The GNU C library defines this for functions which it implements
11966 to always fail with ENOSYS. Some functions are actually named
11967 something starting with __ and the normal name is an alias. */
11968 #if defined __stub_$ac_func || defined __stub___$ac_func
11975 return $ac_func ();
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (ac_try="$ac_link"
11982 case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_link") 2>conftest.er1
11989 grep -v '^ *+' conftest.er1 >conftest.err
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_try") 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try='test -s conftest$ac_exeext'
12005 { (case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_try") 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 eval "$as_ac_var=yes"
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 eval "$as_ac_var=no"
12022 rm -f core conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
12025 ac_res=`eval echo '${'$as_ac_var'}'`
12026 { echo "$as_me:$LINENO: result: $ac_res" >&5
12027 echo "${ECHO_T}$ac_res" >&6; }
12028 if test `eval echo '${'$as_ac_var'}'` = yes; then
12029 cat >>confdefs.h <<_ACEOF
12030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12039 for ac_func in closedir opendir readdir
12041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 cat >conftest.$ac_ext <<_ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12055 #define $ac_func innocuous_$ac_func
12057 /* System header to define __stub macros and hopefully few prototypes,
12058 which can conflict with char $ac_func (); below.
12059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12060 <limits.h> exists even on freestanding compilers. */
12063 # include <limits.h>
12065 # include <assert.h>
12070 /* Override any GCC internal prototype to avoid an error.
12071 Use char because int might match the return type of a GCC
12072 builtin and then its argument prototype would still apply. */
12077 /* The GNU C library defines this for functions which it implements
12078 to always fail with ENOSYS. Some functions are actually named
12079 something starting with __ and the normal name is an alias. */
12080 #if defined __stub_$ac_func || defined __stub___$ac_func
12087 return $ac_func ();
12092 rm -f conftest.$ac_objext conftest$ac_exeext
12093 if { (ac_try="$ac_link"
12094 case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_link") 2>conftest.er1
12101 grep -v '^ *+' conftest.er1 >conftest.err
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12107 { (case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_try") 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest$ac_exeext'
12117 { (case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 eval "$as_ac_var=yes"
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 eval "$as_ac_var=no"
12134 rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12137 ac_res=`eval echo '${'$as_ac_var'}'`
12138 { echo "$as_me:$LINENO: result: $ac_res" >&5
12139 echo "${ECHO_T}$ac_res" >&6; }
12140 if test `eval echo '${'$as_ac_var'}'` = yes; then
12141 cat >>confdefs.h <<_ACEOF
12142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12150 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12151 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12164 if test "$GCC" != "yes" && test "$ICC" != "yes"
12166 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12167 echo "$as_me: error: gcc|icc required but not found" >&2;}
12168 { (exit 1); exit 1; }; }
12171 if test "$GXX" != "yes" && test "$IXX" != "yes"
12173 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12174 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12175 { (exit 1); exit 1; }; }
12178 if test "$GCC" = "yes"
12180 cat >conftest.$ac_ext <<_ACEOF
12181 #if !defined(__GNUC__) || __GNUC__ < 3
12182 #error Unsupported GCC version
12186 rm -f conftest.$ac_objext
12187 if { (ac_try="$ac_compile"
12188 case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_compile") 2>conftest.er1
12195 grep -v '^ *+' conftest.er1 >conftest.err
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201 { (case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_try") 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12226 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12227 { (exit 1); exit 1; }; }
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 if test -z "$llvm_cv_gnu_make_command"
12235 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12236 echo "$as_me: error: GNU Make required but not found" >&2;}
12237 { (exit 1); exit 1; }; }
12240 { echo "$as_me:$LINENO: result: ok" >&5
12241 echo "${ECHO_T}ok" >&6; }
12243 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12244 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12245 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12247 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12249 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12251 if test "$GXX" = "yes"
12253 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12255 if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12257 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12260 gxx_version=`$CXX -dumpversion`
12261 gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12262 gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12263 gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12265 if test "$gxx_version_major" -ge "4" \
12266 && test "$gxx_version_minor" -ge "7"; then
12269 NO_MAYBE_UNINITIALIZED=
12270 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12276 NO_MAYBE_UNINITIALIZED=
12278 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12279 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12284 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12285 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12286 if test "${ac_cv_lib_m_sin+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 ac_check_lib_save_LIBS=$LIBS
12291 cat >conftest.$ac_ext <<_ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12298 /* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
12313 rm -f conftest.$ac_objext conftest$ac_exeext
12314 if { (ac_try="$ac_link"
12315 case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320 (eval "$ac_link") 2>conftest.er1
12322 grep -v '^ *+' conftest.er1 >conftest.err
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12328 { (case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_try") 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
12347 ac_cv_lib_m_sin=yes
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12355 rm -f core conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
12357 LIBS=$ac_check_lib_save_LIBS
12359 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12360 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12361 if test $ac_cv_lib_m_sin = yes; then
12362 cat >>confdefs.h <<_ACEOF
12363 #define HAVE_LIBM 1
12370 if test "$llvm_cv_os_type" = "MingW" ; then
12372 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12373 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12374 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 ac_check_lib_save_LIBS=$LIBS
12378 LIBS="-limagehlp $LIBS"
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (ac_try="$ac_link"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_link") 2>conftest.er1
12404 grep -v '^ *+' conftest.er1 >conftest.err
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12410 { (case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_try") 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_cv_lib_imagehlp_main=yes
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_cv_lib_imagehlp_main=no
12437 rm -f core conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12441 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12442 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12443 if test $ac_cv_lib_imagehlp_main = yes; then
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_LIBIMAGEHLP 1
12448 LIBS="-limagehlp $LIBS"
12453 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12454 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12455 if test "${ac_cv_lib_psapi_main+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 ac_check_lib_save_LIBS=$LIBS
12459 LIBS="-lpsapi $LIBS"
12460 cat >conftest.$ac_ext <<_ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12491 { (case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_try") 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } &&
12500 { ac_try='test -s conftest$ac_exeext'
12501 { (case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_try") 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_lib_psapi_main=yes
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12515 ac_cv_lib_psapi_main=no
12518 rm -f core conftest.err conftest.$ac_objext \
12519 conftest$ac_exeext conftest.$ac_ext
12520 LIBS=$ac_check_lib_save_LIBS
12522 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12523 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12524 if test $ac_cv_lib_psapi_main = yes; then
12525 cat >>confdefs.h <<_ACEOF
12526 #define HAVE_LIBPSAPI 1
12529 LIBS="-lpsapi $LIBS"
12535 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12536 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12537 if test "${ac_cv_search_dlopen+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 ac_func_search_save_LIBS=$LIBS
12541 cat >conftest.$ac_ext <<_ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12563 for ac_lib in '' dl; do
12564 if test -z "$ac_lib"; then
12565 ac_res="none required"
12568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (ac_try="$ac_link"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_link") 2>conftest.er1
12579 grep -v '^ *+' conftest.er1 >conftest.err
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12585 { (case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_try") 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest$ac_exeext'
12595 { (case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_try") 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 ac_cv_search_dlopen=$ac_res
12606 echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12612 rm -f core conftest.err conftest.$ac_objext \
12614 if test "${ac_cv_search_dlopen+set}" = set; then
12618 if test "${ac_cv_search_dlopen+set}" = set; then
12621 ac_cv_search_dlopen=no
12623 rm conftest.$ac_ext
12624 LIBS=$ac_func_search_save_LIBS
12626 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12627 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12628 ac_res=$ac_cv_search_dlopen
12629 if test "$ac_res" != no; then
12630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12632 cat >>confdefs.h <<\_ACEOF
12633 #define HAVE_DLOPEN 1
12637 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12638 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12642 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12643 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12644 if test "${ac_cv_search_clock_gettime+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 ac_func_search_save_LIBS=$LIBS
12648 cat >conftest.$ac_ext <<_ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12655 /* Override any GCC internal prototype to avoid an error.
12656 Use char because int might match the return type of a GCC
12657 builtin and then its argument prototype would still apply. */
12661 char clock_gettime ();
12665 return clock_gettime ();
12670 for ac_lib in '' rt; do
12671 if test -z "$ac_lib"; then
12672 ac_res="none required"
12675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (ac_try="$ac_link"
12679 case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_link") 2>conftest.er1
12686 grep -v '^ *+' conftest.er1 >conftest.err
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
12691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12692 { (case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697 (eval "$ac_try") 2>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; } &&
12701 { ac_try='test -s conftest$ac_exeext'
12702 { (case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_try") 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 ac_cv_search_clock_gettime=$ac_res
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12719 rm -f core conftest.err conftest.$ac_objext \
12721 if test "${ac_cv_search_clock_gettime+set}" = set; then
12725 if test "${ac_cv_search_clock_gettime+set}" = set; then
12728 ac_cv_search_clock_gettime=no
12730 rm conftest.$ac_ext
12731 LIBS=$ac_func_search_save_LIBS
12733 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12734 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12735 ac_res=$ac_cv_search_clock_gettime
12736 if test "$ac_res" != no; then
12737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12742 if test "$llvm_cv_enable_libffi" = "yes" ; then
12743 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12744 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12745 if test "${ac_cv_search_ffi_call+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 ac_func_search_save_LIBS=$LIBS
12749 cat >conftest.$ac_ext <<_ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12766 return ffi_call ();
12771 for ac_lib in '' ffi; do
12772 if test -z "$ac_lib"; then
12773 ac_res="none required"
12776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_cv_search_ffi_call=$ac_res
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12820 rm -f core conftest.err conftest.$ac_objext \
12822 if test "${ac_cv_search_ffi_call+set}" = set; then
12826 if test "${ac_cv_search_ffi_call+set}" = set; then
12829 ac_cv_search_ffi_call=no
12831 rm conftest.$ac_ext
12832 LIBS=$ac_func_search_save_LIBS
12834 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12835 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12836 ac_res=$ac_cv_search_ffi_call
12837 if test "$ac_res" != no; then
12838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12840 cat >>confdefs.h <<\_ACEOF
12841 #define HAVE_FFI_CALL 1
12845 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12846 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12847 { (exit 1); exit 1; }; }
12852 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12853 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12854 if test "${ac_cv_search_mallinfo+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 ac_func_search_save_LIBS=$LIBS
12858 cat >conftest.$ac_ext <<_ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12875 return mallinfo ();
12880 for ac_lib in '' malloc; do
12881 if test -z "$ac_lib"; then
12882 ac_res="none required"
12885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12887 rm -f conftest.$ac_objext conftest$ac_exeext
12888 if { (ac_try="$ac_link"
12889 case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_link") 2>conftest.er1
12896 grep -v '^ *+' conftest.er1 >conftest.err
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_cv_search_mallinfo=$ac_res
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12929 rm -f core conftest.err conftest.$ac_objext \
12931 if test "${ac_cv_search_mallinfo+set}" = set; then
12935 if test "${ac_cv_search_mallinfo+set}" = set; then
12938 ac_cv_search_mallinfo=no
12940 rm conftest.$ac_ext
12941 LIBS=$ac_func_search_save_LIBS
12943 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12944 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12945 ac_res=$ac_cv_search_mallinfo
12946 if test "$ac_res" != no; then
12947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12949 cat >>confdefs.h <<\_ACEOF
12950 #define HAVE_MALLINFO 1
12956 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12958 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12959 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12960 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 ac_check_lib_save_LIBS=$LIBS
12964 LIBS="-lpthread $LIBS"
12965 cat >conftest.$ac_ext <<_ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12972 /* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12978 char pthread_mutex_init ();
12982 return pthread_mutex_init ();
12987 rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (ac_try="$ac_link"
12989 case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994 (eval "$ac_link") 2>conftest.er1
12996 grep -v '^ *+' conftest.er1 >conftest.err
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
13001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13002 { (case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_try") 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try='test -s conftest$ac_exeext'
13012 { (case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_try") 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
13021 ac_cv_lib_pthread_pthread_mutex_init=yes
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ac_cv_lib_pthread_pthread_mutex_init=no
13029 rm -f core conftest.err conftest.$ac_objext \
13030 conftest$ac_exeext conftest.$ac_ext
13031 LIBS=$ac_check_lib_save_LIBS
13033 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13034 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13035 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13036 cat >>confdefs.h <<_ACEOF
13037 #define HAVE_LIBPTHREAD 1
13040 LIBS="-lpthread $LIBS"
13044 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13045 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13046 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 ac_func_search_save_LIBS=$LIBS
13050 cat >conftest.$ac_ext <<_ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13057 /* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
13063 char pthread_mutex_lock ();
13067 return pthread_mutex_lock ();
13072 for ac_lib in '' pthread; do
13073 if test -z "$ac_lib"; then
13074 ac_res="none required"
13077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13079 rm -f conftest.$ac_objext conftest$ac_exeext
13080 if { (ac_try="$ac_link"
13081 case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_link") 2>conftest.er1
13088 grep -v '^ *+' conftest.er1 >conftest.err
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13094 { (case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_try") 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; } &&
13103 { ac_try='test -s conftest$ac_exeext'
13104 { (case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_try") 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113 ac_cv_search_pthread_mutex_lock=$ac_res
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13121 rm -f core conftest.err conftest.$ac_objext \
13123 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13127 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13130 ac_cv_search_pthread_mutex_lock=no
13132 rm conftest.$ac_ext
13133 LIBS=$ac_func_search_save_LIBS
13135 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13136 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13137 ac_res=$ac_cv_search_pthread_mutex_lock
13138 if test "$ac_res" != no; then
13139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13141 cat >>confdefs.h <<\_ACEOF
13142 #define HAVE_PTHREAD_MUTEX_LOCK 1
13147 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13148 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13149 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 ac_func_search_save_LIBS=$LIBS
13153 cat >conftest.$ac_ext <<_ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13160 /* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13166 char pthread_rwlock_init ();
13170 return pthread_rwlock_init ();
13175 for ac_lib in '' pthread; do
13176 if test -z "$ac_lib"; then
13177 ac_res="none required"
13180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (ac_try="$ac_link"
13184 case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_link") 2>conftest.er1
13191 grep -v '^ *+' conftest.er1 >conftest.err
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13197 { (case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_try") 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } &&
13206 { ac_try='test -s conftest$ac_exeext'
13207 { (case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_try") 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 ac_cv_search_pthread_rwlock_init=$ac_res
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13224 rm -f core conftest.err conftest.$ac_objext \
13226 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13230 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13233 ac_cv_search_pthread_rwlock_init=no
13235 rm conftest.$ac_ext
13236 LIBS=$ac_func_search_save_LIBS
13238 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13239 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13240 ac_res=$ac_cv_search_pthread_rwlock_init
13241 if test "$ac_res" != no; then
13242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13244 cat >>confdefs.h <<\_ACEOF
13245 #define HAVE_PTHREAD_RWLOCK_INIT 1
13250 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13251 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13252 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 ac_func_search_save_LIBS=$LIBS
13256 cat >conftest.$ac_ext <<_ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13263 /* Override any GCC internal prototype to avoid an error.
13264 Use char because int might match the return type of a GCC
13265 builtin and then its argument prototype would still apply. */
13269 char pthread_getspecific ();
13273 return pthread_getspecific ();
13278 for ac_lib in '' pthread; do
13279 if test -z "$ac_lib"; then
13280 ac_res="none required"
13283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13285 rm -f conftest.$ac_objext conftest$ac_exeext
13286 if { (ac_try="$ac_link"
13287 case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_link") 2>conftest.er1
13294 grep -v '^ *+' conftest.er1 >conftest.err
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } &&
13299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13300 { (case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_try") 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; } &&
13309 { ac_try='test -s conftest$ac_exeext'
13310 { (case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_try") 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 ac_cv_search_pthread_getspecific=$ac_res
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13327 rm -f core conftest.err conftest.$ac_objext \
13329 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13333 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13336 ac_cv_search_pthread_getspecific=no
13338 rm conftest.$ac_ext
13339 LIBS=$ac_func_search_save_LIBS
13341 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13342 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13343 ac_res=$ac_cv_search_pthread_getspecific
13344 if test "$ac_res" != no; then
13345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13347 cat >>confdefs.h <<\_ACEOF
13348 #define HAVE_PTHREAD_GETSPECIFIC 1
13356 # Check whether --with-udis86 was given.
13357 if test "${with_udis86+set}" = set; then
13358 withval=$with_udis86;
13363 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13366 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13367 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13368 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 ac_check_lib_save_LIBS=$LIBS
13372 LIBS="-ludis86 $LIBS"
13373 cat >conftest.$ac_ext <<_ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h. */
13380 /* Override any GCC internal prototype to avoid an error.
13381 Use char because int might match the return type of a GCC
13382 builtin and then its argument prototype would still apply. */
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (ac_try="$ac_link"
13397 case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_link") 2>conftest.er1
13404 grep -v '^ *+' conftest.er1 >conftest.err
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest$ac_exeext'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 ac_cv_lib_udis86_ud_init=yes
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 ac_cv_lib_udis86_ud_init=no
13437 rm -f core conftest.err conftest.$ac_objext \
13438 conftest$ac_exeext conftest.$ac_ext
13439 LIBS=$ac_check_lib_save_LIBS
13441 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13442 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13443 if test $ac_cv_lib_udis86_ud_init = yes; then
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE_LIBUDIS86 1
13448 LIBS="-ludis86 $LIBS"
13452 echo "Error! You need to have libudis86 around."
13464 cat >>confdefs.h <<_ACEOF
13465 #define USE_UDIS86 $USE_UDIS86
13470 # Check whether --with-oprofile was given.
13471 if test "${with_oprofile+set}" = set; then
13472 withval=$with_oprofile;
13476 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13477 no) llvm_cv_oppath=
13480 *) llvm_cv_oppath="${withval}/lib/oprofile"
13481 CPPFLAGS="-I${withval}/include";;
13483 case $llvm_cv_os_type in
13485 if test -n "$llvm_cv_oppath" ; then
13486 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13487 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13488 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13489 if test "${ac_cv_search_bfd_init+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13492 ac_func_search_save_LIBS=$LIBS
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13500 /* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13510 return bfd_init ();
13515 for ac_lib in '' bfd; do
13516 if test -z "$ac_lib"; then
13517 ac_res="none required"
13520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (ac_try="$ac_link"
13524 case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_link") 2>conftest.er1
13531 grep -v '^ *+' conftest.er1 >conftest.err
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest$ac_exeext'
13547 { (case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_try") 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_cv_search_bfd_init=$ac_res
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13564 rm -f core conftest.err conftest.$ac_objext \
13566 if test "${ac_cv_search_bfd_init+set}" = set; then
13570 if test "${ac_cv_search_bfd_init+set}" = set; then
13573 ac_cv_search_bfd_init=no
13575 rm conftest.$ac_ext
13576 LIBS=$ac_func_search_save_LIBS
13578 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13579 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13580 ac_res=$ac_cv_search_bfd_init
13581 if test "$ac_res" != no; then
13582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13586 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13587 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13588 if test "${ac_cv_search_op_open_agent+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 ac_func_search_save_LIBS=$LIBS
13592 cat >conftest.$ac_ext <<_ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any GCC internal prototype to avoid an error.
13600 Use char because int might match the return type of a GCC
13601 builtin and then its argument prototype would still apply. */
13605 char op_open_agent ();
13609 return op_open_agent ();
13614 for ac_lib in '' opagent; do
13615 if test -z "$ac_lib"; then
13616 ac_res="none required"
13619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13621 rm -f conftest.$ac_objext conftest$ac_exeext
13622 if { (ac_try="$ac_link"
13623 case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_link") 2>conftest.er1
13630 grep -v '^ *+' conftest.er1 >conftest.err
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13636 { (case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_try") 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest$ac_exeext'
13646 { (case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_try") 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_cv_search_op_open_agent=$ac_res
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13663 rm -f core conftest.err conftest.$ac_objext \
13665 if test "${ac_cv_search_op_open_agent+set}" = set; then
13669 if test "${ac_cv_search_op_open_agent+set}" = set; then
13672 ac_cv_search_op_open_agent=no
13674 rm conftest.$ac_ext
13675 LIBS=$ac_func_search_save_LIBS
13677 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13678 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13679 ac_res=$ac_cv_search_op_open_agent
13680 if test "$ac_res" != no; then
13681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13685 echo "Error! You need to have libopagent around."
13690 if test "${ac_cv_header_opagent_h+set}" = set; then
13691 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13692 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13693 if test "${ac_cv_header_opagent_h+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13697 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13699 # Is the header compilable?
13700 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13701 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13702 cat >conftest.$ac_ext <<_ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h. */
13708 $ac_includes_default
13709 #include <opagent.h>
13711 rm -f conftest.$ac_objext
13712 if { (ac_try="$ac_compile"
13713 case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_compile") 2>conftest.er1
13720 grep -v '^ *+' conftest.er1 >conftest.err
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest.$ac_objext'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_header_compiler=yes
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ac_header_compiler=no
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13755 echo "${ECHO_T}$ac_header_compiler" >&6; }
13757 # Is the header present?
13758 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13759 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13766 #include <opagent.h>
13768 if { (ac_try="$ac_cpp conftest.$ac_ext"
13769 case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13776 grep -v '^ *+' conftest.er1 >conftest.err
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } >/dev/null; then
13781 if test -s conftest.err; then
13782 ac_cpp_err=$ac_c_preproc_warn_flag
13783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13790 if test -z "$ac_cpp_err"; then
13791 ac_header_preproc=yes
13793 echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13796 ac_header_preproc=no
13799 rm -f conftest.err conftest.$ac_ext
13800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13801 echo "${ECHO_T}$ac_header_preproc" >&6; }
13803 # So? What about this header?
13804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13806 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13807 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13809 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13810 ac_header_preproc=yes
13813 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13814 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13816 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13818 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13820 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13822 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13823 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13824 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13826 ## ------------------------------------ ##
13827 ## Report this to http://llvm.org/bugs/ ##
13828 ## ------------------------------------ ##
13830 ) | sed "s/^/$as_me: WARNING: /" >&2
13833 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13834 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13835 if test "${ac_cv_header_opagent_h+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 ac_cv_header_opagent_h=$ac_header_preproc
13840 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13841 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13844 if test $ac_cv_header_opagent_h = yes; then
13848 echo "Error! You need to have opagent.h around."
13856 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13857 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13858 { (exit 1); exit 1; }; } ;;
13869 cat >>confdefs.h <<_ACEOF
13870 #define LLVM_USE_OPROFILE $USE_OPROFILE
13875 # Check whether --with-intel-jitevents was given.
13876 if test "${with_intel_jitevents+set}" = set; then
13877 withval=$with_intel_jitevents;
13879 yes) USE_INTEL_JITEVENTS=1
13881 no) USE_INTEL_JITEVENTS=0
13883 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13884 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13885 { (exit 1); exit 1; }; };;
13888 case $llvm_cv_os_type in
13889 Linux|Win32|Cygwin|MingW) ;;
13890 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13891 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13892 { (exit 1); exit 1; }; };;
13895 case "$llvm_cv_target_arch" in
13897 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13898 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13899 { (exit 1); exit 1; }; };;
13904 USE_INTEL_JITEVENTS=0
13910 cat >>confdefs.h <<_ACEOF
13911 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13915 for ac_prog in xml2-config
13917 # Extract the first word of "$ac_prog", so it can be a program name with args.
13918 set dummy $ac_prog; ac_word=$2
13919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13921 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 if test -n "$XML2CONFIG"; then
13925 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_prog_XML2CONFIG="$ac_prog"
13935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13945 if test -n "$XML2CONFIG"; then
13946 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13947 echo "${ECHO_T}$XML2CONFIG" >&6; }
13949 { echo "$as_me:$LINENO: result: no" >&5
13950 echo "${ECHO_T}no" >&6; }
13954 test -n "$XML2CONFIG" && break
13958 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13959 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13960 if test "x$XML2CONFIG" = "x"; then
13961 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13962 echo "${ECHO_T}xml2-config not found" >&6; }
13964 LIBXML2_INC=`$XML2CONFIG --cflags`
13965 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13966 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13967 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13968 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13969 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 ac_check_lib_save_LIBS=$LIBS
13973 LIBS="-lxml2 $LIBS"
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13981 /* Override any GCC internal prototype to avoid an error.
13982 Use char because int might match the return type of a GCC
13983 builtin and then its argument prototype would still apply. */
13987 char xmlReadFile ();
13991 return xmlReadFile ();
13996 rm -f conftest.$ac_objext conftest$ac_exeext
13997 if { (ac_try="$ac_link"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_link") 2>conftest.er1
14005 grep -v '^ *+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest$ac_exeext'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_cv_lib_xml2_xmlReadFile=yes
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14035 ac_cv_lib_xml2_xmlReadFile=no
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14042 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14043 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14044 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14046 cat >>confdefs.h <<\_ACEOF
14047 #define CLANG_HAVE_LIBXML 1
14050 LIBXML2_LIBS="-lxml2"
14063 ac_header_dirent=no
14064 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14065 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14066 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14067 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14077 #include <sys/types.h>
14089 rm -f conftest.$ac_objext
14090 if { (ac_try="$ac_compile"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_compile") 2>conftest.er1
14098 grep -v '^ *+' conftest.er1 >conftest.err
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14104 { (case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_try") 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_try") 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 eval "$as_ac_Header=yes"
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 eval "$as_ac_Header=no"
14131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14133 ac_res=`eval echo '${'$as_ac_Header'}'`
14134 { echo "$as_me:$LINENO: result: $ac_res" >&5
14135 echo "${ECHO_T}$ac_res" >&6; }
14136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14137 cat >>confdefs.h <<_ACEOF
14138 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14141 ac_header_dirent=$ac_hdr; break
14145 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14146 if test $ac_header_dirent = dirent.h; then
14147 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14148 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14149 if test "${ac_cv_search_opendir+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 ac_func_search_save_LIBS=$LIBS
14153 cat >conftest.$ac_ext <<_ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14160 /* Override any GCC internal prototype to avoid an error.
14161 Use char because int might match the return type of a GCC
14162 builtin and then its argument prototype would still apply. */
14175 for ac_lib in '' dir; do
14176 if test -z "$ac_lib"; then
14177 ac_res="none required"
14180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (ac_try="$ac_link"
14184 case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_link") 2>conftest.er1
14191 grep -v '^ *+' conftest.er1 >conftest.err
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14197 { (case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_try") 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest$ac_exeext'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 ac_cv_search_opendir=$ac_res
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14224 rm -f core conftest.err conftest.$ac_objext \
14226 if test "${ac_cv_search_opendir+set}" = set; then
14230 if test "${ac_cv_search_opendir+set}" = set; then
14233 ac_cv_search_opendir=no
14235 rm conftest.$ac_ext
14236 LIBS=$ac_func_search_save_LIBS
14238 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14239 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14240 ac_res=$ac_cv_search_opendir
14241 if test "$ac_res" != no; then
14242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14247 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14248 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14249 if test "${ac_cv_search_opendir+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 ac_func_search_save_LIBS=$LIBS
14253 cat >conftest.$ac_ext <<_ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14275 for ac_lib in '' x; do
14276 if test -z "$ac_lib"; then
14277 ac_res="none required"
14280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14282 rm -f conftest.$ac_objext conftest$ac_exeext
14283 if { (ac_try="$ac_link"
14284 case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_link") 2>conftest.er1
14291 grep -v '^ *+' conftest.er1 >conftest.err
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_try") 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest$ac_exeext'
14307 { (case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_try") 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 ac_cv_search_opendir=$ac_res
14318 echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14324 rm -f core conftest.err conftest.$ac_objext \
14326 if test "${ac_cv_search_opendir+set}" = set; then
14330 if test "${ac_cv_search_opendir+set}" = set; then
14333 ac_cv_search_opendir=no
14335 rm conftest.$ac_ext
14336 LIBS=$ac_func_search_save_LIBS
14338 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14339 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14340 ac_res=$ac_cv_search_opendir
14341 if test "$ac_res" != no; then
14342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14348 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14349 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14350 if test "${ac_cv_header_mmap_anon+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 ac_cpp='$CPP $CPPFLAGS'
14355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 #include <sys/mman.h>
14366 #include <unistd.h>
14371 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14376 rm -f conftest.$ac_objext
14377 if { (ac_try="$ac_compile"
14378 case "(($ac_try" in
14379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_compile") 2>conftest.er1
14385 grep -v '^ *+' conftest.er1 >conftest.err
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14391 { (case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_try") 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; } &&
14400 { ac_try='test -s conftest.$ac_objext'
14401 { (case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_try") 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_header_mmap_anon=yes
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ac_cv_header_mmap_anon=no
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 ac_cpp='$CPP $CPPFLAGS'
14421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14428 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14429 if test "$ac_cv_header_mmap_anon" = yes; then
14431 cat >>confdefs.h <<\_ACEOF
14432 #define HAVE_MMAP_ANONYMOUS 1
14437 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14438 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14439 if test "${ac_cv_header_stat_broken+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 cat >conftest.$ac_ext <<_ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 #include <sys/types.h>
14449 #include <sys/stat.h>
14451 #if defined S_ISBLK && defined S_IFDIR
14452 # if S_ISBLK (S_IFDIR)
14457 #if defined S_ISBLK && defined S_IFCHR
14458 # if S_ISBLK (S_IFCHR)
14463 #if defined S_ISLNK && defined S_IFREG
14464 # if S_ISLNK (S_IFREG)
14469 #if defined S_ISSOCK && defined S_IFREG
14470 # if S_ISSOCK (S_IFREG)
14476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14477 $EGREP "You lose" >/dev/null 2>&1; then
14478 ac_cv_header_stat_broken=yes
14480 ac_cv_header_stat_broken=no
14485 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14486 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14487 if test $ac_cv_header_stat_broken = yes; then
14489 cat >>confdefs.h <<\_ACEOF
14490 #define STAT_MACROS_BROKEN 1
14495 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14496 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14497 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 cat >conftest.$ac_ext <<_ACEOF
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h. */
14506 #include <sys/types.h>
14507 #include <sys/wait.h>
14508 #ifndef WEXITSTATUS
14509 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14512 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14520 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14525 rm -f conftest.$ac_objext
14526 if { (ac_try="$ac_compile"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_compile") 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14540 { (case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_try") 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_try") 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_cv_header_sys_wait_h=yes
14561 echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14564 ac_cv_header_sys_wait_h=no
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14570 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14571 if test $ac_cv_header_sys_wait_h = yes; then
14573 cat >>confdefs.h <<\_ACEOF
14574 #define HAVE_SYS_WAIT_H 1
14579 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14580 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14581 if test "${ac_cv_header_time+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 #include <sys/types.h>
14591 #include <sys/time.h>
14597 if ((struct tm *) 0)
14603 rm -f conftest.$ac_objext
14604 if { (ac_try="$ac_compile"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_compile") 2>conftest.er1
14612 grep -v '^ *+' conftest.er1 >conftest.err
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14618 { (case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_try") 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; } &&
14627 { ac_try='test -s conftest.$ac_objext'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_cv_header_time=yes
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 ac_cv_header_time=no
14645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14647 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14648 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14649 if test $ac_cv_header_time = yes; then
14651 cat >>confdefs.h <<\_ACEOF
14652 #define TIME_WITH_SYS_TIME 1
14664 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 ac_res=`eval echo '${'$as_ac_Header'}'`
14674 { echo "$as_me:$LINENO: result: $ac_res" >&5
14675 echo "${ECHO_T}$ac_res" >&6; }
14677 # Is the header compilable?
14678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14680 cat >conftest.$ac_ext <<_ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 $ac_includes_default
14687 #include <$ac_header>
14689 rm -f conftest.$ac_objext
14690 if { (ac_try="$ac_compile"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_compile") 2>conftest.er1
14698 grep -v '^ *+' conftest.er1 >conftest.err
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14704 { (case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_try") 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; } &&
14713 { ac_try='test -s conftest.$ac_objext'
14714 { (case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_try") 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_header_compiler=yes
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 ac_header_compiler=no
14731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14733 echo "${ECHO_T}$ac_header_compiler" >&6; }
14735 # Is the header present?
14736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14738 cat >conftest.$ac_ext <<_ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 #include <$ac_header>
14746 if { (ac_try="$ac_cpp conftest.$ac_ext"
14747 case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14754 grep -v '^ *+' conftest.er1 >conftest.err
14756 cat conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } >/dev/null; then
14759 if test -s conftest.err; then
14760 ac_cpp_err=$ac_c_preproc_warn_flag
14761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14768 if test -z "$ac_cpp_err"; then
14769 ac_header_preproc=yes
14771 echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14774 ac_header_preproc=no
14777 rm -f conftest.err conftest.$ac_ext
14778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14779 echo "${ECHO_T}$ac_header_preproc" >&6; }
14781 # So? What about this header?
14782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14788 ac_header_preproc=yes
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14804 ## ------------------------------------ ##
14805 ## Report this to http://llvm.org/bugs/ ##
14806 ## ------------------------------------ ##
14808 ) | sed "s/^/$as_me: WARNING: /" >&2
14811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 eval "$as_ac_Header=\$ac_header_preproc"
14818 ac_res=`eval echo '${'$as_ac_Header'}'`
14819 { echo "$as_me:$LINENO: result: $ac_res" >&5
14820 echo "${ECHO_T}$ac_res" >&6; }
14823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14824 cat >>confdefs.h <<_ACEOF
14825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14838 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 ac_res=`eval echo '${'$as_ac_Header'}'`
14848 { echo "$as_me:$LINENO: result: $ac_res" >&5
14849 echo "${ECHO_T}$ac_res" >&6; }
14851 # Is the header compilable?
14852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14854 cat >conftest.$ac_ext <<_ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 $ac_includes_default
14861 #include <$ac_header>
14863 rm -f conftest.$ac_objext
14864 if { (ac_try="$ac_compile"
14865 case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14872 grep -v '^ *+' conftest.er1 >conftest.err
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14878 { (case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_try") 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_header_compiler=yes
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14902 ac_header_compiler=no
14905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14907 echo "${ECHO_T}$ac_header_compiler" >&6; }
14909 # Is the header present?
14910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 #include <$ac_header>
14920 if { (ac_try="$ac_cpp conftest.$ac_ext"
14921 case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14928 grep -v '^ *+' conftest.er1 >conftest.err
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } >/dev/null; then
14933 if test -s conftest.err; then
14934 ac_cpp_err=$ac_c_preproc_warn_flag
14935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14942 if test -z "$ac_cpp_err"; then
14943 ac_header_preproc=yes
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 ac_header_preproc=no
14951 rm -f conftest.err conftest.$ac_ext
14952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14953 echo "${ECHO_T}$ac_header_preproc" >&6; }
14955 # So? What about this header?
14956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14962 ac_header_preproc=yes
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14978 ## ------------------------------------ ##
14979 ## Report this to http://llvm.org/bugs/ ##
14980 ## ------------------------------------ ##
14982 ) | sed "s/^/$as_me: WARNING: /" >&2
14985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 eval "$as_ac_Header=\$ac_header_preproc"
14992 ac_res=`eval echo '${'$as_ac_Header'}'`
14993 { echo "$as_me:$LINENO: result: $ac_res" >&5
14994 echo "${ECHO_T}$ac_res" >&6; }
14997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15008 for ac_header in utime.h windows.h
15010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 ac_res=`eval echo '${'$as_ac_Header'}'`
15018 { echo "$as_me:$LINENO: result: $ac_res" >&5
15019 echo "${ECHO_T}$ac_res" >&6; }
15021 # Is the header compilable?
15022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15024 cat >conftest.$ac_ext <<_ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15030 $ac_includes_default
15031 #include <$ac_header>
15033 rm -f conftest.$ac_objext
15034 if { (ac_try="$ac_compile"
15035 case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_compile") 2>conftest.er1
15042 grep -v '^ *+' conftest.er1 >conftest.err
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest.$ac_objext'
15058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_header_compiler=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_header_compiler=no
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6; }
15079 # Is the header present?
15080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15082 cat >conftest.$ac_ext <<_ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <$ac_header>
15090 if { (ac_try="$ac_cpp conftest.$ac_ext"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15098 grep -v '^ *+' conftest.er1 >conftest.err
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } >/dev/null; then
15103 if test -s conftest.err; then
15104 ac_cpp_err=$ac_c_preproc_warn_flag
15105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15112 if test -z "$ac_cpp_err"; then
15113 ac_header_preproc=yes
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 ac_header_preproc=no
15121 rm -f conftest.err conftest.$ac_ext
15122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15123 echo "${ECHO_T}$ac_header_preproc" >&6; }
15125 # So? What about this header?
15126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15132 ac_header_preproc=yes
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15148 ## ------------------------------------ ##
15149 ## Report this to http://llvm.org/bugs/ ##
15150 ## ------------------------------------ ##
15152 ) | sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
15162 ac_res=`eval echo '${'$as_ac_Header'}'`
15163 { echo "$as_me:$LINENO: result: $ac_res" >&5
15164 echo "${ECHO_T}$ac_res" >&6; }
15167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15168 cat >>confdefs.h <<_ACEOF
15169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15181 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 ac_res=`eval echo '${'$as_ac_Header'}'`
15191 { echo "$as_me:$LINENO: result: $ac_res" >&5
15192 echo "${ECHO_T}$ac_res" >&6; }
15194 # Is the header compilable?
15195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15197 cat >conftest.$ac_ext <<_ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 $ac_includes_default
15204 #include <$ac_header>
15206 rm -f conftest.$ac_objext
15207 if { (ac_try="$ac_compile"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_compile") 2>conftest.er1
15215 grep -v '^ *+' conftest.er1 >conftest.err
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15221 { (case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_try") 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest.$ac_objext'
15231 { (case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_try") 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_header_compiler=yes
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ac_header_compiler=no
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15250 echo "${ECHO_T}$ac_header_compiler" >&6; }
15252 # Is the header present?
15253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 #include <$ac_header>
15263 if { (ac_try="$ac_cpp conftest.$ac_ext"
15264 case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15271 grep -v '^ *+' conftest.er1 >conftest.err
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } >/dev/null; then
15276 if test -s conftest.err; then
15277 ac_cpp_err=$ac_c_preproc_warn_flag
15278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15285 if test -z "$ac_cpp_err"; then
15286 ac_header_preproc=yes
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15291 ac_header_preproc=no
15294 rm -f conftest.err conftest.$ac_ext
15295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15296 echo "${ECHO_T}$ac_header_preproc" >&6; }
15298 # So? What about this header?
15299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15305 ac_header_preproc=yes
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15321 ## ------------------------------------ ##
15322 ## Report this to http://llvm.org/bugs/ ##
15323 ## ------------------------------------ ##
15325 ) | sed "s/^/$as_me: WARNING: /" >&2
15328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 eval "$as_ac_Header=\$ac_header_preproc"
15335 ac_res=`eval echo '${'$as_ac_Header'}'`
15336 { echo "$as_me:$LINENO: result: $ac_res" >&5
15337 echo "${ECHO_T}$ac_res" >&6; }
15340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15353 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 ac_res=`eval echo '${'$as_ac_Header'}'`
15363 { echo "$as_me:$LINENO: result: $ac_res" >&5
15364 echo "${ECHO_T}$ac_res" >&6; }
15366 # Is the header compilable?
15367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15369 cat >conftest.$ac_ext <<_ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 $ac_includes_default
15376 #include <$ac_header>
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_compile") 2>conftest.er1
15387 grep -v '^ *+' conftest.er1 >conftest.err
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15393 { (case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_try") 2>&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest.$ac_objext'
15403 { (case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_try") 2>&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_header_compiler=yes
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15417 ac_header_compiler=no
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15422 echo "${ECHO_T}$ac_header_compiler" >&6; }
15424 # Is the header present?
15425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15427 cat >conftest.$ac_ext <<_ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15433 #include <$ac_header>
15435 if { (ac_try="$ac_cpp conftest.$ac_ext"
15436 case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15443 grep -v '^ *+' conftest.er1 >conftest.err
15445 cat conftest.err >&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } >/dev/null; then
15448 if test -s conftest.err; then
15449 ac_cpp_err=$ac_c_preproc_warn_flag
15450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15457 if test -z "$ac_cpp_err"; then
15458 ac_header_preproc=yes
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 ac_header_preproc=no
15466 rm -f conftest.err conftest.$ac_ext
15467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15468 echo "${ECHO_T}$ac_header_preproc" >&6; }
15470 # So? What about this header?
15471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15477 ac_header_preproc=yes
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15493 ## ------------------------------------ ##
15494 ## Report this to http://llvm.org/bugs/ ##
15495 ## ------------------------------------ ##
15497 ) | sed "s/^/$as_me: WARNING: /" >&2
15500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 eval "$as_ac_Header=\$ac_header_preproc"
15507 ac_res=`eval echo '${'$as_ac_Header'}'`
15508 { echo "$as_me:$LINENO: result: $ac_res" >&5
15509 echo "${ECHO_T}$ac_res" >&6; }
15512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15513 cat >>confdefs.h <<_ACEOF
15514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15522 for ac_header in valgrind/valgrind.h
15524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 ac_res=`eval echo '${'$as_ac_Header'}'`
15532 { echo "$as_me:$LINENO: result: $ac_res" >&5
15533 echo "${ECHO_T}$ac_res" >&6; }
15535 # Is the header compilable?
15536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15538 cat >conftest.$ac_ext <<_ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 $ac_includes_default
15545 #include <$ac_header>
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
15549 case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_compile") 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15562 { (case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_try") 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_try") 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_header_compiler=yes
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_header_compiler=no
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15591 echo "${ECHO_T}$ac_header_compiler" >&6; }
15593 # Is the header present?
15594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15596 cat >conftest.$ac_ext <<_ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 #include <$ac_header>
15604 if { (ac_try="$ac_cpp conftest.$ac_ext"
15605 case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15612 grep -v '^ *+' conftest.er1 >conftest.err
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } >/dev/null; then
15617 if test -s conftest.err; then
15618 ac_cpp_err=$ac_c_preproc_warn_flag
15619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15626 if test -z "$ac_cpp_err"; then
15627 ac_header_preproc=yes
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 ac_header_preproc=no
15635 rm -f conftest.err conftest.$ac_ext
15636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15637 echo "${ECHO_T}$ac_header_preproc" >&6; }
15639 # So? What about this header?
15640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15646 ac_header_preproc=yes
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15662 ## ------------------------------------ ##
15663 ## Report this to http://llvm.org/bugs/ ##
15664 ## ------------------------------------ ##
15666 ) | sed "s/^/$as_me: WARNING: /" >&2
15669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 eval "$as_ac_Header=\$ac_header_preproc"
15676 ac_res=`eval echo '${'$as_ac_Header'}'`
15677 { echo "$as_me:$LINENO: result: $ac_res" >&5
15678 echo "${ECHO_T}$ac_res" >&6; }
15681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15682 cat >>confdefs.h <<_ACEOF
15683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15691 for ac_header in fenv.h
15693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 ac_res=`eval echo '${'$as_ac_Header'}'`
15701 { echo "$as_me:$LINENO: result: $ac_res" >&5
15702 echo "${ECHO_T}$ac_res" >&6; }
15704 # Is the header compilable?
15705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15707 cat >conftest.$ac_ext <<_ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15713 $ac_includes_default
15714 #include <$ac_header>
15716 rm -f conftest.$ac_objext
15717 if { (ac_try="$ac_compile"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_compile") 2>conftest.er1
15725 grep -v '^ *+' conftest.er1 >conftest.err
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15731 { (case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736 (eval "$ac_try") 2>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; } &&
15740 { ac_try='test -s conftest.$ac_objext'
15741 { (case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_try") 2>&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 ac_header_compiler=yes
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_header_compiler=no
15758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15760 echo "${ECHO_T}$ac_header_compiler" >&6; }
15762 # Is the header present?
15763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15765 cat >conftest.$ac_ext <<_ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 #include <$ac_header>
15773 if { (ac_try="$ac_cpp conftest.$ac_ext"
15774 case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15781 grep -v '^ *+' conftest.er1 >conftest.err
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } >/dev/null; then
15786 if test -s conftest.err; then
15787 ac_cpp_err=$ac_c_preproc_warn_flag
15788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15795 if test -z "$ac_cpp_err"; then
15796 ac_header_preproc=yes
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15801 ac_header_preproc=no
15804 rm -f conftest.err conftest.$ac_ext
15805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15806 echo "${ECHO_T}$ac_header_preproc" >&6; }
15808 # So? What about this header?
15809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15815 ac_header_preproc=yes
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15831 ## ------------------------------------ ##
15832 ## Report this to http://llvm.org/bugs/ ##
15833 ## ------------------------------------ ##
15835 ) | sed "s/^/$as_me: WARNING: /" >&2
15838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 eval "$as_ac_Header=\$ac_header_preproc"
15845 ac_res=`eval echo '${'$as_ac_Header'}'`
15846 { echo "$as_me:$LINENO: result: $ac_res" >&5
15847 echo "${ECHO_T}$ac_res" >&6; }
15850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15851 cat >>confdefs.h <<_ACEOF
15852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15859 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15861 for ac_header in pthread.h
15863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 ac_res=`eval echo '${'$as_ac_Header'}'`
15871 { echo "$as_me:$LINENO: result: $ac_res" >&5
15872 echo "${ECHO_T}$ac_res" >&6; }
15874 # Is the header compilable?
15875 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15877 cat >conftest.$ac_ext <<_ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 $ac_includes_default
15884 #include <$ac_header>
15886 rm -f conftest.$ac_objext
15887 if { (ac_try="$ac_compile"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_compile") 2>conftest.er1
15895 grep -v '^ *+' conftest.er1 >conftest.err
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } &&
15900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15901 { (case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_try") 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try='test -s conftest.$ac_objext'
15911 { (case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_try") 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_header_compiler=yes
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_header_compiler=no
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15930 echo "${ECHO_T}$ac_header_compiler" >&6; }
15932 # Is the header present?
15933 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15935 cat >conftest.$ac_ext <<_ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 #include <$ac_header>
15943 if { (ac_try="$ac_cpp conftest.$ac_ext"
15944 case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15951 grep -v '^ *+' conftest.er1 >conftest.err
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } >/dev/null; then
15956 if test -s conftest.err; then
15957 ac_cpp_err=$ac_c_preproc_warn_flag
15958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15965 if test -z "$ac_cpp_err"; then
15966 ac_header_preproc=yes
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 ac_header_preproc=no
15974 rm -f conftest.err conftest.$ac_ext
15975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15976 echo "${ECHO_T}$ac_header_preproc" >&6; }
15978 # So? What about this header?
15979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15985 ac_header_preproc=yes
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16001 ## ------------------------------------ ##
16002 ## Report this to http://llvm.org/bugs/ ##
16003 ## ------------------------------------ ##
16005 ) | sed "s/^/$as_me: WARNING: /" >&2
16008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16013 eval "$as_ac_Header=\$ac_header_preproc"
16015 ac_res=`eval echo '${'$as_ac_Header'}'`
16016 { echo "$as_me:$LINENO: result: $ac_res" >&5
16017 echo "${ECHO_T}$ac_res" >&6; }
16020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16021 cat >>confdefs.h <<_ACEOF
16022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16038 if test "$llvm_cv_enable_libffi" = "yes" ; then
16041 for ac_header in ffi.h ffi/ffi.h
16043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16048 echo $ECHO_N "(cached) $ECHO_C" >&6
16050 ac_res=`eval echo '${'$as_ac_Header'}'`
16051 { echo "$as_me:$LINENO: result: $ac_res" >&5
16052 echo "${ECHO_T}$ac_res" >&6; }
16054 # Is the header compilable?
16055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16057 cat >conftest.$ac_ext <<_ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 $ac_includes_default
16064 #include <$ac_header>
16066 rm -f conftest.$ac_objext
16067 if { (ac_try="$ac_compile"
16068 case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_compile") 2>conftest.er1
16075 grep -v '^ *+' conftest.er1 >conftest.err
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest.$ac_objext'
16091 { (case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_try") 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_header_compiler=yes
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 ac_header_compiler=no
16108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16110 echo "${ECHO_T}$ac_header_compiler" >&6; }
16112 # Is the header present?
16113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16115 cat >conftest.$ac_ext <<_ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 #include <$ac_header>
16123 if { (ac_try="$ac_cpp conftest.$ac_ext"
16124 case "(($ac_try" in
16125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126 *) ac_try_echo=$ac_try;;
16128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16131 grep -v '^ *+' conftest.er1 >conftest.err
16133 cat conftest.err >&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } >/dev/null; then
16136 if test -s conftest.err; then
16137 ac_cpp_err=$ac_c_preproc_warn_flag
16138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16145 if test -z "$ac_cpp_err"; then
16146 ac_header_preproc=yes
16148 echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.$ac_ext >&5
16151 ac_header_preproc=no
16154 rm -f conftest.err conftest.$ac_ext
16155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16156 echo "${ECHO_T}$ac_header_preproc" >&6; }
16158 # So? What about this header?
16159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16165 ac_header_preproc=yes
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16181 ## ------------------------------------ ##
16182 ## Report this to http://llvm.org/bugs/ ##
16183 ## ------------------------------------ ##
16185 ) | sed "s/^/$as_me: WARNING: /" >&2
16188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 eval "$as_ac_Header=\$ac_header_preproc"
16195 ac_res=`eval echo '${'$as_ac_Header'}'`
16196 { echo "$as_me:$LINENO: result: $ac_res" >&5
16197 echo "${ECHO_T}$ac_res" >&6; }
16200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16201 cat >>confdefs.h <<_ACEOF
16202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16212 for ac_header in CrashReporterClient.h
16214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 ac_res=`eval echo '${'$as_ac_Header'}'`
16222 { echo "$as_me:$LINENO: result: $ac_res" >&5
16223 echo "${ECHO_T}$ac_res" >&6; }
16225 # Is the header compilable?
16226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 $ac_includes_default
16235 #include <$ac_header>
16237 rm -f conftest.$ac_objext
16238 if { (ac_try="$ac_compile"
16239 case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_compile") 2>conftest.er1
16246 grep -v '^ *+' conftest.er1 >conftest.err
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16252 { (case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_try") 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; } &&
16261 { ac_try='test -s conftest.$ac_objext'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 ac_header_compiler=yes
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16276 ac_header_compiler=no
16279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16281 echo "${ECHO_T}$ac_header_compiler" >&6; }
16283 # Is the header present?
16284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16286 cat >conftest.$ac_ext <<_ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 #include <$ac_header>
16294 if { (ac_try="$ac_cpp conftest.$ac_ext"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16302 grep -v '^ *+' conftest.er1 >conftest.err
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } >/dev/null; then
16307 if test -s conftest.err; then
16308 ac_cpp_err=$ac_c_preproc_warn_flag
16309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16316 if test -z "$ac_cpp_err"; then
16317 ac_header_preproc=yes
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16322 ac_header_preproc=no
16325 rm -f conftest.err conftest.$ac_ext
16326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16327 echo "${ECHO_T}$ac_header_preproc" >&6; }
16329 # So? What about this header?
16330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16336 ac_header_preproc=yes
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16352 ## ------------------------------------ ##
16353 ## Report this to http://llvm.org/bugs/ ##
16354 ## ------------------------------------ ##
16356 ) | sed "s/^/$as_me: WARNING: /" >&2
16359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 eval "$as_ac_Header=\$ac_header_preproc"
16366 ac_res=`eval echo '${'$as_ac_Header'}'`
16367 { echo "$as_me:$LINENO: result: $ac_res" >&5
16368 echo "${ECHO_T}$ac_res" >&6; }
16371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16372 cat >>confdefs.h <<_ACEOF
16373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16381 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16382 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16383 cat >conftest.$ac_ext <<_ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 extern const char *__crashreporter_info__;
16391 __crashreporter_info__ = "test";
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (ac_try="$ac_link"
16398 case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_link") 2>conftest.er1
16405 grep -v '^ *+' conftest.er1 >conftest.err
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest$ac_exeext'
16421 { (case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_try") 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 { echo "$as_me:$LINENO: result: yes" >&5
16431 echo "${ECHO_T}yes" >&6; }
16433 cat >>confdefs.h <<\_ACEOF
16434 #define HAVE_CRASHREPORTER_INFO 1
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 { echo "$as_me:$LINENO: result: no" >&5
16442 echo "${ECHO_T}no" >&6; }
16444 cat >>confdefs.h <<\_ACEOF
16445 #define HAVE_CRASHREPORTER_INFO 0
16450 rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16455 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16456 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16457 if test "${ac_cv_huge_val_sanity+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 ac_cpp='$CXXCPP $CPPFLAGS'
16463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16467 ac_save_CXXFLAGS=$CXXFLAGS
16468 CXXFLAGS="$CXXFLAGS -pedantic"
16469 if test "$cross_compiling" = yes; then
16470 ac_cv_huge_val_sanity=yes
16472 cat >conftest.$ac_ext <<_ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16482 double x = HUGE_VAL; return x != x;
16487 rm -f conftest$ac_exeext
16488 if { (ac_try="$ac_link"
16489 case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_link") 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16498 { (case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_try") 2>&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 ac_cv_huge_val_sanity=yes
16509 echo "$as_me: program exited with status $ac_status" >&5
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 ( exit $ac_status )
16514 ac_cv_huge_val_sanity=no
16516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16520 CXXFLAGS=$ac_save_CXXFLAGS
16522 ac_cpp='$CPP $CPPFLAGS'
16523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16529 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16530 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16531 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16534 { echo "$as_me:$LINENO: checking for pid_t" >&5
16535 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16536 if test "${ac_cv_type_pid_t+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 cat >conftest.$ac_ext <<_ACEOF
16542 cat confdefs.h >>conftest.$ac_ext
16543 cat >>conftest.$ac_ext <<_ACEOF
16544 /* end confdefs.h. */
16545 $ac_includes_default
16546 typedef pid_t ac__type_new_;
16550 if ((ac__type_new_ *) 0)
16552 if (sizeof (ac__type_new_))
16558 rm -f conftest.$ac_objext
16559 if { (ac_try="$ac_compile"
16560 case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_compile") 2>conftest.er1
16567 grep -v '^ *+' conftest.er1 >conftest.err
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } &&
16572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16573 { (case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_try") 2>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; } &&
16582 { ac_try='test -s conftest.$ac_objext'
16583 { (case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_try") 2>&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 ac_cv_type_pid_t=yes
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 ac_cv_type_pid_t=no
16600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16602 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16603 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16604 if test $ac_cv_type_pid_t = yes; then
16608 cat >>confdefs.h <<_ACEOF
16614 { echo "$as_me:$LINENO: checking for size_t" >&5
16615 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16616 if test "${ac_cv_type_size_t+set}" = set; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 $ac_includes_default
16626 typedef size_t ac__type_new_;
16630 if ((ac__type_new_ *) 0)
16632 if (sizeof (ac__type_new_))
16638 rm -f conftest.$ac_objext
16639 if { (ac_try="$ac_compile"
16640 case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_compile") 2>conftest.er1
16647 grep -v '^ *+' conftest.er1 >conftest.err
16649 cat conftest.err >&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653 { (case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_try") 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
16663 { (case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_try") 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_type_size_t=yes
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_cv_type_size_t=no
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16683 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16684 if test $ac_cv_type_size_t = yes; then
16688 cat >>confdefs.h <<_ACEOF
16689 #define size_t unsigned int
16695 cat >>confdefs.h <<_ACEOF
16696 #define RETSIGTYPE void
16699 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16700 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16701 if test "${ac_cv_struct_tm+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 cat >conftest.$ac_ext <<_ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 #include <sys/types.h>
16716 struct tm *tp; tp->tm_sec;
16721 rm -f conftest.$ac_objext
16722 if { (ac_try="$ac_compile"
16723 case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_compile") 2>conftest.er1
16730 grep -v '^ *+' conftest.er1 >conftest.err
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16736 { (case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741 (eval "$ac_try") 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest.$ac_objext'
16746 { (case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_try") 2>&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_cv_struct_tm=time.h
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ac_cv_struct_tm=sys/time.h
16763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16766 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16767 if test $ac_cv_struct_tm = sys/time.h; then
16769 cat >>confdefs.h <<\_ACEOF
16770 #define TM_IN_SYS_TIME 1
16775 { echo "$as_me:$LINENO: checking for int64_t" >&5
16776 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16777 if test "${ac_cv_type_int64_t+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16780 cat >conftest.$ac_ext <<_ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 $ac_includes_default
16787 typedef int64_t ac__type_new_;
16791 if ((ac__type_new_ *) 0)
16793 if (sizeof (ac__type_new_))
16799 rm -f conftest.$ac_objext
16800 if { (ac_try="$ac_compile"
16801 case "(($ac_try" in
16802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806 (eval "$ac_compile") 2>conftest.er1
16808 grep -v '^ *+' conftest.er1 >conftest.err
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16814 { (case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_try") 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest.$ac_objext'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 ac_cv_type_int64_t=yes
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16838 ac_cv_type_int64_t=no
16841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16844 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16845 if test $ac_cv_type_int64_t = yes; then
16847 cat >>confdefs.h <<_ACEOF
16848 #define HAVE_INT64_T 1
16853 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16854 echo "$as_me: error: Type int64_t required but not found" >&2;}
16855 { (exit 1); exit 1; }; }
16858 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16859 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16860 if test "${ac_cv_type_uint64_t+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 cat >conftest.$ac_ext <<_ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869 $ac_includes_default
16870 typedef uint64_t ac__type_new_;
16874 if ((ac__type_new_ *) 0)
16876 if (sizeof (ac__type_new_))
16882 rm -f conftest.$ac_objext
16883 if { (ac_try="$ac_compile"
16884 case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_compile") 2>conftest.er1
16891 grep -v '^ *+' conftest.er1 >conftest.err
16893 cat conftest.err >&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; } &&
16906 { ac_try='test -s conftest.$ac_objext'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_type_uint64_t=yes
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ac_cv_type_uint64_t=no
16924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16927 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16928 if test $ac_cv_type_uint64_t = yes; then
16930 cat >>confdefs.h <<_ACEOF
16931 #define HAVE_UINT64_T 1
16936 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16937 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16938 if test "${ac_cv_type_u_int64_t+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 $ac_includes_default
16948 typedef u_int64_t ac__type_new_;
16952 if ((ac__type_new_ *) 0)
16954 if (sizeof (ac__type_new_))
16960 rm -f conftest.$ac_objext
16961 if { (ac_try="$ac_compile"
16962 case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_compile") 2>conftest.er1
16969 grep -v '^ *+' conftest.er1 >conftest.err
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } &&
16974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16975 { (case "(($ac_try" in
16976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977 *) ac_try_echo=$ac_try;;
16979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980 (eval "$ac_try") 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest.$ac_objext'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_type_u_int64_t=yes
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16999 ac_cv_type_u_int64_t=no
17002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17005 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17006 if test $ac_cv_type_u_int64_t = yes; then
17008 cat >>confdefs.h <<_ACEOF
17009 #define HAVE_U_INT64_T 1
17014 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17015 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17016 { (exit 1); exit 1; }; }
17030 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17038 cat >conftest.$ac_ext <<_ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17046 #define $ac_func innocuous_$ac_func
17048 /* System header to define __stub macros and hopefully few prototypes,
17049 which can conflict with char $ac_func (); below.
17050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17051 <limits.h> exists even on freestanding compilers. */
17054 # include <limits.h>
17056 # include <assert.h>
17061 /* Override any GCC internal prototype to avoid an error.
17062 Use char because int might match the return type of a GCC
17063 builtin and then its argument prototype would still apply. */
17068 /* The GNU C library defines this for functions which it implements
17069 to always fail with ENOSYS. Some functions are actually named
17070 something starting with __ and the normal name is an alias. */
17071 #if defined __stub_$ac_func || defined __stub___$ac_func
17078 return $ac_func ();
17083 rm -f conftest.$ac_objext conftest$ac_exeext
17084 if { (ac_try="$ac_link"
17085 case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_link") 2>conftest.er1
17092 grep -v '^ *+' conftest.er1 >conftest.err
17094 cat conftest.err >&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
17097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17098 { (case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_try") 2>&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest$ac_exeext'
17108 { (case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_try") 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 eval "$as_ac_var=yes"
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 eval "$as_ac_var=no"
17125 rm -f core conftest.err conftest.$ac_objext \
17126 conftest$ac_exeext conftest.$ac_ext
17128 ac_res=`eval echo '${'$as_ac_var'}'`
17129 { echo "$as_me:$LINENO: result: $ac_res" >&5
17130 echo "${ECHO_T}$ac_res" >&6; }
17131 if test `eval echo '${'$as_ac_var'}'` = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17143 for ac_func in powf fmodf strtof round
17145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 cat >conftest.$ac_ext <<_ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17159 #define $ac_func innocuous_$ac_func
17161 /* System header to define __stub macros and hopefully few prototypes,
17162 which can conflict with char $ac_func (); below.
17163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17164 <limits.h> exists even on freestanding compilers. */
17167 # include <limits.h>
17169 # include <assert.h>
17174 /* Override any GCC internal prototype to avoid an error.
17175 Use char because int might match the return type of a GCC
17176 builtin and then its argument prototype would still apply. */
17181 /* The GNU C library defines this for functions which it implements
17182 to always fail with ENOSYS. Some functions are actually named
17183 something starting with __ and the normal name is an alias. */
17184 #if defined __stub_$ac_func || defined __stub___$ac_func
17191 return $ac_func ();
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (ac_try="$ac_link"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_link") 2>conftest.er1
17205 grep -v '^ *+' conftest.er1 >conftest.err
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17211 { (case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_try") 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try='test -s conftest$ac_exeext'
17221 { (case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_try") 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 eval "$as_ac_var=yes"
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17235 eval "$as_ac_var=no"
17238 rm -f core conftest.err conftest.$ac_objext \
17239 conftest$ac_exeext conftest.$ac_ext
17241 ac_res=`eval echo '${'$as_ac_var'}'`
17242 { echo "$as_me:$LINENO: result: $ac_res" >&5
17243 echo "${ECHO_T}$ac_res" >&6; }
17244 if test `eval echo '${'$as_ac_var'}'` = yes; then
17245 cat >>confdefs.h <<_ACEOF
17246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17257 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17265 cat >conftest.$ac_ext <<_ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17273 #define $ac_func innocuous_$ac_func
17275 /* System header to define __stub macros and hopefully few prototypes,
17276 which can conflict with char $ac_func (); below.
17277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17278 <limits.h> exists even on freestanding compilers. */
17281 # include <limits.h>
17283 # include <assert.h>
17288 /* Override any GCC internal prototype to avoid an error.
17289 Use char because int might match the return type of a GCC
17290 builtin and then its argument prototype would still apply. */
17295 /* The GNU C library defines this for functions which it implements
17296 to always fail with ENOSYS. Some functions are actually named
17297 something starting with __ and the normal name is an alias. */
17298 #if defined __stub_$ac_func || defined __stub___$ac_func
17305 return $ac_func ();
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (ac_try="$ac_link"
17312 case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17319 grep -v '^ *+' conftest.er1 >conftest.err
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17325 { (case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_try") 2>&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; } &&
17334 { ac_try='test -s conftest$ac_exeext'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 eval "$as_ac_var=yes"
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 eval "$as_ac_var=no"
17352 rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17355 ac_res=`eval echo '${'$as_ac_var'}'`
17356 { echo "$as_me:$LINENO: result: $ac_res" >&5
17357 echo "${ECHO_T}$ac_res" >&6; }
17358 if test `eval echo '${'$as_ac_var'}'` = yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17369 for ac_func in isatty mkdtemp mkstemp
17371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 cat >conftest.$ac_ext <<_ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385 #define $ac_func innocuous_$ac_func
17387 /* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17393 # include <limits.h>
17395 # include <assert.h>
17400 /* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17407 /* The GNU C library defines this for functions which it implements
17408 to always fail with ENOSYS. Some functions are actually named
17409 something starting with __ and the normal name is an alias. */
17410 #if defined __stub_$ac_func || defined __stub___$ac_func
17417 return $ac_func ();
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17431 grep -v '^ *+' conftest.er1 >conftest.err
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17437 { (case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_try") 2>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest$ac_exeext'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 eval "$as_ac_var=yes"
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17461 eval "$as_ac_var=no"
17464 rm -f core conftest.err conftest.$ac_objext \
17465 conftest$ac_exeext conftest.$ac_ext
17467 ac_res=`eval echo '${'$as_ac_var'}'`
17468 { echo "$as_me:$LINENO: result: $ac_res" >&5
17469 echo "${ECHO_T}$ac_res" >&6; }
17470 if test `eval echo '${'$as_ac_var'}'` = yes; then
17471 cat >>confdefs.h <<_ACEOF
17472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17485 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 cat >conftest.$ac_ext <<_ACEOF
17496 cat confdefs.h >>conftest.$ac_ext
17497 cat >>conftest.$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17501 #define $ac_func innocuous_$ac_func
17503 /* System header to define __stub macros and hopefully few prototypes,
17504 which can conflict with char $ac_func (); below.
17505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17506 <limits.h> exists even on freestanding compilers. */
17509 # include <limits.h>
17511 # include <assert.h>
17516 /* Override any GCC internal prototype to avoid an error.
17517 Use char because int might match the return type of a GCC
17518 builtin and then its argument prototype would still apply. */
17523 /* The GNU C library defines this for functions which it implements
17524 to always fail with ENOSYS. Some functions are actually named
17525 something starting with __ and the normal name is an alias. */
17526 #if defined __stub_$ac_func || defined __stub___$ac_func
17533 return $ac_func ();
17538 rm -f conftest.$ac_objext conftest$ac_exeext
17539 if { (ac_try="$ac_link"
17540 case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_link") 2>conftest.er1
17547 grep -v '^ *+' conftest.er1 >conftest.err
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553 { (case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_try") 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_try") 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 eval "$as_ac_var=yes"
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 eval "$as_ac_var=no"
17580 rm -f core conftest.err conftest.$ac_objext \
17581 conftest$ac_exeext conftest.$ac_ext
17583 ac_res=`eval echo '${'$as_ac_var'}'`
17584 { echo "$as_me:$LINENO: result: $ac_res" >&5
17585 echo "${ECHO_T}$ac_res" >&6; }
17586 if test `eval echo '${'$as_ac_var'}'` = yes; then
17587 cat >>confdefs.h <<_ACEOF
17588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17598 for ac_func in strerror strerror_r setenv arc4random
17600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 cat >conftest.$ac_ext <<_ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17614 #define $ac_func innocuous_$ac_func
17616 /* System header to define __stub macros and hopefully few prototypes,
17617 which can conflict with char $ac_func (); below.
17618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17619 <limits.h> exists even on freestanding compilers. */
17622 # include <limits.h>
17624 # include <assert.h>
17629 /* Override any GCC internal prototype to avoid an error.
17630 Use char because int might match the return type of a GCC
17631 builtin and then its argument prototype would still apply. */
17636 /* The GNU C library defines this for functions which it implements
17637 to always fail with ENOSYS. Some functions are actually named
17638 something starting with __ and the normal name is an alias. */
17639 #if defined __stub_$ac_func || defined __stub___$ac_func
17646 return $ac_func ();
17651 rm -f conftest.$ac_objext conftest$ac_exeext
17652 if { (ac_try="$ac_link"
17653 case "(($ac_try" in
17654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655 *) ac_try_echo=$ac_try;;
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658 (eval "$ac_link") 2>conftest.er1
17660 grep -v '^ *+' conftest.er1 >conftest.err
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
17665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17666 { (case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_try") 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; } &&
17675 { ac_try='test -s conftest$ac_exeext'
17676 { (case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_try") 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; }; then
17685 eval "$as_ac_var=yes"
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 eval "$as_ac_var=no"
17693 rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17696 ac_res=`eval echo '${'$as_ac_var'}'`
17697 { echo "$as_me:$LINENO: result: $ac_res" >&5
17698 echo "${ECHO_T}$ac_res" >&6; }
17699 if test `eval echo '${'$as_ac_var'}'` = yes; then
17700 cat >>confdefs.h <<_ACEOF
17701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17711 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 cat >conftest.$ac_ext <<_ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17727 #define $ac_func innocuous_$ac_func
17729 /* System header to define __stub macros and hopefully few prototypes,
17730 which can conflict with char $ac_func (); below.
17731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17732 <limits.h> exists even on freestanding compilers. */
17735 # include <limits.h>
17737 # include <assert.h>
17742 /* Override any GCC internal prototype to avoid an error.
17743 Use char because int might match the return type of a GCC
17744 builtin and then its argument prototype would still apply. */
17749 /* The GNU C library defines this for functions which it implements
17750 to always fail with ENOSYS. Some functions are actually named
17751 something starting with __ and the normal name is an alias. */
17752 #if defined __stub_$ac_func || defined __stub___$ac_func
17759 return $ac_func ();
17764 rm -f conftest.$ac_objext conftest$ac_exeext
17765 if { (ac_try="$ac_link"
17766 case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_link") 2>conftest.er1
17773 grep -v '^ *+' conftest.er1 >conftest.err
17775 cat conftest.err >&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17779 { (case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_try") 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest$ac_exeext'
17789 { (case "(($ac_try" in
17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794 (eval "$ac_try") 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17798 eval "$as_ac_var=yes"
17800 echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17803 eval "$as_ac_var=no"
17806 rm -f core conftest.err conftest.$ac_objext \
17807 conftest$ac_exeext conftest.$ac_ext
17809 ac_res=`eval echo '${'$as_ac_var'}'`
17810 { echo "$as_me:$LINENO: result: $ac_res" >&5
17811 echo "${ECHO_T}$ac_res" >&6; }
17812 if test `eval echo '${'$as_ac_var'}'` = yes; then
17813 cat >>confdefs.h <<_ACEOF
17814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17825 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 cat >conftest.$ac_ext <<_ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17841 #define $ac_func innocuous_$ac_func
17843 /* System header to define __stub macros and hopefully few prototypes,
17844 which can conflict with char $ac_func (); below.
17845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17846 <limits.h> exists even on freestanding compilers. */
17849 # include <limits.h>
17851 # include <assert.h>
17856 /* Override any GCC internal prototype to avoid an error.
17857 Use char because int might match the return type of a GCC
17858 builtin and then its argument prototype would still apply. */
17863 /* The GNU C library defines this for functions which it implements
17864 to always fail with ENOSYS. Some functions are actually named
17865 something starting with __ and the normal name is an alias. */
17866 #if defined __stub_$ac_func || defined __stub___$ac_func
17873 return $ac_func ();
17878 rm -f conftest.$ac_objext conftest$ac_exeext
17879 if { (ac_try="$ac_link"
17880 case "(($ac_try" in
17881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882 *) ac_try_echo=$ac_try;;
17884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17885 (eval "$ac_link") 2>conftest.er1
17887 grep -v '^ *+' conftest.er1 >conftest.err
17889 cat conftest.err >&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17893 { (case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_try") 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest$ac_exeext'
17903 { (case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_try") 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 eval "$as_ac_var=yes"
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 eval "$as_ac_var=no"
17920 rm -f core conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17923 ac_res=`eval echo '${'$as_ac_var'}'`
17924 { echo "$as_me:$LINENO: result: $ac_res" >&5
17925 echo "${ECHO_T}$ac_res" >&6; }
17926 if test `eval echo '${'$as_ac_var'}'` = yes; then
17927 cat >>confdefs.h <<_ACEOF
17928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17934 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17935 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17936 if test "${llvm_cv_c_printf_a+set}" = set; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 ac_cpp='$CPP $CPPFLAGS'
17941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17945 if test "$cross_compiling" = yes; then
17946 llvmac_cv_c_printf_a=no
17948 cat >conftest.$ac_ext <<_ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17957 #include <stdlib.h>
17963 volatile double A, B;
17967 sprintf(Buffer, "%a", A);
17971 if (A != 0x1.999999999999ap-4)
17978 rm -f conftest$ac_exeext
17979 if { (ac_try="$ac_link"
17980 case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_link") 2>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17989 { (case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_try") 2>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 llvm_cv_c_printf_a=yes
18000 echo "$as_me: program exited with status $ac_status" >&5
18001 echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18004 ( exit $ac_status )
18005 llvmac_cv_c_printf_a=no
18007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18012 ac_cpp='$CPP $CPPFLAGS'
18013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18018 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18019 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18020 if test "$llvm_cv_c_printf_a" = "yes"; then
18022 cat >>confdefs.h <<\_ACEOF
18023 #define HAVE_PRINTF_A 1
18029 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18030 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18031 if test "${ac_cv_func_rand48+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18035 ac_cpp='$CXXCPP $CPPFLAGS'
18036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18040 cat >conftest.$ac_ext <<_ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 #include <stdlib.h>
18050 srand48(0);lrand48();drand48();
18055 rm -f conftest.$ac_objext
18056 if { (ac_try="$ac_compile"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_compile") 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18070 { (case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_try") 2>&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; } &&
18079 { ac_try='test -s conftest.$ac_objext'
18080 { (case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085 (eval "$ac_try") 2>&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 ac_cv_func_rand48=yes
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18094 ac_cv_func_rand48=no
18097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099 ac_cpp='$CPP $CPPFLAGS'
18100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18105 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18106 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18108 if test "$ac_cv_func_rand48" = "yes" ; then
18110 cat >>confdefs.h <<\_ACEOF
18111 #define HAVE_RAND48 1
18117 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18118 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18119 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 cat >conftest.$ac_ext <<_ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h. */
18128 $ac_includes_default
18133 char *p = (char *) strerror_s;
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_compile") 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest.$ac_objext'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_cv_have_decl_strerror_s=yes
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18180 ac_cv_have_decl_strerror_s=no
18183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18186 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18187 if test $ac_cv_have_decl_strerror_s = yes; then
18189 cat >>confdefs.h <<_ACEOF
18190 #define HAVE_DECL_STRERROR_S 1
18195 cat >>confdefs.h <<_ACEOF
18196 #define HAVE_DECL_STRERROR_S 0
18204 if test "$llvm_cv_os_type" = "MingW" ; then
18205 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18206 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18207 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18210 ac_check_lib_save_LIBS=$LIBS
18212 cat >conftest.$ac_ext <<_ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18219 /* Override any GCC internal prototype to avoid an error.
18220 Use char because int might match the return type of a GCC
18221 builtin and then its argument prototype would still apply. */
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (ac_try="$ac_link"
18236 case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_link") 2>conftest.er1
18243 grep -v '^ *+' conftest.er1 >conftest.err
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } &&
18248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18249 { (case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_try") 2>&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest$ac_exeext'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_try") 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 ac_cv_lib_gcc__alloca=yes
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 ac_cv_lib_gcc__alloca=no
18276 rm -f core conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext conftest.$ac_ext
18278 LIBS=$ac_check_lib_save_LIBS
18280 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18281 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18282 if test $ac_cv_lib_gcc__alloca = yes; then
18284 cat >>confdefs.h <<\_ACEOF
18285 #define HAVE__ALLOCA 1
18290 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18291 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18292 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 ac_check_lib_save_LIBS=$LIBS
18297 cat >conftest.$ac_ext <<_ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18304 /* Override any GCC internal prototype to avoid an error.
18305 Use char because int might match the return type of a GCC
18306 builtin and then its argument prototype would still apply. */
18314 return __alloca ();
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (ac_try="$ac_link"
18321 case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_link") 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18334 { (case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_try") 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_try") 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_cv_lib_gcc___alloca=yes
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_cv_lib_gcc___alloca=no
18361 rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18363 LIBS=$ac_check_lib_save_LIBS
18365 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18366 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18367 if test $ac_cv_lib_gcc___alloca = yes; then
18369 cat >>confdefs.h <<\_ACEOF
18370 #define HAVE___ALLOCA 1
18375 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18376 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18377 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 ac_check_lib_save_LIBS=$LIBS
18382 cat >conftest.$ac_ext <<_ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18389 /* Override any GCC internal prototype to avoid an error.
18390 Use char because int might match the return type of a GCC
18391 builtin and then its argument prototype would still apply. */
18399 return __chkstk ();
18404 rm -f conftest.$ac_objext conftest$ac_exeext
18405 if { (ac_try="$ac_link"
18406 case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_link") 2>conftest.er1
18413 grep -v '^ *+' conftest.er1 >conftest.err
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
18418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18419 { (case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_try") 2>&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; } &&
18428 { ac_try='test -s conftest$ac_exeext'
18429 { (case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_try") 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 ac_cv_lib_gcc___chkstk=yes
18440 echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18443 ac_cv_lib_gcc___chkstk=no
18446 rm -f core conftest.err conftest.$ac_objext \
18447 conftest$ac_exeext conftest.$ac_ext
18448 LIBS=$ac_check_lib_save_LIBS
18450 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18451 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18452 if test $ac_cv_lib_gcc___chkstk = yes; then
18454 cat >>confdefs.h <<\_ACEOF
18455 #define HAVE___CHKSTK 1
18460 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18461 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18462 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 ac_check_lib_save_LIBS=$LIBS
18467 cat >conftest.$ac_ext <<_ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h. */
18474 /* Override any GCC internal prototype to avoid an error.
18475 Use char because int might match the return type of a GCC
18476 builtin and then its argument prototype would still apply. */
18484 return ___chkstk ();
18489 rm -f conftest.$ac_objext conftest$ac_exeext
18490 if { (ac_try="$ac_link"
18491 case "(($ac_try" in
18492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18493 *) ac_try_echo=$ac_try;;
18495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18496 (eval "$ac_link") 2>conftest.er1
18498 grep -v '^ *+' conftest.er1 >conftest.err
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
18503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18504 { (case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_try") 2>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; } &&
18513 { ac_try='test -s conftest$ac_exeext'
18514 { (case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_try") 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; }; then
18523 ac_cv_lib_gcc____chkstk=yes
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 ac_cv_lib_gcc____chkstk=no
18531 rm -f core conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18533 LIBS=$ac_check_lib_save_LIBS
18535 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18536 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18537 if test $ac_cv_lib_gcc____chkstk = yes; then
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE____CHKSTK 1
18546 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18547 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18548 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 ac_check_lib_save_LIBS=$LIBS
18553 cat >conftest.$ac_ext <<_ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h. */
18560 /* Override any GCC internal prototype to avoid an error.
18561 Use char because int might match the return type of a GCC
18562 builtin and then its argument prototype would still apply. */
18570 return __ashldi3 ();
18575 rm -f conftest.$ac_objext conftest$ac_exeext
18576 if { (ac_try="$ac_link"
18577 case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_link") 2>conftest.er1
18584 grep -v '^ *+' conftest.er1 >conftest.err
18586 cat conftest.err >&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } &&
18589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest$ac_exeext'
18600 { (case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_try") 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_cv_lib_gcc___ashldi3=yes
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18614 ac_cv_lib_gcc___ashldi3=no
18617 rm -f core conftest.err conftest.$ac_objext \
18618 conftest$ac_exeext conftest.$ac_ext
18619 LIBS=$ac_check_lib_save_LIBS
18621 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18622 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18623 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18625 cat >>confdefs.h <<\_ACEOF
18626 #define HAVE___ASHLDI3 1
18631 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18632 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18633 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18636 ac_check_lib_save_LIBS=$LIBS
18638 cat >conftest.$ac_ext <<_ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18645 /* Override any GCC internal prototype to avoid an error.
18646 Use char because int might match the return type of a GCC
18647 builtin and then its argument prototype would still apply. */
18655 return __ashrdi3 ();
18660 rm -f conftest.$ac_objext conftest$ac_exeext
18661 if { (ac_try="$ac_link"
18662 case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_link") 2>conftest.er1
18669 grep -v '^ *+' conftest.er1 >conftest.err
18671 cat conftest.err >&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); } &&
18674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18675 { (case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_try") 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; } &&
18684 { ac_try='test -s conftest$ac_exeext'
18685 { (case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_try") 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 ac_cv_lib_gcc___ashrdi3=yes
18696 echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18699 ac_cv_lib_gcc___ashrdi3=no
18702 rm -f core conftest.err conftest.$ac_objext \
18703 conftest$ac_exeext conftest.$ac_ext
18704 LIBS=$ac_check_lib_save_LIBS
18706 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18707 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18708 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18710 cat >>confdefs.h <<\_ACEOF
18711 #define HAVE___ASHRDI3 1
18716 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18717 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18718 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 ac_check_lib_save_LIBS=$LIBS
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18740 return __divdi3 ();
18745 rm -f conftest.$ac_objext conftest$ac_exeext
18746 if { (ac_try="$ac_link"
18747 case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_link") 2>conftest.er1
18754 grep -v '^ *+' conftest.er1 >conftest.err
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; } &&
18769 { ac_try='test -s conftest$ac_exeext'
18770 { (case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_try") 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_cv_lib_gcc___divdi3=yes
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_cv_lib_gcc___divdi3=no
18787 rm -f core conftest.err conftest.$ac_objext \
18788 conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18791 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18792 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18793 if test $ac_cv_lib_gcc___divdi3 = yes; then
18795 cat >>confdefs.h <<\_ACEOF
18796 #define HAVE___DIVDI3 1
18801 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18802 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18803 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 ac_check_lib_save_LIBS=$LIBS
18808 cat >conftest.$ac_ext <<_ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18815 /* Override any GCC internal prototype to avoid an error.
18816 Use char because int might match the return type of a GCC
18817 builtin and then its argument prototype would still apply. */
18825 return __fixdfdi ();
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (ac_try="$ac_link"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_link") 2>conftest.er1
18839 grep -v '^ *+' conftest.er1 >conftest.err
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18845 { (case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850 (eval "$ac_try") 2>&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try='test -s conftest$ac_exeext'
18855 { (case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_try") 2>&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 ac_cv_lib_gcc___fixdfdi=yes
18866 echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 ac_cv_lib_gcc___fixdfdi=no
18872 rm -f core conftest.err conftest.$ac_objext \
18873 conftest$ac_exeext conftest.$ac_ext
18874 LIBS=$ac_check_lib_save_LIBS
18876 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18877 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18878 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18880 cat >>confdefs.h <<\_ACEOF
18881 #define HAVE___FIXDFDI 1
18886 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18887 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18888 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 ac_check_lib_save_LIBS=$LIBS
18893 cat >conftest.$ac_ext <<_ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18910 return __fixsfdi ();
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (ac_try="$ac_link"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_link") 2>conftest.er1
18924 grep -v '^ *+' conftest.er1 >conftest.err
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest$ac_exeext'
18940 { (case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_try") 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_cv_lib_gcc___fixsfdi=yes
18951 echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18954 ac_cv_lib_gcc___fixsfdi=no
18957 rm -f core conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
18959 LIBS=$ac_check_lib_save_LIBS
18961 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18962 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18963 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18965 cat >>confdefs.h <<\_ACEOF
18966 #define HAVE___FIXSFDI 1
18971 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18972 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18973 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 ac_check_lib_save_LIBS=$LIBS
18978 cat >conftest.$ac_ext <<_ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18985 /* Override any GCC internal prototype to avoid an error.
18986 Use char because int might match the return type of a GCC
18987 builtin and then its argument prototype would still apply. */
18991 char __floatdidf ();
18995 return __floatdidf ();
19000 rm -f conftest.$ac_objext conftest$ac_exeext
19001 if { (ac_try="$ac_link"
19002 case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_link") 2>conftest.er1
19009 grep -v '^ *+' conftest.er1 >conftest.err
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19015 { (case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_try") 2>&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; } &&
19024 { ac_try='test -s conftest$ac_exeext'
19025 { (case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_try") 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_lib_gcc___floatdidf=yes
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 ac_cv_lib_gcc___floatdidf=no
19042 rm -f core conftest.err conftest.$ac_objext \
19043 conftest$ac_exeext conftest.$ac_ext
19044 LIBS=$ac_check_lib_save_LIBS
19046 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19047 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19048 if test $ac_cv_lib_gcc___floatdidf = yes; then
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE___FLOATDIDF 1
19056 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19057 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19058 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 ac_check_lib_save_LIBS=$LIBS
19063 cat >conftest.$ac_ext <<_ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19070 /* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19080 return __lshrdi3 ();
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (ac_try="$ac_link"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_link") 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest$ac_exeext'
19110 { (case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_try") 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_cv_lib_gcc___lshrdi3=yes
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19124 ac_cv_lib_gcc___lshrdi3=no
19127 rm -f core conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19129 LIBS=$ac_check_lib_save_LIBS
19131 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19132 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19133 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19135 cat >>confdefs.h <<\_ACEOF
19136 #define HAVE___LSHRDI3 1
19141 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19142 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19143 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 ac_check_lib_save_LIBS=$LIBS
19148 cat >conftest.$ac_ext <<_ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19155 /* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19165 return __moddi3 ();
19170 rm -f conftest.$ac_objext conftest$ac_exeext
19171 if { (ac_try="$ac_link"
19172 case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_link") 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19185 { (case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_try") 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } &&
19194 { ac_try='test -s conftest$ac_exeext'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_lib_gcc___moddi3=yes
19206 echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19209 ac_cv_lib_gcc___moddi3=no
19212 rm -f core conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19216 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19217 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19218 if test $ac_cv_lib_gcc___moddi3 = yes; then
19220 cat >>confdefs.h <<\_ACEOF
19221 #define HAVE___MODDI3 1
19226 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19227 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19228 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 ac_check_lib_save_LIBS=$LIBS
19233 cat >conftest.$ac_ext <<_ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19240 /* Override any GCC internal prototype to avoid an error.
19241 Use char because int might match the return type of a GCC
19242 builtin and then its argument prototype would still apply. */
19250 return __udivdi3 ();
19255 rm -f conftest.$ac_objext conftest$ac_exeext
19256 if { (ac_try="$ac_link"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_link") 2>conftest.er1
19264 grep -v '^ *+' conftest.er1 >conftest.err
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19270 { (case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_try") 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest$ac_exeext'
19280 { (case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_try") 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_lib_gcc___udivdi3=yes
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19294 ac_cv_lib_gcc___udivdi3=no
19297 rm -f core conftest.err conftest.$ac_objext \
19298 conftest$ac_exeext conftest.$ac_ext
19299 LIBS=$ac_check_lib_save_LIBS
19301 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19302 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19303 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19305 cat >>confdefs.h <<\_ACEOF
19306 #define HAVE___UDIVDI3 1
19311 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19312 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19313 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
19316 ac_check_lib_save_LIBS=$LIBS
19318 cat >conftest.$ac_ext <<_ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h. */
19325 /* Override any GCC internal prototype to avoid an error.
19326 Use char because int might match the return type of a GCC
19327 builtin and then its argument prototype would still apply. */
19335 return __umoddi3 ();
19340 rm -f conftest.$ac_objext conftest$ac_exeext
19341 if { (ac_try="$ac_link"
19342 case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_link") 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
19354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19355 { (case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_try") 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest$ac_exeext'
19365 { (case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_try") 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_lib_gcc___umoddi3=yes
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_lib_gcc___umoddi3=no
19382 rm -f core conftest.err conftest.$ac_objext \
19383 conftest$ac_exeext conftest.$ac_ext
19384 LIBS=$ac_check_lib_save_LIBS
19386 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19387 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19388 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE___UMODDI3 1
19397 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19398 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19399 if test "${ac_cv_lib_gcc___main+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 ac_check_lib_save_LIBS=$LIBS
19404 cat >conftest.$ac_ext <<_ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19411 /* Override any GCC internal prototype to avoid an error.
19412 Use char because int might match the return type of a GCC
19413 builtin and then its argument prototype would still apply. */
19426 rm -f conftest.$ac_objext conftest$ac_exeext
19427 if { (ac_try="$ac_link"
19428 case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_link") 2>conftest.er1
19435 grep -v '^ *+' conftest.er1 >conftest.err
19437 cat conftest.err >&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
19440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19441 { (case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_try") 2>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; } &&
19450 { ac_try='test -s conftest$ac_exeext'
19451 { (case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_try") 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_cv_lib_gcc___main=yes
19462 echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19465 ac_cv_lib_gcc___main=no
19468 rm -f core conftest.err conftest.$ac_objext \
19469 conftest$ac_exeext conftest.$ac_ext
19470 LIBS=$ac_check_lib_save_LIBS
19472 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19473 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19474 if test $ac_cv_lib_gcc___main = yes; then
19476 cat >>confdefs.h <<\_ACEOF
19477 #define HAVE___MAIN 1
19482 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19483 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19484 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 ac_check_lib_save_LIBS=$LIBS
19489 cat >conftest.$ac_ext <<_ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19496 /* Override any GCC internal prototype to avoid an error.
19497 Use char because int might match the return type of a GCC
19498 builtin and then its argument prototype would still apply. */
19506 return __cmpdi2 ();
19511 rm -f conftest.$ac_objext conftest$ac_exeext
19512 if { (ac_try="$ac_link"
19513 case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_link") 2>conftest.er1
19520 grep -v '^ *+' conftest.er1 >conftest.err
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19526 { (case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_try") 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; } &&
19535 { ac_try='test -s conftest$ac_exeext'
19536 { (case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_try") 2>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 ac_cv_lib_gcc___cmpdi2=yes
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19550 ac_cv_lib_gcc___cmpdi2=no
19553 rm -f core conftest.err conftest.$ac_objext \
19554 conftest$ac_exeext conftest.$ac_ext
19555 LIBS=$ac_check_lib_save_LIBS
19557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19558 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19559 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19561 cat >>confdefs.h <<\_ACEOF
19562 #define HAVE___CMPDI2 1
19569 if test "$llvm_cv_os_type" = "MingW" ; then
19570 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19571 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19572 cat >conftest.$ac_ext <<_ACEOF
19573 #include <windows.h>
19574 #include <imagehlp.h>
19575 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19576 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19578 rm -f conftest.$ac_objext
19579 if { (ac_try="$ac_compile"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_compile") 2>conftest.er1
19587 grep -v '^ *+' conftest.er1 >conftest.err
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19593 { (case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_try") 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19613 { echo "$as_me:$LINENO: result: yes" >&5
19614 echo "${ECHO_T}yes" >&6; }
19615 llvm_cv_win32_elmcb_pcstr="PCSTR"
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19622 { echo "$as_me:$LINENO: result: no" >&5
19623 echo "${ECHO_T}no" >&6; }
19624 llvm_cv_win32_elmcb_pcstr="PSTR"
19628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 cat >>confdefs.h <<_ACEOF
19631 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19637 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19638 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19639 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
19643 ac_cpp='$CXXCPP $CPPFLAGS'
19644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19663 rm -f conftest.$ac_objext
19664 if { (ac_try="$ac_compile"
19665 case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_compile") 2>conftest.er1
19672 grep -v '^ *+' conftest.er1 >conftest.err
19674 cat conftest.err >&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
19677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19678 { (case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_try") 2>&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; } &&
19687 { ac_try='test -s conftest.$ac_objext'
19688 { (case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_try") 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19697 ac_cv_func_isnan_in_math_h=yes
19699 echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19702 ac_cv_func_isnan_in_math_h=no
19705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19707 ac_cpp='$CPP $CPPFLAGS'
19708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19713 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19714 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19717 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19719 cat >>confdefs.h <<\_ACEOF
19720 #define HAVE_ISNAN_IN_MATH_H 1
19725 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19726 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19727 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 ac_cpp='$CXXCPP $CPPFLAGS'
19732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19736 cat >conftest.$ac_ext <<_ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19751 rm -f conftest.$ac_objext
19752 if { (ac_try="$ac_compile"
19753 case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_compile") 2>conftest.er1
19760 grep -v '^ *+' conftest.er1 >conftest.err
19762 cat conftest.err >&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
19765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19766 { (case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_try") 2>&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
19776 { (case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_try") 2>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_cv_func_isnan_in_cmath=yes
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_cv_func_isnan_in_cmath=no
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 ac_cpp='$CPP $CPPFLAGS'
19796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19801 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19802 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19804 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19806 cat >>confdefs.h <<\_ACEOF
19807 #define HAVE_ISNAN_IN_CMATH 1
19812 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19813 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19814 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 ac_cpp='$CXXCPP $CPPFLAGS'
19819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19823 cat >conftest.$ac_ext <<_ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19833 float f; std::isnan(f);
19838 rm -f conftest.$ac_objext
19839 if { (ac_try="$ac_compile"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_compile") 2>conftest.er1
19847 grep -v '^ *+' conftest.er1 >conftest.err
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } &&
19852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19853 { (case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_try") 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; } &&
19862 { ac_try='test -s conftest.$ac_objext'
19863 { (case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_try") 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_cv_func_std_isnan_in_cmath=yes
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_cv_func_std_isnan_in_cmath=no
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19882 ac_cpp='$CPP $CPPFLAGS'
19883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19888 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19889 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19891 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19893 cat >>confdefs.h <<\_ACEOF
19894 #define HAVE_STD_ISNAN_IN_CMATH 1
19900 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19901 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19902 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19906 ac_cpp='$CXXCPP $CPPFLAGS'
19907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19911 cat >conftest.$ac_ext <<_ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19926 rm -f conftest.$ac_objext
19927 if { (ac_try="$ac_compile"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_compile") 2>conftest.er1
19935 grep -v '^ *+' conftest.er1 >conftest.err
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
19940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19941 { (case "(($ac_try" in
19942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943 *) ac_try_echo=$ac_try;;
19945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19946 (eval "$ac_try") 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; } &&
19950 { ac_try='test -s conftest.$ac_objext'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; }; then
19960 ac_cv_func_isinf_in_math_h=yes
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 ac_cv_func_isinf_in_math_h=no
19968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19970 ac_cpp='$CPP $CPPFLAGS'
19971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19976 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19977 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19979 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19981 cat >>confdefs.h <<\_ACEOF
19982 #define HAVE_ISINF_IN_MATH_H 1
19987 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19988 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19989 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19993 ac_cpp='$CXXCPP $CPPFLAGS'
19994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19998 cat >conftest.$ac_ext <<_ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20013 rm -f conftest.$ac_objext
20014 if { (ac_try="$ac_compile"
20015 case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_compile") 2>conftest.er1
20022 grep -v '^ *+' conftest.er1 >conftest.err
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20028 { (case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_try") 2>&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; } &&
20037 { ac_try='test -s conftest.$ac_objext'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; }; then
20047 ac_cv_func_isinf_in_cmath=yes
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ac_cv_func_isinf_in_cmath=no
20055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20057 ac_cpp='$CPP $CPPFLAGS'
20058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20063 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20064 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20066 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20068 cat >>confdefs.h <<\_ACEOF
20069 #define HAVE_ISINF_IN_CMATH 1
20074 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20075 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20076 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 ac_cpp='$CXXCPP $CPPFLAGS'
20081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20085 cat >conftest.$ac_ext <<_ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20095 float f; std::isinf(f);
20100 rm -f conftest.$ac_objext
20101 if { (ac_try="$ac_compile"
20102 case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_compile") 2>conftest.er1
20109 grep -v '^ *+' conftest.er1 >conftest.err
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20115 { (case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_try") 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try='test -s conftest.$ac_objext'
20125 { (case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_try") 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 ac_cv_func_std_isinf_in_cmath=yes
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 ac_cv_func_std_isinf_in_cmath=no
20142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144 ac_cpp='$CPP $CPPFLAGS'
20145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20150 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20151 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20153 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20155 cat >>confdefs.h <<\_ACEOF
20156 #define HAVE_STD_ISINF_IN_CMATH 1
20161 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20162 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20163 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 ac_cpp='$CXXCPP $CPPFLAGS'
20168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20172 cat >conftest.$ac_ext <<_ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 #include <ieeefp.h>
20182 float f; finite(f);
20187 rm -f conftest.$ac_objext
20188 if { (ac_try="$ac_compile"
20189 case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_compile") 2>conftest.er1
20196 grep -v '^ *+' conftest.er1 >conftest.err
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20202 { (case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_try") 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; } &&
20211 { ac_try='test -s conftest.$ac_objext'
20212 { (case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_try") 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; }; then
20221 ac_cv_func_finite_in_ieeefp_h=yes
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20226 ac_cv_func_finite_in_ieeefp_h=no
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 ac_cpp='$CPP $CPPFLAGS'
20232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20237 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20238 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20240 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20242 cat >>confdefs.h <<\_ACEOF
20243 #define HAVE_FINITE_IN_IEEEFP_H 1
20250 if test "$llvm_cv_platform_type" = "Unix" ; then
20253 for ac_header in stdlib.h unistd.h
20255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 ac_res=`eval echo '${'$as_ac_Header'}'`
20263 { echo "$as_me:$LINENO: result: $ac_res" >&5
20264 echo "${ECHO_T}$ac_res" >&6; }
20266 # Is the header compilable?
20267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 $ac_includes_default
20276 #include <$ac_header>
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_compile") 2>conftest.er1
20287 grep -v '^ *+' conftest.er1 >conftest.err
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20293 { (case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_try") 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest.$ac_objext'
20303 { (case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_try") 2>&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_header_compiler=yes
20314 echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 ac_header_compiler=no
20320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20322 echo "${ECHO_T}$ac_header_compiler" >&6; }
20324 # Is the header present?
20325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20327 cat >conftest.$ac_ext <<_ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20333 #include <$ac_header>
20335 if { (ac_try="$ac_cpp conftest.$ac_ext"
20336 case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20343 grep -v '^ *+' conftest.er1 >conftest.err
20345 cat conftest.err >&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } >/dev/null; then
20348 if test -s conftest.err; then
20349 ac_cpp_err=$ac_c_preproc_warn_flag
20350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20357 if test -z "$ac_cpp_err"; then
20358 ac_header_preproc=yes
20360 echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20363 ac_header_preproc=no
20366 rm -f conftest.err conftest.$ac_ext
20367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20368 echo "${ECHO_T}$ac_header_preproc" >&6; }
20370 # So? What about this header?
20371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20377 ac_header_preproc=yes
20380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20393 ## ------------------------------------ ##
20394 ## Report this to http://llvm.org/bugs/ ##
20395 ## ------------------------------------ ##
20397 ) | sed "s/^/$as_me: WARNING: /" >&2
20400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 eval "$as_ac_Header=\$ac_header_preproc"
20407 ac_res=`eval echo '${'$as_ac_Header'}'`
20408 { echo "$as_me:$LINENO: result: $ac_res" >&5
20409 echo "${ECHO_T}$ac_res" >&6; }
20412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20413 cat >>confdefs.h <<_ACEOF
20414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20422 for ac_func in getpagesize
20424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20430 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20438 #define $ac_func innocuous_$ac_func
20440 /* System header to define __stub macros and hopefully few prototypes,
20441 which can conflict with char $ac_func (); below.
20442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20443 <limits.h> exists even on freestanding compilers. */
20446 # include <limits.h>
20448 # include <assert.h>
20453 /* Override any GCC internal prototype to avoid an error.
20454 Use char because int might match the return type of a GCC
20455 builtin and then its argument prototype would still apply. */
20460 /* The GNU C library defines this for functions which it implements
20461 to always fail with ENOSYS. Some functions are actually named
20462 something starting with __ and the normal name is an alias. */
20463 #if defined __stub_$ac_func || defined __stub___$ac_func
20470 return $ac_func ();
20475 rm -f conftest.$ac_objext conftest$ac_exeext
20476 if { (ac_try="$ac_link"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_link") 2>conftest.er1
20484 grep -v '^ *+' conftest.er1 >conftest.err
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest$ac_exeext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 eval "$as_ac_var=yes"
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 eval "$as_ac_var=no"
20517 rm -f core conftest.err conftest.$ac_objext \
20518 conftest$ac_exeext conftest.$ac_ext
20520 ac_res=`eval echo '${'$as_ac_var'}'`
20521 { echo "$as_me:$LINENO: result: $ac_res" >&5
20522 echo "${ECHO_T}$ac_res" >&6; }
20523 if test `eval echo '${'$as_ac_var'}'` = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20531 { echo "$as_me:$LINENO: checking for working mmap" >&5
20532 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20533 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 if test "$cross_compiling" = yes; then
20537 ac_cv_func_mmap_fixed_mapped=no
20539 cat >conftest.$ac_ext <<_ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20545 $ac_includes_default
20546 /* malloc might have been renamed as rpl_malloc. */
20549 /* Thanks to Mike Haertel and Jim Avera for this test.
20550 Here is a matrix of mmap possibilities:
20551 mmap private not fixed
20552 mmap private fixed at somewhere currently unmapped
20553 mmap private fixed at somewhere already mapped
20554 mmap shared not fixed
20555 mmap shared fixed at somewhere currently unmapped
20556 mmap shared fixed at somewhere already mapped
20557 For private mappings, we should verify that changes cannot be read()
20558 back from the file, nor mmap's back from the file at a different
20559 address. (There have been systems where private was not correctly
20560 implemented like the infamous i386 svr4.0, and systems where the
20561 VM page cache was not coherent with the file system buffer cache
20562 like early versions of FreeBSD and possibly contemporary NetBSD.)
20563 For shared mappings, we should conversely verify that changes get
20564 propagated back to all the places they're supposed to be.
20566 Grep wants private fixed already mapped.
20567 The main things grep needs to know about mmap are:
20568 * does it exist and is it safe to write into the mmap'd area
20569 * how to use it (BSD variants) */
20572 #include <sys/mman.h>
20574 #if !STDC_HEADERS && !HAVE_STDLIB_H
20578 /* This mess was copied from the GNU getpagesize.h. */
20579 #if !HAVE_GETPAGESIZE
20580 /* Assume that all systems that can run configure have sys/param.h. */
20581 # if !HAVE_SYS_PARAM_H
20582 # define HAVE_SYS_PARAM_H 1
20585 # ifdef _SC_PAGESIZE
20586 # define getpagesize() sysconf(_SC_PAGESIZE)
20587 # else /* no _SC_PAGESIZE */
20588 # if HAVE_SYS_PARAM_H
20589 # include <sys/param.h>
20590 # ifdef EXEC_PAGESIZE
20591 # define getpagesize() EXEC_PAGESIZE
20592 # else /* no EXEC_PAGESIZE */
20594 # define getpagesize() NBPG * CLSIZE
20597 # endif /* no CLSIZE */
20598 # else /* no NBPG */
20600 # define getpagesize() NBPC
20601 # else /* no NBPC */
20603 # define getpagesize() PAGESIZE
20604 # endif /* PAGESIZE */
20605 # endif /* no NBPC */
20606 # endif /* no NBPG */
20607 # endif /* no EXEC_PAGESIZE */
20608 # else /* no HAVE_SYS_PARAM_H */
20609 # define getpagesize() 8192 /* punt totally */
20610 # endif /* no HAVE_SYS_PARAM_H */
20611 # endif /* no _SC_PAGESIZE */
20613 #endif /* no HAVE_GETPAGESIZE */
20618 char *data, *data2, *data3;
20622 pagesize = getpagesize ();
20624 /* First, make a file with some known garbage in it. */
20625 data = (char *) malloc (pagesize);
20628 for (i = 0; i < pagesize; ++i)
20629 *(data + i) = rand ();
20631 fd = creat ("conftest.mmap", 0600);
20634 if (write (fd, data, pagesize) != pagesize)
20638 /* Next, try to mmap the file at a fixed address which already has
20639 something else allocated at it. If we can, also make sure that
20640 we see the same garbage. */
20641 fd = open ("conftest.mmap", O_RDWR);
20644 data2 = (char *) malloc (2 * pagesize);
20647 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20648 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20649 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20651 for (i = 0; i < pagesize; ++i)
20652 if (*(data + i) != *(data2 + i))
20655 /* Finally, make sure that changes to the mapped area do not
20656 percolate back to the file as seen by read(). (This is a bug on
20657 some variants of i386 svr4.0.) */
20658 for (i = 0; i < pagesize; ++i)
20659 *(data2 + i) = *(data2 + i) + 1;
20660 data3 = (char *) malloc (pagesize);
20663 if (read (fd, data3, pagesize) != pagesize)
20665 for (i = 0; i < pagesize; ++i)
20666 if (*(data + i) != *(data3 + i))
20672 rm -f conftest$ac_exeext
20673 if { (ac_try="$ac_link"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_link") 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20683 { (case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_try") 2>&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; }; then
20692 ac_cv_func_mmap_fixed_mapped=yes
20694 echo "$as_me: program exited with status $ac_status" >&5
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ( exit $ac_status )
20699 ac_cv_func_mmap_fixed_mapped=no
20701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20706 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20707 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20708 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20710 cat >>confdefs.h <<\_ACEOF
20711 #define HAVE_MMAP 1
20715 rm -f conftest.mmap
20717 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20718 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20719 if test "${ac_cv_func_mmap_file+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 ac_cpp='$CPP $CPPFLAGS'
20724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20728 if test "$cross_compiling" = yes; then
20729 ac_cv_func_mmap_file=no
20731 cat >conftest.$ac_ext <<_ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h. */
20739 #include <sys/types.h>
20740 #include <sys/mman.h>
20748 fd = creat ("foo",0777);
20749 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20751 return (fd != (int) MAP_FAILED);
20756 rm -f conftest$ac_exeext
20757 if { (ac_try="$ac_link"
20758 case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763 (eval "$ac_link") 2>&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20767 { (case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_try") 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 ac_cv_func_mmap_file=yes
20778 echo "$as_me: program exited with status $ac_status" >&5
20779 echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20782 ( exit $ac_status )
20783 ac_cv_func_mmap_file=no
20785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20790 ac_cpp='$CPP $CPPFLAGS'
20791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20797 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20798 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20799 if test "$ac_cv_func_mmap_file" = yes; then
20801 cat >>confdefs.h <<\_ACEOF
20802 #define HAVE_MMAP_FILE
20809 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20810 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20811 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 if test "$llvm_cv_os_type" = "Interix" ; then
20815 ac_cv_need_dev_zero_for_mmap=yes
20817 ac_cv_need_dev_zero_for_mmap=no
20821 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20822 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20823 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20825 cat >>confdefs.h <<\_ACEOF
20826 #define NEED_DEV_ZERO_FOR_MMAP 1
20831 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20833 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20834 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20836 if test "$ac_cv_func_mmap_file" = "no"
20838 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20839 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20843 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20844 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20846 ac_cpp='$CXXCPP $CPPFLAGS'
20847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20851 cat >conftest.$ac_ext <<_ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20858 volatile unsigned long val = 1;
20859 __sync_synchronize();
20860 __sync_val_compare_and_swap(&val, 1, 0);
20861 __sync_add_and_fetch(&val, 1);
20862 __sync_sub_and_fetch(&val, 1);
20867 rm -f conftest.$ac_objext conftest$ac_exeext
20868 if { (ac_try="$ac_link"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_link") 2>conftest.er1
20876 grep -v '^ *+' conftest.er1 >conftest.err
20878 cat conftest.err >&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } &&
20881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20882 { (case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_try") 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; } &&
20891 { ac_try='test -s conftest$ac_exeext'
20892 { (case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_try") 2>&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; }; then
20902 ac_cpp='$CPP $CPPFLAGS'
20903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20907 { echo "$as_me:$LINENO: result: yes" >&5
20908 echo "${ECHO_T}yes" >&6; }
20910 cat >>confdefs.h <<\_ACEOF
20911 #define LLVM_HAS_ATOMICS 1
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 { echo "$as_me:$LINENO: result: no" >&5
20919 echo "${ECHO_T}no" >&6; }
20921 cat >>confdefs.h <<\_ACEOF
20922 #define LLVM_HAS_ATOMICS 0
20925 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20926 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20929 rm -f core conftest.err conftest.$ac_objext \
20930 conftest$ac_exeext conftest.$ac_ext
20933 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20934 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20935 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20936 if test "${llvm_cv_linux_mixed+set}" = set; then
20937 echo $ECHO_N "(cached) $ECHO_C" >&6
20940 ac_cpp='$CPP $CPPFLAGS'
20941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20945 cat >conftest.$ac_ext <<_ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20952 error: Not x86-64 even if uname says so!
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_compile") 2>conftest.er1
20972 grep -v '^ *+' conftest.er1 >conftest.err
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20978 { (case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_try") 2>&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest.$ac_objext'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 llvm_cv_linux_mixed=no
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 llvm_cv_linux_mixed=yes
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 ac_cpp='$CPP $CPPFLAGS'
21008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21015 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21017 if test "$llvm_cv_linux_mixed" = "yes"; then
21018 llvm_cv_target_arch="x86"
21024 for ac_func in __dso_handle
21026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 cat >conftest.$ac_ext <<_ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21040 #define $ac_func innocuous_$ac_func
21042 /* System header to define __stub macros and hopefully few prototypes,
21043 which can conflict with char $ac_func (); below.
21044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21045 <limits.h> exists even on freestanding compilers. */
21048 # include <limits.h>
21050 # include <assert.h>
21055 /* Override any GCC internal prototype to avoid an error.
21056 Use char because int might match the return type of a GCC
21057 builtin and then its argument prototype would still apply. */
21062 /* The GNU C library defines this for functions which it implements
21063 to always fail with ENOSYS. Some functions are actually named
21064 something starting with __ and the normal name is an alias. */
21065 #if defined __stub_$ac_func || defined __stub___$ac_func
21072 return $ac_func ();
21077 rm -f conftest.$ac_objext conftest$ac_exeext
21078 if { (ac_try="$ac_link"
21079 case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_link") 2>conftest.er1
21086 grep -v '^ *+' conftest.er1 >conftest.err
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
21091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21092 { (case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_try") 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; } &&
21101 { ac_try='test -s conftest$ac_exeext'
21102 { (case "(($ac_try" in
21103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104 *) ac_try_echo=$ac_try;;
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107 (eval "$ac_try") 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; }; then
21111 eval "$as_ac_var=yes"
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 eval "$as_ac_var=no"
21119 rm -f core conftest.err conftest.$ac_objext \
21120 conftest$ac_exeext conftest.$ac_ext
21122 ac_res=`eval echo '${'$as_ac_var'}'`
21123 { echo "$as_me:$LINENO: result: $ac_res" >&5
21124 echo "${ECHO_T}$ac_res" >&6; }
21125 if test `eval echo '${'$as_ac_var'}'` = yes; then
21126 cat >>confdefs.h <<_ACEOF
21127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21134 SHLIBEXT=$libltdl_cv_shlibext
21137 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21140 if test "${prefix}" = "NONE" ; then
21141 prefix="/usr/local"
21143 eval LLVM_PREFIX="${prefix}";
21144 eval LLVM_BINDIR="${prefix}/bin";
21145 eval LLVM_LIBDIR="${prefix}/lib";
21146 eval LLVM_DATADIR="${prefix}/share/llvm";
21147 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21148 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21149 eval LLVM_INCLUDEDIR="${prefix}/include";
21150 eval LLVM_INFODIR="${prefix}/info";
21151 eval LLVM_MANDIR="${prefix}/man";
21152 LLVM_CONFIGTIME=`date`
21164 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21165 LLVM_CONFIGTIME="(timestamp not enabled)"
21169 cat >>confdefs.h <<_ACEOF
21170 #define LLVM_PREFIX "$LLVM_PREFIX"
21174 cat >>confdefs.h <<_ACEOF
21175 #define LLVM_BINDIR "$LLVM_BINDIR"
21179 cat >>confdefs.h <<_ACEOF
21180 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21184 cat >>confdefs.h <<_ACEOF
21185 #define LLVM_DATADIR "$LLVM_DATADIR"
21189 cat >>confdefs.h <<_ACEOF
21190 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21194 cat >>confdefs.h <<_ACEOF
21195 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21199 cat >>confdefs.h <<_ACEOF
21200 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21204 cat >>confdefs.h <<_ACEOF
21205 #define LLVM_INFODIR "$LLVM_INFODIR"
21209 cat >>confdefs.h <<_ACEOF
21210 #define LLVM_MANDIR "$LLVM_MANDIR"
21214 cat >>confdefs.h <<_ACEOF
21215 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21219 cat >>confdefs.h <<_ACEOF
21220 #define LLVM_HOSTTRIPLE "$host"
21224 cat >>confdefs.h <<_ACEOF
21225 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21229 if test "$BINDINGS_TO_BUILD" = auto ; then
21230 BINDINGS_TO_BUILD=""
21231 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21232 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21235 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21241 binding_prereqs_failed=0
21242 for a_binding in $BINDINGS_TO_BUILD ; do
21243 case "$a_binding" in
21245 if test "x$OCAMLC" = x ; then
21246 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21247 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21248 binding_prereqs_failed=1
21250 if test "x$OCAMLDEP" = x ; then
21251 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21252 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21253 binding_prereqs_failed=1
21255 if test "x$OCAMLOPT" = x ; then
21256 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21257 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21259 if test "x$with_ocaml_libdir" != xauto ; then
21260 OCAML_LIBDIR=$with_ocaml_libdir
21263 ocaml_stdlib="`"$OCAMLC" -where`"
21264 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21266 # ocaml stdlib is beneath our prefix; use stdlib
21267 OCAML_LIBDIR=$ocaml_stdlib
21270 # ocaml stdlib is outside our prefix; use libdir/ocaml
21271 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21278 if test "$binding_prereqs_failed" = 1 ; then
21279 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21280 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21281 { (exit 1); exit 1; }; }
21284 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21285 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21286 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21287 echo $ECHO_N "(cached) $ECHO_C" >&6
21290 ac_cpp='$CXXCPP $CPPFLAGS'
21291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21295 oldcxxflags="$CXXFLAGS"
21296 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21297 cat >conftest.$ac_ext <<_ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21312 rm -f conftest.$ac_objext
21313 if { (ac_try="$ac_compile"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_compile") 2>conftest.er1
21321 grep -v '^ *+' conftest.er1 >conftest.err
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } &&
21326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21327 { (case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_try") 2>&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } &&
21336 { ac_try='test -s conftest.$ac_objext'
21337 { (case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_try") 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21346 llvm_cv_cxx_visibility_inlines_hidden=yes
21348 echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 llvm_cv_cxx_visibility_inlines_hidden=no
21354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21355 CXXFLAGS="$oldcxxflags"
21357 ac_cpp='$CPP $CPPFLAGS'
21358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21364 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21365 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21366 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21367 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21370 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21375 if test "$llvm_cv_link_use_r" = "yes" ; then
21382 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21383 RDYNAMIC="-Wl,-export-dynamic"
21390 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21397 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21399 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21401 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21403 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21405 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21408 ac_config_files="$ac_config_files Makefile.config"
21411 ac_config_files="$ac_config_files llvm.spec"
21414 ac_config_files="$ac_config_files docs/doxygen.cfg"
21417 if test "${clang_src_root}" = ""; then
21418 clang_src_root="$srcdir/tools/clang"
21420 if test -f ${clang_src_root}/README.txt; then
21421 configh="include/clang/Config/config.h"
21422 doxy="docs/doxygen.cfg"
21423 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21425 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21429 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21432 test "x$program_prefix" = "xNONE" && program_prefix=""
21436 ac_config_commands="$ac_config_commands setup"
21438 ac_config_commands="$ac_config_commands Makefile"
21441 ac_config_commands="$ac_config_commands Makefile.common"
21444 ac_config_commands="$ac_config_commands examples/Makefile"
21447 ac_config_commands="$ac_config_commands lib/Makefile"
21450 ac_config_commands="$ac_config_commands runtime/Makefile"
21453 ac_config_commands="$ac_config_commands test/Makefile"
21456 ac_config_commands="$ac_config_commands test/Makefile.tests"
21459 ac_config_commands="$ac_config_commands unittests/Makefile"
21462 ac_config_commands="$ac_config_commands tools/Makefile"
21465 ac_config_commands="$ac_config_commands utils/Makefile"
21468 ac_config_commands="$ac_config_commands projects/Makefile"
21471 ac_config_commands="$ac_config_commands bindings/Makefile"
21474 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21478 cat >confcache <<\_ACEOF
21479 # This file is a shell script that caches the results of configure
21480 # tests run on this system so they can be shared between configure
21481 # scripts and configure runs, see configure's option --config-cache.
21482 # It is not useful on other systems. If it contains results you don't
21483 # want to keep, you may remove or edit it.
21485 # config.status only pays attention to the cache file if you give it
21486 # the --recheck option to rerun configure.
21488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21490 # following values.
21494 # The following way of writing the cache mishandles newlines in values,
21495 # but we know of no workaround that is simple, portable, and efficient.
21496 # So, we kill variables containing newlines.
21497 # Ultrix sh set writes to stderr and can't be redirected directly,
21498 # and sets the high bit in the cache file unless we assign to the vars.
21500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21501 eval ac_val=\$$ac_var
21505 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21506 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21509 _ | IFS | as_nl) ;; #(
21510 *) $as_unset $ac_var ;;
21516 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21517 *${as_nl}ac_space=\ *)
21518 # `set' does not quote correctly, so add quotes (double-quote
21519 # substitution turns \\\\ into \\, and sed turns \\ into \).
21522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21525 # `set' quotes correctly as required by POSIX, so do not add quotes.
21526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21537 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21539 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21540 if test -w "$cache_file"; then
21541 test "x$cache_file" != "x/dev/null" &&
21542 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21543 echo "$as_me: updating cache $cache_file" >&6;}
21544 cat confcache >$cache_file
21546 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21547 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21553 # Let make expand exec_prefix.
21554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21556 DEFS=-DHAVE_CONFIG_H
21560 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21561 # 1. Remove the extension, and $U if already installed.
21562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21563 ac_i=`echo "$ac_i" | sed "$ac_script"`
21564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21565 # will be set to the directory where LIBOBJS objects are built.
21566 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21567 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21569 LIBOBJS=$ac_libobjs
21571 LTLIBOBJS=$ac_ltlibobjs
21574 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21575 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21576 Usually this means the macro was only invoked conditionally." >&5
21577 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21578 Usually this means the macro was only invoked conditionally." >&2;}
21579 { (exit 1); exit 1; }; }
21581 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21582 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21583 Usually this means the macro was only invoked conditionally." >&5
21584 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21585 Usually this means the macro was only invoked conditionally." >&2;}
21586 { (exit 1); exit 1; }; }
21589 : ${CONFIG_STATUS=./config.status}
21590 ac_clean_files_save=$ac_clean_files
21591 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21592 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21593 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21594 cat >$CONFIG_STATUS <<_ACEOF
21596 # Generated by $as_me.
21597 # Run this file to recreate the current configuration.
21598 # Compiler output produced by configure, useful for debugging
21599 # configure, is in config.log if it exists.
21602 ac_cs_recheck=false
21604 SHELL=\${CONFIG_SHELL-$SHELL}
21607 cat >>$CONFIG_STATUS <<\_ACEOF
21608 ## --------------------- ##
21609 ## M4sh Initialization. ##
21610 ## --------------------- ##
21612 # Be Bourne compatible
21613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21616 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21617 # is contrary to our usage. Disable this feature.
21618 alias -g '${1+"$@"}'='"$@"'
21619 setopt NO_GLOB_SUBST
21621 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21623 BIN_SH=xpg4; export BIN_SH # for Tru64
21624 DUALCASE=1; export DUALCASE # for MKS sh
21628 # Avoid depending upon Character Ranges.
21629 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21630 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21631 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21632 as_cr_digits='0123456789'
21633 as_cr_alnum=$as_cr_Letters$as_cr_digits
21635 # The user is always right.
21636 if test "${PATH_SEPARATOR+set}" != set; then
21637 echo "#! /bin/sh" >conf$$.sh
21638 echo "exit 0" >>conf$$.sh
21640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21648 # Support unset when possible.
21649 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21657 # We need space, tab and new line, in precisely that order. Quoting is
21658 # there to prevent editors from complaining about space-tab.
21659 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21660 # splitting by setting IFS to empty value.)
21665 # Find who we are. Look in the path if we contain no directory separator.
21667 *[\\/]* ) as_myself=$0 ;;
21668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21669 for as_dir in $PATH
21672 test -z "$as_dir" && as_dir=.
21673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21679 # We did not find ourselves, most probably we were run as `sh COMMAND'
21680 # in which case we are not to be found in the path.
21681 if test "x$as_myself" = x; then
21684 if test ! -f "$as_myself"; then
21685 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21686 { (exit 1); exit 1; }
21689 # Work around bugs in pre-3.0 UWIN ksh.
21690 for as_var in ENV MAIL MAILPATH
21691 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21699 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21700 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21701 LC_TELEPHONE LC_TIME
21703 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21704 eval $as_var=C; export $as_var
21706 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21710 # Required to use basename.
21711 if expr a : '\(a\)' >/dev/null 2>&1 &&
21712 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21718 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21719 as_basename=basename
21725 # Name of the executable.
21726 as_me=`$as_basename -- "$0" ||
21727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21728 X"$0" : 'X\(//\)$' \| \
21729 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21731 sed '/^.*\/\([^/][^/]*\)\/*$/{
21750 as_lineno_1=$LINENO
21751 as_lineno_2=$LINENO
21752 test "x$as_lineno_1" != "x$as_lineno_2" &&
21753 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21755 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21756 # uniformly replaced by the line number. The first 'sed' inserts a
21757 # line-number line after each line using $LINENO; the second 'sed'
21758 # does the real work. The second script uses 'N' to pair each
21759 # line-number line with the line containing $LINENO, and appends
21760 # trailing '-' during substitution so that $LINENO is not a special
21761 # case at line end.
21762 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21763 # scripts with optimization help from Paolo Bonzini. Blame Lee
21764 # E. McMahon (1931-1989) for sed's syntax. :-)
21776 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21779 ' >$as_me.lineno &&
21780 chmod +x "$as_me.lineno" ||
21781 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21782 { (exit 1); exit 1; }; }
21784 # Don't try to exec as it changes $[0], causing all sort of problems
21785 # (the dirname of $[0] is not the place where we might find the
21786 # original and so on. Autoconf is especially sensitive to this).
21787 . "./$as_me.lineno"
21788 # Exit status is that of the last command.
21793 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21799 ECHO_C= ECHO_N= ECHO_T=
21800 case `echo -n x` in
21802 case `echo 'x\c'` in
21803 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21810 if expr a : '\(a\)' >/dev/null 2>&1 &&
21811 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21817 rm -f conf$$ conf$$.exe conf$$.file
21818 if test -d conf$$.dir; then
21819 rm -f conf$$.dir/conf$$.file
21825 if ln -s conf$$.file conf$$ 2>/dev/null; then
21827 # ... but there are two gotchas:
21828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21830 # In both cases, we have to default to `cp -p'.
21831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21833 elif ln conf$$.file conf$$ 2>/dev/null; then
21838 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21839 rmdir conf$$.dir 2>/dev/null
21841 if mkdir -p . 2>/dev/null; then
21844 test -d ./-p && rmdir ./-p
21848 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21849 # systems may use methods other than mode bits to determine executability.
21850 cat >conf$$.file <<_ASEOF
21854 chmod +x conf$$.file
21855 if test -x conf$$.file >/dev/null 2>&1; then
21856 as_executable_p="test -x"
21862 # Sed expression to map a string onto a valid CPP name.
21863 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21865 # Sed expression to map a string onto a valid variable name.
21866 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21871 # Save the log message, to keep $[0] and so on meaningful, and to
21872 # report actual input values of CONFIG_FILES etc. instead of their
21873 # values after options handling.
21875 This file was extended by LLVM $as_me 3.3svn, which was
21876 generated by GNU Autoconf 2.60. Invocation command line was
21878 CONFIG_FILES = $CONFIG_FILES
21879 CONFIG_HEADERS = $CONFIG_HEADERS
21880 CONFIG_LINKS = $CONFIG_LINKS
21881 CONFIG_COMMANDS = $CONFIG_COMMANDS
21884 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21889 cat >>$CONFIG_STATUS <<_ACEOF
21890 # Files that config.status was made for.
21891 config_files="$ac_config_files"
21892 config_headers="$ac_config_headers"
21893 config_commands="$ac_config_commands"
21897 cat >>$CONFIG_STATUS <<\_ACEOF
21899 \`$as_me' instantiates files from templates according to the
21900 current configuration.
21902 Usage: $0 [OPTIONS] [FILE]...
21904 -h, --help print this help, then exit
21905 -V, --version print version number, then exit
21906 -q, --quiet do not print progress messages
21907 -d, --debug don't remove temporary files
21908 --recheck update $as_me by reconfiguring in the same conditions
21909 --file=FILE[:TEMPLATE]
21910 instantiate the configuration file FILE
21911 --header=FILE[:TEMPLATE]
21912 instantiate the configuration header FILE
21914 Configuration files:
21917 Configuration headers:
21920 Configuration commands:
21923 Report bugs to <bug-autoconf@gnu.org>."
21926 cat >>$CONFIG_STATUS <<_ACEOF
21928 LLVM config.status 3.3svn
21929 configured by $0, generated by GNU Autoconf 2.60,
21930 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21932 Copyright (C) 2006 Free Software Foundation, Inc.
21933 This config.status script is free software; the Free Software Foundation
21934 gives unlimited permission to copy, distribute and modify it."
21941 cat >>$CONFIG_STATUS <<\_ACEOF
21942 # If no file are specified by the user, then we need to provide default
21943 # value. By we need to know if files were specified by the user.
21949 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21950 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21961 # Handling of the options.
21962 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21964 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21965 echo "$ac_cs_version"; exit ;;
21966 --debug | --debu | --deb | --de | --d | -d )
21968 --file | --fil | --fi | --f )
21970 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21971 ac_need_defaults=false;;
21972 --header | --heade | --head | --hea )
21974 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21975 ac_need_defaults=false;;
21977 # Conflict between --help and --header
21978 { echo "$as_me: error: ambiguous option: $1
21979 Try \`$0 --help' for more information." >&2
21980 { (exit 1); exit 1; }; };;
21981 --help | --hel | -h )
21982 echo "$ac_cs_usage"; exit ;;
21983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21984 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21987 # This is an error.
21988 -*) { echo "$as_me: error: unrecognized option: $1
21989 Try \`$0 --help' for more information." >&2
21990 { (exit 1); exit 1; }; } ;;
21992 *) ac_config_targets="$ac_config_targets $1"
21993 ac_need_defaults=false ;;
21999 ac_configure_extra_args=
22001 if $ac_cs_silent; then
22003 ac_configure_extra_args="$ac_configure_extra_args --silent"
22007 cat >>$CONFIG_STATUS <<_ACEOF
22008 if \$ac_cs_recheck; then
22009 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22010 CONFIG_SHELL=$SHELL
22011 export CONFIG_SHELL
22012 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22016 cat >>$CONFIG_STATUS <<\_ACEOF
22020 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22021 ## Running $as_me. ##
22027 cat >>$CONFIG_STATUS <<_ACEOF
22031 llvm_src="${srcdir}"
22035 cat >>$CONFIG_STATUS <<\_ACEOF
22037 # Handling of arguments.
22038 for ac_config_target in $ac_config_targets
22040 case $ac_config_target in
22041 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22042 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22043 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22044 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22045 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22046 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22047 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22048 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22049 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22050 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22051 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22052 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22053 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22054 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22055 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22056 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22057 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22058 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22059 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22060 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22061 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22062 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22063 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22064 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22065 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22066 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22067 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22069 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22070 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22071 { (exit 1); exit 1; }; };;
22076 # If the user did not use the arguments to specify the items to instantiate,
22077 # then the envvar interface is used. Set only those that are not.
22078 # We use the long form for the default assignment because of an extremely
22079 # bizarre bug on SunOS 4.1.3.
22080 if $ac_need_defaults; then
22081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22086 # Have a temporary directory for convenience. Make it in the build tree
22087 # simply because there is no reason against having it here, and in addition,
22088 # creating and moving files from /tmp can sometimes cause problems.
22089 # Hook for its removal unless debugging.
22090 # Note that there is a small window in which the directory will not be cleaned:
22091 # after its creation but before its name has been assigned to `$tmp'.
22095 trap 'exit_status=$?
22096 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22098 trap '{ (exit 1); exit 1; }' 1 2 13 15
22100 # Create a (secure) tmp directory for tmp files.
22103 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22104 test -n "$tmp" && test -d "$tmp"
22107 tmp=./conf$$-$RANDOM
22108 (umask 077 && mkdir "$tmp")
22111 echo "$me: cannot create a temporary directory in ." >&2
22112 { (exit 1); exit 1; }
22116 # Set up the sed scripts for CONFIG_FILES section.
22119 # No need to generate the scripts if there are no CONFIG_FILES.
22120 # This happens for instance when ./config.status config.h
22121 if test -n "$CONFIG_FILES"; then
22128 for ac_last_try in false false false false false :; do
22129 cat >conf$$subs.sed <<_ACEOF
22130 SHELL!$SHELL$ac_delim
22131 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22132 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22133 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22134 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22135 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22136 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22137 exec_prefix!$exec_prefix$ac_delim
22138 prefix!$prefix$ac_delim
22139 program_transform_name!$program_transform_name$ac_delim
22140 bindir!$bindir$ac_delim
22141 sbindir!$sbindir$ac_delim
22142 libexecdir!$libexecdir$ac_delim
22143 datarootdir!$datarootdir$ac_delim
22144 datadir!$datadir$ac_delim
22145 sysconfdir!$sysconfdir$ac_delim
22146 sharedstatedir!$sharedstatedir$ac_delim
22147 localstatedir!$localstatedir$ac_delim
22148 includedir!$includedir$ac_delim
22149 oldincludedir!$oldincludedir$ac_delim
22150 docdir!$docdir$ac_delim
22151 infodir!$infodir$ac_delim
22152 htmldir!$htmldir$ac_delim
22153 dvidir!$dvidir$ac_delim
22154 pdfdir!$pdfdir$ac_delim
22155 psdir!$psdir$ac_delim
22156 libdir!$libdir$ac_delim
22157 localedir!$localedir$ac_delim
22158 mandir!$mandir$ac_delim
22159 DEFS!$DEFS$ac_delim
22160 ECHO_C!$ECHO_C$ac_delim
22161 ECHO_N!$ECHO_N$ac_delim
22162 ECHO_T!$ECHO_T$ac_delim
22163 LIBS!$LIBS$ac_delim
22164 build_alias!$build_alias$ac_delim
22165 host_alias!$host_alias$ac_delim
22166 target_alias!$target_alias$ac_delim
22167 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22169 CFLAGS!$CFLAGS$ac_delim
22170 LDFLAGS!$LDFLAGS$ac_delim
22171 CPPFLAGS!$CPPFLAGS$ac_delim
22172 ac_ct_CC!$ac_ct_CC$ac_delim
22173 EXEEXT!$EXEEXT$ac_delim
22174 OBJEXT!$OBJEXT$ac_delim
22176 CXXFLAGS!$CXXFLAGS$ac_delim
22177 ac_ct_CXX!$ac_ct_CXX$ac_delim
22179 subdirs!$subdirs$ac_delim
22180 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22181 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22182 build!$build$ac_delim
22183 build_cpu!$build_cpu$ac_delim
22184 build_vendor!$build_vendor$ac_delim
22185 build_os!$build_os$ac_delim
22186 host!$host$ac_delim
22187 host_cpu!$host_cpu$ac_delim
22188 host_vendor!$host_vendor$ac_delim
22189 host_os!$host_os$ac_delim
22190 target!$target$ac_delim
22191 target_cpu!$target_cpu$ac_delim
22192 target_vendor!$target_vendor$ac_delim
22193 target_os!$target_os$ac_delim
22195 HOST_OS!$HOST_OS$ac_delim
22196 TARGET_OS!$TARGET_OS$ac_delim
22197 LINKALL!$LINKALL$ac_delim
22198 NOLINKALL!$NOLINKALL$ac_delim
22199 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22200 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22201 ARCH!$ARCH$ac_delim
22202 HOST_ARCH!$HOST_ARCH$ac_delim
22203 ENDIAN!$ENDIAN$ac_delim
22204 GREP!$GREP$ac_delim
22205 EGREP!$EGREP$ac_delim
22206 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22207 BUILD_CC!$BUILD_CC$ac_delim
22208 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22209 BUILD_CXX!$BUILD_CXX$ac_delim
22210 CVSBUILD!$CVSBUILD$ac_delim
22211 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22212 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22213 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22214 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22215 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22216 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22217 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22218 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22219 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22220 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22221 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22222 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22223 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22224 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22226 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22229 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22231 elif $ac_last_try; then
22232 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22233 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22234 { (exit 1); exit 1; }; }
22236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22240 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22241 if test -n "$ac_eof"; then
22242 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22243 ac_eof=`expr $ac_eof + 1`
22246 cat >>$CONFIG_STATUS <<_ACEOF
22247 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22251 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22252 s/^/s,@/; s/!/@,|#_!!_#|/
22255 s/'"$ac_delim"'$/,g/; t
22257 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22258 ' >>$CONFIG_STATUS <conf$$subs.sed
22259 rm -f conf$$subs.sed
22260 cat >>$CONFIG_STATUS <<_ACEOF
22266 for ac_last_try in false false false false false :; do
22267 cat >conf$$subs.sed <<_ACEOF
22268 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22269 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22270 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22271 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22272 ENABLE_PIC!$ENABLE_PIC$ac_delim
22273 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22274 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22275 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22276 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22277 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22278 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22279 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22280 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22281 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22282 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22283 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22284 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22285 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22286 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22287 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22289 ifGNUmake!$ifGNUmake$ac_delim
22290 LN_S!$LN_S$ac_delim
22293 DATE!$DATE$ac_delim
22294 FIND!$FIND$ac_delim
22295 MKDIR!$MKDIR$ac_delim
22297 RANLIB!$RANLIB$ac_delim
22302 BINPWD!$BINPWD$ac_delim
22303 GRAPHVIZ!$GRAPHVIZ$ac_delim
22306 NEATO!$NEATO$ac_delim
22307 TWOPI!$TWOPI$ac_delim
22308 CIRCO!$CIRCO$ac_delim
22310 DOTTY!$DOTTY$ac_delim
22311 XDOT_PY!$XDOT_PY$ac_delim
22312 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22313 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22314 INSTALL_DATA!$INSTALL_DATA$ac_delim
22315 BZIP2!$BZIP2$ac_delim
22317 DOXYGEN!$DOXYGEN$ac_delim
22318 GROFF!$GROFF$ac_delim
22319 GZIPBIN!$GZIPBIN$ac_delim
22320 PDFROFF!$PDFROFF$ac_delim
22322 OCAMLC!$OCAMLC$ac_delim
22323 OCAMLOPT!$OCAMLOPT$ac_delim
22324 OCAMLDEP!$OCAMLDEP$ac_delim
22325 OCAMLDOC!$OCAMLDOC$ac_delim
22327 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22328 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22329 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22330 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22331 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22332 LIBADD_DL!$LIBADD_DL$ac_delim
22333 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22334 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22335 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22336 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22337 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22338 USE_UDIS86!$USE_UDIS86$ac_delim
22339 USE_OPROFILE!$USE_OPROFILE$ac_delim
22340 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22341 XML2CONFIG!$XML2CONFIG$ac_delim
22342 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22343 LIBXML2_INC!$LIBXML2_INC$ac_delim
22344 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22345 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22346 MMAP_FILE!$MMAP_FILE$ac_delim
22347 SHLIBEXT!$SHLIBEXT$ac_delim
22348 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22349 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22350 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22351 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22352 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22353 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22354 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22355 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22356 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22357 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22358 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22359 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22360 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22361 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22362 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22363 RPATH!$RPATH$ac_delim
22364 RDYNAMIC!$RDYNAMIC$ac_delim
22367 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22369 elif $ac_last_try; then
22370 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22371 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22372 { (exit 1); exit 1; }; }
22374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22378 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22379 if test -n "$ac_eof"; then
22380 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22381 ac_eof=`expr $ac_eof + 1`
22384 cat >>$CONFIG_STATUS <<_ACEOF
22385 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22389 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22390 s/^/s,@/; s/!/@,|#_!!_#|/
22393 s/'"$ac_delim"'$/,g/; t
22395 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22396 ' >>$CONFIG_STATUS <conf$$subs.sed
22397 rm -f conf$$subs.sed
22398 cat >>$CONFIG_STATUS <<_ACEOF
22404 for ac_last_try in false false false false false :; do
22405 cat >conf$$subs.sed <<_ACEOF
22406 program_prefix!$program_prefix$ac_delim
22407 LIBOBJS!$LIBOBJS$ac_delim
22408 LTLIBOBJS!$LTLIBOBJS$ac_delim
22411 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
22413 elif $ac_last_try; then
22414 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22415 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22416 { (exit 1); exit 1; }; }
22418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22422 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22423 if test -n "$ac_eof"; then
22424 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22425 ac_eof=`expr $ac_eof + 1`
22428 cat >>$CONFIG_STATUS <<_ACEOF
22429 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22433 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22434 s/^/s,@/; s/!/@,|#_!!_#|/
22437 s/'"$ac_delim"'$/,g/; t
22439 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22440 ' >>$CONFIG_STATUS <conf$$subs.sed
22441 rm -f conf$$subs.sed
22442 cat >>$CONFIG_STATUS <<_ACEOF
22449 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22450 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22451 # trailing colons and then remove the whole line if VPATH becomes empty
22452 # (actually we leave an empty line to preserve line numbers).
22453 if test "x$srcdir" = x.; then
22454 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22455 s/:*\$(srcdir):*/:/
22456 s/:*\${srcdir}:*/:/
22458 s/^\([^=]*=[ ]*\):*/\1/
22464 cat >>$CONFIG_STATUS <<\_ACEOF
22465 fi # test -n "$CONFIG_FILES"
22468 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22471 :[FHLC]) ac_mode=$ac_tag; continue;;
22473 case $ac_mode$ac_tag in
22475 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22476 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22477 { (exit 1); exit 1; }; };;
22478 :[FH]-) ac_tag=-:-;;
22479 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22496 -) ac_f="$tmp/stdin";;
22497 *) # Look for the file first in the build tree, then in the source tree
22498 # (if the path is not absolute). The absolute path cannot be DOS-style,
22499 # because $ac_f cannot contain `:'.
22503 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22505 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22506 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22507 { (exit 1); exit 1; }; };;
22509 ac_file_inputs="$ac_file_inputs $ac_f"
22512 # Let's still pretend it is `configure' which instantiates (i.e., don't
22513 # use $as_me), people would be surprised to read:
22514 # /* config.h. Generated by config.status. */
22515 configure_input="Generated from "`IFS=:
22516 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22517 if test x"$ac_file" != x-; then
22518 configure_input="$ac_file. $configure_input"
22519 { echo "$as_me:$LINENO: creating $ac_file" >&5
22520 echo "$as_me: creating $ac_file" >&6;}
22524 *:-:* | *:-) cat >"$tmp/stdin";;
22529 ac_dir=`$as_dirname -- "$ac_file" ||
22530 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22531 X"$ac_file" : 'X\(//\)[^/]' \| \
22532 X"$ac_file" : 'X\(//\)$' \| \
22533 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22539 /^X\(\/\/\)[^/].*/{
22554 -*) as_dir=./$as_dir;;
22556 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22560 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22561 *) as_qdir=$as_dir;;
22563 as_dirs="'$as_qdir' $as_dirs"
22564 as_dir=`$as_dirname -- "$as_dir" ||
22565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22566 X"$as_dir" : 'X\(//\)[^/]' \| \
22567 X"$as_dir" : 'X\(//\)$' \| \
22568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22574 /^X\(\/\/\)[^/].*/{
22587 test -d "$as_dir" && break
22589 test -z "$as_dirs" || eval "mkdir $as_dirs"
22590 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22591 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22592 { (exit 1); exit 1; }; }; }
22596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22598 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22599 # A ".." for each directory in $ac_dir_suffix.
22600 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22601 case $ac_top_builddir_sub in
22602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22606 ac_abs_top_builddir=$ac_pwd
22607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22608 # for backward compatibility:
22609 ac_top_builddir=$ac_top_build_prefix
22612 .) # We are building in place.
22614 ac_top_srcdir=$ac_top_builddir_sub
22615 ac_abs_top_srcdir=$ac_pwd ;;
22616 [\\/]* | ?:[\\/]* ) # Absolute name.
22617 ac_srcdir=$srcdir$ac_dir_suffix;
22618 ac_top_srcdir=$srcdir
22619 ac_abs_top_srcdir=$srcdir ;;
22620 *) # Relative name.
22621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22622 ac_top_srcdir=$ac_top_build_prefix$srcdir
22623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22635 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22636 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22640 cat >>$CONFIG_STATUS <<\_ACEOF
22641 # If the template does not know about datarootdir, expand it.
22642 # FIXME: This hack should be removed a few years after 2.60.
22643 ac_datarootdir_hack=; ac_datarootdir_seen=
22645 case `sed -n '/datarootdir/ {
22654 ' $ac_file_inputs` in
22655 *datarootdir*) ac_datarootdir_seen=yes;;
22656 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22657 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22658 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22660 cat >>$CONFIG_STATUS <<_ACEOF
22661 ac_datarootdir_hack='
22662 s&@datadir@&$datadir&g
22663 s&@docdir@&$docdir&g
22664 s&@infodir@&$infodir&g
22665 s&@localedir@&$localedir&g
22666 s&@mandir@&$mandir&g
22667 s&\\\${datarootdir}&$datarootdir&g' ;;
22671 # Neutralize VPATH when `$srcdir' = `.'.
22672 # Shell code in configure.ac might set extrasub.
22673 # FIXME: do we really want to maintain this feature?
22674 cat >>$CONFIG_STATUS <<_ACEOF
22678 cat >>$CONFIG_STATUS <<\_ACEOF
22680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22681 s&@configure_input@&$configure_input&;t t
22682 s&@top_builddir@&$ac_top_builddir_sub&;t t
22683 s&@srcdir@&$ac_srcdir&;t t
22684 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22685 s&@top_srcdir@&$ac_top_srcdir&;t t
22686 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22687 s&@builddir@&$ac_builddir&;t t
22688 s&@abs_builddir@&$ac_abs_builddir&;t t
22689 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22690 s&@INSTALL@&$ac_INSTALL&;t t
22691 $ac_datarootdir_hack
22692 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22694 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22695 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22696 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22697 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22698 which seems to be undefined. Please make sure it is defined." >&5
22699 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22700 which seems to be undefined. Please make sure it is defined." >&2;}
22704 -) cat "$tmp/out"; rm -f "$tmp/out";;
22705 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22714 # Transform confdefs.h into a sed script `conftest.defines', that
22715 # substitutes the proper values into config.h.in to produce config.h.
22716 rm -f conftest.defines conftest.tail
22717 # First, append a space to every undef/define line, to ease matching.
22718 echo 's/$/ /' >conftest.defines
22719 # Then, protect against being on the right side of a sed subst, or in
22720 # an unquoted here document, in config.status. If some macros were
22721 # called several times there might be several #defines for the same
22722 # symbol, which is useless. But do not sort them, since the last
22723 # AC_DEFINE must be honored.
22724 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22725 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22726 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22727 # PARAMS is the parameter list in the macro definition--in most cases, it's
22728 # just an empty string.
22729 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22730 ac_dB='\\)[ (].*,\\1define\\2'
22738 s/^[ ]*#[ ]*define[ ][ ]*//
22743 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22744 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22745 ' >>conftest.defines
22747 # Remove the space that was appended to ease matching.
22748 # Then replace #undef with comments. This is necessary, for
22749 # example, in the case of _POSIX_SOURCE, which is predefined and required
22750 # on some systems where configure will not decide to define it.
22751 # (The regexp can be short, since the line contains either #define or #undef.)
22753 s,^[ #]*u.*,/* & */,' >>conftest.defines
22755 # Break up conftest.defines:
22756 ac_max_sed_lines=50
22758 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22759 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22760 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22762 ac_in='$ac_file_inputs'
22763 ac_out='"$tmp/out1"'
22764 ac_nxt='"$tmp/out2"'
22768 # Write a here document:
22769 cat >>$CONFIG_STATUS <<_ACEOF
22770 # First, check the format of the line:
22771 cat >"\$tmp/defines.sed" <<\\CEOF
22772 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22773 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22777 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22779 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22780 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22781 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22782 grep . conftest.tail >/dev/null || break
22783 rm -f conftest.defines
22784 mv conftest.tail conftest.defines
22786 rm -f conftest.defines conftest.tail
22788 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22789 cat >>$CONFIG_STATUS <<\_ACEOF
22790 if test x"$ac_file" != x-; then
22791 echo "/* $configure_input */" >"$tmp/config.h"
22792 cat "$ac_result" >>"$tmp/config.h"
22793 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22794 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22795 echo "$as_me: $ac_file is unchanged" >&6;}
22798 mv "$tmp/config.h" $ac_file
22801 echo "/* $configure_input */"
22807 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22808 echo "$as_me: executing $ac_file commands" >&6;}
22813 case $ac_file$ac_mode in
22814 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22815 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22816 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22817 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22818 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22819 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22820 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22821 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22822 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22823 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22824 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22825 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22826 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22827 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22828 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22829 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22830 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22831 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22832 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22833 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22834 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22835 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22836 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22837 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22838 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22839 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22845 { (exit 0); exit 0; }
22847 chmod +x $CONFIG_STATUS
22848 ac_clean_files=$ac_clean_files_save
22851 # configure is writing to config.log, and then calls config.status.
22852 # config.status does its own redirection, appending to config.log.
22853 # Unfortunately, on DOS this fails, as config.log is still kept open
22854 # by configure, so config.status won't be able to write to it; its
22855 # output is simply discarded. So we exec the FD to /dev/null,
22856 # effectively closing config.log, so it can be properly (re)opened and
22857 # appended to by config.status. When coming back to configure, we
22858 # need to make the FD available again.
22859 if test "$no_create" != yes; then
22861 ac_config_status_args=
22862 test "$silent" = yes &&
22863 ac_config_status_args="$ac_config_status_args --quiet"
22865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22868 # would make configure fail if this is the last instruction.
22869 $ac_cs_success || { (exit 1); exit 1; }
22873 # CONFIG_SUBDIRS section.
22875 if test "$no_recursion" != yes; then
22877 # Remove --cache-file and --srcdir arguments so they do not pile up.
22878 ac_sub_configure_args=
22880 eval "set x $ac_configure_args"
22884 if test -n "$ac_prev"; then
22889 -cache-file | --cache-file | --cache-fil | --cache-fi \
22890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22891 ac_prev=cache_file ;;
22892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22896 --config-cache | -C)
22898 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22900 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22902 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22904 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22908 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22910 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22914 # Always prepend --prefix to ensure using the same prefix
22915 # in subdir configurations.
22916 ac_arg="--prefix=$prefix"
22918 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22920 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22923 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22925 # Do not complain, so a configure script can configure whichever
22926 # parts of a large source tree are present.
22927 test -d "$srcdir/$ac_dir" || continue
22929 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22930 echo "$as_me:$LINENO: $ac_msg" >&5
22934 -*) as_dir=./$as_dir;;
22936 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22940 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22941 *) as_qdir=$as_dir;;
22943 as_dirs="'$as_qdir' $as_dirs"
22944 as_dir=`$as_dirname -- "$as_dir" ||
22945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22946 X"$as_dir" : 'X\(//\)[^/]' \| \
22947 X"$as_dir" : 'X\(//\)$' \| \
22948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22954 /^X\(\/\/\)[^/].*/{
22967 test -d "$as_dir" && break
22969 test -z "$as_dirs" || eval "mkdir $as_dirs"
22970 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22971 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22972 { (exit 1); exit 1; }; }; }
22976 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22978 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22979 # A ".." for each directory in $ac_dir_suffix.
22980 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22981 case $ac_top_builddir_sub in
22982 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22983 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22986 ac_abs_top_builddir=$ac_pwd
22987 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22988 # for backward compatibility:
22989 ac_top_builddir=$ac_top_build_prefix
22992 .) # We are building in place.
22994 ac_top_srcdir=$ac_top_builddir_sub
22995 ac_abs_top_srcdir=$ac_pwd ;;
22996 [\\/]* | ?:[\\/]* ) # Absolute name.
22997 ac_srcdir=$srcdir$ac_dir_suffix;
22998 ac_top_srcdir=$srcdir
22999 ac_abs_top_srcdir=$srcdir ;;
23000 *) # Relative name.
23001 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23002 ac_top_srcdir=$ac_top_build_prefix$srcdir
23003 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23005 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23010 # Check for guested configure; otherwise get Cygnus style configure.
23011 if test -f "$ac_srcdir/configure.gnu"; then
23012 ac_sub_configure=$ac_srcdir/configure.gnu
23013 elif test -f "$ac_srcdir/configure"; then
23014 ac_sub_configure=$ac_srcdir/configure
23015 elif test -f "$ac_srcdir/configure.in"; then
23016 # This should be Cygnus configure.
23017 ac_sub_configure=$ac_aux_dir/configure
23019 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23020 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23024 # The recursion is here.
23025 if test -n "$ac_sub_configure"; then
23026 # Make the cache file name correct relative to the subdirectory.
23027 case $cache_file in
23028 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23029 *) # Relative name.
23030 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23033 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23034 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23035 # The eval makes quoting arguments work.
23036 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23037 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23038 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23039 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23040 { (exit 1); exit 1; }; }