[ARM] Fix up buildbots after r246360
[llvm-core.git] / configure
blobc895057ab07d82a5c8dedc508a2e0c1b1e179e71
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.8.0svn.
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-2015 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
19 emulate sh
20 NULLCMD=:
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+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
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
32 # PATH needs CR
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
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
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.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
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
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
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
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
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 \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
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 ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
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
219 else
220 as_candidate_shells=
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
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
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
242 emulate sh
243 NULLCMD=:
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+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
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
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
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
262 emulate sh
263 NULLCMD=:
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+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
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
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
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; }
331 _ASEOF
332 }; then
333 break
338 done
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
343 done
344 export CONFIG_SHELL
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 () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
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
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
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
432 # case at line end.
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. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
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).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
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 ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
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
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
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
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
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
543 # Name of the host.
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`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.8.0svn'
565 PACKAGE_STRING='LLVM 3.8.0svn'
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="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_VERSION_MAJOR
643 LLVM_VERSION_MINOR
644 LLVM_VERSION_PATCH
645 LLVM_VERSION_SUFFIX
646 LLVM_COPYRIGHT
648 CFLAGS
649 LDFLAGS
650 CPPFLAGS
651 ac_ct_CC
652 EXEEXT
653 OBJEXT
655 CXXFLAGS
656 ac_ct_CXX
658 CXX_COMPILER
659 subdirs
660 ENABLE_POLLY
661 LLVM_HAS_POLLY
662 build
663 build_cpu
664 build_vendor
665 build_os
666 host
667 host_cpu
668 host_vendor
669 host_os
670 target
671 target_cpu
672 target_vendor
673 target_os
675 HOST_OS
676 TARGET_OS
677 LINKALL
678 NOLINKALL
679 LLVM_ON_UNIX
680 LLVM_ON_WIN32
681 ARCH
682 LLVM_NATIVE_ARCH
683 HOST_ARCH
684 LLVM_CROSS_COMPILING
685 BUILD_CC
686 BUILD_EXEEXT
687 BUILD_CXX
688 CVSBUILD
689 ENABLE_LIBCPP
690 ENABLE_CXX1Y
691 ENABLE_SPLIT_DWARF
692 ENABLE_CLANG_ARCMT
693 CLANG_PLUGIN_SUPPORT
694 ENABLE_CLANG_STATIC_ANALYZER
695 ENABLE_OPTIMIZED
696 ENABLE_PROFILING
697 DISABLE_ASSERTIONS
698 ENABLE_WERROR
699 ENABLE_EXPENSIVE_CHECKS
700 EXPENSIVE_CHECKS
701 ENABLE_ABI_BREAKING_CHECKS
702 DEBUG_RUNTIME
703 DEBUG_SYMBOLS
704 KEEP_SYMBOLS
706 TARGET_HAS_JIT
707 TARGETS_WITH_JIT
708 ENABLE_DOCS
709 ENABLE_DOXYGEN
710 enable_searchengine
711 enable_external_search
712 enable_server_based_search
713 searchengine_url
714 extra_search_mappings
715 QHELPGENERATOR
716 llvm_doxygen_generate_qhp
717 llvm_doxygen_qch_filename
718 llvm_doxygen_qhp_namespace
719 llvm_doxygen_qhelpgenerator_path
720 llvm_doxygen_qhp_cust_filter_name
721 llvm_doxygen_qhp_cust_filter_attrs
722 clang_doxygen_generate_qhp
723 clang_doxygen_qch_filename
724 clang_doxygen_qhp_namespace
725 clang_doxygen_qhelpgenerator_path
726 clang_doxygen_qhp_cust_filter_name
727 clang_doxygen_qhp_cust_filter_attrs
728 LLVM_ENABLE_THREADS
729 ENABLE_PTHREADS
730 LLVM_ENABLE_ZLIB
731 ENABLE_PIC
732 ENABLE_SHARED
733 ENABLE_EMBED_STDCXX
734 ENABLE_TIMESTAMPS
735 ALL_TARGETS
736 TARGETS_TO_BUILD
737 LLVM_ENUM_TARGETS
738 LLVM_ENUM_ASM_PRINTERS
739 LLVM_ENUM_ASM_PARSERS
740 LLVM_ENUM_DISASSEMBLERS
741 OPTIMIZE_OPTION
742 EXTRA_OPTIONS
743 EXTRA_LD_OPTIONS
744 CLANG_SRC_ROOT
745 BINUTILS_INCDIR
746 ENABLE_TERMINFO
747 INTERNAL_PREFIX
748 ifGNUmake
749 LN_S
753 DATE
754 FIND
755 GREP
756 MKDIR
758 RANLIB
763 BINPWD
765 INSTALL_PROGRAM
766 INSTALL_SCRIPT
767 INSTALL_DATA
768 BZIP2
770 DOXYGEN
771 GROFF
772 GZIPBIN
773 PDFROFF
776 OCAMLFIND
778 HAVE_LINK_VERSION_SCRIPT
779 EGREP
780 NO_VARIADIC_MACROS
781 MISSING_FIELD_INITIALIZERS
782 COVERED_SWITCH_DEFAULT
783 NO_MAYBE_UNINITIALIZED
784 NO_UNINITIALIZED
785 NO_COMMENT
786 PYTHON
787 HAVE_DLOPEN
788 HAVE_TERMINFO
789 USE_OPROFILE
790 USE_INTEL_JITEVENTS
791 XML2CONFIG
792 LIBXML2_LIBS
793 LIBXML2_INC
794 HAVE_PTHREAD
795 HAVE_LIBZ
796 HUGE_VAL_SANITY
797 MMAP_FILE
798 SHLIBEXT
799 LLVM_PREFIX
800 LLVM_BINDIR
801 LLVM_DATADIR
802 LLVM_DOCSDIR
803 LLVM_ETCDIR
804 LLVM_INCLUDEDIR
805 LLVM_INFODIR
806 LLVM_MANDIR
807 LLVM_CONFIGTIME
808 BINDINGS_TO_BUILD
809 HAVE_OCAMLOPT
810 HAVE_OCAML_OUNIT
811 OCAML_LIBDIR
812 ENABLE_VISIBILITY_INLINES_HIDDEN
813 RPATH
814 RDYNAMIC
815 program_prefix
816 LIBOBJS
817 LTLIBOBJS'
818 ac_subst_files=''
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
823 CFLAGS
824 LDFLAGS
825 CPPFLAGS
827 CXXFLAGS
829 CPP'
830 ac_subdirs_all='projects/test-suite
831 projects/llvm-test
832 projects/poolalloc
833 projects/llvm-poolalloc
834 projects/safecode
835 tools/polly'
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
883 ac_prev=
884 ac_dashdash=
885 for ac_option
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
894 case $ac_option in
895 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *) ac_optarg=yes ;;
897 esac
899 # Accept the important Cygnus configure options, so we can diagnose typos.
901 case $ac_dashdash$ac_option in
903 ac_dashdash=yes ;;
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
922 --config-cache | -C)
923 cache_file=config.cache ;;
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
937 -disable-* | --disable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=no ;;
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
956 -enable-* | --enable-*)
957 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
960 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
961 { (exit 1); exit 1; }; }
962 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
963 eval enable_$ac_feature=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1153 -with-* | --with-*)
1154 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1157 { echo "$as_me: error: invalid package name: $ac_package" >&2
1158 { (exit 1); exit 1; }; }
1159 ac_package=`echo $ac_package| sed 's/-/_/g'`
1160 eval with_$ac_package=\$ac_optarg ;;
1162 -without-* | --without-*)
1163 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid package name: $ac_package" >&2
1167 { (exit 1); exit 1; }; }
1168 ac_package=`echo $ac_package | sed 's/-/_/g'`
1169 eval with_$ac_package=no ;;
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) { echo "$as_me: error: unrecognized option: $ac_option
1190 Try \`$0 --help' for more information." >&2
1191 { (exit 1); exit 1; }; }
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1198 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1199 { (exit 1); exit 1; }; }
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 esac
1212 done
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 { echo "$as_me: error: missing argument to $ac_option" >&2
1217 { (exit 1); exit 1; }; }
1220 # Be sure to have absolute directory names.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1232 { (exit 1); exit 1; }; }
1233 done
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1247 If a cross compiler is detected then cross compile mode will be used." >&2
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256 test "$silent" = yes && exec 6>/dev/null
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 { echo "$as_me: error: Working directory cannot be determined" >&2
1263 { (exit 1); exit 1; }; }
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 { echo "$as_me: error: pwd does not report name of working directory" >&2
1266 { (exit 1); exit 1; }; }
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$0" ||
1274 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$0" : 'X\(//\)[^/]' \| \
1276 X"$0" : 'X\(//\)$' \| \
1277 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1278 echo X"$0" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 s//\1/
1283 /^X\(\/\/\)[^/].*/{
1284 s//\1/
1287 /^X\(\/\/\)$/{
1288 s//\1/
1291 /^X\(\/\).*/{
1292 s//\1/
1295 s/.*/./; q'`
1296 srcdir=$ac_confdir
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 srcdir=..
1300 else
1301 ac_srcdir_defaulted=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1306 { (exit 1); exit 1; }; }
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1311 { (exit 1); exit 1; }; }
1312 pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337 \`configure' configures LLVM 3.8.0svn to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1346 Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 [PREFIX]
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390 _ACEOF
1392 cat <<\_ACEOF
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1398 _ACEOF
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of LLVM 3.8.0svn:";;
1404 esac
1405 cat <<\_ACEOF
1407 Optional Features:
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-polly Use polly if available (default is YES)
1411 --enable-libcpp Use libc++ if available (default is NO)
1412 --enable-compiler-version-checks
1413 Check the version of the host compiler (default is
1414 YES)
1415 --enable-cxx1y Use c++1y if available (default is NO)
1416 --enable-split-dwarf Use split-dwarf if available (default is NO)
1417 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1418 --enable-clang-plugin-support
1419 Enable plugin support in clang (default is YES)
1420 --enable-clang-static-analyzer
1421 Enable building of clang Static Analyzer (default is
1422 YES)
1423 --enable-optimized Compile with optimizations enabled (default is NO)
1424 --enable-profiling Compile with profiling enabled (default is NO)
1425 --enable-assertions Compile with assertion checks enabled (default is
1426 YES)
1427 --enable-werror Compile with -Werror enabled (default is NO)
1428 --enable-expensive-checks
1429 Compile with expensive debug checks enabled (default
1430 is NO)
1431 --enable-abi-breaking-checks
1432 Compile with abi-breaking asserts support (default
1433 is with-asserts)
1434 --enable-debug-runtime Build runtime libs with debug symbols (default is
1436 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1437 optimization is on and YES if it's off)
1438 --enable-keep-symbols Do not strip installed executables)
1439 --enable-jit Enable Just In Time Compiling (default is YES)
1440 --enable-docs Build documents (default is YES)
1441 --enable-doxygen Build doxygen documentation (default is NO)
1442 --enable-doxygen-search Enable doxygen search support (default is NO)
1443 --enable-doxygen-external-search
1444 Enable doxygen exteranl search (default is NO)
1445 --enable-doxygen-qt-help
1446 Build Qt help files (default is NO)
1447 --enable-threads Use threads if available (default is YES)
1448 --enable-pthreads Use pthreads if available (default is YES)
1449 --enable-zlib Use zlib for compression/decompression if available
1450 (default is YES)
1451 --enable-pic Build LLVM with Position Independent Code (default
1452 is YES)
1453 --enable-shared Build a shared library and link tools against it
1454 (default is NO)
1455 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1456 Win32 DLL (default is NO)
1457 --enable-timestamps Enable embedding timestamp information in build
1458 (default is YES)
1459 --enable-backtraces Enable embedding backtraces on crash (default is
1460 YES)
1461 --enable-crash-overrides
1462 Enable crash handling overrides (default is YES)
1463 --enable-targets Build specific host targets: all or
1464 target1,target2,... Valid targets are: host, x86,
1465 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1466 hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1467 wasm, and cpp (default=all)
1468 --enable-experimental-targets
1469 Build experimental host targets: disable or
1470 target1,target2,... (default=disable)
1471 --enable-bindings Build specific language bindings:
1472 all,auto,none,{binding-name} (default=auto)
1473 --enable-terminfo Query the terminfo database if available (default is
1474 YES)
1475 --enable-libedit Use libedit if available (default is YES)
1476 --enable-libffi Check for the presence of libffi (default is NO)
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-doxygen-search-engine-url
1482 Specify the external search engine for doxygen
1483 --with-doxygen-search-mappings
1484 Specify the extra search mapping for doxygen
1485 --with-optimize-option Select the compiler options to use for optimized
1486 builds
1487 --with-extra-options Specify additional options to compile LLVM with
1488 --with-extra-ld-options Specify additional options to link LLVM with
1489 --with-ocaml-libdir Specify install location for ocaml bindings (default
1490 is stdlib)
1491 --with-clang-srcdir Directory to the out-of-tree Clang source
1492 --with-clang-resource-dir
1493 Relative directory from the Clang binary for
1494 resource files
1495 --with-c-include-dirs Colon separated list of directories clang will
1496 search for headers
1497 --with-gcc-toolchain Directory where gcc is installed.
1498 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1499 --with-clang-default-openmp-runtime
1500 The default OpenMP runtime for Clang.
1501 --with-binutils-include Specify path to binutils/include/ containing
1502 plugin-api.h file for gold plugin.
1503 --with-bug-report-url Specify the URL where bug reports should be
1504 submitted (default=http://llvm.org/bugs/)
1505 --with-internal-prefix Installation directory for internal files
1506 --with-python path to python
1507 --with-oprofile=<prefix>
1508 Tell OProfile >= 0.9.4 how to symbolize JIT output
1509 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
1519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
1521 CPP C preprocessor
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1526 Report bugs to <http://llvm.org/bugs/>.
1527 _ACEOF
1528 ac_status=$?
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" || continue
1535 ac_builddir=.
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1553 case $srcdir in
1554 .) # We are building in place.
1555 ac_srcdir=.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1562 *) # Relative name.
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for guested configure.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1577 else
1578 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 fi || ac_status=$?
1580 cd "$ac_pwd" || { ac_status=$?; break; }
1581 done
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586 cat <<\_ACEOF
1587 LLVM configure 3.8.0svn
1588 generated by GNU Autoconf 2.60
1590 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1591 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1595 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1596 _ACEOF
1597 exit
1599 cat >config.log <<_ACEOF
1600 This file contains any messages produced by compilers while
1601 running configure, to aid debugging if configure makes a mistake.
1603 It was created by LLVM $as_me 3.8.0svn, which was
1604 generated by GNU Autoconf 2.60. Invocation command line was
1606 $ $0 $@
1608 _ACEOF
1609 exec 5>>config.log
1611 cat <<_ASUNAME
1612 ## --------- ##
1613 ## Platform. ##
1614 ## --------- ##
1616 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1617 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1618 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1619 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1620 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1623 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1625 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1626 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1627 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1628 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1629 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1630 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1631 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1633 _ASUNAME
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 echo "PATH: $as_dir"
1641 done
1642 IFS=$as_save_IFS
1644 } >&5
1646 cat >&5 <<_ACEOF
1649 ## ----------- ##
1650 ## Core tests. ##
1651 ## ----------- ##
1653 _ACEOF
1656 # Keep a trace of the command line.
1657 # Strip out --no-create and --no-recursion so they do not pile up.
1658 # Strip out --silent because we don't want to record it for future runs.
1659 # Also quote any args containing shell meta-characters.
1660 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_configure_args=
1662 ac_configure_args0=
1663 ac_configure_args1=
1664 ac_must_keep_next=false
1665 for ac_pass in 1 2
1667 for ac_arg
1669 case $ac_arg in
1670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672 | -silent | --silent | --silen | --sile | --sil)
1673 continue ;;
1674 *\'*)
1675 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1676 esac
1677 case $ac_pass in
1678 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681 if test $ac_must_keep_next = true; then
1682 ac_must_keep_next=false # Got value, back to normal.
1683 else
1684 case $ac_arg in
1685 *=* | --config-cache | -C | -disable-* | --disable-* \
1686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688 | -with-* | --with-* | -without-* | --without-* | --x)
1689 case "$ac_configure_args0 " in
1690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1691 esac
1693 -* ) ac_must_keep_next=true ;;
1694 esac
1696 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 esac
1699 done
1700 done
1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704 # When interrupted or exit'd, cleanup temporary files, and complete
1705 # config.log. We remove comments because anyway the quotes in there
1706 # would cause problems or look ugly.
1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709 trap 'exit_status=$?
1710 # Save into config.log some information that might help in debugging.
1712 echo
1714 cat <<\_ASBOX
1715 ## ---------------- ##
1716 ## Cache variables. ##
1717 ## ---------------- ##
1718 _ASBOX
1719 echo
1720 # The following way of writing the cache mishandles newlines in values,
1722 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1723 eval ac_val=\$$ac_var
1724 case $ac_val in #(
1725 *${as_nl}*)
1726 case $ac_var in #(
1727 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1729 esac
1730 case $ac_var in #(
1731 _ | IFS | as_nl) ;; #(
1732 *) $as_unset $ac_var ;;
1733 esac ;;
1734 esac
1735 done
1736 (set) 2>&1 |
1737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1738 *${as_nl}ac_space=\ *)
1739 sed -n \
1740 "s/'\''/'\''\\\\'\'''\''/g;
1741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1742 ;; #(
1744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 esac |
1747 sort
1749 echo
1751 cat <<\_ASBOX
1752 ## ----------------- ##
1753 ## Output variables. ##
1754 ## ----------------- ##
1755 _ASBOX
1756 echo
1757 for ac_var in $ac_subst_vars
1759 eval ac_val=\$$ac_var
1760 case $ac_val in
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 esac
1763 echo "$ac_var='\''$ac_val'\''"
1764 done | sort
1765 echo
1767 if test -n "$ac_subst_files"; then
1768 cat <<\_ASBOX
1769 ## ------------------- ##
1770 ## File substitutions. ##
1771 ## ------------------- ##
1772 _ASBOX
1773 echo
1774 for ac_var in $ac_subst_files
1776 eval ac_val=\$$ac_var
1777 case $ac_val in
1778 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 esac
1780 echo "$ac_var='\''$ac_val'\''"
1781 done | sort
1782 echo
1785 if test -s confdefs.h; then
1786 cat <<\_ASBOX
1787 ## ----------- ##
1788 ## confdefs.h. ##
1789 ## ----------- ##
1790 _ASBOX
1791 echo
1792 cat confdefs.h
1793 echo
1795 test "$ac_signal" != 0 &&
1796 echo "$as_me: caught signal $ac_signal"
1797 echo "$as_me: exit $exit_status"
1798 } >&5
1799 rm -f core *.core core.conftest.* &&
1800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1801 exit $exit_status
1803 for ac_signal in 1 2 13 15; do
1804 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805 done
1806 ac_signal=0
1808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1809 rm -f -r conftest* confdefs.h
1811 # Predefined preprocessor variables.
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_NAME "$PACKAGE_NAME"
1815 _ACEOF
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820 _ACEOF
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1825 _ACEOF
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_STRING "$PACKAGE_STRING"
1830 _ACEOF
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835 _ACEOF
1838 # Let the site file select an alternate cache file if it wants to.
1839 # Prefer explicitly selected file to automatically selected ones.
1840 if test -n "$CONFIG_SITE"; then
1841 set x "$CONFIG_SITE"
1842 elif test "x$prefix" != xNONE; then
1843 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844 else
1845 set x "$ac_default_prefix/share/config.site" \
1846 "$ac_default_prefix/etc/config.site"
1848 shift
1849 for ac_site_file
1851 if test -r "$ac_site_file"; then
1852 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1853 echo "$as_me: loading site script $ac_site_file" >&6;}
1854 sed 's/^/| /' "$ac_site_file" >&5
1855 . "$ac_site_file"
1857 done
1859 if test -r "$cache_file"; then
1860 # Some versions of bash will fail to source /dev/null (special
1861 # files actually), so we avoid doing that.
1862 if test -f "$cache_file"; then
1863 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1864 echo "$as_me: loading cache $cache_file" >&6;}
1865 case $cache_file in
1866 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1867 *) . "./$cache_file";;
1868 esac
1870 else
1871 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1872 echo "$as_me: creating cache $cache_file" >&6;}
1873 >$cache_file
1876 # Check that the precious variables saved in the cache have kept the same
1877 # value.
1878 ac_cache_corrupted=false
1879 for ac_var in $ac_precious_vars; do
1880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1881 eval ac_new_set=\$ac_env_${ac_var}_set
1882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1883 eval ac_new_val=\$ac_env_${ac_var}_value
1884 case $ac_old_set,$ac_new_set in
1885 set,)
1886 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1889 ,set)
1890 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1893 ,);;
1895 if test "x$ac_old_val" != "x$ac_new_val"; then
1896 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1897 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1898 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1899 echo "$as_me: former value: $ac_old_val" >&2;}
1900 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1901 echo "$as_me: current value: $ac_new_val" >&2;}
1902 ac_cache_corrupted=:
1903 fi;;
1904 esac
1905 # Pass precious variables to config.status.
1906 if test "$ac_new_set" = set; then
1907 case $ac_new_val in
1908 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1909 *) ac_arg=$ac_var=$ac_new_val ;;
1910 esac
1911 case " $ac_configure_args " in
1912 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1913 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914 esac
1916 done
1917 if $ac_cache_corrupted; then
1918 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1919 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1920 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1921 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1922 { (exit 1); exit 1; }; }
1949 ac_ext=c
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957 LLVM_VERSION_MAJOR=3
1958 LLVM_VERSION_MINOR=8
1959 LLVM_VERSION_PATCH=0
1960 LLVM_VERSION_SUFFIX=svn
1963 cat >>confdefs.h <<_ACEOF
1964 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1965 _ACEOF
1968 cat >>confdefs.h <<_ACEOF
1969 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1970 _ACEOF
1973 cat >>confdefs.h <<_ACEOF
1974 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1975 _ACEOF
1978 cat >>confdefs.h <<_ACEOF
1979 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1980 _ACEOF
1988 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1996 ac_aux_dir=
1997 for ac_dir in autoconf "$srcdir"/autoconf; do
1998 if test -f "$ac_dir/install-sh"; then
1999 ac_aux_dir=$ac_dir
2000 ac_install_sh="$ac_aux_dir/install-sh -c"
2001 break
2002 elif test -f "$ac_dir/install.sh"; then
2003 ac_aux_dir=$ac_dir
2004 ac_install_sh="$ac_aux_dir/install.sh -c"
2005 break
2006 elif test -f "$ac_dir/shtool"; then
2007 ac_aux_dir=$ac_dir
2008 ac_install_sh="$ac_aux_dir/shtool install -c"
2009 break
2011 done
2012 if test -z "$ac_aux_dir"; then
2013 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2015 { (exit 1); exit 1; }; }
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2028 if test ${srcdir} != "." ; then
2029 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2030 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2031 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2032 { (exit 1); exit 1; }; }
2036 if test ${srcdir} == "." ; then
2037 { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
2038 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
2039 { (exit 1); exit 1; }; }
2042 : ${CFLAGS=}
2043 : ${CXXFLAGS=}
2045 ac_ext=c
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 if test -n "$ac_tool_prefix"; then
2051 for ac_prog in clang gcc
2053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2074 done
2075 done
2076 IFS=$as_save_IFS
2080 CC=$ac_cv_prog_CC
2081 if test -n "$CC"; then
2082 { echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6; }
2084 else
2085 { echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6; }
2090 test -n "$CC" && break
2091 done
2093 if test -z "$CC"; then
2094 ac_ct_CC=$CC
2095 for ac_prog in clang gcc
2097 # Extract the first word of "$ac_prog", so it can be a program name with args.
2098 set dummy $ac_prog; ac_word=$2
2099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104 if test -n "$ac_ct_CC"; then
2105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106 else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2114 ac_cv_prog_ac_ct_CC="$ac_prog"
2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 break 2
2118 done
2119 done
2120 IFS=$as_save_IFS
2124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2125 if test -n "$ac_ct_CC"; then
2126 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2127 echo "${ECHO_T}$ac_ct_CC" >&6; }
2128 else
2129 { echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6; }
2134 test -n "$ac_ct_CC" && break
2135 done
2137 if test "x$ac_ct_CC" = x; then
2138 CC=""
2139 else
2140 case $cross_compiling:$ac_tool_warned in
2141 yes:)
2142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2143 whose name does not start with the host triplet. If you think this
2144 configuration is useful to you, please write to autoconf@gnu.org." >&5
2145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2146 whose name does not start with the host triplet. If you think this
2147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2148 ac_tool_warned=yes ;;
2149 esac
2150 CC=$ac_ct_CC
2155 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: no acceptable C compiler found in \$PATH
2158 See \`config.log' for more details." >&2;}
2159 { (exit 1); exit 1; }; }
2161 # Provide some information about the compiler.
2162 echo "$as_me:$LINENO: checking for C compiler version" >&5
2163 ac_compiler=`set X $ac_compile; echo $2`
2164 { (ac_try="$ac_compiler --version >&5"
2165 case "(($ac_try" in
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2168 esac
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170 (eval "$ac_compiler --version >&5") 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }
2174 { (ac_try="$ac_compiler -v >&5"
2175 case "(($ac_try" in
2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177 *) ac_try_echo=$ac_try;;
2178 esac
2179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2180 (eval "$ac_compiler -v >&5") 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }
2184 { (ac_try="$ac_compiler -V >&5"
2185 case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188 esac
2189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2190 (eval "$ac_compiler -V >&5") 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }
2195 cat >conftest.$ac_ext <<_ACEOF
2196 /* confdefs.h. */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2203 main ()
2207 return 0;
2209 _ACEOF
2210 ac_clean_files_save=$ac_clean_files
2211 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2212 # Try to create an executable without -o first, disregard a.out.
2213 # It will help us diagnose broken compilers, and finding out an intuition
2214 # of exeext.
2215 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2216 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2217 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2219 # List of possible output files, starting from the most likely.
2220 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2221 # only as a last resort. b.out is created by i960 compilers.
2222 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2224 # The IRIX 6 linker writes into existing files which may not be
2225 # executable, retaining their permissions. Remove them first so a
2226 # subsequent execution test works.
2227 ac_rmfiles=
2228 for ac_file in $ac_files
2230 case $ac_file in
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2232 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2233 esac
2234 done
2235 rm -f $ac_rmfiles
2237 if { (ac_try="$ac_link_default"
2238 case "(($ac_try" in
2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240 *) ac_try_echo=$ac_try;;
2241 esac
2242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243 (eval "$ac_link_default") 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; then
2247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2250 # so that the user can short-circuit this test for compilers unknown to
2251 # Autoconf.
2252 for ac_file in $ac_files
2254 test -f "$ac_file" || continue
2255 case $ac_file in
2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2258 [ab].out )
2259 # We found the default executable, but exeext='' is most
2260 # certainly right.
2261 break;;
2262 *.* )
2263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2264 then :; else
2265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2267 # We set ac_cv_exeext here because the later test for it is not
2268 # safe: cross compilers may not add the suffix if given an `-o'
2269 # argument, so we may need to know it at that point already.
2270 # Even if this section looks crufty: it has the advantage of
2271 # actually working.
2272 break;;
2274 break;;
2275 esac
2276 done
2277 test "$ac_cv_exeext" = no && ac_cv_exeext=
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2283 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: C compiler cannot create executables
2286 See \`config.log' for more details." >&2;}
2287 { (exit 77); exit 77; }; }
2290 ac_exeext=$ac_cv_exeext
2291 { echo "$as_me:$LINENO: result: $ac_file" >&5
2292 echo "${ECHO_T}$ac_file" >&6; }
2294 # Check that the compiler produces executables we can run. If not, either
2295 # the compiler is broken, or we cross compile.
2296 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2297 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2298 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2299 # If not cross compiling, check that we can run a simple program.
2300 if test "$cross_compiling" != yes; then
2301 if { ac_try='./$ac_file'
2302 { (case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305 esac
2306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2307 (eval "$ac_try") 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; }; then
2311 cross_compiling=no
2312 else
2313 if test "$cross_compiling" = maybe; then
2314 cross_compiling=yes
2315 else
2316 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2317 If you meant to cross compile, use \`--host'.
2318 See \`config.log' for more details." >&5
2319 echo "$as_me: error: cannot run C compiled programs.
2320 If you meant to cross compile, use \`--host'.
2321 See \`config.log' for more details." >&2;}
2322 { (exit 1); exit 1; }; }
2326 { echo "$as_me:$LINENO: result: yes" >&5
2327 echo "${ECHO_T}yes" >&6; }
2329 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2330 ac_clean_files=$ac_clean_files_save
2331 # Check that the compiler produces executables we can run. If not, either
2332 # the compiler is broken, or we cross compile.
2333 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2334 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2335 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2336 echo "${ECHO_T}$cross_compiling" >&6; }
2338 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2339 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2340 if { (ac_try="$ac_link"
2341 case "(($ac_try" in
2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2344 esac
2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346 (eval "$ac_link") 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; then
2350 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2351 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2352 # work properly (i.e., refer to `conftest.exe'), while it won't with
2353 # `rm'.
2354 for ac_file in conftest.exe conftest conftest.*; do
2355 test -f "$ac_file" || continue
2356 case $ac_file in
2357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2358 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2359 break;;
2360 * ) break;;
2361 esac
2362 done
2363 else
2364 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2371 rm -f conftest$ac_cv_exeext
2372 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2373 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2375 rm -f conftest.$ac_ext
2376 EXEEXT=$ac_cv_exeext
2377 ac_exeext=$EXEEXT
2378 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2379 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2380 if test "${ac_cv_objext+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h. */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2391 main ()
2395 return 0;
2397 _ACEOF
2398 rm -f conftest.o conftest.obj
2399 if { (ac_try="$ac_compile"
2400 case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_compile") 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; then
2409 for ac_file in conftest.o conftest.obj conftest.*; do
2410 test -f "$ac_file" || continue;
2411 case $ac_file in
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2413 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2414 break;;
2415 esac
2416 done
2417 else
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2421 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2424 See \`config.log' for more details." >&2;}
2425 { (exit 1); exit 1; }; }
2428 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2430 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2431 echo "${ECHO_T}$ac_cv_objext" >&6; }
2432 OBJEXT=$ac_cv_objext
2433 ac_objext=$OBJEXT
2434 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2435 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2436 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2447 main ()
2449 #ifndef __GNUC__
2450 choke me
2451 #endif
2454 return 0;
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2459 case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2465 ac_status=$?
2466 grep -v '^ *+' conftest.er1 >conftest.err
2467 rm -f conftest.er1
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 ac_compiler_gnu=yes
2492 else
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2496 ac_compiler_gnu=no
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2503 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2504 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2505 GCC=`test $ac_compiler_gnu = yes && echo yes`
2506 ac_test_CFLAGS=${CFLAGS+set}
2507 ac_save_CFLAGS=$CFLAGS
2508 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2509 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_cc_g+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513 ac_save_c_werror_flag=$ac_c_werror_flag
2514 ac_c_werror_flag=yes
2515 ac_cv_prog_cc_g=no
2516 CFLAGS="-g"
2517 cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h. */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2525 main ()
2529 return 0;
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (ac_try="$ac_compile"
2534 case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_compile") 2>conftest.er1
2540 ac_status=$?
2541 grep -v '^ *+' conftest.er1 >conftest.err
2542 rm -f conftest.er1
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2547 { (case "(($ac_try" in
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_try") 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_try") 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_prog_cc_g=yes
2567 else
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2571 CFLAGS=""
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2580 main ()
2584 return 0;
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (ac_try="$ac_compile"
2589 case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_compile") 2>conftest.er1
2595 ac_status=$?
2596 grep -v '^ *+' conftest.er1 >conftest.err
2597 rm -f conftest.er1
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2602 { (case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2605 esac
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_try") 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest.$ac_objext'
2612 { (case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_try") 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2622 else
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2626 ac_c_werror_flag=$ac_save_c_werror_flag
2627 CFLAGS="-g"
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h. */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2636 main ()
2640 return 0;
2642 _ACEOF
2643 rm -f conftest.$ac_objext
2644 if { (ac_try="$ac_compile"
2645 case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648 esac
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compile") 2>conftest.er1
2651 ac_status=$?
2652 grep -v '^ *+' conftest.er1 >conftest.err
2653 rm -f conftest.er1
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2658 { (case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_try") 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest.$ac_objext'
2668 { (case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671 esac
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_try") 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 ac_cv_prog_cc_g=yes
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 ac_c_werror_flag=$ac_save_c_werror_flag
2694 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2695 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2696 if test "$ac_test_CFLAGS" = set; then
2697 CFLAGS=$ac_save_CFLAGS
2698 elif test $ac_cv_prog_cc_g = yes; then
2699 if test "$GCC" = yes; then
2700 CFLAGS="-g -O2"
2701 else
2702 CFLAGS="-g"
2704 else
2705 if test "$GCC" = yes; then
2706 CFLAGS="-O2"
2707 else
2708 CFLAGS=
2711 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2712 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_cc_c89+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 ac_cv_prog_cc_c89=no
2717 ac_save_CC=$CC
2718 cat >conftest.$ac_ext <<_ACEOF
2719 /* confdefs.h. */
2720 _ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h. */
2724 #include <stdarg.h>
2725 #include <stdio.h>
2726 #include <sys/types.h>
2727 #include <sys/stat.h>
2728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2729 struct buf { int x; };
2730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2731 static char *e (p, i)
2732 char **p;
2733 int i;
2735 return p[i];
2737 static char *f (char * (*g) (char **, int), char **p, ...)
2739 char *s;
2740 va_list v;
2741 va_start (v,p);
2742 s = g (p, va_arg (v,int));
2743 va_end (v);
2744 return s;
2747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2748 function prototypes and stuff, but not '\xHH' hex character constants.
2749 These don't provoke an error unfortunately, instead are silently treated
2750 as 'x'. The following induces an error, until -std is added to get
2751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2752 array size at least. It's necessary to write '\x00'==0 to get something
2753 that's true only with -std. */
2754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2757 inside strings and character constants. */
2758 #define FOO(x) 'x'
2759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2761 int test (int i, double x);
2762 struct s1 {int (*f) (int a);};
2763 struct s2 {int (*f) (double a);};
2764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2765 int argc;
2766 char **argv;
2768 main ()
2770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2772 return 0;
2774 _ACEOF
2775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2778 CC="$ac_save_CC $ac_arg"
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2781 case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compile") 2>conftest.er1
2787 ac_status=$?
2788 grep -v '^ *+' conftest.er1 >conftest.err
2789 rm -f conftest.er1
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2794 { (case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_try") 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_try") 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2813 ac_cv_prog_cc_c89=$ac_arg
2814 else
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2821 rm -f core conftest.err conftest.$ac_objext
2822 test "x$ac_cv_prog_cc_c89" != "xno" && break
2823 done
2824 rm -f conftest.$ac_ext
2825 CC=$ac_save_CC
2828 # AC_CACHE_VAL
2829 case "x$ac_cv_prog_cc_c89" in
2831 { echo "$as_me:$LINENO: result: none needed" >&5
2832 echo "${ECHO_T}none needed" >&6; } ;;
2833 xno)
2834 { echo "$as_me:$LINENO: result: unsupported" >&5
2835 echo "${ECHO_T}unsupported" >&6; } ;;
2837 CC="$CC $ac_cv_prog_cc_c89"
2838 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2839 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2840 esac
2843 ac_ext=c
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 ac_ext=cpp
2850 ac_cpp='$CXXCPP $CPPFLAGS'
2851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2854 if test -z "$CXX"; then
2855 if test -n "$CCC"; then
2856 CXX=$CCC
2857 else
2858 if test -n "$ac_tool_prefix"; then
2859 for ac_prog in clang++ g++
2861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_CXX+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 if test -n "$CXX"; then
2869 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2882 done
2883 done
2884 IFS=$as_save_IFS
2888 CXX=$ac_cv_prog_CXX
2889 if test -n "$CXX"; then
2890 { echo "$as_me:$LINENO: result: $CXX" >&5
2891 echo "${ECHO_T}$CXX" >&6; }
2892 else
2893 { echo "$as_me:$LINENO: result: no" >&5
2894 echo "${ECHO_T}no" >&6; }
2898 test -n "$CXX" && break
2899 done
2901 if test -z "$CXX"; then
2902 ac_ct_CXX=$CXX
2903 for ac_prog in clang++ g++
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 if test -n "$ac_ct_CXX"; then
2913 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_ac_ct_CXX="$ac_prog"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2926 done
2927 done
2928 IFS=$as_save_IFS
2932 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2933 if test -n "$ac_ct_CXX"; then
2934 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2935 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2936 else
2937 { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2942 test -n "$ac_ct_CXX" && break
2943 done
2945 if test "x$ac_ct_CXX" = x; then
2946 CXX="g++"
2947 else
2948 case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2951 whose name does not start with the host triplet. If you think this
2952 configuration is useful to you, please write to autoconf@gnu.org." >&5
2953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet. If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2956 ac_tool_warned=yes ;;
2957 esac
2958 CXX=$ac_ct_CXX
2964 # Provide some information about the compiler.
2965 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2966 ac_compiler=`set X $ac_compile; echo $2`
2967 { (ac_try="$ac_compiler --version >&5"
2968 case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_compiler --version >&5") 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }
2977 { (ac_try="$ac_compiler -v >&5"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compiler -v >&5") 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }
2987 { (ac_try="$ac_compiler -V >&5"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compiler -V >&5") 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }
2998 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2999 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3000 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3011 main ()
3013 #ifndef __GNUC__
3014 choke me
3015 #endif
3018 return 0;
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_compiler_gnu=yes
3056 else
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3060 ac_compiler_gnu=no
3063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3068 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3069 GXX=`test $ac_compiler_gnu = yes && echo yes`
3070 ac_test_CXXFLAGS=${CXXFLAGS+set}
3071 ac_save_CXXFLAGS=$CXXFLAGS
3072 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3073 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_cxx_g+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3078 ac_cxx_werror_flag=yes
3079 ac_cv_prog_cxx_g=no
3080 CXXFLAGS="-g"
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3089 main ()
3093 return 0;
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; } &&
3120 { ac_try='test -s conftest.$ac_objext'
3121 { (case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_try") 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3130 ac_cv_prog_cxx_g=yes
3131 else
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 CXXFLAGS=""
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3144 main ()
3148 return 0;
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_try") 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3186 else
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3191 CXXFLAGS="-g"
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h. */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3200 main ()
3204 return 0;
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_try") 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_prog_cxx_g=yes
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3260 if test "$ac_test_CXXFLAGS" = set; then
3261 CXXFLAGS=$ac_save_CXXFLAGS
3262 elif test $ac_cv_prog_cxx_g = yes; then
3263 if test "$GXX" = yes; then
3264 CXXFLAGS="-g -O2"
3265 else
3266 CXXFLAGS="-g"
3268 else
3269 if test "$GXX" = yes; then
3270 CXXFLAGS="-O2"
3271 else
3272 CXXFLAGS=
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 ac_ext=c
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3287 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3288 # On Suns, sometimes $CPP names a directory.
3289 if test -n "$CPP" && test -d "$CPP"; then
3290 CPP=
3292 if test -z "$CPP"; then
3293 if test "${ac_cv_prog_CPP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 # Double quotes because CPP needs to be expanded
3297 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3299 ac_preproc_ok=false
3300 for ac_c_preproc_warn_flag in '' yes
3302 # Use a header file that comes with gcc, so configuring glibc
3303 # with a fresh cross-compiler works.
3304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3305 # <limits.h> exists even on freestanding compilers.
3306 # On the NeXT, cc -E runs the code through the compiler's parser,
3307 # not just through cpp. "Syntax error" is here to catch this case.
3308 cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h. */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3314 #ifdef __STDC__
3315 # include <limits.h>
3316 #else
3317 # include <assert.h>
3318 #endif
3319 Syntax error
3320 _ACEOF
3321 if { (ac_try="$ac_cpp conftest.$ac_ext"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3328 ac_status=$?
3329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } >/dev/null; then
3334 if test -s conftest.err; then
3335 ac_cpp_err=$ac_c_preproc_warn_flag
3336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3337 else
3338 ac_cpp_err=
3340 else
3341 ac_cpp_err=yes
3343 if test -z "$ac_cpp_err"; then
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 # Broken: fails on valid input.
3350 continue
3353 rm -f conftest.err conftest.$ac_ext
3355 # OK, works on sane cases. Now check whether nonexistent headers
3356 # can be detected and how.
3357 cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h. */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 #include <ac_nonexistent.h>
3364 _ACEOF
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381 else
3382 ac_cpp_err=
3384 else
3385 ac_cpp_err=yes
3387 if test -z "$ac_cpp_err"; then
3388 # Broken: success on invalid input.
3389 continue
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 # Passes both tests.
3395 ac_preproc_ok=:
3396 break
3399 rm -f conftest.err conftest.$ac_ext
3401 done
3402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403 rm -f conftest.err conftest.$ac_ext
3404 if $ac_preproc_ok; then
3405 break
3408 done
3409 ac_cv_prog_CPP=$CPP
3412 CPP=$ac_cv_prog_CPP
3413 else
3414 ac_cv_prog_CPP=$CPP
3416 { echo "$as_me:$LINENO: result: $CPP" >&5
3417 echo "${ECHO_T}$CPP" >&6; }
3418 ac_preproc_ok=false
3419 for ac_c_preproc_warn_flag in '' yes
3421 # Use a header file that comes with gcc, so configuring glibc
3422 # with a fresh cross-compiler works.
3423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424 # <limits.h> exists even on freestanding compilers.
3425 # On the NeXT, cc -E runs the code through the compiler's parser,
3426 # not just through cpp. "Syntax error" is here to catch this case.
3427 cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433 #ifdef __STDC__
3434 # include <limits.h>
3435 #else
3436 # include <assert.h>
3437 #endif
3438 Syntax error
3439 _ACEOF
3440 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev/null; then
3453 if test -s conftest.err; then
3454 ac_cpp_err=$ac_c_preproc_warn_flag
3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456 else
3457 ac_cpp_err=
3459 else
3460 ac_cpp_err=yes
3462 if test -z "$ac_cpp_err"; then
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 # Broken: fails on valid input.
3469 continue
3472 rm -f conftest.err conftest.$ac_ext
3474 # OK, works on sane cases. Now check whether nonexistent headers
3475 # can be detected and how.
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #include <ac_nonexistent.h>
3483 _ACEOF
3484 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } >/dev/null; then
3497 if test -s conftest.err; then
3498 ac_cpp_err=$ac_c_preproc_warn_flag
3499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3500 else
3501 ac_cpp_err=
3503 else
3504 ac_cpp_err=yes
3506 if test -z "$ac_cpp_err"; then
3507 # Broken: success on invalid input.
3508 continue
3509 else
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3513 # Passes both tests.
3514 ac_preproc_ok=:
3515 break
3518 rm -f conftest.err conftest.$ac_ext
3520 done
3521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3522 rm -f conftest.err conftest.$ac_ext
3523 if $ac_preproc_ok; then
3525 else
3526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3527 See \`config.log' for more details." >&5
3528 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3529 See \`config.log' for more details." >&2;}
3530 { (exit 1); exit 1; }; }
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 if test "$CXX" = "clang++" ; then
3541 { echo "$as_me:$LINENO: checking whether clang works" >&5
3542 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3543 ac_ext=cpp
3544 ac_cpp='$CXXCPP $CPPFLAGS'
3545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 #include <limits>
3557 #if __has_include (<cxxabi.h>)
3558 #include <cxxabi.h>
3559 #endif
3560 #if __has_include (<unwind.h>)
3561 #include <unwind.h>
3562 #endif
3565 main ()
3569 return 0;
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compile") 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3587 { (case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_try") 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try='test -s conftest.$ac_objext'
3597 { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_try") 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3607 { echo "$as_me:$LINENO: result: yes" >&5
3608 echo "${ECHO_T}yes" >&6; }
3610 else
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3615 { echo "$as_me:$LINENO: result: no" >&5
3616 echo "${ECHO_T}no" >&6; }
3617 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3618 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3619 { (exit 1); exit 1; }; }
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3633 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3634 ac_ext=cpp
3635 ac_cpp='$CXXCPP $CPPFLAGS'
3636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3640 llvm_cv_cxx_compiler=unknown
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h. */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3647 #if ! __clang__
3648 #error
3649 #endif
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_compile") 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3667 { (case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_try") 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_try") 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 llvm_cv_cxx_compiler=clang
3687 else
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 #if ! __GNUC__
3698 #error
3699 #endif
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_compile") 2>conftest.er1
3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3717 { (case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_try") 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3732 (eval "$ac_try") 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 llvm_cv_cxx_compiler=gcc
3737 else
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3755 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3756 CXX_COMPILER=$llvm_cv_cxx_compiler
3761 if test -d ${srcdir}/projects/test-suite ; then
3762 subdirs="$subdirs projects/test-suite"
3766 if test -d ${srcdir}/projects/llvm-test ; then
3767 subdirs="$subdirs projects/llvm-test"
3771 if test -d ${srcdir}/projects/poolalloc ; then
3772 subdirs="$subdirs projects/poolalloc"
3776 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3777 subdirs="$subdirs projects/llvm-poolalloc"
3781 for i in `ls ${srcdir}/projects`
3783 if test -d ${srcdir}/projects/${i} ; then
3784 case ${i} in
3785 safecode) subdirs="$subdirs projects/safecode"
3787 compiler-rt) ;;
3788 test-suite) ;;
3789 llvm-test) ;;
3790 poolalloc) ;;
3791 llvm-poolalloc) ;;
3793 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3794 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3796 esac
3798 done
3800 # Check whether --enable-polly was given.
3801 if test "${enable_polly+set}" = set; then
3802 enableval=$enable_polly;
3803 else
3804 enableval=default
3807 case "$enableval" in
3808 yes) ENABLE_POLLY=1
3810 no) ENABLE_POLLY=0
3812 default) ENABLE_POLLY=1
3814 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3815 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3816 { (exit 1); exit 1; }; } ;;
3817 esac
3820 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3821 LLVM_HAS_POLLY=1
3823 subdirs="$subdirs tools/polly"
3828 # Make sure we can run config.sub.
3829 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3830 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3831 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3832 { (exit 1); exit 1; }; }
3834 { echo "$as_me:$LINENO: checking build system type" >&5
3835 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3836 if test "${ac_cv_build+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839 ac_build_alias=$build_alias
3840 test "x$ac_build_alias" = x &&
3841 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3842 test "x$ac_build_alias" = x &&
3843 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3844 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3845 { (exit 1); exit 1; }; }
3846 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3847 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3848 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3849 { (exit 1); exit 1; }; }
3852 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3853 echo "${ECHO_T}$ac_cv_build" >&6; }
3854 case $ac_cv_build in
3855 *-*-*) ;;
3856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3857 echo "$as_me: error: invalid value of canonical build" >&2;}
3858 { (exit 1); exit 1; }; };;
3859 esac
3860 build=$ac_cv_build
3861 ac_save_IFS=$IFS; IFS='-'
3862 set x $ac_cv_build
3863 shift
3864 build_cpu=$1
3865 build_vendor=$2
3866 shift; shift
3867 # Remember, the first character of IFS is used to create $*,
3868 # except with old shells:
3869 build_os=$*
3870 IFS=$ac_save_IFS
3871 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3874 { echo "$as_me:$LINENO: checking host system type" >&5
3875 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3876 if test "${ac_cv_host+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 if test "x$host_alias" = x; then
3880 ac_cv_host=$ac_cv_build
3881 else
3882 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3883 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3884 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3885 { (exit 1); exit 1; }; }
3889 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3890 echo "${ECHO_T}$ac_cv_host" >&6; }
3891 case $ac_cv_host in
3892 *-*-*) ;;
3893 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3894 echo "$as_me: error: invalid value of canonical host" >&2;}
3895 { (exit 1); exit 1; }; };;
3896 esac
3897 host=$ac_cv_host
3898 ac_save_IFS=$IFS; IFS='-'
3899 set x $ac_cv_host
3900 shift
3901 host_cpu=$1
3902 host_vendor=$2
3903 shift; shift
3904 # Remember, the first character of IFS is used to create $*,
3905 # except with old shells:
3906 host_os=$*
3907 IFS=$ac_save_IFS
3908 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3911 { echo "$as_me:$LINENO: checking target system type" >&5
3912 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3913 if test "${ac_cv_target+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 if test "x$target_alias" = x; then
3917 ac_cv_target=$ac_cv_host
3918 else
3919 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3920 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3921 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3922 { (exit 1); exit 1; }; }
3926 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3927 echo "${ECHO_T}$ac_cv_target" >&6; }
3928 case $ac_cv_target in
3929 *-*-*) ;;
3930 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3931 echo "$as_me: error: invalid value of canonical target" >&2;}
3932 { (exit 1); exit 1; }; };;
3933 esac
3934 target=$ac_cv_target
3935 ac_save_IFS=$IFS; IFS='-'
3936 set x $ac_cv_target
3937 shift
3938 target_cpu=$1
3939 target_vendor=$2
3940 shift; shift
3941 # Remember, the first character of IFS is used to create $*,
3942 # except with old shells:
3943 target_os=$*
3944 IFS=$ac_save_IFS
3945 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3948 # The aliases save the names the user supplied, while $host etc.
3949 # will get canonicalized.
3950 test -n "$target_alias" &&
3951 test "$program_prefix$program_suffix$program_transform_name" = \
3952 NONENONEs,x,x, &&
3953 program_prefix=${target_alias}-
3955 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3956 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3957 if test "${llvm_cv_os_type+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960 case $host in
3961 *-*-aix*)
3962 llvm_cv_link_all_option="-Wl,--whole-archive"
3963 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3964 llvm_cv_os_type="AIX"
3965 llvm_cv_platform_type="Unix" ;;
3966 *-*-irix*)
3967 llvm_cv_link_all_option="-Wl,--whole-archive"
3968 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3969 llvm_cv_os_type="IRIX"
3970 llvm_cv_platform_type="Unix" ;;
3971 *-*-cygwin*)
3972 llvm_cv_link_all_option="-Wl,--whole-archive"
3973 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974 llvm_cv_os_type="Cygwin"
3975 llvm_cv_platform_type="Unix" ;;
3976 *-*-darwin*)
3977 llvm_cv_link_all_option="-Wl,-all_load"
3978 llvm_cv_no_link_all_option="-Wl,-noall_load"
3979 llvm_cv_os_type="Darwin"
3980 llvm_cv_platform_type="Unix" ;;
3981 *-*-minix*)
3982 llvm_cv_link_all_option="-Wl,-all_load"
3983 llvm_cv_no_link_all_option="-Wl,-noall_load"
3984 llvm_cv_os_type="Minix"
3985 llvm_cv_platform_type="Unix" ;;
3986 *-*-freebsd*)
3987 llvm_cv_link_all_option="-Wl,--whole-archive"
3988 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3989 llvm_cv_os_type="FreeBSD"
3990 llvm_cv_platform_type="Unix" ;;
3991 *-*-kfreebsd-gnu)
3992 llvm_cv_link_all_option="-Wl,--whole-archive"
3993 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3994 llvm_cv_os_type="GNU/kFreeBSD"
3995 llvm_cv_platform_type="Unix" ;;
3996 *-*-openbsd*)
3997 llvm_cv_link_all_option="-Wl,--whole-archive"
3998 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3999 llvm_cv_os_type="OpenBSD"
4000 llvm_cv_platform_type="Unix" ;;
4001 *-*-netbsd*)
4002 llvm_cv_link_all_option="-Wl,--whole-archive"
4003 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4004 llvm_cv_os_type="NetBSD"
4005 llvm_cv_platform_type="Unix" ;;
4006 *-*-dragonfly*)
4007 llvm_cv_link_all_option="-Wl,--whole-archive"
4008 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009 llvm_cv_os_type="DragonFly"
4010 llvm_cv_platform_type="Unix" ;;
4011 *-*-bitrig*)
4012 llvm_cv_link_all_option="-Wl,--whole-archive"
4013 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014 llvm_cv_os_type="Bitrig"
4015 llvm_cv_platform_type="Unix" ;;
4016 *-*-hpux*)
4017 llvm_cv_link_all_option="-Wl,--whole-archive"
4018 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4019 llvm_cv_os_type="HP-UX"
4020 llvm_cv_platform_type="Unix" ;;
4021 *-*-interix*)
4022 llvm_cv_link_all_option="-Wl,--whole-archive"
4023 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4024 llvm_cv_os_type="Interix"
4025 llvm_cv_platform_type="Unix" ;;
4026 *-*-linux*)
4027 llvm_cv_link_all_option="-Wl,--whole-archive"
4028 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4029 llvm_cv_os_type="Linux"
4030 llvm_cv_platform_type="Unix" ;;
4031 *-*-gnu*)
4032 llvm_cv_link_all_option="-Wl,--whole-archive"
4033 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4034 llvm_cv_os_type="GNU"
4035 llvm_cv_platform_type="Unix" ;;
4036 *-*-solaris*)
4037 llvm_cv_link_all_option="-Wl,-z,allextract"
4038 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4039 llvm_cv_os_type="SunOS"
4040 llvm_cv_platform_type="Unix" ;;
4041 *-*-win32*)
4042 llvm_cv_link_all_option="-Wl,--whole-archive"
4043 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4044 llvm_cv_os_type="Win32"
4045 llvm_cv_platform_type="Win32" ;;
4046 *-*-mingw*)
4047 llvm_cv_link_all_option="-Wl,--whole-archive"
4048 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4049 llvm_cv_os_type="MingW"
4050 llvm_cv_platform_type="Win32" ;;
4051 *-*-haiku*)
4052 llvm_cv_link_all_option="-Wl,--whole-archive"
4053 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4054 llvm_cv_os_type="Haiku"
4055 llvm_cv_platform_type="Unix" ;;
4056 *-unknown-eabi*)
4057 llvm_cv_link_all_option="-Wl,--whole-archive"
4058 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4059 llvm_cv_os_type="Freestanding"
4060 llvm_cv_platform_type="Unix" ;;
4061 *-unknown-elf*)
4062 llvm_cv_link_all_option="-Wl,--whole-archive"
4063 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4064 llvm_cv_os_type="Freestanding"
4065 llvm_cv_platform_type="Unix" ;;
4067 llvm_cv_link_all_option=""
4068 llvm_cv_no_link_all_option=""
4069 llvm_cv_os_type="Unknown"
4070 llvm_cv_platform_type="Unknown" ;;
4071 esac
4073 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4074 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4076 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4077 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4078 if test "${llvm_cv_target_os_type+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 case $target in
4082 *-*-aix*)
4083 llvm_cv_target_os_type="AIX" ;;
4084 *-*-irix*)
4085 llvm_cv_target_os_type="IRIX" ;;
4086 *-*-cygwin*)
4087 llvm_cv_target_os_type="Cygwin" ;;
4088 *-*-darwin*)
4089 llvm_cv_target_os_type="Darwin" ;;
4090 *-*-minix*)
4091 llvm_cv_target_os_type="Minix" ;;
4092 *-*-freebsd*)
4093 llvm_cv_target_os_type="FreeBSD" ;;
4094 *-*-kfreebsd-gnu)
4095 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4096 *-*-openbsd*)
4097 llvm_cv_target_os_type="OpenBSD" ;;
4098 *-*-netbsd*)
4099 llvm_cv_target_os_type="NetBSD" ;;
4100 *-*-dragonfly*)
4101 llvm_cv_target_os_type="DragonFly" ;;
4102 *-*-bitrig*)
4103 llvm_cv_target_os_type="Bitrig" ;;
4104 *-*-hpux*)
4105 llvm_cv_target_os_type="HP-UX" ;;
4106 *-*-interix*)
4107 llvm_cv_target_os_type="Interix" ;;
4108 *-*-linux*)
4109 llvm_cv_target_os_type="Linux" ;;
4110 *-*-gnu*)
4111 llvm_cv_target_os_type="GNU" ;;
4112 *-*-solaris*)
4113 llvm_cv_target_os_type="SunOS" ;;
4114 *-*-win32*)
4115 llvm_cv_target_os_type="Win32" ;;
4116 *-*-mingw*)
4117 llvm_cv_target_os_type="MingW" ;;
4118 *-*-haiku*)
4119 llvm_cv_target_os_type="Haiku" ;;
4120 *-*-rtems*)
4121 llvm_cv_target_os_type="RTEMS" ;;
4122 *-*-nacl*)
4123 llvm_cv_target_os_type="NativeClient" ;;
4124 *-unknown-eabi*)
4125 llvm_cv_target_os_type="Freestanding" ;;
4126 *-*-ps4)
4127 llvm_cv_target_os_type="PS4" ;;
4129 llvm_cv_target_os_type="Unknown" ;;
4130 esac
4132 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4133 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4135 if test "$llvm_cv_os_type" = "Unknown" ; then
4136 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4137 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4138 { (exit 1); exit 1; }; }
4141 OS=$llvm_cv_os_type
4143 HOST_OS=$llvm_cv_os_type
4145 TARGET_OS=$llvm_cv_target_os_type
4148 LINKALL=$llvm_cv_link_all_option
4150 NOLINKALL=$llvm_cv_no_link_all_option
4153 case $llvm_cv_platform_type in
4154 Unix)
4156 cat >>confdefs.h <<\_ACEOF
4157 #define LLVM_ON_UNIX 1
4158 _ACEOF
4160 LLVM_ON_UNIX=1
4162 LLVM_ON_WIN32=0
4165 Win32)
4167 cat >>confdefs.h <<\_ACEOF
4168 #define LLVM_ON_WIN32 1
4169 _ACEOF
4171 LLVM_ON_UNIX=0
4173 LLVM_ON_WIN32=1
4176 esac
4178 { echo "$as_me:$LINENO: checking target architecture" >&5
4179 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4180 if test "${llvm_cv_target_arch+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 case $target in
4184 i?86-*) llvm_cv_target_arch="x86" ;;
4185 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4186 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4187 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4188 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4189 arm*-*) llvm_cv_target_arch="ARM" ;;
4190 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4191 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4192 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4193 xcore-*) llvm_cv_target_arch="XCore" ;;
4194 msp430-*) llvm_cv_target_arch="MSP430" ;;
4195 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4196 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4197 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4198 wasm*-*) llvm_cv_target_arch="WebAssembly" ;;
4199 *) llvm_cv_target_arch="Unknown" ;;
4200 esac
4202 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4203 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4205 if test "$llvm_cv_target_arch" = "Unknown" ; then
4206 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4207 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4210 case "$llvm_cv_target_arch" in
4211 x86) LLVM_NATIVE_ARCH="X86" ;;
4212 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4213 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4214 esac
4216 ARCH=$llvm_cv_target_arch
4218 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4221 case $host in
4222 i?86-*) host_arch="x86" ;;
4223 amd64-* | x86_64-*) host_arch="x86_64" ;;
4224 sparc*-*) host_arch="Sparc" ;;
4225 powerpc*-*) host_arch="PowerPC" ;;
4226 arm64*-*) host_arch="AArch64" ;;
4227 arm*-*) host_arch="ARM" ;;
4228 aarch64*-*) host_arch="AArch64" ;;
4229 mips-* | mips64-*) host_arch="Mips" ;;
4230 mipsel-* | mips64el-*) host_arch="Mips" ;;
4231 xcore-*) host_arch="XCore" ;;
4232 msp430-*) host_arch="MSP430" ;;
4233 hexagon-*) host_arch="Hexagon" ;;
4234 s390x-*) host_arch="SystemZ" ;;
4235 wasm*-*) host_arch="WebAssembly" ;;
4236 *) host_arch="Unknown" ;;
4237 esac
4239 if test "$host_arch" = "Unknown" ; then
4240 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4241 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4244 HOST_ARCH=$host_arch
4247 if test "$cross_compiling" = yes; then
4248 LLVM_CROSS_COMPILING=1
4251 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4252 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4253 if test "${ac_cv_build_exeext+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4257 ac_cv_build_exeext=.exe
4258 else
4259 ac_build_prefix=${build_alias}-
4261 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4262 set dummy ${ac_build_prefix}gcc; ac_word=$2
4263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 if test -n "$BUILD_CC"; then
4269 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4282 done
4283 done
4284 IFS=$as_save_IFS
4288 BUILD_CC=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6; }
4292 else
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4298 if test -z "$BUILD_CC"; then
4299 # Extract the first word of "gcc", so it can be a program name with args.
4300 set dummy gcc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 if test -n "$BUILD_CC"; then
4307 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_BUILD_CC="gcc"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4322 IFS=$as_save_IFS
4326 BUILD_CC=$ac_cv_prog_BUILD_CC
4327 if test -n "$BUILD_CC"; then
4328 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4329 echo "${ECHO_T}$BUILD_CC" >&6; }
4330 else
4331 { echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6; }
4336 if test -z "$BUILD_CC"; then
4337 # Extract the first word of "cc", so it can be a program name with args.
4338 set dummy cc; ac_word=$2
4339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4341 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 if test -n "$BUILD_CC"; then
4345 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4346 else
4347 ac_prog_rejected=no
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4356 ac_prog_rejected=yes
4357 continue
4359 ac_cv_prog_BUILD_CC="cc"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4363 done
4364 done
4365 IFS=$as_save_IFS
4367 if test $ac_prog_rejected = yes; then
4368 # We found a bogon in the path, so make sure we never use it.
4369 set dummy $ac_cv_prog_BUILD_CC
4370 shift
4371 if test $# != 0; then
4372 # We chose a different compiler from the bogus one.
4373 # However, it has the same basename, so the bogon will be chosen
4374 # first if we set BUILD_CC to just the basename; use the full file name.
4375 shift
4376 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4381 BUILD_CC=$ac_cv_prog_BUILD_CC
4382 if test -n "$BUILD_CC"; then
4383 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4384 echo "${ECHO_T}$BUILD_CC" >&6; }
4385 else
4386 { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4393 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4394 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4395 { (exit 1); exit 1; }; }
4396 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4397 rm -f conftest*
4398 echo 'int main () { return 0; }' > conftest.$ac_ext
4399 ac_cv_build_exeext=
4400 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4401 (eval $ac_build_link) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; then
4405 for file in conftest.*; do
4406 case $file in
4407 *.c | *.o | *.obj | *.dSYM) ;;
4408 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4409 esac
4410 done
4411 else
4412 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4413 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4414 { (exit 1); exit 1; }; }
4416 rm -f conftest*
4417 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4421 BUILD_EXEEXT=""
4422 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4423 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4424 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4425 ac_build_exeext=$BUILD_EXEEXT
4427 ac_build_prefix=${build_alias}-
4428 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4429 set dummy ${ac_build_prefix}g++; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$BUILD_CXX"; then
4436 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4456 if test -n "$BUILD_CXX"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4458 echo "${ECHO_T}$BUILD_CXX" >&6; }
4459 else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CXX"; then
4466 # Extract the first word of "g++", so it can be a program name with args.
4467 set dummy g++; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 if test -n "$BUILD_CXX"; then
4474 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 ac_cv_prog_BUILD_CXX="g++"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4489 IFS=$as_save_IFS
4493 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4494 if test -n "$BUILD_CXX"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4496 echo "${ECHO_T}$BUILD_CXX" >&6; }
4497 else
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4503 if test -z "$BUILD_CXX"; then
4504 # Extract the first word of "c++", so it can be a program name with args.
4505 set dummy c++; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 if test -n "$BUILD_CXX"; then
4512 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4513 else
4514 ac_prog_rejected=no
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4523 ac_prog_rejected=yes
4524 continue
4526 ac_cv_prog_BUILD_CXX="c++"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4534 if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CXX
4537 shift
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CXX to just the basename; use the full file name.
4542 shift
4543 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4548 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4549 if test -n "$BUILD_CXX"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4551 echo "${ECHO_T}$BUILD_CXX" >&6; }
4552 else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4560 else
4561 LLVM_CROSS_COMPILING=0
4565 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4566 cvsbuild="yes"
4567 optimize="no"
4568 CVSBUILD=CVSBUILD=1
4570 else
4571 cvsbuild="no"
4572 optimize="yes"
4576 # Check whether --enable-libcpp was given.
4577 if test "${enable_libcpp+set}" = set; then
4578 enableval=$enable_libcpp;
4579 else
4580 enableval=default
4583 case "$enableval" in
4584 yes) ENABLE_LIBCPP=1
4586 no) ENABLE_LIBCPP=0
4588 default) ENABLE_LIBCPP=0
4590 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4591 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4592 { (exit 1); exit 1; }; } ;;
4593 esac
4595 # Check whether --enable-compiler-version-checks was given.
4596 if test "${enable_compiler_version_checks+set}" = set; then
4597 enableval=$enable_compiler_version_checks;
4598 else
4599 enableval=default
4602 case "$enableval" in
4605 yes|default)
4606 ac_ext=cpp
4607 ac_cpp='$CXXCPP $CPPFLAGS'
4608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4612 case "$llvm_cv_cxx_compiler" in
4613 clang)
4614 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4615 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4623 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4624 #error This version of Clang is too old to build LLVM
4625 #endif
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (ac_try="$ac_compile"
4630 case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } &&
4642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4643 { (case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_try") 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try='test -s conftest.$ac_objext'
4653 { (case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_try") 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 { echo "$as_me:$LINENO: result: yes" >&5
4663 echo "${ECHO_T}yes" >&6; }
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 { echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6; }
4670 { { echo "$as_me:$LINENO: error:
4671 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4672 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4673 bypass these sanity checks." >&5
4674 echo "$as_me: error:
4675 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4676 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4677 bypass these sanity checks." >&2;}
4678 { (exit 1); exit 1; }; }
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 if test "$ENABLE_LIBCPP" -eq 0 ; then
4684 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4685 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4686 llvm_cv_old_cxxflags="$CXXFLAGS"
4687 CXXFLAGS="$CXXFLAGS -std=c++0x"
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4695 #include <atomic>
4696 std::atomic<float> x(0.0f);
4697 int main() { return (float)x; }
4699 _ACEOF
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (ac_try="$ac_link"
4702 case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_link") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4715 { (case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_try") 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest$ac_exeext'
4725 { (case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_try") 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 { echo "$as_me:$LINENO: result: yes" >&5
4735 echo "${ECHO_T}yes" >&6; }
4736 else
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4742 { { echo "$as_me:$LINENO: error:
4743 We detected a missing feature in the standard C++ library that was known to be
4744 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4745 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4746 than 4.7. You will need to update your system and ensure Clang uses the newer
4747 standard library.
4749 If this error is incorrect or you need to force things to work, you may pass
4750 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4751 echo "$as_me: error:
4752 We detected a missing feature in the standard C++ library that was known to be
4753 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4754 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4755 than 4.7. You will need to update your system and ensure Clang uses the newer
4756 standard library.
4758 If this error is incorrect or you need to force things to work, you may pass
4759 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4760 { (exit 1); exit 1; }; }
4763 rm -f core conftest.err conftest.$ac_objext \
4764 conftest$ac_exeext conftest.$ac_ext
4765 CXXFLAGS="$llvm_cv_old_cxxflags"
4768 gcc)
4769 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4770 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4778 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4779 #error This version of GCC is too old to build LLVM
4780 #endif
4782 _ACEOF
4783 rm -f conftest.$ac_objext
4784 if { (ac_try="$ac_compile"
4785 case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_compile") 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4798 { (case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801 esac
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_try") 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 { (case "(($ac_try" in
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4811 esac
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_try") 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 { echo "$as_me:$LINENO: result: yes" >&5
4818 echo "${ECHO_T}yes" >&6; }
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4823 { echo "$as_me:$LINENO: result: no" >&5
4824 echo "${ECHO_T}no" >&6; }
4825 { { echo "$as_me:$LINENO: error:
4826 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4827 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4828 bypass these sanity checks." >&5
4829 echo "$as_me: error:
4830 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4831 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4832 bypass these sanity checks." >&2;}
4833 { (exit 1); exit 1; }; }
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 unknown)
4840 esac
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; }
4853 esac
4855 # Check whether --enable-cxx1y was given.
4856 if test "${enable_cxx1y+set}" = set; then
4857 enableval=$enable_cxx1y;
4858 else
4859 enableval=default
4862 case "$enableval" in
4863 yes) ENABLE_CXX1Y=1
4865 no) ENABLE_CXX1Y=0
4867 default) ENABLE_CXX1Y=0
4869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4870 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
4872 esac
4874 # Check whether --enable-split-dwarf was given.
4875 if test "${enable_split_dwarf+set}" = set; then
4876 enableval=$enable_split_dwarf;
4877 else
4878 enableval=default
4881 case "$enableval" in
4882 yes) ENABLE_SPLIT_DWARF=1
4884 no) ENABLE_SPLIT_DWARF=0
4886 default) ENABLE_SPLIT_DWARF=0
4888 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4889 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4890 { (exit 1); exit 1; }; } ;;
4891 esac
4893 clang_arcmt="yes"
4894 # Check whether --enable-clang-arcmt was given.
4895 if test "${enable_clang_arcmt+set}" = set; then
4896 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4897 else
4898 enableval="yes"
4901 case "$enableval" in
4902 yes) ENABLE_CLANG_ARCMT=1
4904 no) ENABLE_CLANG_ARCMT=0
4906 default) ENABLE_CLANG_ARCMT=1
4908 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4909 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4910 { (exit 1); exit 1; }; } ;;
4911 esac
4913 clang_plugin_support="yes"
4914 # Check whether --enable-clang-plugin-support was given.
4915 if test "${enable_clang_plugin_support+set}" = set; then
4916 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4917 else
4918 enableval="yes"
4921 case "$enableval" in
4922 yes) CLANG_PLUGIN_SUPPORT=1
4924 no) CLANG_PLUGIN_SUPPORT=0
4926 default) CLANG_PLUGIN_SUPPORT=1
4928 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4929 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4930 { (exit 1); exit 1; }; } ;;
4931 esac
4933 clang_static_analyzer="yes"
4934 # Check whether --enable-clang-static-analyzer was given.
4935 if test "${enable_clang_static_analyzer+set}" = set; then
4936 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4937 else
4938 enableval="yes"
4941 case "$enableval" in
4942 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4945 if test ${clang_arcmt} != "no" ; then
4946 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4947 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4948 { (exit 1); exit 1; }; }
4950 ENABLE_CLANG_STATIC_ANALYZER=0
4953 default) ENABLE_CLANG_STATIC_ANALYZER=1
4955 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4956 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4957 { (exit 1); exit 1; }; } ;;
4958 esac
4960 # Check whether --enable-optimized was given.
4961 if test "${enable_optimized+set}" = set; then
4962 enableval=$enable_optimized;
4963 else
4964 enableval=$optimize
4967 if test ${enableval} = "no" ; then
4968 ENABLE_OPTIMIZED=
4970 else
4971 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4975 # Check whether --enable-profiling was given.
4976 if test "${enable_profiling+set}" = set; then
4977 enableval=$enable_profiling;
4978 else
4979 enableval="no"
4982 if test ${enableval} = "no" ; then
4983 ENABLE_PROFILING=
4985 else
4986 ENABLE_PROFILING=ENABLE_PROFILING=1
4990 # Check whether --enable-assertions was given.
4991 if test "${enable_assertions+set}" = set; then
4992 enableval=$enable_assertions;
4993 else
4994 enableval="yes"
4997 if test ${enableval} = "yes" ; then
4998 DISABLE_ASSERTIONS=
5000 assertions_enabled="yes"
5001 else
5002 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5004 assertions_enabled="no"
5007 # Check whether --enable-werror was given.
5008 if test "${enable_werror+set}" = set; then
5009 enableval=$enable_werror;
5010 else
5011 enableval="no"
5014 case "$enableval" in
5015 yes) ENABLE_WERROR=1
5017 no) ENABLE_WERROR=0
5019 default) ENABLE_WERROR=0
5021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5022 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5023 { (exit 1); exit 1; }; } ;;
5024 esac
5026 # Check whether --enable-expensive-checks was given.
5027 if test "${enable_expensive_checks+set}" = set; then
5028 enableval=$enable_expensive_checks;
5029 else
5030 enableval="no"
5033 if test ${enableval} = "yes" ; then
5034 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5036 EXPENSIVE_CHECKS=yes
5038 else
5039 ENABLE_EXPENSIVE_CHECKS=
5041 EXPENSIVE_CHECKS=no
5045 # Check whether --enable-abi-breaking-checks was given.
5046 if test "${enable_abi_breaking_checks+set}" = set; then
5047 enableval=$enable_abi_breaking_checks;
5048 else
5049 enableval="with-asserts"
5052 case "$enableval" in
5053 with-asserts) if test ${assertions_enabled} = "yes" ; then
5055 cat >>confdefs.h <<\_ACEOF
5056 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5057 _ACEOF
5059 ENABLE_ABI_BREAKING_CHECKS=1
5061 else
5062 ENABLE_ABI_BREAKING_CHECKS=0
5064 fi ;;
5065 yes)
5067 cat >>confdefs.h <<\_ACEOF
5068 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5069 _ACEOF
5071 ENABLE_ABI_BREAKING_CHECKS=1
5075 ENABLE_ABI_BREAKING_CHECKS=0
5078 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5079 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5080 { (exit 1); exit 1; }; }
5081 esac
5083 # Check whether --enable-debug-runtime was given.
5084 if test "${enable_debug_runtime+set}" = set; then
5085 enableval=$enable_debug_runtime;
5086 else
5087 enableval=no
5090 if test ${enableval} = "no" ; then
5091 DEBUG_RUNTIME=
5093 else
5094 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5098 # Check whether --enable-debug-symbols was given.
5099 if test "${enable_debug_symbols+set}" = set; then
5100 enableval=$enable_debug_symbols;
5101 else
5102 enableval=no
5105 if test ${enableval} = "no" ; then
5106 DEBUG_SYMBOLS=
5108 else
5109 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5113 # Check whether --enable-keep-symbols was given.
5114 if test "${enable_keep_symbols+set}" = set; then
5115 enableval=$enable_keep_symbols;
5116 else
5117 enableval=no
5120 if test ${enableval} = "no" ; then
5121 KEEP_SYMBOLS=
5123 else
5124 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5128 # Check whether --enable-jit was given.
5129 if test "${enable_jit+set}" = set; then
5130 enableval=$enable_jit;
5131 else
5132 enableval=default
5135 if test ${enableval} = "no"
5136 then
5137 JIT=
5139 else
5140 case "$llvm_cv_target_arch" in
5141 x86) TARGET_HAS_JIT=1
5143 Sparc) TARGET_HAS_JIT=0
5145 PowerPC) TARGET_HAS_JIT=1
5147 x86_64) TARGET_HAS_JIT=1
5149 ARM) TARGET_HAS_JIT=1
5151 Mips) TARGET_HAS_JIT=1
5153 XCore) TARGET_HAS_JIT=0
5155 MSP430) TARGET_HAS_JIT=0
5157 Hexagon) TARGET_HAS_JIT=0
5159 NVPTX) TARGET_HAS_JIT=0
5161 SystemZ) TARGET_HAS_JIT=1
5163 WebAssembly) TARGET_HAS_JIT=0
5165 *) TARGET_HAS_JIT=0
5167 esac
5170 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5171 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5174 # Check whether --enable-docs was given.
5175 if test "${enable_docs+set}" = set; then
5176 enableval=$enable_docs;
5177 else
5178 enableval=default
5181 case "$enableval" in
5182 yes) ENABLE_DOCS=1
5184 no) ENABLE_DOCS=0
5186 default) ENABLE_DOCS=1
5188 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5189 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5191 esac
5193 # Check whether --enable-doxygen was given.
5194 if test "${enable_doxygen+set}" = set; then
5195 enableval=$enable_doxygen;
5196 else
5197 enableval=default
5200 case "$enableval" in
5201 yes) ENABLE_DOXYGEN=1
5203 no|default) ENABLE_DOXYGEN=0
5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5208 esac
5210 # Check whether --enable-doxygen-search was given.
5211 if test "${enable_doxygen_search+set}" = set; then
5212 enableval=$enable_doxygen_search;
5213 else
5214 enableval=default
5217 ENABLE_DOXYGEN_SEARCH="$enableval"
5219 case "$enableval" in
5220 yes|no|default) ;;
5221 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5222 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5224 esac
5226 # Check whether --enable-doxygen-external-search was given.
5227 if test "${enable_doxygen_external_search+set}" = set; then
5228 enableval=$enable_doxygen_external_search;
5229 else
5230 enableval=default
5233 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5235 case "$enableval" in
5236 yes)
5237 case "$ENABLE_DOXYGEN_SEARCH" in
5238 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5239 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5240 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5241 { (exit 1); exit 1; }; } ;;
5242 esac
5244 no|default) ;;
5245 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5246 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5247 { (exit 1); exit 1; }; } ;;
5248 esac
5251 # Check whether --with-doxygen-search-engine-url was given.
5252 if test "${with_doxygen_search_engine_url+set}" = set; then
5253 withval=$with_doxygen_search_engine_url;
5256 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5259 # Check whether --with-doxygen-search-mappings was given.
5260 if test "${with_doxygen_search_mappings+set}" = set; then
5261 withval=$with_doxygen_search_mappings;
5264 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5266 case "$ENABLE_DOXYGEN_SEARCH" in
5267 yes)
5268 if test "$ENABLE_DOXYGEN" = "0" ; then
5269 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5270 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5271 { (exit 1); exit 1; }; }
5274 enable_searchengine=YES
5277 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5278 yes)
5279 enable_external_search=YES
5281 enable_server_based_search=YES
5283 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5285 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5289 no|default)
5290 enable_external_search=NO
5292 enable_server_based_search=NO
5297 esac
5300 no|default)
5301 enable_searchengine=NO
5304 enable_server_based_search=NO
5306 enable_external_search=NO
5312 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5313 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5314 { (exit 1); exit 1; }; }
5316 esac
5318 # Check whether --enable-doxygen-qt-help was given.
5319 if test "${enable_doxygen_qt_help+set}" = set; then
5320 enableval=$enable_doxygen_qt_help;
5321 else
5322 enableval=default
5325 case "$enableval" in
5326 yes)
5327 if test "$ENABLE_DOXYGEN" = "0" ; then
5328 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5329 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5330 { (exit 1); exit 1; }; }
5333 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5334 set dummy qhelpgenerator; ac_word=$2
5335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5337 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 case $QHELPGENERATOR in
5341 [\\/]* | ?:[\\/]*)
5342 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5352 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5356 done
5357 done
5358 IFS=$as_save_IFS
5360 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5362 esac
5364 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5365 if test -n "$QHELPGENERATOR"; then
5366 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5367 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5368 else
5369 { echo "$as_me:$LINENO: result: no" >&5
5370 echo "${ECHO_T}no" >&6; }
5375 llvm_doxygen_generate_qhp=YES
5377 llvm_doxygen_qch_filename=org.llvm.qch
5379 llvm_doxygen_qhp_namespace=org.llvm
5381 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5383 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5385 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5388 clang_doxygen_generate_qhp=YES
5390 clang_doxygen_qch_filename=org.llvm.clang.qch
5392 clang_doxygen_qhp_namespace=org.llvm.clang
5394 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5396 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5398 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5402 no|default)
5403 llvm_doxygen_generate_qhp=NO
5411 clang_doxygen_generate_qhp=NO
5416 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5418 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5423 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5424 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5425 { (exit 1); exit 1; }; } ;;
5426 esac
5428 # Check whether --enable-threads was given.
5429 if test "${enable_threads+set}" = set; then
5430 enableval=$enable_threads;
5431 else
5432 enableval=default
5435 case "$enableval" in
5436 yes) LLVM_ENABLE_THREADS=1
5438 no) LLVM_ENABLE_THREADS=0
5440 default) LLVM_ENABLE_THREADS=1
5442 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5443 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5444 { (exit 1); exit 1; }; } ;;
5445 esac
5447 cat >>confdefs.h <<_ACEOF
5448 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5449 _ACEOF
5452 # Check whether --enable-pthreads was given.
5453 if test "${enable_pthreads+set}" = set; then
5454 enableval=$enable_pthreads;
5455 else
5456 enableval=default
5459 case "$enableval" in
5460 yes) ENABLE_PTHREADS=1
5462 no) ENABLE_PTHREADS=0
5464 default) ENABLE_PTHREADS=1
5466 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5467 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5468 { (exit 1); exit 1; }; } ;;
5469 esac
5471 # Check whether --enable-zlib was given.
5472 if test "${enable_zlib+set}" = set; then
5473 enableval=$enable_zlib;
5474 else
5475 enableval=default
5478 case "$enableval" in
5479 yes) LLVM_ENABLE_ZLIB=1
5481 no) LLVM_ENABLE_ZLIB=0
5483 default) LLVM_ENABLE_ZLIB=1
5485 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5486 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5487 { (exit 1); exit 1; }; } ;;
5488 esac
5490 cat >>confdefs.h <<_ACEOF
5491 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5492 _ACEOF
5495 # Check whether --enable-pic was given.
5496 if test "${enable_pic+set}" = set; then
5497 enableval=$enable_pic;
5498 else
5499 enableval=default
5502 case "$enableval" in
5503 yes) ENABLE_PIC=1
5505 no) ENABLE_PIC=0
5507 default) ENABLE_PIC=1
5509 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5510 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5511 { (exit 1); exit 1; }; } ;;
5512 esac
5514 cat >>confdefs.h <<_ACEOF
5515 #define ENABLE_PIC $ENABLE_PIC
5516 _ACEOF
5519 # Check whether --enable-shared was given.
5520 if test "${enable_shared+set}" = set; then
5521 enableval=$enable_shared;
5522 else
5523 enableval=default
5526 case "$enableval" in
5527 yes) ENABLE_SHARED=1
5529 no) ENABLE_SHARED=0
5531 default) ENABLE_SHARED=0
5533 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5534 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5535 { (exit 1); exit 1; }; } ;;
5536 esac
5538 # Check whether --enable-embed-stdcxx was given.
5539 if test "${enable_embed_stdcxx+set}" = set; then
5540 enableval=$enable_embed_stdcxx;
5541 else
5542 enableval=default
5545 case "$enableval" in
5546 yes) ENABLE_EMBED_STDCXX=1
5548 no) ENABLE_EMBED_STDCXX=0
5550 default) ENABLE_EMBED_STDCXX=0
5552 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5553 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5554 { (exit 1); exit 1; }; } ;;
5555 esac
5557 # Check whether --enable-timestamps was given.
5558 if test "${enable_timestamps+set}" = set; then
5559 enableval=$enable_timestamps;
5560 else
5561 enableval=default
5564 case "$enableval" in
5565 yes) ENABLE_TIMESTAMPS=1
5567 no) ENABLE_TIMESTAMPS=0
5569 default) ENABLE_TIMESTAMPS=1
5571 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5572 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5573 { (exit 1); exit 1; }; } ;;
5574 esac
5576 cat >>confdefs.h <<_ACEOF
5577 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5578 _ACEOF
5581 # Check whether --enable-backtraces was given.
5582 if test "${enable_backtraces+set}" = set; then
5583 enableval=$enable_backtraces; case "$enableval" in
5584 yes) llvm_cv_enable_backtraces="yes" ;;
5585 no) llvm_cv_enable_backtraces="no" ;;
5586 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5587 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5588 { (exit 1); exit 1; }; } ;;
5589 esac
5590 else
5591 llvm_cv_enable_backtraces="yes"
5594 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5596 cat >>confdefs.h <<\_ACEOF
5597 #define ENABLE_BACKTRACES 1
5598 _ACEOF
5602 # Check whether --enable-crash-overrides was given.
5603 if test "${enable_crash_overrides+set}" = set; then
5604 enableval=$enable_crash_overrides; case "$enableval" in
5605 yes) llvm_cv_enable_crash_overrides="yes" ;;
5606 no) llvm_cv_enable_crash_overrides="no" ;;
5607 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5608 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5609 { (exit 1); exit 1; }; } ;;
5610 esac
5611 else
5612 llvm_cv_enable_crash_overrides="yes"
5615 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5617 cat >>confdefs.h <<\_ACEOF
5618 #define ENABLE_CRASH_OVERRIDES 1
5619 _ACEOF
5623 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5624 ALL_TARGETS=$ALL_TARGETS
5627 TARGETS_TO_BUILD=""
5628 # Check whether --enable-targets was given.
5629 if test "${enable_targets+set}" = set; then
5630 enableval=$enable_targets;
5631 else
5632 enableval=all
5635 if test "$enableval" = host-only ; then
5636 enableval=host
5638 case "$enableval" in
5639 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5640 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5641 case "$a_target" in
5642 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5643 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5644 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5645 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5646 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5647 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5648 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5649 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5650 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5652 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5653 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5654 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5655 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5656 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5657 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5658 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5659 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5660 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5661 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5662 wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5663 host) case "$llvm_cv_target_arch" in
5664 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5665 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5666 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5667 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5668 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5669 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5670 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5671 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5672 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5673 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5674 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5675 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5676 WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5677 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5678 echo "$as_me: error: Can not set target to build" >&2;}
5679 { (exit 1); exit 1; }; } ;;
5680 esac ;;
5681 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5682 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5683 { (exit 1); exit 1; }; } ;;
5684 esac
5685 done
5687 esac
5689 # Check whether --enable-experimental-targets was given.
5690 if test "${enable_experimental_targets+set}" = set; then
5691 enableval=$enable_experimental_targets;
5692 else
5693 enableval=disable
5697 if test ${enableval} != "disable"
5698 then
5699 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5702 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5705 for a_target in $TARGETS_TO_BUILD; do
5706 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5708 cat >>confdefs.h <<_ACEOF
5709 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5710 _ACEOF
5712 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5713 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5714 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5715 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5716 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5717 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5719 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5720 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5723 cat >>confdefs.h <<_ACEOF
5724 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5725 _ACEOF
5728 cat >>confdefs.h <<_ACEOF
5729 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5730 _ACEOF
5733 cat >>confdefs.h <<_ACEOF
5734 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5735 _ACEOF
5738 cat >>confdefs.h <<_ACEOF
5739 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5740 _ACEOF
5742 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5744 cat >>confdefs.h <<_ACEOF
5745 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5746 _ACEOF
5749 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5751 cat >>confdefs.h <<_ACEOF
5752 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5753 _ACEOF
5757 done
5759 LLVM_ENUM_TARGETS=""
5760 LLVM_ENUM_ASM_PRINTERS=""
5761 LLVM_ENUM_ASM_PARSERS=""
5762 LLVM_ENUM_DISASSEMBLERS=""
5763 for target_to_build in $TARGETS_TO_BUILD; do
5764 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5765 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5766 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5768 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5769 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5771 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5772 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5774 done
5781 # Check whether --with-optimize-option was given.
5782 if test "${with_optimize_option+set}" = set; then
5783 withval=$with_optimize_option;
5784 else
5785 withval=default
5788 { echo "$as_me:$LINENO: checking optimization flags" >&5
5789 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5790 case "$withval" in
5791 default)
5792 case "$llvm_cv_os_type" in
5793 FreeBSD) optimize_option=-O2 ;;
5794 MingW) optimize_option=-O2 ;;
5795 *) optimize_option=-O3 ;;
5796 esac ;;
5797 *) optimize_option="$withval" ;;
5798 esac
5799 OPTIMIZE_OPTION=$optimize_option
5801 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5802 echo "${ECHO_T}$optimize_option" >&6; }
5805 # Check whether --with-extra-options was given.
5806 if test "${with_extra_options+set}" = set; then
5807 withval=$with_extra_options;
5808 else
5809 withval=default
5812 case "$withval" in
5813 default) EXTRA_OPTIONS= ;;
5814 *) EXTRA_OPTIONS=$withval ;;
5815 esac
5816 EXTRA_OPTIONS=$EXTRA_OPTIONS
5820 # Check whether --with-extra-ld-options was given.
5821 if test "${with_extra_ld_options+set}" = set; then
5822 withval=$with_extra_ld_options;
5823 else
5824 withval=default
5827 case "$withval" in
5828 default) EXTRA_LD_OPTIONS= ;;
5829 *) EXTRA_LD_OPTIONS=$withval ;;
5830 esac
5831 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5834 # Check whether --enable-bindings was given.
5835 if test "${enable_bindings+set}" = set; then
5836 enableval=$enable_bindings;
5837 else
5838 enableval=default
5841 BINDINGS_TO_BUILD=""
5842 case "$enableval" in
5843 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5844 all ) BINDINGS_TO_BUILD="ocaml" ;;
5845 none | no) BINDINGS_TO_BUILD="" ;;
5846 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5847 case "$a_binding" in
5848 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5849 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5850 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5851 { (exit 1); exit 1; }; } ;;
5852 esac
5853 done
5855 esac
5858 # Check whether --with-ocaml-libdir was given.
5859 if test "${with_ocaml_libdir+set}" = set; then
5860 withval=$with_ocaml_libdir;
5861 else
5862 withval=auto
5865 case "$withval" in
5866 auto) with_ocaml_libdir="$withval" ;;
5867 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5868 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5869 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5870 { (exit 1); exit 1; }; } ;;
5871 esac
5874 # Check whether --with-clang-srcdir was given.
5875 if test "${with_clang_srcdir+set}" = set; then
5876 withval=$with_clang_srcdir;
5877 else
5878 withval="-"
5881 case "$withval" in
5882 -) clang_src_root="" ;;
5883 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5884 *) clang_src_root="$ac_pwd/$withval" ;;
5885 esac
5886 CLANG_SRC_ROOT=$clang_src_root
5890 # Check whether --with-clang-resource-dir was given.
5891 if test "${with_clang_resource_dir+set}" = set; then
5892 withval=$with_clang_resource_dir;
5893 else
5894 withval=""
5898 cat >>confdefs.h <<_ACEOF
5899 #define CLANG_RESOURCE_DIR "$withval"
5900 _ACEOF
5904 # Check whether --with-c-include-dirs was given.
5905 if test "${with_c_include_dirs+set}" = set; then
5906 withval=$with_c_include_dirs;
5907 else
5908 withval=""
5912 cat >>confdefs.h <<_ACEOF
5913 #define C_INCLUDE_DIRS "$withval"
5914 _ACEOF
5917 # Clang normally uses the system c++ headers and libraries. With this option,
5918 # clang will use the ones provided by a gcc installation instead. This option should
5919 # be passed the same value that was used with --prefix when configuring gcc.
5921 # Check whether --with-gcc-toolchain was given.
5922 if test "${with_gcc_toolchain+set}" = set; then
5923 withval=$with_gcc_toolchain;
5924 else
5925 withval=""
5929 cat >>confdefs.h <<_ACEOF
5930 #define GCC_INSTALL_PREFIX "$withval"
5931 _ACEOF
5935 # Check whether --with-default-sysroot was given.
5936 if test "${with_default_sysroot+set}" = set; then
5937 withval=$with_default_sysroot;
5938 else
5939 withval=""
5943 cat >>confdefs.h <<_ACEOF
5944 #define DEFAULT_SYSROOT "$withval"
5945 _ACEOF
5949 # Check whether --with-clang-default-openmp-runtime was given.
5950 if test "${with_clang_default_openmp_runtime+set}" = set; then
5951 withval=$with_clang_default_openmp_runtime;
5952 else
5953 withval="libgomp"
5957 cat >>confdefs.h <<_ACEOF
5958 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5959 _ACEOF
5963 # Check whether --with-binutils-include was given.
5964 if test "${with_binutils_include+set}" = set; then
5965 withval=$with_binutils_include;
5966 else
5967 withval=default
5970 case "$withval" in
5971 default) WITH_BINUTILS_INCDIR=default ;;
5972 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5973 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5974 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5975 { (exit 1); exit 1; }; } ;;
5976 esac
5977 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5978 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5980 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5981 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5982 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5983 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5984 { (exit 1); exit 1; }; };
5989 # Check whether --with-bug-report-url was given.
5990 if test "${with_bug_report_url+set}" = set; then
5991 withval=$with_bug_report_url;
5992 else
5993 withval="http://llvm.org/bugs/"
5997 cat >>confdefs.h <<_ACEOF
5998 #define BUG_REPORT_URL "$withval"
5999 _ACEOF
6002 # Check whether --enable-terminfo was given.
6003 if test "${enable_terminfo+set}" = set; then
6004 enableval=$enable_terminfo; case "$enableval" in
6005 yes) llvm_cv_enable_terminfo="yes" ;;
6006 no) llvm_cv_enable_terminfo="no" ;;
6007 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6008 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6009 { (exit 1); exit 1; }; } ;;
6010 esac
6011 else
6012 llvm_cv_enable_terminfo="yes"
6015 case "$llvm_cv_enable_terminfo" in
6016 yes) ENABLE_TERMINFO=1
6018 no) ENABLE_TERMINFO=0
6020 esac
6022 # Check whether --enable-libedit was given.
6023 if test "${enable_libedit+set}" = set; then
6024 enableval=$enable_libedit; case "$enableval" in
6025 yes) llvm_cv_enable_libedit="yes" ;;
6026 no) llvm_cv_enable_libedit="no" ;;
6027 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6028 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6029 { (exit 1); exit 1; }; } ;;
6030 esac
6031 else
6032 llvm_cv_enable_libedit="yes"
6036 # Check whether --enable-libffi was given.
6037 if test "${enable_libffi+set}" = set; then
6038 enableval=$enable_libffi; case "$enableval" in
6039 yes) llvm_cv_enable_libffi="yes" ;;
6040 no) llvm_cv_enable_libffi="no" ;;
6041 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6042 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6043 { (exit 1); exit 1; }; } ;;
6044 esac
6045 else
6046 llvm_cv_enable_libffi=no
6051 # Check whether --with-internal-prefix was given.
6052 if test "${with_internal_prefix+set}" = set; then
6053 withval=$with_internal_prefix;
6054 else
6055 withval=""
6058 INTERNAL_PREFIX=$withval
6062 { echo "$as_me:$LINENO: checking for GNU make" >&5
6063 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6064 if test "${llvm_cv_gnu_make_command+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067 llvm_cv_gnu_make_command=''
6068 for a in "$MAKE" make gmake gnumake ; do
6069 if test -z "$a" ; then continue ; fi ;
6070 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6071 then
6072 llvm_cv_gnu_make_command=$a ;
6073 break;
6075 done
6077 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6078 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6079 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6080 ifGNUmake='' ;
6081 else
6082 ifGNUmake='#' ;
6083 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6084 echo "${ECHO_T}\"Not found\"" >&6; };
6088 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6089 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6090 LN_S=$as_ln_s
6091 if test "$LN_S" = "ln -s"; then
6092 { echo "$as_me:$LINENO: result: yes" >&5
6093 echo "${ECHO_T}yes" >&6; }
6094 else
6095 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6096 echo "${ECHO_T}no, using $LN_S" >&6; }
6099 # Extract the first word of "nm", so it can be a program name with args.
6100 set dummy nm; ac_word=$2
6101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6103 if test "${ac_cv_path_NM+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 case $NM in
6107 [\\/]* | ?:[\\/]*)
6108 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6122 done
6123 done
6124 IFS=$as_save_IFS
6126 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6128 esac
6130 NM=$ac_cv_path_NM
6131 if test -n "$NM"; then
6132 { echo "$as_me:$LINENO: result: $NM" >&5
6133 echo "${ECHO_T}$NM" >&6; }
6134 else
6135 { echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6; }
6140 # Extract the first word of "cmp", so it can be a program name with args.
6141 set dummy cmp; ac_word=$2
6142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6144 if test "${ac_cv_path_CMP+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 case $CMP in
6148 [\\/]* | ?:[\\/]*)
6149 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6163 done
6164 done
6165 IFS=$as_save_IFS
6167 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6169 esac
6171 CMP=$ac_cv_path_CMP
6172 if test -n "$CMP"; then
6173 { echo "$as_me:$LINENO: result: $CMP" >&5
6174 echo "${ECHO_T}$CMP" >&6; }
6175 else
6176 { echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6; }
6181 # Extract the first word of "cp", so it can be a program name with args.
6182 set dummy cp; ac_word=$2
6183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6185 if test "${ac_cv_path_CP+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 case $CP in
6189 [\\/]* | ?:[\\/]*)
6190 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6204 done
6205 done
6206 IFS=$as_save_IFS
6208 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6210 esac
6212 CP=$ac_cv_path_CP
6213 if test -n "$CP"; then
6214 { echo "$as_me:$LINENO: result: $CP" >&5
6215 echo "${ECHO_T}$CP" >&6; }
6216 else
6217 { echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6; }
6222 # Extract the first word of "date", so it can be a program name with args.
6223 set dummy date; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_path_DATE+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 case $DATE in
6230 [\\/]* | ?:[\\/]*)
6231 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6245 done
6246 done
6247 IFS=$as_save_IFS
6249 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6251 esac
6253 DATE=$ac_cv_path_DATE
6254 if test -n "$DATE"; then
6255 { echo "$as_me:$LINENO: result: $DATE" >&5
6256 echo "${ECHO_T}$DATE" >&6; }
6257 else
6258 { echo "$as_me:$LINENO: result: no" >&5
6259 echo "${ECHO_T}no" >&6; }
6263 # Extract the first word of "find", so it can be a program name with args.
6264 set dummy find; ac_word=$2
6265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267 if test "${ac_cv_path_FIND+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 case $FIND in
6271 [\\/]* | ?:[\\/]*)
6272 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6286 done
6287 done
6288 IFS=$as_save_IFS
6290 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6292 esac
6294 FIND=$ac_cv_path_FIND
6295 if test -n "$FIND"; then
6296 { echo "$as_me:$LINENO: result: $FIND" >&5
6297 echo "${ECHO_T}$FIND" >&6; }
6298 else
6299 { echo "$as_me:$LINENO: result: no" >&5
6300 echo "${ECHO_T}no" >&6; }
6304 # Extract the first word of "grep", so it can be a program name with args.
6305 set dummy grep; ac_word=$2
6306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308 if test "${ac_cv_path_GREP+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 case $GREP in
6312 [\\/]* | ?:[\\/]*)
6313 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6327 done
6328 done
6329 IFS=$as_save_IFS
6331 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6333 esac
6335 GREP=$ac_cv_path_GREP
6336 if test -n "$GREP"; then
6337 { echo "$as_me:$LINENO: result: $GREP" >&5
6338 echo "${ECHO_T}$GREP" >&6; }
6339 else
6340 { echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6; }
6345 # Extract the first word of "mkdir", so it can be a program name with args.
6346 set dummy mkdir; ac_word=$2
6347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6349 if test "${ac_cv_path_MKDIR+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352 case $MKDIR in
6353 [\\/]* | ?:[\\/]*)
6354 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6372 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6374 esac
6376 MKDIR=$ac_cv_path_MKDIR
6377 if test -n "$MKDIR"; then
6378 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6379 echo "${ECHO_T}$MKDIR" >&6; }
6380 else
6381 { echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6; }
6386 # Extract the first word of "mv", so it can be a program name with args.
6387 set dummy mv; ac_word=$2
6388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6390 if test "${ac_cv_path_MV+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393 case $MV in
6394 [\\/]* | ?:[\\/]*)
6395 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6409 done
6410 done
6411 IFS=$as_save_IFS
6413 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6415 esac
6417 MV=$ac_cv_path_MV
6418 if test -n "$MV"; then
6419 { echo "$as_me:$LINENO: result: $MV" >&5
6420 echo "${ECHO_T}$MV" >&6; }
6421 else
6422 { echo "$as_me:$LINENO: result: no" >&5
6423 echo "${ECHO_T}no" >&6; }
6427 if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_RANLIB+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 if test -n "$RANLIB"; then
6436 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6449 done
6450 done
6451 IFS=$as_save_IFS
6455 RANLIB=$ac_cv_prog_RANLIB
6456 if test -n "$RANLIB"; then
6457 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6458 echo "${ECHO_T}$RANLIB" >&6; }
6459 else
6460 { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6466 if test -z "$ac_cv_prog_RANLIB"; then
6467 ac_ct_RANLIB=$RANLIB
6468 # Extract the first word of "ranlib", so it can be a program name with args.
6469 set dummy ranlib; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 if test -n "$ac_ct_RANLIB"; then
6476 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_RANLIB="ranlib"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6489 done
6490 done
6491 IFS=$as_save_IFS
6495 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6496 if test -n "$ac_ct_RANLIB"; then
6497 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6498 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6499 else
6500 { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6504 if test "x$ac_ct_RANLIB" = x; then
6505 RANLIB=":"
6506 else
6507 case $cross_compiling:$ac_tool_warned in
6508 yes:)
6509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet. If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&5
6512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6513 whose name does not start with the host triplet. If you think this
6514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517 RANLIB=$ac_ct_RANLIB
6519 else
6520 RANLIB="$ac_cv_prog_RANLIB"
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}ar; ac_word=$2
6526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528 if test "${ac_cv_prog_AR+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531 if test -n "$AR"; then
6532 ac_cv_prog_AR="$AR" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_AR="${ac_tool_prefix}ar"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6545 done
6546 done
6547 IFS=$as_save_IFS
6551 AR=$ac_cv_prog_AR
6552 if test -n "$AR"; then
6553 { echo "$as_me:$LINENO: result: $AR" >&5
6554 echo "${ECHO_T}$AR" >&6; }
6555 else
6556 { echo "$as_me:$LINENO: result: no" >&5
6557 echo "${ECHO_T}no" >&6; }
6562 if test -z "$ac_cv_prog_AR"; then
6563 ac_ct_AR=$AR
6564 # Extract the first word of "ar", so it can be a program name with args.
6565 set dummy ar; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571 if test -n "$ac_ct_AR"; then
6572 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_ac_ct_AR="ar"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6585 done
6586 done
6587 IFS=$as_save_IFS
6591 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6592 if test -n "$ac_ct_AR"; then
6593 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6594 echo "${ECHO_T}$ac_ct_AR" >&6; }
6595 else
6596 { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6600 if test "x$ac_ct_AR" = x; then
6601 AR="false"
6602 else
6603 case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet. If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&5
6608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6609 whose name does not start with the host triplet. If you think this
6610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613 AR=$ac_ct_AR
6615 else
6616 AR="$ac_cv_prog_AR"
6619 # Extract the first word of "rm", so it can be a program name with args.
6620 set dummy rm; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_path_RM+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 case $RM in
6627 [\\/]* | ?:[\\/]*)
6628 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6642 done
6643 done
6644 IFS=$as_save_IFS
6646 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6648 esac
6650 RM=$ac_cv_path_RM
6651 if test -n "$RM"; then
6652 { echo "$as_me:$LINENO: result: $RM" >&5
6653 echo "${ECHO_T}$RM" >&6; }
6654 else
6655 { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6660 # Extract the first word of "sed", so it can be a program name with args.
6661 set dummy sed; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_path_SED+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 case $SED in
6668 [\\/]* | ?:[\\/]*)
6669 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6683 done
6684 done
6685 IFS=$as_save_IFS
6687 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6689 esac
6691 SED=$ac_cv_path_SED
6692 if test -n "$SED"; then
6693 { echo "$as_me:$LINENO: result: $SED" >&5
6694 echo "${ECHO_T}$SED" >&6; }
6695 else
6696 { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6701 # Extract the first word of "tar", so it can be a program name with args.
6702 set dummy tar; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_TAR+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708 case $TAR in
6709 [\\/]* | ?:[\\/]*)
6710 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6724 done
6725 done
6726 IFS=$as_save_IFS
6728 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6730 esac
6732 TAR=$ac_cv_path_TAR
6733 if test -n "$TAR"; then
6734 { echo "$as_me:$LINENO: result: $TAR" >&5
6735 echo "${ECHO_T}$TAR" >&6; }
6736 else
6737 { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6742 # Extract the first word of "pwd", so it can be a program name with args.
6743 set dummy pwd; ac_word=$2
6744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746 if test "${ac_cv_path_BINPWD+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 case $BINPWD in
6750 [\\/]* | ?:[\\/]*)
6751 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6765 done
6766 done
6767 IFS=$as_save_IFS
6769 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6771 esac
6773 BINPWD=$ac_cv_path_BINPWD
6774 if test -n "$BINPWD"; then
6775 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6776 echo "${ECHO_T}$BINPWD" >&6; }
6777 else
6778 { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6784 # Extract the first word of "dot", so it can be a program name with args.
6785 set dummy dot; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_path_DOT+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 case $DOT in
6792 [\\/]* | ?:[\\/]*)
6793 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6807 done
6808 done
6809 IFS=$as_save_IFS
6811 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6813 esac
6815 DOT=$ac_cv_path_DOT
6816 if test -n "$DOT"; then
6817 { echo "$as_me:$LINENO: result: $DOT" >&5
6818 echo "${ECHO_T}$DOT" >&6; }
6819 else
6820 { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6825 if test "$DOT" != "echo dot" ; then
6827 cat >>confdefs.h <<\_ACEOF
6828 #define HAVE_DOT 1
6829 _ACEOF
6831 if test "$llvm_cv_os_type" = "MingW" ; then
6832 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6835 cat >>confdefs.h <<_ACEOF
6836 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6837 _ACEOF
6841 # Find a good install program. We prefer a C program (faster),
6842 # so one script is as good as another. But avoid the broken or
6843 # incompatible versions:
6844 # SysV /etc/install, /usr/sbin/install
6845 # SunOS /usr/etc/install
6846 # IRIX /sbin/install
6847 # AIX /bin/install
6848 # AmigaOS /C/install, which installs bootblocks on floppy discs
6849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6852 # OS/2's system install, which has a completely different semantic
6853 # ./install, which can be erroneously created by make from ./install.sh.
6854 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6855 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6856 if test -z "$INSTALL"; then
6857 if test "${ac_cv_path_install+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 # Account for people who put trailing slashes in PATH elements.
6866 case $as_dir/ in
6867 ./ | .// | /cC/* | \
6868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6869 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6870 /usr/ucb/* ) ;;
6872 # OSF1 and SCO ODT 3.0 have their own names for install.
6873 # Don't use installbsd from OSF since it installs stuff as root
6874 # by default.
6875 for ac_prog in ginstall scoinst install; do
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6878 if test $ac_prog = install &&
6879 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6880 # AIX install. It has an incompatible calling convention.
6882 elif test $ac_prog = install &&
6883 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6884 # program-specific install script used by HP pwplus--don't use.
6886 else
6887 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6888 break 3
6891 done
6892 done
6894 esac
6895 done
6896 IFS=$as_save_IFS
6900 if test "${ac_cv_path_install+set}" = set; then
6901 INSTALL=$ac_cv_path_install
6902 else
6903 # As a last resort, use the slow shell script. Don't cache a
6904 # value for INSTALL within a source directory, because that will
6905 # break other packages using the cache if that directory is
6906 # removed, or if the value is a relative name.
6907 INSTALL=$ac_install_sh
6910 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6911 echo "${ECHO_T}$INSTALL" >&6; }
6913 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6914 # It thinks the first close brace ends the variable substitution.
6915 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6917 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6919 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6921 case "$INSTALL" in
6922 [\\/$]* | ?:[\\/]* ) ;;
6923 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6924 esac
6926 # Extract the first word of "bzip2", so it can be a program name with args.
6927 set dummy bzip2; ac_word=$2
6928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930 if test "${ac_cv_path_BZIP2+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 case $BZIP2 in
6934 [\\/]* | ?:[\\/]*)
6935 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6949 done
6950 done
6951 IFS=$as_save_IFS
6954 esac
6956 BZIP2=$ac_cv_path_BZIP2
6957 if test -n "$BZIP2"; then
6958 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6959 echo "${ECHO_T}$BZIP2" >&6; }
6960 else
6961 { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6966 # Extract the first word of "cat", so it can be a program name with args.
6967 set dummy cat; ac_word=$2
6968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970 if test "${ac_cv_path_CAT+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973 case $CAT in
6974 [\\/]* | ?:[\\/]*)
6975 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6989 done
6990 done
6991 IFS=$as_save_IFS
6994 esac
6996 CAT=$ac_cv_path_CAT
6997 if test -n "$CAT"; then
6998 { echo "$as_me:$LINENO: result: $CAT" >&5
6999 echo "${ECHO_T}$CAT" >&6; }
7000 else
7001 { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7006 # Extract the first word of "doxygen", so it can be a program name with args.
7007 set dummy doxygen; ac_word=$2
7008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013 case $DOXYGEN in
7014 [\\/]* | ?:[\\/]*)
7015 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7029 done
7030 done
7031 IFS=$as_save_IFS
7034 esac
7036 DOXYGEN=$ac_cv_path_DOXYGEN
7037 if test -n "$DOXYGEN"; then
7038 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7039 echo "${ECHO_T}$DOXYGEN" >&6; }
7040 else
7041 { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7046 # Extract the first word of "groff", so it can be a program name with args.
7047 set dummy groff; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_GROFF+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 case $GROFF in
7054 [\\/]* | ?:[\\/]*)
7055 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7069 done
7070 done
7071 IFS=$as_save_IFS
7074 esac
7076 GROFF=$ac_cv_path_GROFF
7077 if test -n "$GROFF"; then
7078 { echo "$as_me:$LINENO: result: $GROFF" >&5
7079 echo "${ECHO_T}$GROFF" >&6; }
7080 else
7081 { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7086 # Extract the first word of "gzip", so it can be a program name with args.
7087 set dummy gzip; ac_word=$2
7088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 case $GZIPBIN in
7094 [\\/]* | ?:[\\/]*)
7095 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7109 done
7110 done
7111 IFS=$as_save_IFS
7114 esac
7116 GZIPBIN=$ac_cv_path_GZIPBIN
7117 if test -n "$GZIPBIN"; then
7118 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7119 echo "${ECHO_T}$GZIPBIN" >&6; }
7120 else
7121 { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7126 # Extract the first word of "pdfroff", so it can be a program name with args.
7127 set dummy pdfroff; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_PDFROFF+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133 case $PDFROFF in
7134 [\\/]* | ?:[\\/]*)
7135 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7149 done
7150 done
7151 IFS=$as_save_IFS
7154 esac
7156 PDFROFF=$ac_cv_path_PDFROFF
7157 if test -n "$PDFROFF"; then
7158 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7159 echo "${ECHO_T}$PDFROFF" >&6; }
7160 else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7166 # Extract the first word of "zip", so it can be a program name with args.
7167 set dummy zip; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_path_ZIP+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173 case $ZIP in
7174 [\\/]* | ?:[\\/]*)
7175 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7189 done
7190 done
7191 IFS=$as_save_IFS
7194 esac
7196 ZIP=$ac_cv_path_ZIP
7197 if test -n "$ZIP"; then
7198 { echo "$as_me:$LINENO: result: $ZIP" >&5
7199 echo "${ECHO_T}$ZIP" >&6; }
7200 else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7206 # Extract the first word of "go", so it can be a program name with args.
7207 set dummy go; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_GO+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213 case $GO in
7214 [\\/]* | ?:[\\/]*)
7215 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7229 done
7230 done
7231 IFS=$as_save_IFS
7234 esac
7236 GO=$ac_cv_path_GO
7237 if test -n "$GO"; then
7238 { echo "$as_me:$LINENO: result: $GO" >&5
7239 echo "${ECHO_T}$GO" >&6; }
7240 else
7241 { echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6; }
7246 for ac_prog in ocamlfind
7248 # Extract the first word of "$ac_prog", so it can be a program name with args.
7249 set dummy $ac_prog; ac_word=$2
7250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255 case $OCAMLFIND in
7256 [\\/]* | ?:[\\/]*)
7257 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7271 done
7272 done
7273 IFS=$as_save_IFS
7276 esac
7278 OCAMLFIND=$ac_cv_path_OCAMLFIND
7279 if test -n "$OCAMLFIND"; then
7280 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7281 echo "${ECHO_T}$OCAMLFIND" >&6; }
7282 else
7283 { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7288 test -n "$OCAMLFIND" && break
7289 done
7291 for ac_prog in gas as
7293 # Extract the first word of "$ac_prog", so it can be a program name with args.
7294 set dummy $ac_prog; 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_GAS+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300 case $GAS in
7301 [\\/]* | ?:[\\/]*)
7302 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7308 IFS=$as_save_IFS
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_GAS="$as_dir/$ac_word$ac_exec_ext"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7316 done
7317 done
7318 IFS=$as_save_IFS
7321 esac
7323 GAS=$ac_cv_path_GAS
7324 if test -n "$GAS"; then
7325 { echo "$as_me:$LINENO: result: $GAS" >&5
7326 echo "${ECHO_T}$GAS" >&6; }
7327 else
7328 { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7333 test -n "$GAS" && break
7334 done
7337 { echo "$as_me:$LINENO: checking for linker version" >&5
7338 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7339 if test "${llvm_cv_link_version+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7343 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7345 # Check for ld64.
7346 if (echo "$version_string" | grep -q "ld64"); then
7347 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7348 else
7349 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7353 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7354 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7356 cat >>confdefs.h <<_ACEOF
7357 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7358 _ACEOF
7363 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7364 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7365 if test "${llvm_cv_link_use_r+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368 ac_ext=c
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7374 oldcflags="$CFLAGS"
7375 CFLAGS="$CFLAGS -Wl,-R."
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h. */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7384 main ()
7388 return 0;
7390 _ACEOF
7391 rm -f conftest.$ac_objext conftest$ac_exeext
7392 if { (ac_try="$ac_link"
7393 case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_link") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } &&
7405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7406 { (case "(($ac_try" in
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7409 esac
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_try") 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; } &&
7415 { ac_try='test -s conftest$ac_exeext'
7416 { (case "(($ac_try" in
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7419 esac
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421 (eval "$ac_try") 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 llvm_cv_link_use_r=yes
7426 else
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7430 llvm_cv_link_use_r=no
7433 rm -f core conftest.err conftest.$ac_objext \
7434 conftest$ac_exeext conftest.$ac_ext
7435 CFLAGS="$oldcflags"
7436 ac_ext=c
7437 ac_cpp='$CPP $CPPFLAGS'
7438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7444 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7445 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7446 if test "$llvm_cv_link_use_r" = yes ; then
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_LINK_R 1
7450 _ACEOF
7455 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7456 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7457 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460 ac_ext=c
7461 ac_cpp='$CPP $CPPFLAGS'
7462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7466 oldcflags="$CFLAGS"
7467 CFLAGS="$CFLAGS -rdynamic"
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7476 main ()
7480 return 0;
7482 _ACEOF
7483 rm -f conftest.$ac_objext conftest$ac_exeext
7484 if { (ac_try="$ac_link"
7485 case "(($ac_try" in
7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7488 esac
7489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7490 (eval "$ac_link") 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7498 { (case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501 esac
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_try") 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; } &&
7507 { ac_try='test -s conftest$ac_exeext'
7508 { (case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511 esac
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_try") 2>&5
7514 ac_status=$?
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; }; then
7517 llvm_cv_link_use_export_dynamic=yes
7518 else
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7522 llvm_cv_link_use_export_dynamic=no
7525 rm -f core conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527 CFLAGS="$oldcflags"
7528 ac_ext=c
7529 ac_cpp='$CPP $CPPFLAGS'
7530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7537 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7538 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7540 cat >>confdefs.h <<\_ACEOF
7541 #define HAVE_LINK_EXPORT_DYNAMIC 1
7542 _ACEOF
7547 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7548 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7549 if test "${llvm_cv_link_use_version_script+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 ac_ext=c
7553 ac_cpp='$CPP $CPPFLAGS'
7554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558 oldcflags="$CFLAGS"
7560 # The following code is from the autoconf manual,
7561 # "11.13: Limitations of Usual Tools".
7562 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7563 # Use mktemp if possible; otherwise fall back on mkdir,
7564 # with $RANDOM to make collisions less likely.
7565 : ${TMPDIR=/tmp}
7567 tmp=`
7568 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7569 ` &&
7570 test -n "$tmp" && test -d "$tmp"
7571 } || {
7572 tmp=$TMPDIR/foo$$-$RANDOM
7573 (umask 077 && mkdir "$tmp")
7574 } || exit $?
7576 echo "{" > "$tmp/export.map"
7577 echo " global: main;" >> "$tmp/export.map"
7578 echo " local: *;" >> "$tmp/export.map"
7579 echo "};" >> "$tmp/export.map"
7581 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7582 cat >conftest.$ac_ext <<_ACEOF
7583 /* confdefs.h. */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7590 main ()
7594 return 0;
7596 _ACEOF
7597 rm -f conftest.$ac_objext conftest$ac_exeext
7598 if { (ac_try="$ac_link"
7599 case "(($ac_try" in
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602 esac
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_link") 2>conftest.er1
7605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7612 { (case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_try") 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; } &&
7621 { ac_try='test -s conftest$ac_exeext'
7622 { (case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_try") 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 llvm_cv_link_use_version_script=yes
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 llvm_cv_link_use_version_script=no
7639 rm -f core conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7641 rm "$tmp/export.map"
7642 rmdir "$tmp"
7643 CFLAGS="$oldcflags"
7644 ac_ext=c
7645 ac_cpp='$CPP $CPPFLAGS'
7646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7653 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7654 if test "$llvm_cv_link_use_version_script" = yes ; then
7655 HAVE_LINK_VERSION_SCRIPT=1
7661 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7662 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_GREP+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 # Extract the first word of "grep ggrep" to use in msg output
7667 if test -z "$GREP"; then
7668 set dummy grep ggrep; ac_prog_name=$2
7669 if test "${ac_cv_path_GREP+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 ac_path_GREP_found=false
7673 # Loop through the user's path and test for each of PROGNAME-LIST
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_prog in grep ggrep; do
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7682 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7683 # Check for GNU ac_path_GREP and select it if it is found.
7684 # Check for GNU $ac_path_GREP
7685 case `"$ac_path_GREP" --version 2>&1` in
7686 *GNU*)
7687 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7689 ac_count=0
7690 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7691 while :
7693 cat "conftest.in" "conftest.in" >"conftest.tmp"
7694 mv "conftest.tmp" "conftest.in"
7695 cp "conftest.in" "conftest.nl"
7696 echo 'GREP' >> "conftest.nl"
7697 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7699 ac_count=`expr $ac_count + 1`
7700 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7701 # Best one so far, save it but keep looking for a better one
7702 ac_cv_path_GREP="$ac_path_GREP"
7703 ac_path_GREP_max=$ac_count
7705 # 10*(2^10) chars as input seems more than enough
7706 test $ac_count -gt 10 && break
7707 done
7708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7709 esac
7712 $ac_path_GREP_found && break 3
7713 done
7714 done
7716 done
7717 IFS=$as_save_IFS
7722 GREP="$ac_cv_path_GREP"
7723 if test -z "$GREP"; then
7724 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7725 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7726 { (exit 1); exit 1; }; }
7729 else
7730 ac_cv_path_GREP=$GREP
7735 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7736 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7737 GREP="$ac_cv_path_GREP"
7740 { echo "$as_me:$LINENO: checking for egrep" >&5
7741 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7742 if test "${ac_cv_path_EGREP+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7746 then ac_cv_path_EGREP="$GREP -E"
7747 else
7748 # Extract the first word of "egrep" to use in msg output
7749 if test -z "$EGREP"; then
7750 set dummy egrep; ac_prog_name=$2
7751 if test "${ac_cv_path_EGREP+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754 ac_path_EGREP_found=false
7755 # Loop through the user's path and test for each of PROGNAME-LIST
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_prog in egrep; do
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7764 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7765 # Check for GNU ac_path_EGREP and select it if it is found.
7766 # Check for GNU $ac_path_EGREP
7767 case `"$ac_path_EGREP" --version 2>&1` in
7768 *GNU*)
7769 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7771 ac_count=0
7772 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7773 while :
7775 cat "conftest.in" "conftest.in" >"conftest.tmp"
7776 mv "conftest.tmp" "conftest.in"
7777 cp "conftest.in" "conftest.nl"
7778 echo 'EGREP' >> "conftest.nl"
7779 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7781 ac_count=`expr $ac_count + 1`
7782 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7783 # Best one so far, save it but keep looking for a better one
7784 ac_cv_path_EGREP="$ac_path_EGREP"
7785 ac_path_EGREP_max=$ac_count
7787 # 10*(2^10) chars as input seems more than enough
7788 test $ac_count -gt 10 && break
7789 done
7790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7791 esac
7794 $ac_path_EGREP_found && break 3
7795 done
7796 done
7798 done
7799 IFS=$as_save_IFS
7804 EGREP="$ac_cv_path_EGREP"
7805 if test -z "$EGREP"; then
7806 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7807 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7808 { (exit 1); exit 1; }; }
7811 else
7812 ac_cv_path_EGREP=$EGREP
7818 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7819 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7820 EGREP="$ac_cv_path_EGREP"
7823 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7824 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7825 if test "${ac_cv_header_stdc+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 #include <stdlib.h>
7835 #include <stdarg.h>
7836 #include <string.h>
7837 #include <float.h>
7840 main ()
7844 return 0;
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7849 case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852 esac
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7862 { (case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_try") 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; } &&
7871 { ac_try='test -s conftest.$ac_objext'
7872 { (case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875 esac
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_try") 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 ac_cv_header_stdc=yes
7882 else
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 ac_cv_header_stdc=no
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891 if test $ac_cv_header_stdc = yes; then
7892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 #include <string.h>
7901 _ACEOF
7902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7903 $EGREP "memchr" >/dev/null 2>&1; then
7905 else
7906 ac_cv_header_stdc=no
7908 rm -f conftest*
7912 if test $ac_cv_header_stdc = yes; then
7913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h. */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 #include <stdlib.h>
7922 _ACEOF
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924 $EGREP "free" >/dev/null 2>&1; then
7926 else
7927 ac_cv_header_stdc=no
7929 rm -f conftest*
7933 if test $ac_cv_header_stdc = yes; then
7934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7935 if test "$cross_compiling" = yes; then
7937 else
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 #include <ctype.h>
7945 #include <stdlib.h>
7946 #if ((' ' & 0x0FF) == 0x020)
7947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7949 #else
7950 # define ISLOWER(c) \
7951 (('a' <= (c) && (c) <= 'i') \
7952 || ('j' <= (c) && (c) <= 'r') \
7953 || ('s' <= (c) && (c) <= 'z'))
7954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7955 #endif
7957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7959 main ()
7961 int i;
7962 for (i = 0; i < 256; i++)
7963 if (XOR (islower (i), ISLOWER (i))
7964 || toupper (i) != TOUPPER (i))
7965 return 2;
7966 return 0;
7968 _ACEOF
7969 rm -f conftest$ac_exeext
7970 if { (ac_try="$ac_link"
7971 case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_link") 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7980 { (case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_try") 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7990 else
7991 echo "$as_me: program exited with status $ac_status" >&5
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ( exit $ac_status )
7996 ac_cv_header_stdc=no
7998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8004 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8005 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8006 if test $ac_cv_header_stdc = yes; then
8008 cat >>confdefs.h <<\_ACEOF
8009 #define STDC_HEADERS 1
8010 _ACEOF
8014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8024 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8025 inttypes.h stdint.h unistd.h
8027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8041 #include <$ac_header>
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (ac_try="$ac_compile"
8045 case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8058 { (case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061 esac
8062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063 (eval "$ac_try") 2>&5
8064 ac_status=$?
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; } &&
8067 { ac_try='test -s conftest.$ac_objext'
8068 { (case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_try") 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 eval "$as_ac_Header=yes"
8078 else
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8082 eval "$as_ac_Header=no"
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 ac_res=`eval echo '${'$as_ac_Header'}'`
8088 { echo "$as_me:$LINENO: result: $ac_res" >&5
8089 echo "${ECHO_T}$ac_res" >&6; }
8090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8091 cat >>confdefs.h <<_ACEOF
8092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8093 _ACEOF
8097 done
8101 for ac_header in errno.h
8103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 ac_res=`eval echo '${'$as_ac_Header'}'`
8111 { echo "$as_me:$LINENO: result: $ac_res" >&5
8112 echo "${ECHO_T}$ac_res" >&6; }
8113 else
8114 # Is the header compilable?
8115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 $ac_includes_default
8124 #include <$ac_header>
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (ac_try="$ac_compile"
8128 case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8131 esac
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_compile") 2>conftest.er1
8134 ac_status=$?
8135 grep -v '^ *+' conftest.er1 >conftest.err
8136 rm -f conftest.er1
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8141 { (case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8144 esac
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_try") 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; } &&
8150 { ac_try='test -s conftest.$ac_objext'
8151 { (case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_try") 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; }; then
8160 ac_header_compiler=yes
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_header_compiler=no
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8170 echo "${ECHO_T}$ac_header_compiler" >&6; }
8172 # Is the header present?
8173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 #include <$ac_header>
8182 _ACEOF
8183 if { (ac_try="$ac_cpp conftest.$ac_ext"
8184 case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187 esac
8188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8190 ac_status=$?
8191 grep -v '^ *+' conftest.er1 >conftest.err
8192 rm -f conftest.er1
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } >/dev/null; then
8196 if test -s conftest.err; then
8197 ac_cpp_err=$ac_c_preproc_warn_flag
8198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8199 else
8200 ac_cpp_err=
8202 else
8203 ac_cpp_err=yes
8205 if test -z "$ac_cpp_err"; then
8206 ac_header_preproc=yes
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_header_preproc=no
8214 rm -f conftest.err conftest.$ac_ext
8215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8216 echo "${ECHO_T}$ac_header_preproc" >&6; }
8218 # So? What about this header?
8219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8220 yes:no: )
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8225 ac_header_preproc=yes
8227 no:yes:* )
8228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8240 ( cat <<\_ASBOX
8241 ## ------------------------------------ ##
8242 ## Report this to http://llvm.org/bugs/ ##
8243 ## ------------------------------------ ##
8244 _ASBOX
8245 ) | sed "s/^/$as_me: WARNING: /" >&2
8247 esac
8248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253 eval "$as_ac_Header=\$ac_header_preproc"
8255 ac_res=`eval echo '${'$as_ac_Header'}'`
8256 { echo "$as_me:$LINENO: result: $ac_res" >&5
8257 echo "${ECHO_T}$ac_res" >&6; }
8260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261 cat >>confdefs.h <<_ACEOF
8262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263 _ACEOF
8267 done
8270 case "$llvm_cv_os_type" in
8271 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8272 Darwin) llvm_shlib_ext=.dylib ;;
8273 *) llvm_shlib_ext=.so ;;
8274 esac
8277 cat >>confdefs.h <<_ACEOF
8278 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8279 _ACEOF
8282 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8283 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8285 ICC=no
8286 IXX=no
8287 case $CC in
8288 icc*|icpc*)
8289 ICC=yes
8290 IXX=yes
8294 esac
8296 if test "$GCC" != "yes" && test "$ICC" != "yes"
8297 then
8298 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8299 echo "$as_me: error: gcc|icc required but not found" >&2;}
8300 { (exit 1); exit 1; }; }
8303 if test "$GXX" != "yes" && test "$IXX" != "yes"
8304 then
8305 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8306 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8307 { (exit 1); exit 1; }; }
8310 if test "$GCC" = "yes"
8311 then
8312 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8320 #if !defined(__GNUC__) || __GNUC__ < 3
8321 #error Unsupported GCC version
8322 #endif
8325 _ACEOF
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8328 case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_try") 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8361 else
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8366 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8367 { (exit 1); exit 1; }; }
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 if test -z "$llvm_cv_gnu_make_command"
8374 then
8375 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8376 echo "$as_me: error: GNU Make required but not found" >&2;}
8377 { (exit 1); exit 1; }; }
8380 { echo "$as_me:$LINENO: result: ok" >&5
8381 echo "${ECHO_T}ok" >&6; }
8383 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8384 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8385 case "$llvm_cv_cxx_compiler" in
8386 clang)
8387 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8389 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wmissing-field-initializers`
8391 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8394 gcc)
8395 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8397 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8399 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8401 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8403 if test -z "$NO_MAYBE_UNINITIALIZED"
8404 then
8405 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8409 unknown)
8411 esac
8413 no_comment=
8414 llvm_cv_old_cxxflags="$CXXFLAGS"
8415 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8416 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h. */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 // Comment \o\
8424 // Another comment
8425 int main() { return 0; }
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8431 case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8444 { (case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_try") 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest.$ac_objext'
8454 { (case "(($ac_try" in
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8457 esac
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459 (eval "$ac_try") 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8464 no_comment=-Wno-comment
8466 else
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 NO_COMMENT=$no_comment
8476 CXXFLAGS="$llvm_cv_old_cxxflags"
8478 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8479 echo "${ECHO_T}$NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8482 # Check whether --with-python was given.
8483 if test "${with_python+set}" = set; then
8484 withval=$with_python; PYTHON="$withval"
8488 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8489 { echo "$as_me:$LINENO: checking for python" >&5
8490 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8491 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8492 echo "${ECHO_T}user defined: $with_python" >&6; }
8493 else
8494 if test -n "$PYTHON" ; then
8495 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8496 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8499 # Extract the first word of "python python2 python27", so it can be a program name with args.
8500 set dummy python python2 python27; ac_word=$2
8501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8503 if test "${ac_cv_path_PYTHON+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506 case $PYTHON in
8507 [\\/]* | ?:[\\/]*)
8508 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 for as_dir in $PATH
8514 IFS=$as_save_IFS
8515 test -z "$as_dir" && as_dir=.
8516 for ac_exec_ext in '' $ac_executable_extensions; do
8517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8518 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 break 2
8522 done
8523 done
8524 IFS=$as_save_IFS
8526 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8527 echo "${ECHO_T}not found" >&6; }
8528 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8529 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8530 { (exit 1); exit 1; }; }"
8532 esac
8534 PYTHON=$ac_cv_path_PYTHON
8535 if test -n "$PYTHON"; then
8536 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8537 echo "${ECHO_T}$PYTHON" >&6; }
8538 else
8539 { echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6; }
8546 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8547 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8548 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8549 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8550 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8551 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8552 if test "$ac_python_version_major" -gt "2" || \
8553 (test "$ac_python_version_major" -eq "2" && \
8554 test "$ac_python_version_minor" -ge "7") ; then
8555 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8556 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8557 else
8558 { echo "$as_me:$LINENO: result: not found" >&5
8559 echo "${ECHO_T}not found" >&6; }
8560 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8561 See \`config.log' for more details." >&5
8562 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8563 See \`config.log' for more details." >&2;}
8564 { (exit 1); exit 1; }; }
8569 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8570 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8571 if test "${ac_cv_lib_m_sin+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574 ac_check_lib_save_LIBS=$LIBS
8575 LIBS="-lm $LIBS"
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8583 /* Override any GCC internal prototype to avoid an error.
8584 Use char because int might match the return type of a GCC
8585 builtin and then its argument prototype would still apply. */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 char sin ();
8591 main ()
8593 return sin ();
8595 return 0;
8597 _ACEOF
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (ac_try="$ac_link"
8600 case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_link") 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613 { (case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_try") 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest$ac_exeext'
8623 { (case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626 esac
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_try") 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 ac_cv_lib_m_sin=yes
8633 else
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8637 ac_cv_lib_m_sin=no
8640 rm -f core conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8644 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8645 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8646 if test $ac_cv_lib_m_sin = yes; then
8647 cat >>confdefs.h <<_ACEOF
8648 #define HAVE_LIBM 1
8649 _ACEOF
8651 LIBS="-lm $LIBS"
8655 if test "$llvm_cv_os_type" = "MingW" ; then
8657 { echo "$as_me:$LINENO: checking for main in -lole32" >&5
8658 echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; }
8659 if test "${ac_cv_lib_ole32_main+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662 ac_check_lib_save_LIBS=$LIBS
8663 LIBS="-lole32 $LIBS"
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h. */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8673 main ()
8675 return main ();
8677 return 0;
8679 _ACEOF
8680 rm -f conftest.$ac_objext conftest$ac_exeext
8681 if { (ac_try="$ac_link"
8682 case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685 esac
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_link") 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8695 { (case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_try") 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest$ac_exeext'
8705 { (case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_try") 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_cv_lib_ole32_main=yes
8715 else
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_lib_ole32_main=no
8722 rm -f core conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
8724 LIBS=$ac_check_lib_save_LIBS
8726 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_main" >&5
8727 echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; }
8728 if test $ac_cv_lib_ole32_main = yes; then
8729 cat >>confdefs.h <<_ACEOF
8730 #define HAVE_LIBOLE32 1
8731 _ACEOF
8733 LIBS="-lole32 $LIBS"
8738 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8739 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8740 if test "${ac_cv_lib_psapi_main+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743 ac_check_lib_save_LIBS=$LIBS
8744 LIBS="-lpsapi $LIBS"
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8754 main ()
8756 return main ();
8758 return 0;
8760 _ACEOF
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (ac_try="$ac_link"
8763 case "(($ac_try" in
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8766 esac
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_link") 2>conftest.er1
8769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } &&
8775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8776 { (case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8779 esac
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_try") 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; } &&
8785 { ac_try='test -s conftest$ac_exeext'
8786 { (case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8789 esac
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_try") 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_cv_lib_psapi_main=yes
8796 else
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_lib_psapi_main=no
8803 rm -f core conftest.err conftest.$ac_objext \
8804 conftest$ac_exeext conftest.$ac_ext
8805 LIBS=$ac_check_lib_save_LIBS
8807 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8808 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8809 if test $ac_cv_lib_psapi_main = yes; then
8810 cat >>confdefs.h <<_ACEOF
8811 #define HAVE_LIBPSAPI 1
8812 _ACEOF
8814 LIBS="-lpsapi $LIBS"
8819 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8820 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8821 if test "${ac_cv_lib_shell32_main+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824 ac_check_lib_save_LIBS=$LIBS
8825 LIBS="-lshell32 $LIBS"
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8835 main ()
8837 return main ();
8839 return 0;
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (ac_try="$ac_link"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_link") 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest$ac_exeext'
8867 { (case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_try") 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_lib_shell32_main=yes
8877 else
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 ac_cv_lib_shell32_main=no
8884 rm -f core conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 LIBS=$ac_check_lib_save_LIBS
8888 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8889 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8890 if test $ac_cv_lib_shell32_main = yes; then
8891 cat >>confdefs.h <<_ACEOF
8892 #define HAVE_LIBSHELL32 1
8893 _ACEOF
8895 LIBS="-lshell32 $LIBS"
8901 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8902 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8903 if test "${ac_cv_search_dlopen+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906 ac_func_search_save_LIBS=$LIBS
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h. */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8914 /* Override any GCC internal prototype to avoid an error.
8915 Use char because int might match the return type of a GCC
8916 builtin and then its argument prototype would still apply. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 char dlopen ();
8922 main ()
8924 return dlopen ();
8926 return 0;
8928 _ACEOF
8929 for ac_lib in '' dl; do
8930 if test -z "$ac_lib"; then
8931 ac_res="none required"
8932 else
8933 ac_res=-l$ac_lib
8934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (ac_try="$ac_link"
8938 case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_link") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 ac_cv_search_dlopen=$ac_res
8971 else
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8978 rm -f core conftest.err conftest.$ac_objext \
8979 conftest$ac_exeext
8980 if test "${ac_cv_search_dlopen+set}" = set; then
8981 break
8983 done
8984 if test "${ac_cv_search_dlopen+set}" = set; then
8986 else
8987 ac_cv_search_dlopen=no
8989 rm conftest.$ac_ext
8990 LIBS=$ac_func_search_save_LIBS
8992 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8993 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8994 ac_res=$ac_cv_search_dlopen
8995 if test "$ac_res" != no; then
8996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8999 cat >>confdefs.h <<\_ACEOF
9000 #define HAVE_DLOPEN 1
9001 _ACEOF
9003 HAVE_DLOPEN='1'
9006 else
9007 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9008 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9012 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9013 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9014 if test "${ac_cv_search_clock_gettime+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017 ac_func_search_save_LIBS=$LIBS
9018 cat >conftest.$ac_ext <<_ACEOF
9019 /* confdefs.h. */
9020 _ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9025 /* Override any GCC internal prototype to avoid an error.
9026 Use char because int might match the return type of a GCC
9027 builtin and then its argument prototype would still apply. */
9028 #ifdef __cplusplus
9029 extern "C"
9030 #endif
9031 char clock_gettime ();
9033 main ()
9035 return clock_gettime ();
9037 return 0;
9039 _ACEOF
9040 for ac_lib in '' rt; do
9041 if test -z "$ac_lib"; then
9042 ac_res="none required"
9043 else
9044 ac_res=-l$ac_lib
9045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (ac_try="$ac_link"
9049 case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_link") 2>conftest.er1
9055 ac_status=$?
9056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9062 { (case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9065 esac
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_try") 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest$ac_exeext'
9072 { (case "(($ac_try" in
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9075 esac
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_try") 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_cv_search_clock_gettime=$ac_res
9082 else
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9089 rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext
9091 if test "${ac_cv_search_clock_gettime+set}" = set; then
9092 break
9094 done
9095 if test "${ac_cv_search_clock_gettime+set}" = set; then
9097 else
9098 ac_cv_search_clock_gettime=no
9100 rm conftest.$ac_ext
9101 LIBS=$ac_func_search_save_LIBS
9103 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9104 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9105 ac_res=$ac_cv_search_clock_gettime
9106 if test "$ac_res" != no; then
9107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9112 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9113 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9114 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9115 if test "${ac_cv_search_setupterm+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118 ac_func_search_save_LIBS=$LIBS
9119 cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h. */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9126 /* Override any GCC internal prototype to avoid an error.
9127 Use char because int might match the return type of a GCC
9128 builtin and then its argument prototype would still apply. */
9129 #ifdef __cplusplus
9130 extern "C"
9131 #endif
9132 char setupterm ();
9134 main ()
9136 return setupterm ();
9138 return 0;
9140 _ACEOF
9141 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9142 if test -z "$ac_lib"; then
9143 ac_res="none required"
9144 else
9145 ac_res=-l$ac_lib
9146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9148 rm -f conftest.$ac_objext conftest$ac_exeext
9149 if { (ac_try="$ac_link"
9150 case "(($ac_try" in
9151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9152 *) ac_try_echo=$ac_try;;
9153 esac
9154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9155 (eval "$ac_link") 2>conftest.er1
9156 ac_status=$?
9157 grep -v '^ *+' conftest.er1 >conftest.err
9158 rm -f conftest.er1
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
9162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9163 { (case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_try") 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest$ac_exeext'
9173 { (case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9176 esac
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_try") 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 ac_cv_search_setupterm=$ac_res
9183 else
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9190 rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext
9192 if test "${ac_cv_search_setupterm+set}" = set; then
9193 break
9195 done
9196 if test "${ac_cv_search_setupterm+set}" = set; then
9198 else
9199 ac_cv_search_setupterm=no
9201 rm conftest.$ac_ext
9202 LIBS=$ac_func_search_save_LIBS
9204 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9205 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9206 ac_res=$ac_cv_search_setupterm
9207 if test "$ac_res" != no; then
9208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9211 cat >>confdefs.h <<\_ACEOF
9212 #define HAVE_TERMINFO 1
9213 _ACEOF
9215 HAVE_TERMINFO='1'
9222 if test "$llvm_cv_enable_libedit" = "yes" ; then
9223 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9224 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9225 if test "${ac_cv_search_el_init+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228 ac_func_search_save_LIBS=$LIBS
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9236 /* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
9239 #ifdef __cplusplus
9240 extern "C"
9241 #endif
9242 char el_init ();
9244 main ()
9246 return el_init ();
9248 return 0;
9250 _ACEOF
9251 for ac_lib in '' edit; do
9252 if test -z "$ac_lib"; then
9253 ac_res="none required"
9254 else
9255 ac_res=-l$ac_lib
9256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9258 rm -f conftest.$ac_objext conftest$ac_exeext
9259 if { (ac_try="$ac_link"
9260 case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263 esac
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_link") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273 { (case "(($ac_try" in
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275 *) ac_try_echo=$ac_try;;
9276 esac
9277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278 (eval "$ac_try") 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (case "(($ac_try" in
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9286 esac
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288 (eval "$ac_try") 2>&5
9289 ac_status=$?
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; }; then
9292 ac_cv_search_el_init=$ac_res
9293 else
9294 echo "$as_me: failed program was:" >&5
9295 sed 's/^/| /' conftest.$ac_ext >&5
9300 rm -f core conftest.err conftest.$ac_objext \
9301 conftest$ac_exeext
9302 if test "${ac_cv_search_el_init+set}" = set; then
9303 break
9305 done
9306 if test "${ac_cv_search_el_init+set}" = set; then
9308 else
9309 ac_cv_search_el_init=no
9311 rm conftest.$ac_ext
9312 LIBS=$ac_func_search_save_LIBS
9314 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9315 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9316 ac_res=$ac_cv_search_el_init
9317 if test "$ac_res" != no; then
9318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9320 cat >>confdefs.h <<\_ACEOF
9321 #define HAVE_LIBEDIT 1
9322 _ACEOF
9328 if test "$llvm_cv_enable_libffi" = "yes" ; then
9329 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9330 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9331 if test "${ac_cv_search_ffi_call+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334 ac_func_search_save_LIBS=$LIBS
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h. */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9342 /* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
9345 #ifdef __cplusplus
9346 extern "C"
9347 #endif
9348 char ffi_call ();
9350 main ()
9352 return ffi_call ();
9354 return 0;
9356 _ACEOF
9357 for ac_lib in '' ffi; do
9358 if test -z "$ac_lib"; then
9359 ac_res="none required"
9360 else
9361 ac_res=-l$ac_lib
9362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9364 rm -f conftest.$ac_objext conftest$ac_exeext
9365 if { (ac_try="$ac_link"
9366 case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369 esac
9370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_link") 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } &&
9378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9379 { (case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9382 esac
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_try") 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest$ac_exeext'
9389 { (case "(($ac_try" in
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9392 esac
9393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394 (eval "$ac_try") 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 ac_cv_search_ffi_call=$ac_res
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9406 rm -f core conftest.err conftest.$ac_objext \
9407 conftest$ac_exeext
9408 if test "${ac_cv_search_ffi_call+set}" = set; then
9409 break
9411 done
9412 if test "${ac_cv_search_ffi_call+set}" = set; then
9414 else
9415 ac_cv_search_ffi_call=no
9417 rm conftest.$ac_ext
9418 LIBS=$ac_func_search_save_LIBS
9420 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9421 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9422 ac_res=$ac_cv_search_ffi_call
9423 if test "$ac_res" != no; then
9424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9426 cat >>confdefs.h <<\_ACEOF
9427 #define HAVE_FFI_CALL 1
9428 _ACEOF
9430 else
9431 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9432 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9433 { (exit 1); exit 1; }; }
9438 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9439 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9440 if test "${ac_cv_search_mallinfo+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 ac_func_search_save_LIBS=$LIBS
9444 cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h. */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9451 /* Override any GCC internal prototype to avoid an error.
9452 Use char because int might match the return type of a GCC
9453 builtin and then its argument prototype would still apply. */
9454 #ifdef __cplusplus
9455 extern "C"
9456 #endif
9457 char mallinfo ();
9459 main ()
9461 return mallinfo ();
9463 return 0;
9465 _ACEOF
9466 for ac_lib in '' malloc; do
9467 if test -z "$ac_lib"; then
9468 ac_res="none required"
9469 else
9470 ac_res=-l$ac_lib
9471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9475 case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_link") 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9488 { (case "(($ac_try" in
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9491 esac
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_try") 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; } &&
9497 { ac_try='test -s conftest$ac_exeext'
9498 { (case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501 esac
9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_try") 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_search_mallinfo=$ac_res
9508 else
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext
9517 if test "${ac_cv_search_mallinfo+set}" = set; then
9518 break
9520 done
9521 if test "${ac_cv_search_mallinfo+set}" = set; then
9523 else
9524 ac_cv_search_mallinfo=no
9526 rm conftest.$ac_ext
9527 LIBS=$ac_func_search_save_LIBS
9529 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9530 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9531 ac_res=$ac_cv_search_mallinfo
9532 if test "$ac_res" != no; then
9533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9535 cat >>confdefs.h <<\_ACEOF
9536 #define HAVE_MALLINFO 1
9537 _ACEOF
9542 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9544 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9545 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9546 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-lpthread $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h. */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
9561 #ifdef __cplusplus
9562 extern "C"
9563 #endif
9564 char pthread_mutex_init ();
9566 main ()
9568 return pthread_mutex_init ();
9570 return 0;
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (ac_try="$ac_link"
9575 case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_link") 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_lib_pthread_pthread_mutex_init=yes
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_cv_lib_pthread_pthread_mutex_init=no
9615 rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9619 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9620 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9621 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9622 cat >>confdefs.h <<_ACEOF
9623 #define HAVE_LIBPTHREAD 1
9624 _ACEOF
9626 LIBS="-lpthread $LIBS"
9630 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9631 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9632 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9635 ac_func_search_save_LIBS=$LIBS
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char pthread_mutex_lock ();
9651 main ()
9653 return pthread_mutex_lock ();
9655 return 0;
9657 _ACEOF
9658 for ac_lib in '' pthread; do
9659 if test -z "$ac_lib"; then
9660 ac_res="none required"
9661 else
9662 ac_res=-l$ac_lib
9663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_link") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9680 { (case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9683 esac
9684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_try") 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest$ac_exeext'
9690 { (case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_try") 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_search_pthread_mutex_lock=$ac_res
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9707 rm -f core conftest.err conftest.$ac_objext \
9708 conftest$ac_exeext
9709 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9710 break
9712 done
9713 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9715 else
9716 ac_cv_search_pthread_mutex_lock=no
9718 rm conftest.$ac_ext
9719 LIBS=$ac_func_search_save_LIBS
9721 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9722 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9723 ac_res=$ac_cv_search_pthread_mutex_lock
9724 if test "$ac_res" != no; then
9725 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9727 cat >>confdefs.h <<\_ACEOF
9728 #define HAVE_PTHREAD_MUTEX_LOCK 1
9729 _ACEOF
9733 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9734 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9735 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738 ac_func_search_save_LIBS=$LIBS
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h. */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9746 /* Override any GCC internal prototype to avoid an error.
9747 Use char because int might match the return type of a GCC
9748 builtin and then its argument prototype would still apply. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 char pthread_rwlock_init ();
9754 main ()
9756 return pthread_rwlock_init ();
9758 return 0;
9760 _ACEOF
9761 for ac_lib in '' pthread; do
9762 if test -z "$ac_lib"; then
9763 ac_res="none required"
9764 else
9765 ac_res=-l$ac_lib
9766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (ac_try="$ac_link"
9770 case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783 { (case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_try") 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_cv_search_pthread_rwlock_init=$ac_res
9803 else
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9810 rm -f core conftest.err conftest.$ac_objext \
9811 conftest$ac_exeext
9812 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9813 break
9815 done
9816 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9818 else
9819 ac_cv_search_pthread_rwlock_init=no
9821 rm conftest.$ac_ext
9822 LIBS=$ac_func_search_save_LIBS
9824 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9825 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9826 ac_res=$ac_cv_search_pthread_rwlock_init
9827 if test "$ac_res" != no; then
9828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9830 cat >>confdefs.h <<\_ACEOF
9831 #define HAVE_PTHREAD_RWLOCK_INIT 1
9832 _ACEOF
9836 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9837 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9838 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841 ac_func_search_save_LIBS=$LIBS
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h. */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9849 /* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 char pthread_getspecific ();
9857 main ()
9859 return pthread_getspecific ();
9861 return 0;
9863 _ACEOF
9864 for ac_lib in '' pthread; do
9865 if test -z "$ac_lib"; then
9866 ac_res="none required"
9867 else
9868 ac_res=-l$ac_lib
9869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (ac_try="$ac_link"
9873 case "(($ac_try" in
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9876 esac
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878 (eval "$ac_link") 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9886 { (case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_try") 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; } &&
9895 { ac_try='test -s conftest$ac_exeext'
9896 { (case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899 esac
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_try") 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 ac_cv_search_pthread_getspecific=$ac_res
9906 else
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9913 rm -f core conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext
9915 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9916 break
9918 done
9919 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9921 else
9922 ac_cv_search_pthread_getspecific=no
9924 rm conftest.$ac_ext
9925 LIBS=$ac_func_search_save_LIBS
9927 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9928 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9929 ac_res=$ac_cv_search_pthread_getspecific
9930 if test "$ac_res" != no; then
9931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9933 cat >>confdefs.h <<\_ACEOF
9934 #define HAVE_PTHREAD_GETSPECIFIC 1
9935 _ACEOF
9941 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9943 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9944 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9945 if test "${ac_cv_lib_z_compress2+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948 ac_check_lib_save_LIBS=$LIBS
9949 LIBS="-lz $LIBS"
9950 cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h. */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9957 /* Override any GCC internal prototype to avoid an error.
9958 Use char because int might match the return type of a GCC
9959 builtin and then its argument prototype would still apply. */
9960 #ifdef __cplusplus
9961 extern "C"
9962 #endif
9963 char compress2 ();
9965 main ()
9967 return compress2 ();
9969 return 0;
9971 _ACEOF
9972 rm -f conftest.$ac_objext conftest$ac_exeext
9973 if { (ac_try="$ac_link"
9974 case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_link") 2>conftest.er1
9980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9987 { (case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_try") 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest$ac_exeext'
9997 { (case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000 esac
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_try") 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 ac_cv_lib_z_compress2=yes
10007 else
10008 echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10011 ac_cv_lib_z_compress2=no
10014 rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LIBS=$ac_check_lib_save_LIBS
10018 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10019 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10020 if test $ac_cv_lib_z_compress2 = yes; then
10021 cat >>confdefs.h <<_ACEOF
10022 #define HAVE_LIBZ 1
10023 _ACEOF
10025 LIBS="-lz $LIBS"
10032 # Check whether --with-oprofile was given.
10033 if test "${with_oprofile+set}" = set; then
10034 withval=$with_oprofile;
10035 USE_OPROFILE=1
10037 case "$withval" in
10038 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10039 no) llvm_cv_oppath=
10040 USE_OPROFILE=0
10042 *) llvm_cv_oppath="${withval}/lib/oprofile"
10043 CPPFLAGS="-I${withval}/include";;
10044 esac
10045 case $llvm_cv_os_type in
10046 Linux)
10047 if test -n "$llvm_cv_oppath" ; then
10048 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10049 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10050 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10051 if test "${ac_cv_search_bfd_init+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 ac_func_search_save_LIBS=$LIBS
10055 cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h. */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10062 /* Override any GCC internal prototype to avoid an error.
10063 Use char because int might match the return type of a GCC
10064 builtin and then its argument prototype would still apply. */
10065 #ifdef __cplusplus
10066 extern "C"
10067 #endif
10068 char bfd_init ();
10070 main ()
10072 return bfd_init ();
10074 return 0;
10076 _ACEOF
10077 for ac_lib in '' bfd; do
10078 if test -z "$ac_lib"; then
10079 ac_res="none required"
10080 else
10081 ac_res=-l$ac_lib
10082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_link") 2>conftest.er1
10092 ac_status=$?
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099 { (case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10102 esac
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_try") 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_cv_search_bfd_init=$ac_res
10119 else
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10126 rm -f core conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext
10128 if test "${ac_cv_search_bfd_init+set}" = set; then
10129 break
10131 done
10132 if test "${ac_cv_search_bfd_init+set}" = set; then
10134 else
10135 ac_cv_search_bfd_init=no
10137 rm conftest.$ac_ext
10138 LIBS=$ac_func_search_save_LIBS
10140 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10141 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10142 ac_res=$ac_cv_search_bfd_init
10143 if test "$ac_res" != no; then
10144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10148 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10149 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10150 if test "${ac_cv_search_op_open_agent+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153 ac_func_search_save_LIBS=$LIBS
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h. */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10161 /* Override any GCC internal prototype to avoid an error.
10162 Use char because int might match the return type of a GCC
10163 builtin and then its argument prototype would still apply. */
10164 #ifdef __cplusplus
10165 extern "C"
10166 #endif
10167 char op_open_agent ();
10169 main ()
10171 return op_open_agent ();
10173 return 0;
10175 _ACEOF
10176 for ac_lib in '' opagent; do
10177 if test -z "$ac_lib"; then
10178 ac_res="none required"
10179 else
10180 ac_res=-l$ac_lib
10181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (ac_try="$ac_link"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_link") 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10198 { (case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_try") 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest$ac_exeext'
10208 { (case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10211 esac
10212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213 (eval "$ac_try") 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 ac_cv_search_op_open_agent=$ac_res
10218 else
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10225 rm -f core conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext
10227 if test "${ac_cv_search_op_open_agent+set}" = set; then
10228 break
10230 done
10231 if test "${ac_cv_search_op_open_agent+set}" = set; then
10233 else
10234 ac_cv_search_op_open_agent=no
10236 rm conftest.$ac_ext
10237 LIBS=$ac_func_search_save_LIBS
10239 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10240 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10241 ac_res=$ac_cv_search_op_open_agent
10242 if test "$ac_res" != no; then
10243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10245 else
10247 echo "Error! You need to have libopagent around."
10248 exit 1
10252 if test "${ac_cv_header_opagent_h+set}" = set; then
10253 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10254 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10255 if test "${ac_cv_header_opagent_h+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10259 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10260 else
10261 # Is the header compilable?
10262 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10263 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10264 cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h. */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 $ac_includes_default
10271 #include <opagent.h>
10272 _ACEOF
10273 rm -f conftest.$ac_objext
10274 if { (ac_try="$ac_compile"
10275 case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278 esac
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_compile") 2>conftest.er1
10281 ac_status=$?
10282 grep -v '^ *+' conftest.er1 >conftest.err
10283 rm -f conftest.er1
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } &&
10287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10288 { (case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10291 esac
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_try") 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest.$ac_objext'
10298 { (case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10301 esac
10302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303 (eval "$ac_try") 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_header_compiler=yes
10308 else
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_header_compiler=no
10315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10317 echo "${ECHO_T}$ac_header_compiler" >&6; }
10319 # Is the header present?
10320 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10321 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 #include <opagent.h>
10329 _ACEOF
10330 if { (ac_try="$ac_cpp conftest.$ac_ext"
10331 case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10337 ac_status=$?
10338 grep -v '^ *+' conftest.er1 >conftest.err
10339 rm -f conftest.er1
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } >/dev/null; then
10343 if test -s conftest.err; then
10344 ac_cpp_err=$ac_c_preproc_warn_flag
10345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10346 else
10347 ac_cpp_err=
10349 else
10350 ac_cpp_err=yes
10352 if test -z "$ac_cpp_err"; then
10353 ac_header_preproc=yes
10354 else
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_header_preproc=no
10361 rm -f conftest.err conftest.$ac_ext
10362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10363 echo "${ECHO_T}$ac_header_preproc" >&6; }
10365 # So? What about this header?
10366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10367 yes:no: )
10368 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10369 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10371 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10372 ac_header_preproc=yes
10374 no:yes:* )
10375 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10376 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10378 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10380 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10382 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10384 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10385 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10386 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10387 ( cat <<\_ASBOX
10388 ## ------------------------------------ ##
10389 ## Report this to http://llvm.org/bugs/ ##
10390 ## ------------------------------------ ##
10391 _ASBOX
10392 ) | sed "s/^/$as_me: WARNING: /" >&2
10394 esac
10395 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10396 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10397 if test "${ac_cv_header_opagent_h+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 ac_cv_header_opagent_h=$ac_header_preproc
10402 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10403 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10406 if test $ac_cv_header_opagent_h = yes; then
10408 else
10410 echo "Error! You need to have opagent.h around."
10411 exit 1
10416 fi ;;
10418 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10419 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10420 { (exit 1); exit 1; }; } ;;
10421 esac
10423 else
10425 USE_OPROFILE=0
10431 cat >>confdefs.h <<_ACEOF
10432 #define LLVM_USE_OPROFILE $USE_OPROFILE
10433 _ACEOF
10437 # Check whether --with-intel-jitevents was given.
10438 if test "${with_intel_jitevents+set}" = set; then
10439 withval=$with_intel_jitevents;
10440 case "$withval" in
10441 yes) USE_INTEL_JITEVENTS=1
10443 no) USE_INTEL_JITEVENTS=0
10445 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10446 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10447 { (exit 1); exit 1; }; };;
10448 esac
10450 case $llvm_cv_os_type in
10451 Linux|Win32|Cygwin|MingW) ;;
10452 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10453 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10454 { (exit 1); exit 1; }; };;
10455 esac
10457 case "$llvm_cv_target_arch" in
10458 x86|x86_64) ;;
10459 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10460 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10461 { (exit 1); exit 1; }; };;
10462 esac
10464 else
10466 USE_INTEL_JITEVENTS=0
10472 cat >>confdefs.h <<_ACEOF
10473 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10474 _ACEOF
10477 for ac_prog in xml2-config
10479 # Extract the first word of "$ac_prog", so it can be a program name with args.
10480 set dummy $ac_prog; ac_word=$2
10481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10483 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486 if test -n "$XML2CONFIG"; then
10487 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10488 else
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10496 ac_cv_prog_XML2CONFIG="$ac_prog"
10497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10500 done
10501 done
10502 IFS=$as_save_IFS
10506 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10507 if test -n "$XML2CONFIG"; then
10508 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10509 echo "${ECHO_T}$XML2CONFIG" >&6; }
10510 else
10511 { echo "$as_me:$LINENO: result: no" >&5
10512 echo "${ECHO_T}no" >&6; }
10516 test -n "$XML2CONFIG" && break
10517 done
10520 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10521 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10522 if test "x$XML2CONFIG" = "x"; then
10523 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10524 echo "${ECHO_T}xml2-config not found" >&6; }
10525 else
10526 LIBXML2_INC=`$XML2CONFIG --cflags`
10527 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10528 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10529 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10530 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10531 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534 ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-lxml2 $LIBS"
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h. */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10543 /* Override any GCC internal prototype to avoid an error.
10544 Use char because int might match the return type of a GCC
10545 builtin and then its argument prototype would still apply. */
10546 #ifdef __cplusplus
10547 extern "C"
10548 #endif
10549 char xmlReadFile ();
10551 main ()
10553 return xmlReadFile ();
10555 return 0;
10557 _ACEOF
10558 rm -f conftest.$ac_objext conftest$ac_exeext
10559 if { (ac_try="$ac_link"
10560 case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10563 esac
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_link") 2>conftest.er1
10566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10573 { (case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10576 esac
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_try") 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest$ac_exeext'
10583 { (case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586 esac
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_try") 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_lib_xml2_xmlReadFile=yes
10593 else
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 ac_cv_lib_xml2_xmlReadFile=no
10600 rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10604 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10605 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10606 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10608 cat >>confdefs.h <<\_ACEOF
10609 #define CLANG_HAVE_LIBXML 1
10610 _ACEOF
10612 LIBXML2_LIBS="-lxml2"
10625 ac_header_dirent=no
10626 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10627 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10628 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10629 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <sys/types.h>
10640 #include <$ac_hdr>
10643 main ()
10645 if ((DIR *) 0)
10646 return 0;
10648 return 0;
10650 _ACEOF
10651 rm -f conftest.$ac_objext
10652 if { (ac_try="$ac_compile"
10653 case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_compile") 2>conftest.er1
10659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10666 { (case "(($ac_try" in
10667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668 *) ac_try_echo=$ac_try;;
10669 esac
10670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671 (eval "$ac_try") 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest.$ac_objext'
10676 { (case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10679 esac
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_try") 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 eval "$as_ac_Header=yes"
10686 else
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 eval "$as_ac_Header=no"
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10695 ac_res=`eval echo '${'$as_ac_Header'}'`
10696 { echo "$as_me:$LINENO: result: $ac_res" >&5
10697 echo "${ECHO_T}$ac_res" >&6; }
10698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10699 cat >>confdefs.h <<_ACEOF
10700 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10701 _ACEOF
10703 ac_header_dirent=$ac_hdr; break
10706 done
10707 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10708 if test $ac_header_dirent = dirent.h; then
10709 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10710 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10711 if test "${ac_cv_search_opendir+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714 ac_func_search_save_LIBS=$LIBS
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h. */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char opendir ();
10730 main ()
10732 return opendir ();
10734 return 0;
10736 _ACEOF
10737 for ac_lib in '' dir; do
10738 if test -z "$ac_lib"; then
10739 ac_res="none required"
10740 else
10741 ac_res=-l$ac_lib
10742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (ac_try="$ac_link"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_link") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } &&
10758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10759 { (case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_try") 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest$ac_exeext'
10769 { (case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772 esac
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_try") 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_search_opendir=$ac_res
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext
10788 if test "${ac_cv_search_opendir+set}" = set; then
10789 break
10791 done
10792 if test "${ac_cv_search_opendir+set}" = set; then
10794 else
10795 ac_cv_search_opendir=no
10797 rm conftest.$ac_ext
10798 LIBS=$ac_func_search_save_LIBS
10800 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10801 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10802 ac_res=$ac_cv_search_opendir
10803 if test "$ac_res" != no; then
10804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10808 else
10809 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10810 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10811 if test "${ac_cv_search_opendir+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814 ac_func_search_save_LIBS=$LIBS
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h. */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10822 /* Override any GCC internal prototype to avoid an error.
10823 Use char because int might match the return type of a GCC
10824 builtin and then its argument prototype would still apply. */
10825 #ifdef __cplusplus
10826 extern "C"
10827 #endif
10828 char opendir ();
10830 main ()
10832 return opendir ();
10834 return 0;
10836 _ACEOF
10837 for ac_lib in '' x; do
10838 if test -z "$ac_lib"; then
10839 ac_res="none required"
10840 else
10841 ac_res=-l$ac_lib
10842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (ac_try="$ac_link"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849 esac
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_link") 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10859 { (case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862 esac
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_try") 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; } &&
10868 { ac_try='test -s conftest$ac_exeext'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_search_opendir=$ac_res
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext
10888 if test "${ac_cv_search_opendir+set}" = set; then
10889 break
10891 done
10892 if test "${ac_cv_search_opendir+set}" = set; then
10894 else
10895 ac_cv_search_opendir=no
10897 rm conftest.$ac_ext
10898 LIBS=$ac_func_search_save_LIBS
10900 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10901 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10902 ac_res=$ac_cv_search_opendir
10903 if test "$ac_res" != no; then
10904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10910 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10911 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10912 if test "${ac_cv_header_mmap_anon+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915 ac_ext=c
10916 ac_cpp='$CPP $CPPFLAGS'
10917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 #include <sys/mman.h>
10928 #include <unistd.h>
10929 #include <fcntl.h>
10931 main ()
10933 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10935 return 0;
10937 _ACEOF
10938 rm -f conftest.$ac_objext
10939 if { (ac_try="$ac_compile"
10940 case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10943 esac
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_compile") 2>conftest.er1
10946 ac_status=$?
10947 grep -v '^ *+' conftest.er1 >conftest.err
10948 rm -f conftest.er1
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
10952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10953 { (case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_try") 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } &&
10962 { ac_try='test -s conftest.$ac_objext'
10963 { (case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10966 esac
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_try") 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 ac_cv_header_mmap_anon=yes
10973 else
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 ac_cv_header_mmap_anon=no
10980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981 ac_ext=c
10982 ac_cpp='$CPP $CPPFLAGS'
10983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10989 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10990 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10991 if test "$ac_cv_header_mmap_anon" = yes; then
10993 cat >>confdefs.h <<\_ACEOF
10994 #define HAVE_MMAP_ANONYMOUS 1
10995 _ACEOF
10999 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11000 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11001 if test "${ac_cv_header_stat_broken+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004 cat >conftest.$ac_ext <<_ACEOF
11005 /* confdefs.h. */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010 #include <sys/types.h>
11011 #include <sys/stat.h>
11013 #if defined S_ISBLK && defined S_IFDIR
11014 # if S_ISBLK (S_IFDIR)
11015 You lose.
11016 # endif
11017 #endif
11019 #if defined S_ISBLK && defined S_IFCHR
11020 # if S_ISBLK (S_IFCHR)
11021 You lose.
11022 # endif
11023 #endif
11025 #if defined S_ISLNK && defined S_IFREG
11026 # if S_ISLNK (S_IFREG)
11027 You lose.
11028 # endif
11029 #endif
11031 #if defined S_ISSOCK && defined S_IFREG
11032 # if S_ISSOCK (S_IFREG)
11033 You lose.
11034 # endif
11035 #endif
11037 _ACEOF
11038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11039 $EGREP "You lose" >/dev/null 2>&1; then
11040 ac_cv_header_stat_broken=yes
11041 else
11042 ac_cv_header_stat_broken=no
11044 rm -f conftest*
11047 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11048 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11049 if test $ac_cv_header_stat_broken = yes; then
11051 cat >>confdefs.h <<\_ACEOF
11052 #define STAT_MACROS_BROKEN 1
11053 _ACEOF
11057 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11058 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11059 if test "${ac_cv_header_time+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062 cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h. */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11068 #include <sys/types.h>
11069 #include <sys/time.h>
11070 #include <time.h>
11073 main ()
11075 if ((struct tm *) 0)
11076 return 0;
11078 return 0;
11080 _ACEOF
11081 rm -f conftest.$ac_objext
11082 if { (ac_try="$ac_compile"
11083 case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_compile") 2>conftest.er1
11089 ac_status=$?
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } &&
11095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11096 { (case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11099 esac
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_try") 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_try") 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_header_time=yes
11116 else
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 ac_cv_header_time=no
11123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11126 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11127 if test $ac_cv_header_time = yes; then
11129 cat >>confdefs.h <<\_ACEOF
11130 #define TIME_WITH_SYS_TIME 1
11131 _ACEOF
11136 ac_ext=cpp
11137 ac_cpp='$CXXCPP $CPPFLAGS'
11138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11143 for ac_header in cxxabi.h
11145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151 cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h. */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11157 #include <stddef.h>
11160 #include <$ac_header>
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (ac_try="$ac_compile"
11164 case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_compile") 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11177 { (case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_try") 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 eval "$as_ac_Header=yes"
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 eval "$as_ac_Header=no"
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 ac_res=`eval echo '${'$as_ac_Header'}'`
11207 { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11210 cat >>confdefs.h <<_ACEOF
11211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11212 _ACEOF
11216 done
11218 ac_ext=c
11219 ac_cpp='$CPP $CPPFLAGS'
11220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11230 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11242 else
11243 # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h. */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11254 _ACEOF
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270 { (case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_try") 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 ac_header_compiler=yes
11290 else
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 ac_header_compiler=no
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6; }
11301 # Is the header present?
11302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h. */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <$ac_header>
11311 _ACEOF
11312 if { (ac_try="$ac_cpp conftest.$ac_ext"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } >/dev/null; then
11325 if test -s conftest.err; then
11326 ac_cpp_err=$ac_c_preproc_warn_flag
11327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328 else
11329 ac_cpp_err=
11331 else
11332 ac_cpp_err=yes
11334 if test -z "$ac_cpp_err"; then
11335 ac_header_preproc=yes
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_preproc=no
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11347 # So? What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349 yes:no: )
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354 ac_header_preproc=yes
11356 no:yes:* )
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369 ( cat <<\_ASBOX
11370 ## ------------------------------------ ##
11371 ## Report this to http://llvm.org/bugs/ ##
11372 ## ------------------------------------ ##
11373 _ASBOX
11374 ) | sed "s/^/$as_me: WARNING: /" >&2
11376 esac
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382 eval "$as_ac_Header=\$ac_header_preproc"
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392 _ACEOF
11396 done
11404 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 ac_res=`eval echo '${'$as_ac_Header'}'`
11414 { echo "$as_me:$LINENO: result: $ac_res" >&5
11415 echo "${ECHO_T}$ac_res" >&6; }
11416 else
11417 # Is the header compilable?
11418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 $ac_includes_default
11427 #include <$ac_header>
11428 _ACEOF
11429 rm -f conftest.$ac_objext
11430 if { (ac_try="$ac_compile"
11431 case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434 esac
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_compile") 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11444 { (case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_try") 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest.$ac_objext'
11454 { (case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_try") 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 ac_header_compiler=yes
11464 else
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11468 ac_header_compiler=no
11471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11473 echo "${ECHO_T}$ac_header_compiler" >&6; }
11475 # Is the header present?
11476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11478 cat >conftest.$ac_ext <<_ACEOF
11479 /* confdefs.h. */
11480 _ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11484 #include <$ac_header>
11485 _ACEOF
11486 if { (ac_try="$ac_cpp conftest.$ac_ext"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490 esac
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11493 ac_status=$?
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } >/dev/null; then
11499 if test -s conftest.err; then
11500 ac_cpp_err=$ac_c_preproc_warn_flag
11501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11502 else
11503 ac_cpp_err=
11505 else
11506 ac_cpp_err=yes
11508 if test -z "$ac_cpp_err"; then
11509 ac_header_preproc=yes
11510 else
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 ac_header_preproc=no
11517 rm -f conftest.err conftest.$ac_ext
11518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519 echo "${ECHO_T}$ac_header_preproc" >&6; }
11521 # So? What about this header?
11522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 yes:no: )
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528 ac_header_preproc=yes
11530 no:yes:* )
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543 ( cat <<\_ASBOX
11544 ## ------------------------------------ ##
11545 ## Report this to http://llvm.org/bugs/ ##
11546 ## ------------------------------------ ##
11547 _ASBOX
11548 ) | sed "s/^/$as_me: WARNING: /" >&2
11550 esac
11551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556 eval "$as_ac_Header=\$ac_header_preproc"
11558 ac_res=`eval echo '${'$as_ac_Header'}'`
11559 { echo "$as_me:$LINENO: result: $ac_res" >&5
11560 echo "${ECHO_T}$ac_res" >&6; }
11563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11564 cat >>confdefs.h <<_ACEOF
11565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566 _ACEOF
11570 done
11577 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 ac_res=`eval echo '${'$as_ac_Header'}'`
11587 { echo "$as_me:$LINENO: result: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11589 else
11590 # Is the header compilable?
11591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11593 cat >conftest.$ac_ext <<_ACEOF
11594 /* confdefs.h. */
11595 _ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h. */
11599 $ac_includes_default
11600 #include <$ac_header>
11601 _ACEOF
11602 rm -f conftest.$ac_objext
11603 if { (ac_try="$ac_compile"
11604 case "(($ac_try" in
11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11607 esac
11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609 (eval "$ac_compile") 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11617 { (case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_try") 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630 esac
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632 (eval "$ac_try") 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 ac_header_compiler=yes
11637 else
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ac_header_compiler=no
11644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11646 echo "${ECHO_T}$ac_header_compiler" >&6; }
11648 # Is the header present?
11649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h. */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 #include <$ac_header>
11658 _ACEOF
11659 if { (ac_try="$ac_cpp conftest.$ac_ext"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } >/dev/null; then
11672 if test -s conftest.err; then
11673 ac_cpp_err=$ac_c_preproc_warn_flag
11674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11675 else
11676 ac_cpp_err=
11678 else
11679 ac_cpp_err=yes
11681 if test -z "$ac_cpp_err"; then
11682 ac_header_preproc=yes
11683 else
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 ac_header_preproc=no
11690 rm -f conftest.err conftest.$ac_ext
11691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11692 echo "${ECHO_T}$ac_header_preproc" >&6; }
11694 # So? What about this header?
11695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11696 yes:no: )
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11701 ac_header_preproc=yes
11703 no:yes:* )
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11716 ( cat <<\_ASBOX
11717 ## ------------------------------------ ##
11718 ## Report this to http://llvm.org/bugs/ ##
11719 ## ------------------------------------ ##
11720 _ASBOX
11721 ) | sed "s/^/$as_me: WARNING: /" >&2
11723 esac
11724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729 eval "$as_ac_Header=\$ac_header_preproc"
11731 ac_res=`eval echo '${'$as_ac_Header'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11737 cat >>confdefs.h <<_ACEOF
11738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11739 _ACEOF
11743 done
11748 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 ac_res=`eval echo '${'$as_ac_Header'}'`
11758 { echo "$as_me:$LINENO: result: $ac_res" >&5
11759 echo "${ECHO_T}$ac_res" >&6; }
11760 else
11761 # Is the header compilable?
11762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11764 cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h. */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 $ac_includes_default
11771 #include <$ac_header>
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11778 esac
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_compile") 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11788 { (case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_try") 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest.$ac_objext'
11798 { (case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11801 esac
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_try") 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 ac_header_compiler=yes
11808 else
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 ac_header_compiler=no
11815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11817 echo "${ECHO_T}$ac_header_compiler" >&6; }
11819 # Is the header present?
11820 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h. */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 #include <$ac_header>
11829 _ACEOF
11830 if { (ac_try="$ac_cpp conftest.$ac_ext"
11831 case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11837 ac_status=$?
11838 grep -v '^ *+' conftest.er1 >conftest.err
11839 rm -f conftest.er1
11840 cat conftest.err >&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } >/dev/null; then
11843 if test -s conftest.err; then
11844 ac_cpp_err=$ac_c_preproc_warn_flag
11845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11846 else
11847 ac_cpp_err=
11849 else
11850 ac_cpp_err=yes
11852 if test -z "$ac_cpp_err"; then
11853 ac_header_preproc=yes
11854 else
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_header_preproc=no
11861 rm -f conftest.err conftest.$ac_ext
11862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11863 echo "${ECHO_T}$ac_header_preproc" >&6; }
11865 # So? What about this header?
11866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11867 yes:no: )
11868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11872 ac_header_preproc=yes
11874 no:yes:* )
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11887 ( cat <<\_ASBOX
11888 ## ------------------------------------ ##
11889 ## Report this to http://llvm.org/bugs/ ##
11890 ## ------------------------------------ ##
11891 _ASBOX
11892 ) | sed "s/^/$as_me: WARNING: /" >&2
11894 esac
11895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900 eval "$as_ac_Header=\$ac_header_preproc"
11902 ac_res=`eval echo '${'$as_ac_Header'}'`
11903 { echo "$as_me:$LINENO: result: $ac_res" >&5
11904 echo "${ECHO_T}$ac_res" >&6; }
11907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11908 cat >>confdefs.h <<_ACEOF
11909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11910 _ACEOF
11914 done
11917 for ac_header in valgrind/valgrind.h
11919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 ac_res=`eval echo '${'$as_ac_Header'}'`
11927 { echo "$as_me:$LINENO: result: $ac_res" >&5
11928 echo "${ECHO_T}$ac_res" >&6; }
11929 else
11930 # Is the header compilable?
11931 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h. */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 $ac_includes_default
11940 #include <$ac_header>
11941 _ACEOF
11942 rm -f conftest.$ac_objext
11943 if { (ac_try="$ac_compile"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_compile") 2>conftest.er1
11950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_header_compiler=yes
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 ac_header_compiler=no
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11986 echo "${ECHO_T}$ac_header_compiler" >&6; }
11988 # Is the header present?
11989 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 #include <$ac_header>
11998 _ACEOF
11999 if { (ac_try="$ac_cpp conftest.$ac_ext"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003 esac
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } >/dev/null; then
12012 if test -s conftest.err; then
12013 ac_cpp_err=$ac_c_preproc_warn_flag
12014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12015 else
12016 ac_cpp_err=
12018 else
12019 ac_cpp_err=yes
12021 if test -z "$ac_cpp_err"; then
12022 ac_header_preproc=yes
12023 else
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_header_preproc=no
12030 rm -f conftest.err conftest.$ac_ext
12031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 echo "${ECHO_T}$ac_header_preproc" >&6; }
12034 # So? What about this header?
12035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12036 yes:no: )
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12041 ac_header_preproc=yes
12043 no:yes:* )
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12056 ( cat <<\_ASBOX
12057 ## ------------------------------------ ##
12058 ## Report this to http://llvm.org/bugs/ ##
12059 ## ------------------------------------ ##
12060 _ASBOX
12061 ) | sed "s/^/$as_me: WARNING: /" >&2
12063 esac
12064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069 eval "$as_ac_Header=\$ac_header_preproc"
12071 ac_res=`eval echo '${'$as_ac_Header'}'`
12072 { echo "$as_me:$LINENO: result: $ac_res" >&5
12073 echo "${ECHO_T}$ac_res" >&6; }
12076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12079 _ACEOF
12083 done
12086 for ac_header in fenv.h
12088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 ac_res=`eval echo '${'$as_ac_Header'}'`
12096 { echo "$as_me:$LINENO: result: $ac_res" >&5
12097 echo "${ECHO_T}$ac_res" >&6; }
12098 else
12099 # Is the header compilable?
12100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12102 cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h. */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 $ac_includes_default
12109 #include <$ac_header>
12110 _ACEOF
12111 rm -f conftest.$ac_objext
12112 if { (ac_try="$ac_compile"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_compile") 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126 { (case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_try") 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest.$ac_objext'
12136 { (case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_try") 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_header_compiler=yes
12146 else
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_header_compiler=no
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12155 echo "${ECHO_T}$ac_header_compiler" >&6; }
12157 # Is the header present?
12158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h. */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 #include <$ac_header>
12167 _ACEOF
12168 if { (ac_try="$ac_cpp conftest.$ac_ext"
12169 case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12172 esac
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12175 ac_status=$?
12176 grep -v '^ *+' conftest.er1 >conftest.err
12177 rm -f conftest.er1
12178 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } >/dev/null; then
12181 if test -s conftest.err; then
12182 ac_cpp_err=$ac_c_preproc_warn_flag
12183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12184 else
12185 ac_cpp_err=
12187 else
12188 ac_cpp_err=yes
12190 if test -z "$ac_cpp_err"; then
12191 ac_header_preproc=yes
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_header_preproc=no
12199 rm -f conftest.err conftest.$ac_ext
12200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12201 echo "${ECHO_T}$ac_header_preproc" >&6; }
12203 # So? What about this header?
12204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12205 yes:no: )
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12210 ac_header_preproc=yes
12212 no:yes:* )
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12225 ( cat <<\_ASBOX
12226 ## ------------------------------------ ##
12227 ## Report this to http://llvm.org/bugs/ ##
12228 ## ------------------------------------ ##
12229 _ASBOX
12230 ) | sed "s/^/$as_me: WARNING: /" >&2
12232 esac
12233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238 eval "$as_ac_Header=\$ac_header_preproc"
12240 ac_res=`eval echo '${'$as_ac_Header'}'`
12241 { echo "$as_me:$LINENO: result: $ac_res" >&5
12242 echo "${ECHO_T}$ac_res" >&6; }
12245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12246 cat >>confdefs.h <<_ACEOF
12247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12248 _ACEOF
12252 done
12254 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12255 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12256 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h. */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265 #include <fenv.h>
12268 main ()
12270 #ifndef FE_ALL_EXCEPT
12271 char *p = (char *) FE_ALL_EXCEPT;
12272 return !p;
12273 #endif
12276 return 0;
12278 _ACEOF
12279 rm -f conftest.$ac_objext
12280 if { (ac_try="$ac_compile"
12281 case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284 esac
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_compile") 2>conftest.er1
12287 ac_status=$?
12288 grep -v '^ *+' conftest.er1 >conftest.err
12289 rm -f conftest.er1
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12294 { (case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297 esac
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_try") 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest.$ac_objext'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12314 else
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 ac_cv_have_decl_FE_ALL_EXCEPT=no
12321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12324 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12325 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_DECL_FE_ALL_EXCEPT 1
12329 _ACEOF
12332 else
12333 cat >>confdefs.h <<_ACEOF
12334 #define HAVE_DECL_FE_ALL_EXCEPT 0
12335 _ACEOF
12339 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12340 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12341 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h. */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 #include <fenv.h>
12353 main ()
12355 #ifndef FE_INEXACT
12356 char *p = (char *) FE_INEXACT;
12357 return !p;
12358 #endif
12361 return 0;
12363 _ACEOF
12364 rm -f conftest.$ac_objext
12365 if { (ac_try="$ac_compile"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_compile") 2>conftest.er1
12372 ac_status=$?
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; } &&
12388 { ac_try='test -s conftest.$ac_objext'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_have_decl_FE_INEXACT=yes
12399 else
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_cv_have_decl_FE_INEXACT=no
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12409 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12410 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12412 cat >>confdefs.h <<_ACEOF
12413 #define HAVE_DECL_FE_INEXACT 1
12414 _ACEOF
12417 else
12418 cat >>confdefs.h <<_ACEOF
12419 #define HAVE_DECL_FE_INEXACT 0
12420 _ACEOF
12426 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12428 for ac_header in pthread.h
12430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12437 ac_res=`eval echo '${'$as_ac_Header'}'`
12438 { echo "$as_me:$LINENO: result: $ac_res" >&5
12439 echo "${ECHO_T}$ac_res" >&6; }
12440 else
12441 # Is the header compilable?
12442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h. */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 $ac_includes_default
12451 #include <$ac_header>
12452 _ACEOF
12453 rm -f conftest.$ac_objext
12454 if { (ac_try="$ac_compile"
12455 case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_compile") 2>conftest.er1
12461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
12467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12468 { (case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12471 esac
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_try") 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; } &&
12477 { ac_try='test -s conftest.$ac_objext'
12478 { (case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12481 esac
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_try") 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_header_compiler=yes
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ac_header_compiler=no
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12497 echo "${ECHO_T}$ac_header_compiler" >&6; }
12499 # Is the header present?
12500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12502 cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h. */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 #include <$ac_header>
12509 _ACEOF
12510 if { (ac_try="$ac_cpp conftest.$ac_ext"
12511 case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12514 esac
12515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } >/dev/null; then
12523 if test -s conftest.err; then
12524 ac_cpp_err=$ac_c_preproc_warn_flag
12525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12526 else
12527 ac_cpp_err=
12529 else
12530 ac_cpp_err=yes
12532 if test -z "$ac_cpp_err"; then
12533 ac_header_preproc=yes
12534 else
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ac_header_preproc=no
12541 rm -f conftest.err conftest.$ac_ext
12542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12543 echo "${ECHO_T}$ac_header_preproc" >&6; }
12545 # So? What about this header?
12546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12547 yes:no: )
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12552 ac_header_preproc=yes
12554 no:yes:* )
12555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12567 ( cat <<\_ASBOX
12568 ## ------------------------------------ ##
12569 ## Report this to http://llvm.org/bugs/ ##
12570 ## ------------------------------------ ##
12571 _ASBOX
12572 ) | sed "s/^/$as_me: WARNING: /" >&2
12574 esac
12575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580 eval "$as_ac_Header=\$ac_header_preproc"
12582 ac_res=`eval echo '${'$as_ac_Header'}'`
12583 { echo "$as_me:$LINENO: result: $ac_res" >&5
12584 echo "${ECHO_T}$ac_res" >&6; }
12587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12588 cat >>confdefs.h <<_ACEOF
12589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12590 _ACEOF
12591 HAVE_PTHREAD=1
12593 else
12594 HAVE_PTHREAD=0
12598 done
12600 else
12601 HAVE_PTHREAD=0
12604 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12606 for ac_header in zlib.h
12608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 ac_res=`eval echo '${'$as_ac_Header'}'`
12616 { echo "$as_me:$LINENO: result: $ac_res" >&5
12617 echo "${ECHO_T}$ac_res" >&6; }
12618 else
12619 # Is the header compilable?
12620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h. */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 $ac_includes_default
12629 #include <$ac_header>
12630 _ACEOF
12631 rm -f conftest.$ac_objext
12632 if { (ac_try="$ac_compile"
12633 case "(($ac_try" in
12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 *) ac_try_echo=$ac_try;;
12636 esac
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638 (eval "$ac_compile") 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12646 { (case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_try") 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try='test -s conftest.$ac_objext'
12656 { (case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_try") 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 ac_header_compiler=yes
12666 else
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12670 ac_header_compiler=no
12673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12675 echo "${ECHO_T}$ac_header_compiler" >&6; }
12677 # Is the header present?
12678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12680 cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h. */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12686 #include <$ac_header>
12687 _ACEOF
12688 if { (ac_try="$ac_cpp conftest.$ac_ext"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } >/dev/null; then
12701 if test -s conftest.err; then
12702 ac_cpp_err=$ac_c_preproc_warn_flag
12703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12704 else
12705 ac_cpp_err=
12707 else
12708 ac_cpp_err=yes
12710 if test -z "$ac_cpp_err"; then
12711 ac_header_preproc=yes
12712 else
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12716 ac_header_preproc=no
12719 rm -f conftest.err conftest.$ac_ext
12720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12721 echo "${ECHO_T}$ac_header_preproc" >&6; }
12723 # So? What about this header?
12724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12725 yes:no: )
12726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12730 ac_header_preproc=yes
12732 no:yes:* )
12733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12745 ( cat <<\_ASBOX
12746 ## ------------------------------------ ##
12747 ## Report this to http://llvm.org/bugs/ ##
12748 ## ------------------------------------ ##
12749 _ASBOX
12750 ) | sed "s/^/$as_me: WARNING: /" >&2
12752 esac
12753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 else
12758 eval "$as_ac_Header=\$ac_header_preproc"
12760 ac_res=`eval echo '${'$as_ac_Header'}'`
12761 { echo "$as_me:$LINENO: result: $ac_res" >&5
12762 echo "${ECHO_T}$ac_res" >&6; }
12765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12766 cat >>confdefs.h <<_ACEOF
12767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12768 _ACEOF
12769 HAVE_LIBZ=1
12771 else
12772 HAVE_LIBZ=0
12776 done
12778 else
12779 HAVE_LIBZ=0
12783 if test "$llvm_cv_enable_libffi" = "yes" ; then
12786 for ac_header in ffi.h ffi/ffi.h
12788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 ac_res=`eval echo '${'$as_ac_Header'}'`
12796 { echo "$as_me:$LINENO: result: $ac_res" >&5
12797 echo "${ECHO_T}$ac_res" >&6; }
12798 else
12799 # Is the header compilable?
12800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12802 cat >conftest.$ac_ext <<_ACEOF
12803 /* confdefs.h. */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12808 $ac_includes_default
12809 #include <$ac_header>
12810 _ACEOF
12811 rm -f conftest.$ac_objext
12812 if { (ac_try="$ac_compile"
12813 case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816 esac
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_compile") 2>conftest.er1
12819 ac_status=$?
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
12825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12826 { (case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12829 esac
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_try") 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; } &&
12835 { ac_try='test -s conftest.$ac_objext'
12836 { (case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12839 esac
12840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_try") 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; }; then
12845 ac_header_compiler=yes
12846 else
12847 echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12850 ac_header_compiler=no
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12855 echo "${ECHO_T}$ac_header_compiler" >&6; }
12857 # Is the header present?
12858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12860 cat >conftest.$ac_ext <<_ACEOF
12861 /* confdefs.h. */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12866 #include <$ac_header>
12867 _ACEOF
12868 if { (ac_try="$ac_cpp conftest.$ac_ext"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } >/dev/null; then
12881 if test -s conftest.err; then
12882 ac_cpp_err=$ac_c_preproc_warn_flag
12883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12884 else
12885 ac_cpp_err=
12887 else
12888 ac_cpp_err=yes
12890 if test -z "$ac_cpp_err"; then
12891 ac_header_preproc=yes
12892 else
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ac_header_preproc=no
12899 rm -f conftest.err conftest.$ac_ext
12900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12901 echo "${ECHO_T}$ac_header_preproc" >&6; }
12903 # So? What about this header?
12904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12905 yes:no: )
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12910 ac_header_preproc=yes
12912 no:yes:* )
12913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12925 ( cat <<\_ASBOX
12926 ## ------------------------------------ ##
12927 ## Report this to http://llvm.org/bugs/ ##
12928 ## ------------------------------------ ##
12929 _ASBOX
12930 ) | sed "s/^/$as_me: WARNING: /" >&2
12932 esac
12933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938 eval "$as_ac_Header=\$ac_header_preproc"
12940 ac_res=`eval echo '${'$as_ac_Header'}'`
12941 { echo "$as_me:$LINENO: result: $ac_res" >&5
12942 echo "${ECHO_T}$ac_res" >&6; }
12945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12946 cat >>confdefs.h <<_ACEOF
12947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12948 _ACEOF
12952 done
12957 for ac_header in CrashReporterClient.h
12959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 ac_res=`eval echo '${'$as_ac_Header'}'`
12967 { echo "$as_me:$LINENO: result: $ac_res" >&5
12968 echo "${ECHO_T}$ac_res" >&6; }
12969 else
12970 # Is the header compilable?
12971 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12973 cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h. */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12979 $ac_includes_default
12980 #include <$ac_header>
12981 _ACEOF
12982 rm -f conftest.$ac_objext
12983 if { (ac_try="$ac_compile"
12984 case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_compile") 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997 { (case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; } &&
13006 { ac_try='test -s conftest.$ac_objext'
13007 { (case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_try") 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 ac_header_compiler=yes
13017 else
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13021 ac_header_compiler=no
13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13026 echo "${ECHO_T}$ac_header_compiler" >&6; }
13028 # Is the header present?
13029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13031 cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h. */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 #include <$ac_header>
13038 _ACEOF
13039 if { (ac_try="$ac_cpp conftest.$ac_ext"
13040 case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13043 esac
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13046 ac_status=$?
13047 grep -v '^ *+' conftest.er1 >conftest.err
13048 rm -f conftest.er1
13049 cat conftest.err >&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } >/dev/null; then
13052 if test -s conftest.err; then
13053 ac_cpp_err=$ac_c_preproc_warn_flag
13054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13055 else
13056 ac_cpp_err=
13058 else
13059 ac_cpp_err=yes
13061 if test -z "$ac_cpp_err"; then
13062 ac_header_preproc=yes
13063 else
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 ac_header_preproc=no
13070 rm -f conftest.err conftest.$ac_ext
13071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13072 echo "${ECHO_T}$ac_header_preproc" >&6; }
13074 # So? What about this header?
13075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13076 yes:no: )
13077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13081 ac_header_preproc=yes
13083 no:yes:* )
13084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13096 ( cat <<\_ASBOX
13097 ## ------------------------------------ ##
13098 ## Report this to http://llvm.org/bugs/ ##
13099 ## ------------------------------------ ##
13100 _ASBOX
13101 ) | sed "s/^/$as_me: WARNING: /" >&2
13103 esac
13104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 else
13109 eval "$as_ac_Header=\$ac_header_preproc"
13111 ac_res=`eval echo '${'$as_ac_Header'}'`
13112 { echo "$as_me:$LINENO: result: $ac_res" >&5
13113 echo "${ECHO_T}$ac_res" >&6; }
13116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13117 cat >>confdefs.h <<_ACEOF
13118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13119 _ACEOF
13123 done
13126 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13127 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13128 cat >conftest.$ac_ext <<_ACEOF
13130 /* confdefs.h. */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13136 extern const char *__crashreporter_info__;
13137 int main() {
13138 __crashreporter_info__ = "test";
13139 return 0;
13143 _ACEOF
13144 rm -f conftest.$ac_objext conftest$ac_exeext
13145 if { (ac_try="$ac_link"
13146 case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13149 esac
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_link") 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13159 { (case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_try") 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest$ac_exeext'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13179 { echo "$as_me:$LINENO: result: yes" >&5
13180 echo "${ECHO_T}yes" >&6; }
13182 cat >>confdefs.h <<\_ACEOF
13183 #define HAVE_CRASHREPORTER_INFO 1
13184 _ACEOF
13187 else
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13192 { echo "$as_me:$LINENO: result: no" >&5
13193 echo "${ECHO_T}no" >&6; }
13195 cat >>confdefs.h <<\_ACEOF
13196 #define HAVE_CRASHREPORTER_INFO 0
13197 _ACEOF
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13207 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13208 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13209 if test "${ac_cv_huge_val_sanity+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13213 ac_ext=cpp
13214 ac_cpp='$CXXCPP $CPPFLAGS'
13215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13219 ac_save_CXXFLAGS=$CXXFLAGS
13220 CXXFLAGS="$CXXFLAGS -pedantic"
13221 if test "$cross_compiling" = yes; then
13222 ac_cv_huge_val_sanity=yes
13223 else
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h. */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 #include <math.h>
13232 main ()
13234 double x = HUGE_VAL; return x != x;
13236 return 0;
13238 _ACEOF
13239 rm -f conftest$ac_exeext
13240 if { (ac_try="$ac_link"
13241 case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244 esac
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_link") 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_huge_val_sanity=yes
13260 else
13261 echo "$as_me: program exited with status $ac_status" >&5
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ( exit $ac_status )
13266 ac_cv_huge_val_sanity=no
13268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13272 CXXFLAGS=$ac_save_CXXFLAGS
13273 ac_ext=c
13274 ac_cpp='$CPP $CPPFLAGS'
13275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13281 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13282 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13283 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13286 { echo "$as_me:$LINENO: checking for pid_t" >&5
13287 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13288 if test "${ac_cv_type_pid_t+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h. */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 $ac_includes_default
13298 typedef pid_t ac__type_new_;
13300 main ()
13302 if ((ac__type_new_ *) 0)
13303 return 0;
13304 if (sizeof (ac__type_new_))
13305 return 0;
13307 return 0;
13309 _ACEOF
13310 rm -f conftest.$ac_objext
13311 if { (ac_try="$ac_compile"
13312 case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315 esac
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_compile") 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest.$ac_objext'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_cv_type_pid_t=yes
13345 else
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 ac_cv_type_pid_t=no
13352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13355 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13356 if test $ac_cv_type_pid_t = yes; then
13358 else
13360 cat >>confdefs.h <<_ACEOF
13361 #define pid_t int
13362 _ACEOF
13366 { echo "$as_me:$LINENO: checking for size_t" >&5
13367 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13368 if test "${ac_cv_type_size_t+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371 cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h. */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 $ac_includes_default
13378 typedef size_t ac__type_new_;
13380 main ()
13382 if ((ac__type_new_ *) 0)
13383 return 0;
13384 if (sizeof (ac__type_new_))
13385 return 0;
13387 return 0;
13389 _ACEOF
13390 rm -f conftest.$ac_objext
13391 if { (ac_try="$ac_compile"
13392 case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_compile") 2>conftest.er1
13398 ac_status=$?
13399 grep -v '^ *+' conftest.er1 >conftest.err
13400 rm -f conftest.er1
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
13404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13405 { (case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_try") 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; } &&
13414 { ac_try='test -s conftest.$ac_objext'
13415 { (case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_try") 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 ac_cv_type_size_t=yes
13425 else
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ac_cv_type_size_t=no
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13435 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13436 if test $ac_cv_type_size_t = yes; then
13438 else
13440 cat >>confdefs.h <<_ACEOF
13441 #define size_t unsigned int
13442 _ACEOF
13447 cat >>confdefs.h <<_ACEOF
13448 #define RETSIGTYPE void
13449 _ACEOF
13451 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13452 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13453 if test "${ac_cv_struct_tm+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 #include <sys/types.h>
13463 #include <time.h>
13466 main ()
13468 struct tm *tp; tp->tm_sec;
13470 return 0;
13472 _ACEOF
13473 rm -f conftest.$ac_objext
13474 if { (ac_try="$ac_compile"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_compile") 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } &&
13487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13488 { (case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13491 esac
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_try") 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } &&
13497 { ac_try='test -s conftest.$ac_objext'
13498 { (case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13501 esac
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_try") 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
13507 ac_cv_struct_tm=time.h
13508 else
13509 echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13512 ac_cv_struct_tm=sys/time.h
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13518 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13519 if test $ac_cv_struct_tm = sys/time.h; then
13521 cat >>confdefs.h <<\_ACEOF
13522 #define TM_IN_SYS_TIME 1
13523 _ACEOF
13527 { echo "$as_me:$LINENO: checking for int64_t" >&5
13528 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13529 if test "${ac_cv_type_int64_t+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532 cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h. */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13538 $ac_includes_default
13539 typedef int64_t ac__type_new_;
13541 main ()
13543 if ((ac__type_new_ *) 0)
13544 return 0;
13545 if (sizeof (ac__type_new_))
13546 return 0;
13548 return 0;
13550 _ACEOF
13551 rm -f conftest.$ac_objext
13552 if { (ac_try="$ac_compile"
13553 case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13556 esac
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_compile") 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13566 { (case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13569 esac
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_try") 2>&5
13572 ac_status=$?
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; } &&
13575 { ac_try='test -s conftest.$ac_objext'
13576 { (case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579 esac
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_try") 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_cv_type_int64_t=yes
13586 else
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 ac_cv_type_int64_t=no
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13596 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13597 if test $ac_cv_type_int64_t = yes; then
13599 cat >>confdefs.h <<_ACEOF
13600 #define HAVE_INT64_T 1
13601 _ACEOF
13604 else
13605 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13606 echo "$as_me: error: Type int64_t required but not found" >&2;}
13607 { (exit 1); exit 1; }; }
13610 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13611 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13612 if test "${ac_cv_type_uint64_t+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 else
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h. */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 $ac_includes_default
13622 typedef uint64_t ac__type_new_;
13624 main ()
13626 if ((ac__type_new_ *) 0)
13627 return 0;
13628 if (sizeof (ac__type_new_))
13629 return 0;
13631 return 0;
13633 _ACEOF
13634 rm -f conftest.$ac_objext
13635 if { (ac_try="$ac_compile"
13636 case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639 esac
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_compile") 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13649 { (case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13652 esac
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_try") 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13662 esac
13663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664 (eval "$ac_try") 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 ac_cv_type_uint64_t=yes
13669 else
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13673 ac_cv_type_uint64_t=no
13676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13678 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13679 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13680 if test $ac_cv_type_uint64_t = yes; then
13682 cat >>confdefs.h <<_ACEOF
13683 #define HAVE_UINT64_T 1
13684 _ACEOF
13687 else
13688 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13689 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13690 if test "${ac_cv_type_u_int64_t+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693 cat >conftest.$ac_ext <<_ACEOF
13694 /* confdefs.h. */
13695 _ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 $ac_includes_default
13700 typedef u_int64_t ac__type_new_;
13702 main ()
13704 if ((ac__type_new_ *) 0)
13705 return 0;
13706 if (sizeof (ac__type_new_))
13707 return 0;
13709 return 0;
13711 _ACEOF
13712 rm -f conftest.$ac_objext
13713 if { (ac_try="$ac_compile"
13714 case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13717 esac
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_compile") 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest.$ac_objext'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 ac_cv_type_u_int64_t=yes
13747 else
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13751 ac_cv_type_u_int64_t=no
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13757 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13758 if test $ac_cv_type_u_int64_t = yes; then
13760 cat >>confdefs.h <<_ACEOF
13761 #define HAVE_U_INT64_T 1
13762 _ACEOF
13765 else
13766 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13767 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13768 { (exit 1); exit 1; }; }
13777 for ac_func in backtrace getcwd
13779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h. */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13793 #define $ac_func innocuous_$ac_func
13795 /* System header to define __stub macros and hopefully few prototypes,
13796 which can conflict with char $ac_func (); below.
13797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13798 <limits.h> exists even on freestanding compilers. */
13800 #ifdef __STDC__
13801 # include <limits.h>
13802 #else
13803 # include <assert.h>
13804 #endif
13806 #undef $ac_func
13808 /* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
13811 #ifdef __cplusplus
13812 extern "C"
13813 #endif
13814 char $ac_func ();
13815 /* The GNU C library defines this for functions which it implements
13816 to always fail with ENOSYS. Some functions are actually named
13817 something starting with __ and the normal name is an alias. */
13818 #if defined __stub_$ac_func || defined __stub___$ac_func
13819 choke me
13820 #endif
13823 main ()
13825 return $ac_func ();
13827 return 0;
13829 _ACEOF
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (ac_try="$ac_link"
13832 case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835 esac
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_link") 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest$ac_exeext'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 eval "$as_ac_var=yes"
13865 else
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13869 eval "$as_ac_var=no"
13872 rm -f core conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
13875 ac_res=`eval echo '${'$as_ac_var'}'`
13876 { echo "$as_me:$LINENO: result: $ac_res" >&5
13877 echo "${ECHO_T}$ac_res" >&6; }
13878 if test `eval echo '${'$as_ac_var'}'` = yes; then
13879 cat >>confdefs.h <<_ACEOF
13880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13881 _ACEOF
13884 done
13891 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
13893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h. */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13907 #define $ac_func innocuous_$ac_func
13909 /* System header to define __stub macros and hopefully few prototypes,
13910 which can conflict with char $ac_func (); below.
13911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13912 <limits.h> exists even on freestanding compilers. */
13914 #ifdef __STDC__
13915 # include <limits.h>
13916 #else
13917 # include <assert.h>
13918 #endif
13920 #undef $ac_func
13922 /* Override any GCC internal prototype to avoid an error.
13923 Use char because int might match the return type of a GCC
13924 builtin and then its argument prototype would still apply. */
13925 #ifdef __cplusplus
13926 extern "C"
13927 #endif
13928 char $ac_func ();
13929 /* The GNU C library defines this for functions which it implements
13930 to always fail with ENOSYS. Some functions are actually named
13931 something starting with __ and the normal name is an alias. */
13932 #if defined __stub_$ac_func || defined __stub___$ac_func
13933 choke me
13934 #endif
13937 main ()
13939 return $ac_func ();
13941 return 0;
13943 _ACEOF
13944 rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (ac_try="$ac_link"
13946 case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_link") 2>conftest.er1
13952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
13958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest$ac_exeext'
13969 { (case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_try") 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 eval "$as_ac_var=yes"
13979 else
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 eval "$as_ac_var=no"
13986 rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13989 ac_res=`eval echo '${'$as_ac_var'}'`
13990 { echo "$as_me:$LINENO: result: $ac_res" >&5
13991 echo "${ECHO_T}$ac_res" >&6; }
13992 if test `eval echo '${'$as_ac_var'}'` = yes; then
13993 cat >>confdefs.h <<_ACEOF
13994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13995 _ACEOF
13998 done
14003 for ac_func in isatty mkdtemp mkstemp
14005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 else
14011 cat >conftest.$ac_ext <<_ACEOF
14012 /* confdefs.h. */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14019 #define $ac_func innocuous_$ac_func
14021 /* System header to define __stub macros and hopefully few prototypes,
14022 which can conflict with char $ac_func (); below.
14023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14024 <limits.h> exists even on freestanding compilers. */
14026 #ifdef __STDC__
14027 # include <limits.h>
14028 #else
14029 # include <assert.h>
14030 #endif
14032 #undef $ac_func
14034 /* Override any GCC internal prototype to avoid an error.
14035 Use char because int might match the return type of a GCC
14036 builtin and then its argument prototype would still apply. */
14037 #ifdef __cplusplus
14038 extern "C"
14039 #endif
14040 char $ac_func ();
14041 /* The GNU C library defines this for functions which it implements
14042 to always fail with ENOSYS. Some functions are actually named
14043 something starting with __ and the normal name is an alias. */
14044 #if defined __stub_$ac_func || defined __stub___$ac_func
14045 choke me
14046 #endif
14049 main ()
14051 return $ac_func ();
14053 return 0;
14055 _ACEOF
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (ac_try="$ac_link"
14058 case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_link") 2>conftest.er1
14064 ac_status=$?
14065 grep -v '^ *+' conftest.er1 >conftest.err
14066 rm -f conftest.er1
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14071 { (case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_try") 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; } &&
14080 { ac_try='test -s conftest$ac_exeext'
14081 { (case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_try") 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 eval "$as_ac_var=yes"
14091 else
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 eval "$as_ac_var=no"
14098 rm -f core conftest.err conftest.$ac_objext \
14099 conftest$ac_exeext conftest.$ac_ext
14101 ac_res=`eval echo '${'$as_ac_var'}'`
14102 { echo "$as_me:$LINENO: result: $ac_res" >&5
14103 echo "${ECHO_T}$ac_res" >&6; }
14104 if test `eval echo '${'$as_ac_var'}'` = yes; then
14105 cat >>confdefs.h <<_ACEOF
14106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14107 _ACEOF
14110 done
14118 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h. */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14134 #define $ac_func innocuous_$ac_func
14136 /* System header to define __stub macros and hopefully few prototypes,
14137 which can conflict with char $ac_func (); below.
14138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14139 <limits.h> exists even on freestanding compilers. */
14141 #ifdef __STDC__
14142 # include <limits.h>
14143 #else
14144 # include <assert.h>
14145 #endif
14147 #undef $ac_func
14149 /* Override any GCC internal prototype to avoid an error.
14150 Use char because int might match the return type of a GCC
14151 builtin and then its argument prototype would still apply. */
14152 #ifdef __cplusplus
14153 extern "C"
14154 #endif
14155 char $ac_func ();
14156 /* The GNU C library defines this for functions which it implements
14157 to always fail with ENOSYS. Some functions are actually named
14158 something starting with __ and the normal name is an alias. */
14159 #if defined __stub_$ac_func || defined __stub___$ac_func
14160 choke me
14161 #endif
14164 main ()
14166 return $ac_func ();
14168 return 0;
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (ac_try="$ac_link"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_link") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } &&
14185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14186 { (case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14189 esac
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_try") 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; } &&
14195 { ac_try='test -s conftest$ac_exeext'
14196 { (case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14199 esac
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_try") 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 eval "$as_ac_var=yes"
14206 else
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14210 eval "$as_ac_var=no"
14213 rm -f core conftest.err conftest.$ac_objext \
14214 conftest$ac_exeext conftest.$ac_ext
14216 ac_res=`eval echo '${'$as_ac_var'}'`
14217 { echo "$as_me:$LINENO: result: $ac_res" >&5
14218 echo "${ECHO_T}$ac_res" >&6; }
14219 if test `eval echo '${'$as_ac_var'}'` = yes; then
14220 cat >>confdefs.h <<_ACEOF
14221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14222 _ACEOF
14225 done
14230 for ac_func in strerror strerror_r setenv
14232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14246 #define $ac_func innocuous_$ac_func
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char $ac_func (); below.
14250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14251 <limits.h> exists even on freestanding compilers. */
14253 #ifdef __STDC__
14254 # include <limits.h>
14255 #else
14256 # include <assert.h>
14257 #endif
14259 #undef $ac_func
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char $ac_func ();
14268 /* The GNU C library defines this for functions which it implements
14269 to always fail with ENOSYS. Some functions are actually named
14270 something starting with __ and the normal name is an alias. */
14271 #if defined __stub_$ac_func || defined __stub___$ac_func
14272 choke me
14273 #endif
14276 main ()
14278 return $ac_func ();
14280 return 0;
14282 _ACEOF
14283 rm -f conftest.$ac_objext conftest$ac_exeext
14284 if { (ac_try="$ac_link"
14285 case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14288 esac
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_link") 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14298 { (case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_try") 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest$ac_exeext'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317 eval "$as_ac_var=yes"
14318 else
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 eval "$as_ac_var=no"
14325 rm -f core conftest.err conftest.$ac_objext \
14326 conftest$ac_exeext conftest.$ac_ext
14328 ac_res=`eval echo '${'$as_ac_var'}'`
14329 { echo "$as_me:$LINENO: result: $ac_res" >&5
14330 echo "${ECHO_T}$ac_res" >&6; }
14331 if test `eval echo '${'$as_ac_var'}'` = yes; then
14332 cat >>confdefs.h <<_ACEOF
14333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14334 _ACEOF
14337 done
14343 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351 cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h. */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14359 #define $ac_func innocuous_$ac_func
14361 /* System header to define __stub macros and hopefully few prototypes,
14362 which can conflict with char $ac_func (); below.
14363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14364 <limits.h> exists even on freestanding compilers. */
14366 #ifdef __STDC__
14367 # include <limits.h>
14368 #else
14369 # include <assert.h>
14370 #endif
14372 #undef $ac_func
14374 /* Override any GCC internal prototype to avoid an error.
14375 Use char because int might match the return type of a GCC
14376 builtin and then its argument prototype would still apply. */
14377 #ifdef __cplusplus
14378 extern "C"
14379 #endif
14380 char $ac_func ();
14381 /* The GNU C library defines this for functions which it implements
14382 to always fail with ENOSYS. Some functions are actually named
14383 something starting with __ and the normal name is an alias. */
14384 #if defined __stub_$ac_func || defined __stub___$ac_func
14385 choke me
14386 #endif
14389 main ()
14391 return $ac_func ();
14393 return 0;
14395 _ACEOF
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (ac_try="$ac_link"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401 esac
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>conftest.er1
14404 ac_status=$?
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
14410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14411 { (case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14414 esac
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_try") 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest$ac_exeext'
14421 { (case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424 esac
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 eval "$as_ac_var=yes"
14431 else
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14435 eval "$as_ac_var=no"
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14441 ac_res=`eval echo '${'$as_ac_var'}'`
14442 { echo "$as_me:$LINENO: result: $ac_res" >&5
14443 echo "${ECHO_T}$ac_res" >&6; }
14444 if test `eval echo '${'$as_ac_var'}'` = yes; then
14445 cat >>confdefs.h <<_ACEOF
14446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14447 _ACEOF
14450 done
14455 for ac_func in setjmp longjmp writev
14457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463 cat >conftest.$ac_ext <<_ACEOF
14464 /* confdefs.h. */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14471 #define $ac_func innocuous_$ac_func
14473 /* System header to define __stub macros and hopefully few prototypes,
14474 which can conflict with char $ac_func (); below.
14475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14476 <limits.h> exists even on freestanding compilers. */
14478 #ifdef __STDC__
14479 # include <limits.h>
14480 #else
14481 # include <assert.h>
14482 #endif
14484 #undef $ac_func
14486 /* Override any GCC internal prototype to avoid an error.
14487 Use char because int might match the return type of a GCC
14488 builtin and then its argument prototype would still apply. */
14489 #ifdef __cplusplus
14490 extern "C"
14491 #endif
14492 char $ac_func ();
14493 /* The GNU C library defines this for functions which it implements
14494 to always fail with ENOSYS. Some functions are actually named
14495 something starting with __ and the normal name is an alias. */
14496 #if defined __stub_$ac_func || defined __stub___$ac_func
14497 choke me
14498 #endif
14501 main ()
14503 return $ac_func ();
14505 return 0;
14507 _ACEOF
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (ac_try="$ac_link"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_link") 2>conftest.er1
14516 ac_status=$?
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14523 { (case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_try") 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest$ac_exeext'
14533 { (case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_try") 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 eval "$as_ac_var=yes"
14543 else
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 eval "$as_ac_var=no"
14550 rm -f core conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext conftest.$ac_ext
14553 ac_res=`eval echo '${'$as_ac_var'}'`
14554 { echo "$as_me:$LINENO: result: $ac_res" >&5
14555 echo "${ECHO_T}$ac_res" >&6; }
14556 if test `eval echo '${'$as_ac_var'}'` = yes; then
14557 cat >>confdefs.h <<_ACEOF
14558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14559 _ACEOF
14562 done
14566 for ac_func in futimes futimens
14568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574 cat >conftest.$ac_ext <<_ACEOF
14575 /* confdefs.h. */
14576 _ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14582 #define $ac_func innocuous_$ac_func
14584 /* System header to define __stub macros and hopefully few prototypes,
14585 which can conflict with char $ac_func (); below.
14586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14587 <limits.h> exists even on freestanding compilers. */
14589 #ifdef __STDC__
14590 # include <limits.h>
14591 #else
14592 # include <assert.h>
14593 #endif
14595 #undef $ac_func
14597 /* Override any GCC internal prototype to avoid an error.
14598 Use char because int might match the return type of a GCC
14599 builtin and then its argument prototype would still apply. */
14600 #ifdef __cplusplus
14601 extern "C"
14602 #endif
14603 char $ac_func ();
14604 /* The GNU C library defines this for functions which it implements
14605 to always fail with ENOSYS. Some functions are actually named
14606 something starting with __ and the normal name is an alias. */
14607 #if defined __stub_$ac_func || defined __stub___$ac_func
14608 choke me
14609 #endif
14612 main ()
14614 return $ac_func ();
14616 return 0;
14618 _ACEOF
14619 rm -f conftest.$ac_objext conftest$ac_exeext
14620 if { (ac_try="$ac_link"
14621 case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14624 esac
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_link") 2>conftest.er1
14627 ac_status=$?
14628 grep -v '^ *+' conftest.er1 >conftest.err
14629 rm -f conftest.er1
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } &&
14633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14634 { (case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14637 esac
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_try") 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest$ac_exeext'
14644 { (case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_try") 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
14653 eval "$as_ac_var=yes"
14654 else
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 eval "$as_ac_var=no"
14661 rm -f core conftest.err conftest.$ac_objext \
14662 conftest$ac_exeext conftest.$ac_ext
14664 ac_res=`eval echo '${'$as_ac_var'}'`
14665 { echo "$as_me:$LINENO: result: $ac_res" >&5
14666 echo "${ECHO_T}$ac_res" >&6; }
14667 if test `eval echo '${'$as_ac_var'}'` = yes; then
14668 cat >>confdefs.h <<_ACEOF
14669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14670 _ACEOF
14673 done
14675 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14676 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14677 if test "${llvm_cv_c_printf_a+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680 ac_ext=c
14681 ac_cpp='$CPP $CPPFLAGS'
14682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14686 if test "$cross_compiling" = yes; then
14687 llvmac_cv_c_printf_a=no
14688 else
14689 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h. */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14697 #include <stdio.h>
14698 #include <stdlib.h>
14701 main ()
14704 volatile double A, B;
14705 char Buffer[100];
14706 A = 1;
14707 A /= 10.0;
14708 sprintf(Buffer, "%a", A);
14709 B = atof(Buffer);
14710 if (A != B)
14711 return (1);
14712 if (A != 0x1.999999999999ap-4)
14713 return (1);
14714 return (0);
14716 return 0;
14718 _ACEOF
14719 rm -f conftest$ac_exeext
14720 if { (ac_try="$ac_link"
14721 case "(($ac_try" in
14722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723 *) ac_try_echo=$ac_try;;
14724 esac
14725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14726 (eval "$ac_link") 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14730 { (case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14733 esac
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_try") 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 llvm_cv_c_printf_a=yes
14740 else
14741 echo "$as_me: program exited with status $ac_status" >&5
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14745 ( exit $ac_status )
14746 llvmac_cv_c_printf_a=no
14748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14752 ac_ext=c
14753 ac_cpp='$CPP $CPPFLAGS'
14754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14759 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14760 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14761 if test "$llvm_cv_c_printf_a" = "yes"; then
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_PRINTF_A 1
14765 _ACEOF
14770 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
14771 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
14772 if test "${ac_cv_have_decl_arc4random+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775 cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h. */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14781 $ac_includes_default
14783 main ()
14785 #ifndef arc4random
14786 char *p = (char *) arc4random;
14787 return !p;
14788 #endif
14791 return 0;
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (ac_try="$ac_compile"
14796 case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_compile") 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
14808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14809 { (case "(($ac_try" in
14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14812 esac
14813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814 (eval "$ac_try") 2>&5
14815 ac_status=$?
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; } &&
14818 { ac_try='test -s conftest.$ac_objext'
14819 { (case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14822 esac
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_try") 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 ac_cv_have_decl_arc4random=yes
14829 else
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 ac_cv_have_decl_arc4random=no
14836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
14839 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
14840 if test $ac_cv_have_decl_arc4random = yes; then
14842 cat >>confdefs.h <<_ACEOF
14843 #define HAVE_DECL_ARC4RANDOM 1
14844 _ACEOF
14847 else
14848 cat >>confdefs.h <<_ACEOF
14849 #define HAVE_DECL_ARC4RANDOM 0
14850 _ACEOF
14857 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
14858 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
14859 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862 cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h. */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 $ac_includes_default
14870 main ()
14872 #ifndef strerror_s
14873 char *p = (char *) strerror_s;
14874 return !p;
14875 #endif
14878 return 0;
14880 _ACEOF
14881 rm -f conftest.$ac_objext
14882 if { (ac_try="$ac_compile"
14883 case "(($ac_try" in
14884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885 *) ac_try_echo=$ac_try;;
14886 esac
14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 (eval "$ac_compile") 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14896 { (case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14899 esac
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_try") 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest.$ac_objext'
14906 { (case "(($ac_try" in
14907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908 *) ac_try_echo=$ac_try;;
14909 esac
14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911 (eval "$ac_try") 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 ac_cv_have_decl_strerror_s=yes
14916 else
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ac_cv_have_decl_strerror_s=no
14923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
14926 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
14927 if test $ac_cv_have_decl_strerror_s = yes; then
14929 cat >>confdefs.h <<_ACEOF
14930 #define HAVE_DECL_STRERROR_S 1
14931 _ACEOF
14934 else
14935 cat >>confdefs.h <<_ACEOF
14936 #define HAVE_DECL_STRERROR_S 0
14937 _ACEOF
14944 if test "$llvm_cv_os_type" = "MingW" ; then
14945 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
14946 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
14947 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950 ac_check_lib_save_LIBS=$LIBS
14951 LIBS="-lgcc $LIBS"
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h. */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14959 /* Override any GCC internal prototype to avoid an error.
14960 Use char because int might match the return type of a GCC
14961 builtin and then its argument prototype would still apply. */
14962 #ifdef __cplusplus
14963 extern "C"
14964 #endif
14965 char _alloca ();
14967 main ()
14969 return _alloca ();
14971 return 0;
14973 _ACEOF
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (ac_try="$ac_link"
14976 case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_link") 2>conftest.er1
14982 ac_status=$?
14983 grep -v '^ *+' conftest.er1 >conftest.err
14984 rm -f conftest.er1
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
14988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14989 { (case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14992 esac
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_try") 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; } &&
14998 { ac_try='test -s conftest$ac_exeext'
14999 { (case "(($ac_try" in
15000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15002 esac
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_try") 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_cv_lib_gcc__alloca=yes
15009 else
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 ac_cv_lib_gcc__alloca=no
15016 rm -f core conftest.err conftest.$ac_objext \
15017 conftest$ac_exeext conftest.$ac_ext
15018 LIBS=$ac_check_lib_save_LIBS
15020 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15021 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15022 if test $ac_cv_lib_gcc__alloca = yes; then
15024 cat >>confdefs.h <<\_ACEOF
15025 #define HAVE__ALLOCA 1
15026 _ACEOF
15030 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15031 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15032 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 else
15035 ac_check_lib_save_LIBS=$LIBS
15036 LIBS="-lgcc $LIBS"
15037 cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h. */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15044 /* Override any GCC internal prototype to avoid an error.
15045 Use char because int might match the return type of a GCC
15046 builtin and then its argument prototype would still apply. */
15047 #ifdef __cplusplus
15048 extern "C"
15049 #endif
15050 char __alloca ();
15052 main ()
15054 return __alloca ();
15056 return 0;
15058 _ACEOF
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (ac_try="$ac_link"
15061 case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_link") 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } &&
15073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15074 { (case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15077 esac
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_try") 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; } &&
15083 { ac_try='test -s conftest$ac_exeext'
15084 { (case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_try") 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
15093 ac_cv_lib_gcc___alloca=yes
15094 else
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15098 ac_cv_lib_gcc___alloca=no
15101 rm -f core conftest.err conftest.$ac_objext \
15102 conftest$ac_exeext conftest.$ac_ext
15103 LIBS=$ac_check_lib_save_LIBS
15105 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15106 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15107 if test $ac_cv_lib_gcc___alloca = yes; then
15109 cat >>confdefs.h <<\_ACEOF
15110 #define HAVE___ALLOCA 1
15111 _ACEOF
15115 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15116 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15117 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120 ac_check_lib_save_LIBS=$LIBS
15121 LIBS="-lgcc $LIBS"
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h. */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15129 /* Override any GCC internal prototype to avoid an error.
15130 Use char because int might match the return type of a GCC
15131 builtin and then its argument prototype would still apply. */
15132 #ifdef __cplusplus
15133 extern "C"
15134 #endif
15135 char __chkstk ();
15137 main ()
15139 return __chkstk ();
15141 return 0;
15143 _ACEOF
15144 rm -f conftest.$ac_objext conftest$ac_exeext
15145 if { (ac_try="$ac_link"
15146 case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15149 esac
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_link") 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15159 { (case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15162 esac
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_try") 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest$ac_exeext'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 ac_cv_lib_gcc___chkstk=yes
15179 else
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 ac_cv_lib_gcc___chkstk=no
15186 rm -f core conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15188 LIBS=$ac_check_lib_save_LIBS
15190 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15191 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15192 if test $ac_cv_lib_gcc___chkstk = yes; then
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE___CHKSTK 1
15196 _ACEOF
15200 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15201 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15202 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 else
15205 ac_check_lib_save_LIBS=$LIBS
15206 LIBS="-lgcc $LIBS"
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15214 /* Override any GCC internal prototype to avoid an error.
15215 Use char because int might match the return type of a GCC
15216 builtin and then its argument prototype would still apply. */
15217 #ifdef __cplusplus
15218 extern "C"
15219 #endif
15220 char __chkstk_ms ();
15222 main ()
15224 return __chkstk_ms ();
15226 return 0;
15228 _ACEOF
15229 rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (ac_try="$ac_link"
15231 case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234 esac
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_link") 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244 { (case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest$ac_exeext'
15254 { (case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_try") 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_cv_lib_gcc___chkstk_ms=yes
15264 else
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ac_cv_lib_gcc___chkstk_ms=no
15271 rm -f core conftest.err conftest.$ac_objext \
15272 conftest$ac_exeext conftest.$ac_ext
15273 LIBS=$ac_check_lib_save_LIBS
15275 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15276 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15277 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE___CHKSTK_MS 1
15281 _ACEOF
15285 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15286 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15287 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290 ac_check_lib_save_LIBS=$LIBS
15291 LIBS="-lgcc $LIBS"
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15299 /* Override any GCC internal prototype to avoid an error.
15300 Use char because int might match the return type of a GCC
15301 builtin and then its argument prototype would still apply. */
15302 #ifdef __cplusplus
15303 extern "C"
15304 #endif
15305 char ___chkstk ();
15307 main ()
15309 return ___chkstk ();
15311 return 0;
15313 _ACEOF
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (ac_try="$ac_link"
15316 case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15319 esac
15320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321 (eval "$ac_link") 2>conftest.er1
15322 ac_status=$?
15323 grep -v '^ *+' conftest.er1 >conftest.err
15324 rm -f conftest.er1
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15329 { (case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15332 esac
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_try") 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_cv_lib_gcc____chkstk=yes
15349 else
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ac_cv_lib_gcc____chkstk=no
15356 rm -f core conftest.err conftest.$ac_objext \
15357 conftest$ac_exeext conftest.$ac_ext
15358 LIBS=$ac_check_lib_save_LIBS
15360 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15361 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15362 if test $ac_cv_lib_gcc____chkstk = yes; then
15364 cat >>confdefs.h <<\_ACEOF
15365 #define HAVE____CHKSTK 1
15366 _ACEOF
15370 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15371 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15372 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375 ac_check_lib_save_LIBS=$LIBS
15376 LIBS="-lgcc $LIBS"
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h. */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char ___chkstk_ms ();
15392 main ()
15394 return ___chkstk_ms ();
15396 return 0;
15398 _ACEOF
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (ac_try="$ac_link"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15404 esac
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_link") 2>conftest.er1
15407 ac_status=$?
15408 grep -v '^ *+' conftest.er1 >conftest.err
15409 rm -f conftest.er1
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15414 { (case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_try") 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try='test -s conftest$ac_exeext'
15424 { (case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15427 esac
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_try") 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 ac_cv_lib_gcc____chkstk_ms=yes
15434 else
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_cv_lib_gcc____chkstk_ms=no
15441 rm -f core conftest.err conftest.$ac_objext \
15442 conftest$ac_exeext conftest.$ac_ext
15443 LIBS=$ac_check_lib_save_LIBS
15445 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15446 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15447 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15449 cat >>confdefs.h <<\_ACEOF
15450 #define HAVE____CHKSTK_MS 1
15451 _ACEOF
15456 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15457 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15458 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 else
15461 ac_check_lib_save_LIBS=$LIBS
15462 LIBS="-lgcc $LIBS"
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h. */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15470 /* Override any GCC internal prototype to avoid an error.
15471 Use char because int might match the return type of a GCC
15472 builtin and then its argument prototype would still apply. */
15473 #ifdef __cplusplus
15474 extern "C"
15475 #endif
15476 char __ashldi3 ();
15478 main ()
15480 return __ashldi3 ();
15482 return 0;
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_link") 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15500 { (case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_try") 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest$ac_exeext'
15510 { (case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15513 esac
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_try") 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 ac_cv_lib_gcc___ashldi3=yes
15520 else
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ac_cv_lib_gcc___ashldi3=no
15527 rm -f core conftest.err conftest.$ac_objext \
15528 conftest$ac_exeext conftest.$ac_ext
15529 LIBS=$ac_check_lib_save_LIBS
15531 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15532 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15533 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15535 cat >>confdefs.h <<\_ACEOF
15536 #define HAVE___ASHLDI3 1
15537 _ACEOF
15541 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15542 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15543 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546 ac_check_lib_save_LIBS=$LIBS
15547 LIBS="-lgcc $LIBS"
15548 cat >conftest.$ac_ext <<_ACEOF
15549 /* confdefs.h. */
15550 _ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15555 /* Override any GCC internal prototype to avoid an error.
15556 Use char because int might match the return type of a GCC
15557 builtin and then its argument prototype would still apply. */
15558 #ifdef __cplusplus
15559 extern "C"
15560 #endif
15561 char __ashrdi3 ();
15563 main ()
15565 return __ashrdi3 ();
15567 return 0;
15569 _ACEOF
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (ac_try="$ac_link"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575 esac
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_link") 2>conftest.er1
15578 ac_status=$?
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15585 { (case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_try") 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest$ac_exeext'
15595 { (case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15598 esac
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_try") 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_cv_lib_gcc___ashrdi3=yes
15605 else
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_cv_lib_gcc___ashrdi3=no
15612 rm -f core conftest.err conftest.$ac_objext \
15613 conftest$ac_exeext conftest.$ac_ext
15614 LIBS=$ac_check_lib_save_LIBS
15616 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15617 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15618 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15620 cat >>confdefs.h <<\_ACEOF
15621 #define HAVE___ASHRDI3 1
15622 _ACEOF
15626 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15627 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15628 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631 ac_check_lib_save_LIBS=$LIBS
15632 LIBS="-lgcc $LIBS"
15633 cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h. */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15640 /* Override any GCC internal prototype to avoid an error.
15641 Use char because int might match the return type of a GCC
15642 builtin and then its argument prototype would still apply. */
15643 #ifdef __cplusplus
15644 extern "C"
15645 #endif
15646 char __divdi3 ();
15648 main ()
15650 return __divdi3 ();
15652 return 0;
15654 _ACEOF
15655 rm -f conftest.$ac_objext conftest$ac_exeext
15656 if { (ac_try="$ac_link"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15660 esac
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_link") 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; } &&
15679 { ac_try='test -s conftest$ac_exeext'
15680 { (case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15683 esac
15684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685 (eval "$ac_try") 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; }; then
15689 ac_cv_lib_gcc___divdi3=yes
15690 else
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_cv_lib_gcc___divdi3=no
15697 rm -f core conftest.err conftest.$ac_objext \
15698 conftest$ac_exeext conftest.$ac_ext
15699 LIBS=$ac_check_lib_save_LIBS
15701 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15702 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15703 if test $ac_cv_lib_gcc___divdi3 = yes; then
15705 cat >>confdefs.h <<\_ACEOF
15706 #define HAVE___DIVDI3 1
15707 _ACEOF
15711 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15712 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15713 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 else
15716 ac_check_lib_save_LIBS=$LIBS
15717 LIBS="-lgcc $LIBS"
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h. */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15725 /* Override any GCC internal prototype to avoid an error.
15726 Use char because int might match the return type of a GCC
15727 builtin and then its argument prototype would still apply. */
15728 #ifdef __cplusplus
15729 extern "C"
15730 #endif
15731 char __fixdfdi ();
15733 main ()
15735 return __fixdfdi ();
15737 return 0;
15739 _ACEOF
15740 rm -f conftest.$ac_objext conftest$ac_exeext
15741 if { (ac_try="$ac_link"
15742 case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_link") 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15755 { (case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15758 esac
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_try") 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try='test -s conftest$ac_exeext'
15765 { (case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15768 esac
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_try") 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 ac_cv_lib_gcc___fixdfdi=yes
15775 else
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15779 ac_cv_lib_gcc___fixdfdi=no
15782 rm -f core conftest.err conftest.$ac_objext \
15783 conftest$ac_exeext conftest.$ac_ext
15784 LIBS=$ac_check_lib_save_LIBS
15786 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15787 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15788 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15790 cat >>confdefs.h <<\_ACEOF
15791 #define HAVE___FIXDFDI 1
15792 _ACEOF
15796 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15797 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15798 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 else
15801 ac_check_lib_save_LIBS=$LIBS
15802 LIBS="-lgcc $LIBS"
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h. */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15810 /* Override any GCC internal prototype to avoid an error.
15811 Use char because int might match the return type of a GCC
15812 builtin and then its argument prototype would still apply. */
15813 #ifdef __cplusplus
15814 extern "C"
15815 #endif
15816 char __fixsfdi ();
15818 main ()
15820 return __fixsfdi ();
15822 return 0;
15824 _ACEOF
15825 rm -f conftest.$ac_objext conftest$ac_exeext
15826 if { (ac_try="$ac_link"
15827 case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15830 esac
15831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832 (eval "$ac_link") 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
15839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15840 { (case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843 esac
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_try") 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest$ac_exeext'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15853 esac
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_cv_lib_gcc___fixsfdi=yes
15860 else
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 ac_cv_lib_gcc___fixsfdi=no
15867 rm -f core conftest.err conftest.$ac_objext \
15868 conftest$ac_exeext conftest.$ac_ext
15869 LIBS=$ac_check_lib_save_LIBS
15871 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15872 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15873 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15875 cat >>confdefs.h <<\_ACEOF
15876 #define HAVE___FIXSFDI 1
15877 _ACEOF
15881 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15882 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15883 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886 ac_check_lib_save_LIBS=$LIBS
15887 LIBS="-lgcc $LIBS"
15888 cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h. */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15895 /* Override any GCC internal prototype to avoid an error.
15896 Use char because int might match the return type of a GCC
15897 builtin and then its argument prototype would still apply. */
15898 #ifdef __cplusplus
15899 extern "C"
15900 #endif
15901 char __floatdidf ();
15903 main ()
15905 return __floatdidf ();
15907 return 0;
15909 _ACEOF
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (ac_try="$ac_link"
15912 case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15915 esac
15916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15917 (eval "$ac_link") 2>conftest.er1
15918 ac_status=$?
15919 grep -v '^ *+' conftest.er1 >conftest.err
15920 rm -f conftest.er1
15921 cat conftest.err >&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } &&
15924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15925 { (case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15928 esac
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930 (eval "$ac_try") 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; } &&
15934 { ac_try='test -s conftest$ac_exeext'
15935 { (case "(($ac_try" in
15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15938 esac
15939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940 (eval "$ac_try") 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; }; then
15944 ac_cv_lib_gcc___floatdidf=yes
15945 else
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_cv_lib_gcc___floatdidf=no
15952 rm -f core conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
15954 LIBS=$ac_check_lib_save_LIBS
15956 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
15957 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
15958 if test $ac_cv_lib_gcc___floatdidf = yes; then
15960 cat >>confdefs.h <<\_ACEOF
15961 #define HAVE___FLOATDIDF 1
15962 _ACEOF
15966 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
15967 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
15968 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15970 else
15971 ac_check_lib_save_LIBS=$LIBS
15972 LIBS="-lgcc $LIBS"
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h. */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15980 /* Override any GCC internal prototype to avoid an error.
15981 Use char because int might match the return type of a GCC
15982 builtin and then its argument prototype would still apply. */
15983 #ifdef __cplusplus
15984 extern "C"
15985 #endif
15986 char __lshrdi3 ();
15988 main ()
15990 return __lshrdi3 ();
15992 return 0;
15994 _ACEOF
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (ac_try="$ac_link"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16000 esac
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002 (eval "$ac_link") 2>conftest.er1
16003 ac_status=$?
16004 grep -v '^ *+' conftest.er1 >conftest.err
16005 rm -f conftest.er1
16006 cat conftest.err >&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
16009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16010 { (case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_try") 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; } &&
16019 { ac_try='test -s conftest$ac_exeext'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_cv_lib_gcc___lshrdi3=yes
16030 else
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 ac_cv_lib_gcc___lshrdi3=no
16037 rm -f core conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext
16039 LIBS=$ac_check_lib_save_LIBS
16041 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16042 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16043 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16045 cat >>confdefs.h <<\_ACEOF
16046 #define HAVE___LSHRDI3 1
16047 _ACEOF
16051 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16052 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16053 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 else
16056 ac_check_lib_save_LIBS=$LIBS
16057 LIBS="-lgcc $LIBS"
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h. */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16065 /* Override any GCC internal prototype to avoid an error.
16066 Use char because int might match the return type of a GCC
16067 builtin and then its argument prototype would still apply. */
16068 #ifdef __cplusplus
16069 extern "C"
16070 #endif
16071 char __moddi3 ();
16073 main ()
16075 return __moddi3 ();
16077 return 0;
16079 _ACEOF
16080 rm -f conftest.$ac_objext conftest$ac_exeext
16081 if { (ac_try="$ac_link"
16082 case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_link") 2>conftest.er1
16088 ac_status=$?
16089 grep -v '^ *+' conftest.er1 >conftest.err
16090 rm -f conftest.er1
16091 cat conftest.err >&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } &&
16094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16095 { (case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16098 esac
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_try") 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try='test -s conftest$ac_exeext'
16105 { (case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16108 esac
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_try") 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_cv_lib_gcc___moddi3=yes
16115 else
16116 echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16119 ac_cv_lib_gcc___moddi3=no
16122 rm -f core conftest.err conftest.$ac_objext \
16123 conftest$ac_exeext conftest.$ac_ext
16124 LIBS=$ac_check_lib_save_LIBS
16126 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16127 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16128 if test $ac_cv_lib_gcc___moddi3 = yes; then
16130 cat >>confdefs.h <<\_ACEOF
16131 #define HAVE___MODDI3 1
16132 _ACEOF
16136 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16137 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16138 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141 ac_check_lib_save_LIBS=$LIBS
16142 LIBS="-lgcc $LIBS"
16143 cat >conftest.$ac_ext <<_ACEOF
16144 /* confdefs.h. */
16145 _ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16150 /* Override any GCC internal prototype to avoid an error.
16151 Use char because int might match the return type of a GCC
16152 builtin and then its argument prototype would still apply. */
16153 #ifdef __cplusplus
16154 extern "C"
16155 #endif
16156 char __udivdi3 ();
16158 main ()
16160 return __udivdi3 ();
16162 return 0;
16164 _ACEOF
16165 rm -f conftest.$ac_objext conftest$ac_exeext
16166 if { (ac_try="$ac_link"
16167 case "(($ac_try" in
16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16170 esac
16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172 (eval "$ac_link") 2>conftest.er1
16173 ac_status=$?
16174 grep -v '^ *+' conftest.er1 >conftest.err
16175 rm -f conftest.er1
16176 cat conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16180 { (case "(($ac_try" in
16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182 *) ac_try_echo=$ac_try;;
16183 esac
16184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185 (eval "$ac_try") 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } &&
16189 { ac_try='test -s conftest$ac_exeext'
16190 { (case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193 esac
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_try") 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_lib_gcc___udivdi3=yes
16200 else
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 ac_cv_lib_gcc___udivdi3=no
16207 rm -f core conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
16209 LIBS=$ac_check_lib_save_LIBS
16211 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16212 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16213 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16215 cat >>confdefs.h <<\_ACEOF
16216 #define HAVE___UDIVDI3 1
16217 _ACEOF
16221 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16222 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16223 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226 ac_check_lib_save_LIBS=$LIBS
16227 LIBS="-lgcc $LIBS"
16228 cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h. */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16235 /* Override any GCC internal prototype to avoid an error.
16236 Use char because int might match the return type of a GCC
16237 builtin and then its argument prototype would still apply. */
16238 #ifdef __cplusplus
16239 extern "C"
16240 #endif
16241 char __umoddi3 ();
16243 main ()
16245 return __umoddi3 ();
16247 return 0;
16249 _ACEOF
16250 rm -f conftest.$ac_objext conftest$ac_exeext
16251 if { (ac_try="$ac_link"
16252 case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16255 esac
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_link") 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16265 { (case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16268 esac
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270 (eval "$ac_try") 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; } &&
16274 { ac_try='test -s conftest$ac_exeext'
16275 { (case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16278 esac
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_try") 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 ac_cv_lib_gcc___umoddi3=yes
16285 else
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 ac_cv_lib_gcc___umoddi3=no
16292 rm -f core conftest.err conftest.$ac_objext \
16293 conftest$ac_exeext conftest.$ac_ext
16294 LIBS=$ac_check_lib_save_LIBS
16296 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16297 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16298 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16300 cat >>confdefs.h <<\_ACEOF
16301 #define HAVE___UMODDI3 1
16302 _ACEOF
16307 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16308 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16309 if test "${ac_cv_lib_gcc___main+set}" = set; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312 ac_check_lib_save_LIBS=$LIBS
16313 LIBS="-lgcc $LIBS"
16314 cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h. */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16321 /* Override any GCC internal prototype to avoid an error.
16322 Use char because int might match the return type of a GCC
16323 builtin and then its argument prototype would still apply. */
16324 #ifdef __cplusplus
16325 extern "C"
16326 #endif
16327 char __main ();
16329 main ()
16331 return __main ();
16333 return 0;
16335 _ACEOF
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (ac_try="$ac_link"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_link") 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16351 { (case "(($ac_try" in
16352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353 *) ac_try_echo=$ac_try;;
16354 esac
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356 (eval "$ac_try") 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest$ac_exeext'
16361 { (case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364 esac
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_try") 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
16370 ac_cv_lib_gcc___main=yes
16371 else
16372 echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16375 ac_cv_lib_gcc___main=no
16378 rm -f core conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16380 LIBS=$ac_check_lib_save_LIBS
16382 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16383 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16384 if test $ac_cv_lib_gcc___main = yes; then
16386 cat >>confdefs.h <<\_ACEOF
16387 #define HAVE___MAIN 1
16388 _ACEOF
16392 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16393 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16394 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 else
16397 ac_check_lib_save_LIBS=$LIBS
16398 LIBS="-lgcc $LIBS"
16399 cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h. */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h. */
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16409 #ifdef __cplusplus
16410 extern "C"
16411 #endif
16412 char __cmpdi2 ();
16414 main ()
16416 return __cmpdi2 ();
16418 return 0;
16420 _ACEOF
16421 rm -f conftest.$ac_objext conftest$ac_exeext
16422 if { (ac_try="$ac_link"
16423 case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_link") 2>conftest.er1
16429 ac_status=$?
16430 grep -v '^ *+' conftest.er1 >conftest.err
16431 rm -f conftest.er1
16432 cat conftest.err >&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
16435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16436 { (case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16439 esac
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_try") 2>&5
16442 ac_status=$?
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; } &&
16445 { ac_try='test -s conftest$ac_exeext'
16446 { (case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_try") 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
16455 ac_cv_lib_gcc___cmpdi2=yes
16456 else
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 ac_cv_lib_gcc___cmpdi2=no
16463 rm -f core conftest.err conftest.$ac_objext \
16464 conftest$ac_exeext conftest.$ac_ext
16465 LIBS=$ac_check_lib_save_LIBS
16467 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16468 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16469 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16471 cat >>confdefs.h <<\_ACEOF
16472 #define HAVE___CMPDI2 1
16473 _ACEOF
16479 if test "$llvm_cv_os_type" = "MingW" ; then
16480 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16481 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16482 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h. */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16490 #include <windows.h>
16491 #include <imagehlp.h>
16492 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16493 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16496 _ACEOF
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_compile") 2>conftest.er1
16505 ac_status=$?
16506 grep -v '^ *+' conftest.er1 >conftest.err
16507 rm -f conftest.er1
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } &&
16511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16512 { (case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16515 esac
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_try") 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; } &&
16521 { ac_try='test -s conftest.$ac_objext'
16522 { (case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_try") 2>&5
16528 ac_status=$?
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16532 { echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6; }
16534 llvm_cv_win32_elmcb_pcstr="PCSTR"
16536 else
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16541 { echo "$as_me:$LINENO: result: no" >&5
16542 echo "${ECHO_T}no" >&6; }
16543 llvm_cv_win32_elmcb_pcstr="PSTR"
16547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16549 cat >>confdefs.h <<_ACEOF
16550 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16551 _ACEOF
16555 if test "$llvm_cv_platform_type" = "Unix" ; then
16558 for ac_header in stdlib.h unistd.h
16560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_res=`eval echo '${'$as_ac_Header'}'`
16568 { echo "$as_me:$LINENO: result: $ac_res" >&5
16569 echo "${ECHO_T}$ac_res" >&6; }
16570 else
16571 # Is the header compilable?
16572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16574 cat >conftest.$ac_ext <<_ACEOF
16575 /* confdefs.h. */
16576 _ACEOF
16577 cat confdefs.h >>conftest.$ac_ext
16578 cat >>conftest.$ac_ext <<_ACEOF
16579 /* end confdefs.h. */
16580 $ac_includes_default
16581 #include <$ac_header>
16582 _ACEOF
16583 rm -f conftest.$ac_objext
16584 if { (ac_try="$ac_compile"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_header_compiler=yes
16618 else
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 ac_header_compiler=no
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16627 echo "${ECHO_T}$ac_header_compiler" >&6; }
16629 # Is the header present?
16630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16632 cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h. */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 #include <$ac_header>
16639 _ACEOF
16640 if { (ac_try="$ac_cpp conftest.$ac_ext"
16641 case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644 esac
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } >/dev/null; then
16653 if test -s conftest.err; then
16654 ac_cpp_err=$ac_c_preproc_warn_flag
16655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16656 else
16657 ac_cpp_err=
16659 else
16660 ac_cpp_err=yes
16662 if test -z "$ac_cpp_err"; then
16663 ac_header_preproc=yes
16664 else
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ac_header_preproc=no
16671 rm -f conftest.err conftest.$ac_ext
16672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16673 echo "${ECHO_T}$ac_header_preproc" >&6; }
16675 # So? What about this header?
16676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16677 yes:no: )
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16682 ac_header_preproc=yes
16684 no:yes:* )
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16697 ( cat <<\_ASBOX
16698 ## ------------------------------------ ##
16699 ## Report this to http://llvm.org/bugs/ ##
16700 ## ------------------------------------ ##
16701 _ASBOX
16702 ) | sed "s/^/$as_me: WARNING: /" >&2
16704 esac
16705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710 eval "$as_ac_Header=\$ac_header_preproc"
16712 ac_res=`eval echo '${'$as_ac_Header'}'`
16713 { echo "$as_me:$LINENO: result: $ac_res" >&5
16714 echo "${ECHO_T}$ac_res" >&6; }
16717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16718 cat >>confdefs.h <<_ACEOF
16719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16720 _ACEOF
16724 done
16727 for ac_func in getpagesize
16729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735 cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h. */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16743 #define $ac_func innocuous_$ac_func
16745 /* System header to define __stub macros and hopefully few prototypes,
16746 which can conflict with char $ac_func (); below.
16747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16748 <limits.h> exists even on freestanding compilers. */
16750 #ifdef __STDC__
16751 # include <limits.h>
16752 #else
16753 # include <assert.h>
16754 #endif
16756 #undef $ac_func
16758 /* Override any GCC internal prototype to avoid an error.
16759 Use char because int might match the return type of a GCC
16760 builtin and then its argument prototype would still apply. */
16761 #ifdef __cplusplus
16762 extern "C"
16763 #endif
16764 char $ac_func ();
16765 /* The GNU C library defines this for functions which it implements
16766 to always fail with ENOSYS. Some functions are actually named
16767 something starting with __ and the normal name is an alias. */
16768 #if defined __stub_$ac_func || defined __stub___$ac_func
16769 choke me
16770 #endif
16773 main ()
16775 return $ac_func ();
16777 return 0;
16779 _ACEOF
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785 esac
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_link") 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16798 esac
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest$ac_exeext'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 eval "$as_ac_var=yes"
16815 else
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 eval "$as_ac_var=no"
16822 rm -f core conftest.err conftest.$ac_objext \
16823 conftest$ac_exeext conftest.$ac_ext
16825 ac_res=`eval echo '${'$as_ac_var'}'`
16826 { echo "$as_me:$LINENO: result: $ac_res" >&5
16827 echo "${ECHO_T}$ac_res" >&6; }
16828 if test `eval echo '${'$as_ac_var'}'` = yes; then
16829 cat >>confdefs.h <<_ACEOF
16830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16831 _ACEOF
16834 done
16836 { echo "$as_me:$LINENO: checking for working mmap" >&5
16837 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
16838 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841 if test "$cross_compiling" = yes; then
16842 ac_cv_func_mmap_fixed_mapped=no
16843 else
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h. */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 $ac_includes_default
16851 /* malloc might have been renamed as rpl_malloc. */
16852 #undef malloc
16854 /* Thanks to Mike Haertel and Jim Avera for this test.
16855 Here is a matrix of mmap possibilities:
16856 mmap private not fixed
16857 mmap private fixed at somewhere currently unmapped
16858 mmap private fixed at somewhere already mapped
16859 mmap shared not fixed
16860 mmap shared fixed at somewhere currently unmapped
16861 mmap shared fixed at somewhere already mapped
16862 For private mappings, we should verify that changes cannot be read()
16863 back from the file, nor mmap's back from the file at a different
16864 address. (There have been systems where private was not correctly
16865 implemented like the infamous i386 svr4.0, and systems where the
16866 VM page cache was not coherent with the file system buffer cache
16867 like early versions of FreeBSD and possibly contemporary NetBSD.)
16868 For shared mappings, we should conversely verify that changes get
16869 propagated back to all the places they're supposed to be.
16871 Grep wants private fixed already mapped.
16872 The main things grep needs to know about mmap are:
16873 * does it exist and is it safe to write into the mmap'd area
16874 * how to use it (BSD variants) */
16876 #include <fcntl.h>
16877 #include <sys/mman.h>
16879 #if !STDC_HEADERS && !HAVE_STDLIB_H
16880 char *malloc ();
16881 #endif
16883 /* This mess was copied from the GNU getpagesize.h. */
16884 #if !HAVE_GETPAGESIZE
16885 /* Assume that all systems that can run configure have sys/param.h. */
16886 # if !HAVE_SYS_PARAM_H
16887 # define HAVE_SYS_PARAM_H 1
16888 # endif
16890 # ifdef _SC_PAGESIZE
16891 # define getpagesize() sysconf(_SC_PAGESIZE)
16892 # else /* no _SC_PAGESIZE */
16893 # if HAVE_SYS_PARAM_H
16894 # include <sys/param.h>
16895 # ifdef EXEC_PAGESIZE
16896 # define getpagesize() EXEC_PAGESIZE
16897 # else /* no EXEC_PAGESIZE */
16898 # ifdef NBPG
16899 # define getpagesize() NBPG * CLSIZE
16900 # ifndef CLSIZE
16901 # define CLSIZE 1
16902 # endif /* no CLSIZE */
16903 # else /* no NBPG */
16904 # ifdef NBPC
16905 # define getpagesize() NBPC
16906 # else /* no NBPC */
16907 # ifdef PAGESIZE
16908 # define getpagesize() PAGESIZE
16909 # endif /* PAGESIZE */
16910 # endif /* no NBPC */
16911 # endif /* no NBPG */
16912 # endif /* no EXEC_PAGESIZE */
16913 # else /* no HAVE_SYS_PARAM_H */
16914 # define getpagesize() 8192 /* punt totally */
16915 # endif /* no HAVE_SYS_PARAM_H */
16916 # endif /* no _SC_PAGESIZE */
16918 #endif /* no HAVE_GETPAGESIZE */
16921 main ()
16923 char *data, *data2, *data3;
16924 int i, pagesize;
16925 int fd;
16927 pagesize = getpagesize ();
16929 /* First, make a file with some known garbage in it. */
16930 data = (char *) malloc (pagesize);
16931 if (!data)
16932 return 1;
16933 for (i = 0; i < pagesize; ++i)
16934 *(data + i) = rand ();
16935 umask (0);
16936 fd = creat ("conftest.mmap", 0600);
16937 if (fd < 0)
16938 return 1;
16939 if (write (fd, data, pagesize) != pagesize)
16940 return 1;
16941 close (fd);
16943 /* Next, try to mmap the file at a fixed address which already has
16944 something else allocated at it. If we can, also make sure that
16945 we see the same garbage. */
16946 fd = open ("conftest.mmap", O_RDWR);
16947 if (fd < 0)
16948 return 1;
16949 data2 = (char *) malloc (2 * pagesize);
16950 if (!data2)
16951 return 1;
16952 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16953 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16954 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16955 return 1;
16956 for (i = 0; i < pagesize; ++i)
16957 if (*(data + i) != *(data2 + i))
16958 return 1;
16960 /* Finally, make sure that changes to the mapped area do not
16961 percolate back to the file as seen by read(). (This is a bug on
16962 some variants of i386 svr4.0.) */
16963 for (i = 0; i < pagesize; ++i)
16964 *(data2 + i) = *(data2 + i) + 1;
16965 data3 = (char *) malloc (pagesize);
16966 if (!data3)
16967 return 1;
16968 if (read (fd, data3, pagesize) != pagesize)
16969 return 1;
16970 for (i = 0; i < pagesize; ++i)
16971 if (*(data + i) != *(data3 + i))
16972 return 1;
16973 close (fd);
16974 return 0;
16976 _ACEOF
16977 rm -f conftest$ac_exeext
16978 if { (ac_try="$ac_link"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982 esac
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_link") 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16988 { (case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_try") 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 ac_cv_func_mmap_fixed_mapped=yes
16998 else
16999 echo "$as_me: program exited with status $ac_status" >&5
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17003 ( exit $ac_status )
17004 ac_cv_func_mmap_fixed_mapped=no
17006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17011 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17012 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17013 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17015 cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_MMAP 1
17017 _ACEOF
17020 rm -f conftest.mmap
17022 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17023 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17024 if test "${ac_cv_func_mmap_file+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 else
17027 ac_ext=c
17028 ac_cpp='$CPP $CPPFLAGS'
17029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17033 if test "$cross_compiling" = yes; then
17034 ac_cv_func_mmap_file=no
17035 else
17036 cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h. */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17044 #include <sys/types.h>
17045 #include <sys/mman.h>
17046 #include <fcntl.h>
17049 main ()
17052 int fd;
17053 fd = creat ("foo",0777);
17054 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17055 unlink ("foo");
17056 return (fd != (int) MAP_FAILED);
17058 return 0;
17060 _ACEOF
17061 rm -f conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>&5
17069 ac_status=$?
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17072 { (case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_try") 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_func_mmap_file=yes
17082 else
17083 echo "$as_me: program exited with status $ac_status" >&5
17084 echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.$ac_ext >&5
17087 ( exit $ac_status )
17088 ac_cv_func_mmap_file=no
17090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17094 ac_ext=c
17095 ac_cpp='$CPP $CPPFLAGS'
17096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17102 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17103 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17104 if test "$ac_cv_func_mmap_file" = yes; then
17106 cat >>confdefs.h <<\_ACEOF
17107 #define HAVE_MMAP_FILE
17108 _ACEOF
17110 MMAP_FILE=yes
17114 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17115 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17116 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17117 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 else
17119 if test "$llvm_cv_os_type" = "Interix" ; then
17120 ac_cv_need_dev_zero_for_mmap=yes
17121 else
17122 ac_cv_need_dev_zero_for_mmap=no
17126 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17127 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17128 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17130 cat >>confdefs.h <<\_ACEOF
17131 #define NEED_DEV_ZERO_FOR_MMAP 1
17132 _ACEOF
17136 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17137 then
17138 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17139 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17141 if test "$ac_cv_func_mmap_file" = "no"
17142 then
17143 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17144 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17148 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17149 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17150 ac_ext=cpp
17151 ac_cpp='$CXXCPP $CPPFLAGS'
17152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17156 cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h. */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17164 int main() {
17165 volatile unsigned long val = 1;
17166 __sync_synchronize();
17167 __sync_val_compare_and_swap(&val, 1, 0);
17168 __sync_add_and_fetch(&val, 1);
17169 __sync_sub_and_fetch(&val, 1);
17170 return 0;
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17210 { echo "$as_me:$LINENO: result: yes" >&5
17211 echo "${ECHO_T}yes" >&6; }
17213 cat >>confdefs.h <<\_ACEOF
17214 #define LLVM_HAS_ATOMICS 1
17215 _ACEOF
17218 else
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17223 { echo "$as_me:$LINENO: result: no" >&5
17224 echo "${ECHO_T}no" >&6; }
17226 cat >>confdefs.h <<\_ACEOF
17227 #define LLVM_HAS_ATOMICS 0
17228 _ACEOF
17230 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17231 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17235 rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17237 ac_ext=c
17238 ac_cpp='$CPP $CPPFLAGS'
17239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17245 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17246 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17247 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17248 if test "${llvm_cv_linux_mixed+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17250 else
17251 ac_ext=c
17252 ac_cpp='$CPP $CPPFLAGS'
17253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17257 cat >conftest.$ac_ext <<_ACEOF
17258 /* confdefs.h. */
17259 _ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17263 #ifndef __x86_64__
17264 error: Not x86-64 even if uname says so!
17265 #endif
17268 main ()
17272 return 0;
17274 _ACEOF
17275 rm -f conftest.$ac_objext
17276 if { (ac_try="$ac_compile"
17277 case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17280 esac
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_compile") 2>conftest.er1
17283 ac_status=$?
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17290 { (case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_try") 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
17300 { (case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_try") 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 llvm_cv_linux_mixed=no
17310 else
17311 echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17314 llvm_cv_linux_mixed=yes
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318 ac_ext=c
17319 ac_cpp='$CPP $CPPFLAGS'
17320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17326 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17327 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17329 if test "$llvm_cv_linux_mixed" = "yes"; then
17330 llvm_cv_target_arch="x86"
17331 ARCH="x86"
17336 for ac_func in __dso_handle
17338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h. */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17352 #define $ac_func innocuous_$ac_func
17354 /* System header to define __stub macros and hopefully few prototypes,
17355 which can conflict with char $ac_func (); below.
17356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17357 <limits.h> exists even on freestanding compilers. */
17359 #ifdef __STDC__
17360 # include <limits.h>
17361 #else
17362 # include <assert.h>
17363 #endif
17365 #undef $ac_func
17367 /* Override any GCC internal prototype to avoid an error.
17368 Use char because int might match the return type of a GCC
17369 builtin and then its argument prototype would still apply. */
17370 #ifdef __cplusplus
17371 extern "C"
17372 #endif
17373 char $ac_func ();
17374 /* The GNU C library defines this for functions which it implements
17375 to always fail with ENOSYS. Some functions are actually named
17376 something starting with __ and the normal name is an alias. */
17377 #if defined __stub_$ac_func || defined __stub___$ac_func
17378 choke me
17379 #endif
17382 main ()
17384 return $ac_func ();
17386 return 0;
17388 _ACEOF
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (ac_try="$ac_link"
17391 case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_link") 2>conftest.er1
17397 ac_status=$?
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
17403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17404 { (case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_try") 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; } &&
17413 { ac_try='test -s conftest$ac_exeext'
17414 { (case "(($ac_try" in
17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416 *) ac_try_echo=$ac_try;;
17417 esac
17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419 (eval "$ac_try") 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 eval "$as_ac_var=yes"
17424 else
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 eval "$as_ac_var=no"
17431 rm -f core conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17434 ac_res=`eval echo '${'$as_ac_var'}'`
17435 { echo "$as_me:$LINENO: result: $ac_res" >&5
17436 echo "${ECHO_T}$ac_res" >&6; }
17437 if test `eval echo '${'$as_ac_var'}'` = yes; then
17438 cat >>confdefs.h <<_ACEOF
17439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17440 _ACEOF
17443 done
17446 SHLIBEXT=$llvm_shlib_ext
17449 if test "${prefix}" = "NONE" ; then
17450 prefix="/usr/local"
17452 eval LLVM_PREFIX="${prefix}";
17453 eval LLVM_BINDIR="${prefix}/bin";
17454 eval LLVM_DATADIR="${prefix}/share/llvm";
17455 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17456 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17457 eval LLVM_INCLUDEDIR="${prefix}/include";
17458 eval LLVM_INFODIR="${prefix}/info";
17459 eval LLVM_MANDIR="${prefix}/man";
17460 LLVM_CONFIGTIME=`date`
17471 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17472 LLVM_CONFIGTIME="(timestamp not enabled)"
17476 cat >>confdefs.h <<_ACEOF
17477 #define LLVM_PREFIX "$LLVM_PREFIX"
17478 _ACEOF
17481 cat >>confdefs.h <<_ACEOF
17482 #define LLVM_BINDIR "$LLVM_BINDIR"
17483 _ACEOF
17486 cat >>confdefs.h <<_ACEOF
17487 #define LLVM_DATADIR "$LLVM_DATADIR"
17488 _ACEOF
17491 cat >>confdefs.h <<_ACEOF
17492 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17493 _ACEOF
17496 cat >>confdefs.h <<_ACEOF
17497 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17498 _ACEOF
17501 cat >>confdefs.h <<_ACEOF
17502 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17503 _ACEOF
17506 cat >>confdefs.h <<_ACEOF
17507 #define LLVM_INFODIR "$LLVM_INFODIR"
17508 _ACEOF
17511 cat >>confdefs.h <<_ACEOF
17512 #define LLVM_MANDIR "$LLVM_MANDIR"
17513 _ACEOF
17516 cat >>confdefs.h <<_ACEOF
17517 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17518 _ACEOF
17521 cat >>confdefs.h <<_ACEOF
17522 #define LLVM_HOST_TRIPLE "$host"
17523 _ACEOF
17526 cat >>confdefs.h <<_ACEOF
17527 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17528 _ACEOF
17531 if test "$BINDINGS_TO_BUILD" = auto ; then
17532 BINDINGS_TO_BUILD=""
17533 if test "x$OCAMLFIND" != x ; then
17534 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17536 if test "x$GO" != x ; then
17537 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17538 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17542 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17545 binding_prereqs_failed=0
17546 for a_binding in $BINDINGS_TO_BUILD ; do
17547 case "$a_binding" in
17548 ocaml)
17549 if test "x$OCAMLFIND" = x ; then
17550 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17551 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17552 binding_prereqs_failed=1
17555 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17556 HAVE_OCAMLOPT=1
17557 else
17558 HAVE_OCAMLOPT=0
17562 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17563 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17564 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17565 binding_prereqs_failed=1
17568 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17569 HAVE_OCAML_OUNIT=1
17570 else
17571 HAVE_OCAML_OUNIT=0
17572 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17573 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17577 if test "x$with_ocaml_libdir" != xauto ; then
17578 OCAML_LIBDIR=$with_ocaml_libdir
17580 else
17581 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17582 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17583 then
17584 # ocaml stdlib is beneath our prefix; use stdlib
17585 OCAML_LIBDIR=$ocaml_stdlib
17587 else
17588 # ocaml stdlib is outside our prefix; use libdir/ocaml
17589 OCAML_LIBDIR=${prefix}/lib/ocaml
17595 if test "x$GO" = x ; then
17596 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17597 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17598 binding_prereqs_failed=1
17599 else
17600 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17602 else
17603 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17604 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17605 binding_prereqs_failed=1
17609 esac
17610 done
17611 if test "$binding_prereqs_failed" = 1 ; then
17612 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17613 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17614 { (exit 1); exit 1; }; }
17617 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17618 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17619 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 else
17622 ac_ext=cpp
17623 ac_cpp='$CXXCPP $CPPFLAGS'
17624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17628 oldcxxflags="$CXXFLAGS"
17629 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17630 cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h. */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17636 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17638 main ()
17640 X<int>().f();
17642 return 0;
17644 _ACEOF
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650 esac
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_try") 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 llvm_cv_cxx_visibility_inlines_hidden=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17684 llvm_cv_cxx_visibility_inlines_hidden=no
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688 CXXFLAGS="$oldcxxflags"
17689 ac_ext=c
17690 ac_cpp='$CPP $CPPFLAGS'
17691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17697 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17698 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17699 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17700 ENABLE_VISIBILITY_INLINES_HIDDEN=1
17702 else
17703 ENABLE_VISIBILITY_INLINES_HIDDEN=0
17708 if test "$llvm_cv_link_use_r" = "yes" ; then
17709 RPATH="-Wl,-R"
17710 else
17711 RPATH="-Wl,-rpath"
17715 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
17716 RDYNAMIC="-rdynamic"
17717 else
17718 RDYNAMIC=""
17723 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
17730 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
17732 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
17734 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
17736 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
17738 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
17741 ac_config_files="$ac_config_files Makefile.config"
17744 ac_config_files="$ac_config_files llvm.spec"
17747 ac_config_files="$ac_config_files docs/doxygen.cfg"
17750 if test "${clang_src_root}" = ""; then
17751 clang_src_root="$srcdir/tools/clang"
17753 if test -f ${clang_src_root}/README.txt; then
17755 cat >>confdefs.h <<_ACEOF
17756 #define CLANG_LIBDIR_SUFFIX ""
17757 _ACEOF
17760 configh="include/clang/Config/config.h"
17761 doxy="docs/doxygen.cfg"
17762 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
17764 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
17768 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
17771 test "x$program_prefix" = "xNONE" && program_prefix=""
17775 ac_config_commands="$ac_config_commands setup"
17777 ac_config_commands="$ac_config_commands Makefile"
17780 ac_config_commands="$ac_config_commands Makefile.common"
17783 ac_config_commands="$ac_config_commands examples/Makefile"
17786 ac_config_commands="$ac_config_commands lib/Makefile"
17789 ac_config_commands="$ac_config_commands test/Makefile"
17792 ac_config_commands="$ac_config_commands test/Makefile.tests"
17795 ac_config_commands="$ac_config_commands unittests/Makefile"
17798 ac_config_commands="$ac_config_commands tools/Makefile"
17801 ac_config_commands="$ac_config_commands utils/Makefile"
17804 ac_config_commands="$ac_config_commands projects/Makefile"
17807 ac_config_commands="$ac_config_commands bindings/Makefile"
17810 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
17814 cat >confcache <<\_ACEOF
17815 # This file is a shell script that caches the results of configure
17816 # tests run on this system so they can be shared between configure
17817 # scripts and configure runs, see configure's option --config-cache.
17818 # It is not useful on other systems. If it contains results you don't
17819 # want to keep, you may remove or edit it.
17821 # config.status only pays attention to the cache file if you give it
17822 # the --recheck option to rerun configure.
17824 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17825 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17826 # following values.
17828 _ACEOF
17830 # The following way of writing the cache mishandles newlines in values,
17831 # but we know of no workaround that is simple, portable, and efficient.
17832 # So, we kill variables containing newlines.
17833 # Ultrix sh set writes to stderr and can't be redirected directly,
17834 # and sets the high bit in the cache file unless we assign to the vars.
17836 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17837 eval ac_val=\$$ac_var
17838 case $ac_val in #(
17839 *${as_nl}*)
17840 case $ac_var in #(
17841 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17842 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17843 esac
17844 case $ac_var in #(
17845 _ | IFS | as_nl) ;; #(
17846 *) $as_unset $ac_var ;;
17847 esac ;;
17848 esac
17849 done
17851 (set) 2>&1 |
17852 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17853 *${as_nl}ac_space=\ *)
17854 # `set' does not quote correctly, so add quotes (double-quote
17855 # substitution turns \\\\ into \\, and sed turns \\ into \).
17856 sed -n \
17857 "s/'/'\\\\''/g;
17858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17859 ;; #(
17861 # `set' quotes correctly as required by POSIX, so do not add quotes.
17862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17864 esac |
17865 sort
17867 sed '
17868 /^ac_cv_env_/b end
17869 t clear
17870 :clear
17871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17872 t end
17873 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17874 :end' >>confcache
17875 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17876 if test -w "$cache_file"; then
17877 test "x$cache_file" != "x/dev/null" &&
17878 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17879 echo "$as_me: updating cache $cache_file" >&6;}
17880 cat confcache >$cache_file
17881 else
17882 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17883 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17886 rm -f confcache
17888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17889 # Let make expand exec_prefix.
17890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17892 DEFS=-DHAVE_CONFIG_H
17894 ac_libobjs=
17895 ac_ltlibobjs=
17896 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17897 # 1. Remove the extension, and $U if already installed.
17898 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17899 ac_i=`echo "$ac_i" | sed "$ac_script"`
17900 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17901 # will be set to the directory where LIBOBJS objects are built.
17902 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17903 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17904 done
17905 LIBOBJS=$ac_libobjs
17907 LTLIBOBJS=$ac_ltlibobjs
17911 : ${CONFIG_STATUS=./config.status}
17912 ac_clean_files_save=$ac_clean_files
17913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17914 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17915 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17916 cat >$CONFIG_STATUS <<_ACEOF
17917 #! $SHELL
17918 # Generated by $as_me.
17919 # Run this file to recreate the current configuration.
17920 # Compiler output produced by configure, useful for debugging
17921 # configure, is in config.log if it exists.
17923 debug=false
17924 ac_cs_recheck=false
17925 ac_cs_silent=false
17926 SHELL=\${CONFIG_SHELL-$SHELL}
17927 _ACEOF
17929 cat >>$CONFIG_STATUS <<\_ACEOF
17930 ## --------------------- ##
17931 ## M4sh Initialization. ##
17932 ## --------------------- ##
17934 # Be Bourne compatible
17935 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17936 emulate sh
17937 NULLCMD=:
17938 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17939 # is contrary to our usage. Disable this feature.
17940 alias -g '${1+"$@"}'='"$@"'
17941 setopt NO_GLOB_SUBST
17942 else
17943 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
17945 BIN_SH=xpg4; export BIN_SH # for Tru64
17946 DUALCASE=1; export DUALCASE # for MKS sh
17949 # PATH needs CR
17950 # Avoid depending upon Character Ranges.
17951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17954 as_cr_digits='0123456789'
17955 as_cr_alnum=$as_cr_Letters$as_cr_digits
17957 # The user is always right.
17958 if test "${PATH_SEPARATOR+set}" != set; then
17959 echo "#! /bin/sh" >conf$$.sh
17960 echo "exit 0" >>conf$$.sh
17961 chmod +x conf$$.sh
17962 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17963 PATH_SEPARATOR=';'
17964 else
17965 PATH_SEPARATOR=:
17967 rm -f conf$$.sh
17970 # Support unset when possible.
17971 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17972 as_unset=unset
17973 else
17974 as_unset=false
17978 # IFS
17979 # We need space, tab and new line, in precisely that order. Quoting is
17980 # there to prevent editors from complaining about space-tab.
17981 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17982 # splitting by setting IFS to empty value.)
17983 as_nl='
17985 IFS=" "" $as_nl"
17987 # Find who we are. Look in the path if we contain no directory separator.
17988 case $0 in
17989 *[\\/]* ) as_myself=$0 ;;
17990 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17991 for as_dir in $PATH
17993 IFS=$as_save_IFS
17994 test -z "$as_dir" && as_dir=.
17995 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17996 done
17997 IFS=$as_save_IFS
18000 esac
18001 # We did not find ourselves, most probably we were run as `sh COMMAND'
18002 # in which case we are not to be found in the path.
18003 if test "x$as_myself" = x; then
18004 as_myself=$0
18006 if test ! -f "$as_myself"; then
18007 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18008 { (exit 1); exit 1; }
18011 # Work around bugs in pre-3.0 UWIN ksh.
18012 for as_var in ENV MAIL MAILPATH
18013 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18014 done
18015 PS1='$ '
18016 PS2='> '
18017 PS4='+ '
18019 # NLS nuisances.
18020 for as_var in \
18021 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18022 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18023 LC_TELEPHONE LC_TIME
18025 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18026 eval $as_var=C; export $as_var
18027 else
18028 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18030 done
18032 # Required to use basename.
18033 if expr a : '\(a\)' >/dev/null 2>&1 &&
18034 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18035 as_expr=expr
18036 else
18037 as_expr=false
18040 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18041 as_basename=basename
18042 else
18043 as_basename=false
18047 # Name of the executable.
18048 as_me=`$as_basename -- "$0" ||
18049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18050 X"$0" : 'X\(//\)$' \| \
18051 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18052 echo X/"$0" |
18053 sed '/^.*\/\([^/][^/]*\)\/*$/{
18054 s//\1/
18057 /^X\/\(\/\/\)$/{
18058 s//\1/
18061 /^X\/\(\/\).*/{
18062 s//\1/
18065 s/.*/./; q'`
18067 # CDPATH.
18068 $as_unset CDPATH
18072 as_lineno_1=$LINENO
18073 as_lineno_2=$LINENO
18074 test "x$as_lineno_1" != "x$as_lineno_2" &&
18075 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18077 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18078 # uniformly replaced by the line number. The first 'sed' inserts a
18079 # line-number line after each line using $LINENO; the second 'sed'
18080 # does the real work. The second script uses 'N' to pair each
18081 # line-number line with the line containing $LINENO, and appends
18082 # trailing '-' during substitution so that $LINENO is not a special
18083 # case at line end.
18084 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18085 # scripts with optimization help from Paolo Bonzini. Blame Lee
18086 # E. McMahon (1931-1989) for sed's syntax. :-)
18087 sed -n '
18089 /[$]LINENO/=
18090 ' <$as_myself |
18091 sed '
18092 s/[$]LINENO.*/&-/
18093 t lineno
18095 :lineno
18097 :loop
18098 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18099 t loop
18100 s/-\n.*//
18101 ' >$as_me.lineno &&
18102 chmod +x "$as_me.lineno" ||
18103 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18104 { (exit 1); exit 1; }; }
18106 # Don't try to exec as it changes $[0], causing all sort of problems
18107 # (the dirname of $[0] is not the place where we might find the
18108 # original and so on. Autoconf is especially sensitive to this).
18109 . "./$as_me.lineno"
18110 # Exit status is that of the last command.
18111 exit
18115 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18116 as_dirname=dirname
18117 else
18118 as_dirname=false
18121 ECHO_C= ECHO_N= ECHO_T=
18122 case `echo -n x` in
18123 -n*)
18124 case `echo 'x\c'` in
18125 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18126 *) ECHO_C='\c';;
18127 esac;;
18129 ECHO_N='-n';;
18130 esac
18132 if expr a : '\(a\)' >/dev/null 2>&1 &&
18133 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18134 as_expr=expr
18135 else
18136 as_expr=false
18139 rm -f conf$$ conf$$.exe conf$$.file
18140 if test -d conf$$.dir; then
18141 rm -f conf$$.dir/conf$$.file
18142 else
18143 rm -f conf$$.dir
18144 mkdir conf$$.dir
18146 echo >conf$$.file
18147 if ln -s conf$$.file conf$$ 2>/dev/null; then
18148 as_ln_s='ln -s'
18149 # ... but there are two gotchas:
18150 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18151 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18152 # In both cases, we have to default to `cp -p'.
18153 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18154 as_ln_s='cp -p'
18155 elif ln conf$$.file conf$$ 2>/dev/null; then
18156 as_ln_s=ln
18157 else
18158 as_ln_s='cp -p'
18160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18161 rmdir conf$$.dir 2>/dev/null
18163 if mkdir -p . 2>/dev/null; then
18164 as_mkdir_p=:
18165 else
18166 test -d ./-p && rmdir ./-p
18167 as_mkdir_p=false
18170 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18171 # systems may use methods other than mode bits to determine executability.
18172 cat >conf$$.file <<_ASEOF
18173 #! /bin/sh
18174 exit 0
18175 _ASEOF
18176 chmod +x conf$$.file
18177 if test -x conf$$.file >/dev/null 2>&1; then
18178 as_executable_p="test -x"
18179 else
18180 as_executable_p=:
18182 rm -f conf$$.file
18184 # Sed expression to map a string onto a valid CPP name.
18185 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18187 # Sed expression to map a string onto a valid variable name.
18188 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18191 exec 6>&1
18193 # Save the log message, to keep $[0] and so on meaningful, and to
18194 # report actual input values of CONFIG_FILES etc. instead of their
18195 # values after options handling.
18196 ac_log="
18197 This file was extended by LLVM $as_me 3.8.0svn, which was
18198 generated by GNU Autoconf 2.60. Invocation command line was
18200 CONFIG_FILES = $CONFIG_FILES
18201 CONFIG_HEADERS = $CONFIG_HEADERS
18202 CONFIG_LINKS = $CONFIG_LINKS
18203 CONFIG_COMMANDS = $CONFIG_COMMANDS
18204 $ $0 $@
18206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18209 _ACEOF
18211 cat >>$CONFIG_STATUS <<_ACEOF
18212 # Files that config.status was made for.
18213 config_files="$ac_config_files"
18214 config_headers="$ac_config_headers"
18215 config_commands="$ac_config_commands"
18217 _ACEOF
18219 cat >>$CONFIG_STATUS <<\_ACEOF
18220 ac_cs_usage="\
18221 \`$as_me' instantiates files from templates according to the
18222 current configuration.
18224 Usage: $0 [OPTIONS] [FILE]...
18226 -h, --help print this help, then exit
18227 -V, --version print version number, then exit
18228 -q, --quiet do not print progress messages
18229 -d, --debug don't remove temporary files
18230 --recheck update $as_me by reconfiguring in the same conditions
18231 --file=FILE[:TEMPLATE]
18232 instantiate the configuration file FILE
18233 --header=FILE[:TEMPLATE]
18234 instantiate the configuration header FILE
18236 Configuration files:
18237 $config_files
18239 Configuration headers:
18240 $config_headers
18242 Configuration commands:
18243 $config_commands
18245 Report bugs to <bug-autoconf@gnu.org>."
18247 _ACEOF
18248 cat >>$CONFIG_STATUS <<_ACEOF
18249 ac_cs_version="\\
18250 LLVM config.status 3.8.0svn
18251 configured by $0, generated by GNU Autoconf 2.60,
18252 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18254 Copyright (C) 2006 Free Software Foundation, Inc.
18255 This config.status script is free software; the Free Software Foundation
18256 gives unlimited permission to copy, distribute and modify it."
18258 ac_pwd='$ac_pwd'
18259 srcdir='$srcdir'
18260 INSTALL='$INSTALL'
18261 _ACEOF
18263 cat >>$CONFIG_STATUS <<\_ACEOF
18264 # If no file are specified by the user, then we need to provide default
18265 # value. By we need to know if files were specified by the user.
18266 ac_need_defaults=:
18267 while test $# != 0
18269 case $1 in
18270 --*=*)
18271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18272 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18273 ac_shift=:
18276 ac_option=$1
18277 ac_optarg=$2
18278 ac_shift=shift
18280 esac
18282 case $ac_option in
18283 # Handling of the options.
18284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18285 ac_cs_recheck=: ;;
18286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18287 echo "$ac_cs_version"; exit ;;
18288 --debug | --debu | --deb | --de | --d | -d )
18289 debug=: ;;
18290 --file | --fil | --fi | --f )
18291 $ac_shift
18292 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18293 ac_need_defaults=false;;
18294 --header | --heade | --head | --hea )
18295 $ac_shift
18296 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18297 ac_need_defaults=false;;
18298 --he | --h)
18299 # Conflict between --help and --header
18300 { echo "$as_me: error: ambiguous option: $1
18301 Try \`$0 --help' for more information." >&2
18302 { (exit 1); exit 1; }; };;
18303 --help | --hel | -h )
18304 echo "$ac_cs_usage"; exit ;;
18305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18306 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18307 ac_cs_silent=: ;;
18309 # This is an error.
18310 -*) { echo "$as_me: error: unrecognized option: $1
18311 Try \`$0 --help' for more information." >&2
18312 { (exit 1); exit 1; }; } ;;
18314 *) ac_config_targets="$ac_config_targets $1"
18315 ac_need_defaults=false ;;
18317 esac
18318 shift
18319 done
18321 ac_configure_extra_args=
18323 if $ac_cs_silent; then
18324 exec 6>/dev/null
18325 ac_configure_extra_args="$ac_configure_extra_args --silent"
18328 _ACEOF
18329 cat >>$CONFIG_STATUS <<_ACEOF
18330 if \$ac_cs_recheck; then
18331 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18332 CONFIG_SHELL=$SHELL
18333 export CONFIG_SHELL
18334 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18337 _ACEOF
18338 cat >>$CONFIG_STATUS <<\_ACEOF
18339 exec 5>>config.log
18341 echo
18342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18343 ## Running $as_me. ##
18344 _ASBOX
18345 echo "$ac_log"
18346 } >&5
18348 _ACEOF
18349 cat >>$CONFIG_STATUS <<_ACEOF
18351 # INIT-COMMANDS
18353 llvm_src="${srcdir}"
18355 _ACEOF
18357 cat >>$CONFIG_STATUS <<\_ACEOF
18359 # Handling of arguments.
18360 for ac_config_target in $ac_config_targets
18362 case $ac_config_target in
18363 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18364 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18365 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18366 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18367 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18368 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18369 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18370 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18371 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18372 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18373 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18374 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18375 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18376 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18377 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18378 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18379 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18380 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18381 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18382 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18383 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18384 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18385 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18386 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18387 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18388 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18390 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18391 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18392 { (exit 1); exit 1; }; };;
18393 esac
18394 done
18397 # If the user did not use the arguments to specify the items to instantiate,
18398 # then the envvar interface is used. Set only those that are not.
18399 # We use the long form for the default assignment because of an extremely
18400 # bizarre bug on SunOS 4.1.3.
18401 if $ac_need_defaults; then
18402 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18403 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18404 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18407 # Have a temporary directory for convenience. Make it in the build tree
18408 # simply because there is no reason against having it here, and in addition,
18409 # creating and moving files from /tmp can sometimes cause problems.
18410 # Hook for its removal unless debugging.
18411 # Note that there is a small window in which the directory will not be cleaned:
18412 # after its creation but before its name has been assigned to `$tmp'.
18413 $debug ||
18415 tmp=
18416 trap 'exit_status=$?
18417 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18419 trap '{ (exit 1); exit 1; }' 1 2 13 15
18421 # Create a (secure) tmp directory for tmp files.
18424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18425 test -n "$tmp" && test -d "$tmp"
18426 } ||
18428 tmp=./conf$$-$RANDOM
18429 (umask 077 && mkdir "$tmp")
18430 } ||
18432 echo "$me: cannot create a temporary directory in ." >&2
18433 { (exit 1); exit 1; }
18437 # Set up the sed scripts for CONFIG_FILES section.
18440 # No need to generate the scripts if there are no CONFIG_FILES.
18441 # This happens for instance when ./config.status config.h
18442 if test -n "$CONFIG_FILES"; then
18444 _ACEOF
18448 ac_delim='%!_!# '
18449 for ac_last_try in false false false false false :; do
18450 cat >conf$$subs.sed <<_ACEOF
18451 SHELL!$SHELL$ac_delim
18452 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18453 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18454 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18455 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18456 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18457 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18458 exec_prefix!$exec_prefix$ac_delim
18459 prefix!$prefix$ac_delim
18460 program_transform_name!$program_transform_name$ac_delim
18461 bindir!$bindir$ac_delim
18462 sbindir!$sbindir$ac_delim
18463 libexecdir!$libexecdir$ac_delim
18464 datarootdir!$datarootdir$ac_delim
18465 datadir!$datadir$ac_delim
18466 sysconfdir!$sysconfdir$ac_delim
18467 sharedstatedir!$sharedstatedir$ac_delim
18468 localstatedir!$localstatedir$ac_delim
18469 includedir!$includedir$ac_delim
18470 oldincludedir!$oldincludedir$ac_delim
18471 docdir!$docdir$ac_delim
18472 infodir!$infodir$ac_delim
18473 htmldir!$htmldir$ac_delim
18474 dvidir!$dvidir$ac_delim
18475 pdfdir!$pdfdir$ac_delim
18476 psdir!$psdir$ac_delim
18477 libdir!$libdir$ac_delim
18478 localedir!$localedir$ac_delim
18479 mandir!$mandir$ac_delim
18480 DEFS!$DEFS$ac_delim
18481 ECHO_C!$ECHO_C$ac_delim
18482 ECHO_N!$ECHO_N$ac_delim
18483 ECHO_T!$ECHO_T$ac_delim
18484 LIBS!$LIBS$ac_delim
18485 build_alias!$build_alias$ac_delim
18486 host_alias!$host_alias$ac_delim
18487 target_alias!$target_alias$ac_delim
18488 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18489 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18490 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18491 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18492 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18493 CC!$CC$ac_delim
18494 CFLAGS!$CFLAGS$ac_delim
18495 LDFLAGS!$LDFLAGS$ac_delim
18496 CPPFLAGS!$CPPFLAGS$ac_delim
18497 ac_ct_CC!$ac_ct_CC$ac_delim
18498 EXEEXT!$EXEEXT$ac_delim
18499 OBJEXT!$OBJEXT$ac_delim
18500 CXX!$CXX$ac_delim
18501 CXXFLAGS!$CXXFLAGS$ac_delim
18502 ac_ct_CXX!$ac_ct_CXX$ac_delim
18503 CPP!$CPP$ac_delim
18504 CXX_COMPILER!$CXX_COMPILER$ac_delim
18505 subdirs!$subdirs$ac_delim
18506 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18507 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18508 build!$build$ac_delim
18509 build_cpu!$build_cpu$ac_delim
18510 build_vendor!$build_vendor$ac_delim
18511 build_os!$build_os$ac_delim
18512 host!$host$ac_delim
18513 host_cpu!$host_cpu$ac_delim
18514 host_vendor!$host_vendor$ac_delim
18515 host_os!$host_os$ac_delim
18516 target!$target$ac_delim
18517 target_cpu!$target_cpu$ac_delim
18518 target_vendor!$target_vendor$ac_delim
18519 target_os!$target_os$ac_delim
18520 OS!$OS$ac_delim
18521 HOST_OS!$HOST_OS$ac_delim
18522 TARGET_OS!$TARGET_OS$ac_delim
18523 LINKALL!$LINKALL$ac_delim
18524 NOLINKALL!$NOLINKALL$ac_delim
18525 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18526 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18527 ARCH!$ARCH$ac_delim
18528 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18529 HOST_ARCH!$HOST_ARCH$ac_delim
18530 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18531 BUILD_CC!$BUILD_CC$ac_delim
18532 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18533 BUILD_CXX!$BUILD_CXX$ac_delim
18534 CVSBUILD!$CVSBUILD$ac_delim
18535 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18536 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18537 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18538 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18539 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18540 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18541 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18542 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18543 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18544 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18545 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18546 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18547 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18548 _ACEOF
18550 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18551 break
18552 elif $ac_last_try; then
18553 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18554 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18555 { (exit 1); exit 1; }; }
18556 else
18557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18559 done
18561 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18562 if test -n "$ac_eof"; then
18563 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18564 ac_eof=`expr $ac_eof + 1`
18567 cat >>$CONFIG_STATUS <<_ACEOF
18568 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18570 _ACEOF
18571 sed '
18572 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18573 s/^/s,@/; s/!/@,|#_!!_#|/
18576 s/'"$ac_delim"'$/,g/; t
18577 s/$/\\/; p
18578 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18579 ' >>$CONFIG_STATUS <conf$$subs.sed
18580 rm -f conf$$subs.sed
18581 cat >>$CONFIG_STATUS <<_ACEOF
18582 CEOF$ac_eof
18583 _ACEOF
18586 ac_delim='%!_!# '
18587 for ac_last_try in false false false false false :; do
18588 cat >conf$$subs.sed <<_ACEOF
18589 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18590 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18591 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18592 JIT!$JIT$ac_delim
18593 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18594 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18595 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18596 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18597 enable_searchengine!$enable_searchengine$ac_delim
18598 enable_external_search!$enable_external_search$ac_delim
18599 enable_server_based_search!$enable_server_based_search$ac_delim
18600 searchengine_url!$searchengine_url$ac_delim
18601 extra_search_mappings!$extra_search_mappings$ac_delim
18602 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18603 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18604 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18605 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18606 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18607 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18608 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18609 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18610 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18611 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18612 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18613 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18614 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18615 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18616 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18617 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18618 ENABLE_PIC!$ENABLE_PIC$ac_delim
18619 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18620 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18621 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18622 ALL_TARGETS!$ALL_TARGETS$ac_delim
18623 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18624 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18625 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18626 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18627 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18628 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18629 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18630 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18631 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18632 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18633 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18634 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18635 ifGNUmake!$ifGNUmake$ac_delim
18636 LN_S!$LN_S$ac_delim
18637 NM!$NM$ac_delim
18638 CMP!$CMP$ac_delim
18639 CP!$CP$ac_delim
18640 DATE!$DATE$ac_delim
18641 FIND!$FIND$ac_delim
18642 GREP!$GREP$ac_delim
18643 MKDIR!$MKDIR$ac_delim
18644 MV!$MV$ac_delim
18645 RANLIB!$RANLIB$ac_delim
18646 AR!$AR$ac_delim
18647 RM!$RM$ac_delim
18648 SED!$SED$ac_delim
18649 TAR!$TAR$ac_delim
18650 BINPWD!$BINPWD$ac_delim
18651 DOT!$DOT$ac_delim
18652 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18653 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18654 INSTALL_DATA!$INSTALL_DATA$ac_delim
18655 BZIP2!$BZIP2$ac_delim
18656 CAT!$CAT$ac_delim
18657 DOXYGEN!$DOXYGEN$ac_delim
18658 GROFF!$GROFF$ac_delim
18659 GZIPBIN!$GZIPBIN$ac_delim
18660 PDFROFF!$PDFROFF$ac_delim
18661 ZIP!$ZIP$ac_delim
18662 GO!$GO$ac_delim
18663 OCAMLFIND!$OCAMLFIND$ac_delim
18664 GAS!$GAS$ac_delim
18665 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18666 EGREP!$EGREP$ac_delim
18667 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18668 MISSING_FIELD_INITIALIZERS!$MISSING_FIELD_INITIALIZERS$ac_delim
18669 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18670 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18671 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18672 NO_COMMENT!$NO_COMMENT$ac_delim
18673 PYTHON!$PYTHON$ac_delim
18674 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18675 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18676 USE_OPROFILE!$USE_OPROFILE$ac_delim
18677 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18678 XML2CONFIG!$XML2CONFIG$ac_delim
18679 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18680 LIBXML2_INC!$LIBXML2_INC$ac_delim
18681 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18682 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18683 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18684 MMAP_FILE!$MMAP_FILE$ac_delim
18685 SHLIBEXT!$SHLIBEXT$ac_delim
18686 _ACEOF
18688 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18689 break
18690 elif $ac_last_try; then
18691 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18692 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18693 { (exit 1); exit 1; }; }
18694 else
18695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18697 done
18699 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18700 if test -n "$ac_eof"; then
18701 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18702 ac_eof=`expr $ac_eof + 1`
18705 cat >>$CONFIG_STATUS <<_ACEOF
18706 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18708 _ACEOF
18709 sed '
18710 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18711 s/^/s,@/; s/!/@,|#_!!_#|/
18714 s/'"$ac_delim"'$/,g/; t
18715 s/$/\\/; p
18716 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18717 ' >>$CONFIG_STATUS <conf$$subs.sed
18718 rm -f conf$$subs.sed
18719 cat >>$CONFIG_STATUS <<_ACEOF
18720 CEOF$ac_eof
18721 _ACEOF
18724 ac_delim='%!_!# '
18725 for ac_last_try in false false false false false :; do
18726 cat >conf$$subs.sed <<_ACEOF
18727 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18728 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18729 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18730 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18731 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
18732 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
18733 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18734 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
18735 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18736 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
18737 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
18738 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
18739 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18740 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
18741 RPATH!$RPATH$ac_delim
18742 RDYNAMIC!$RDYNAMIC$ac_delim
18743 program_prefix!$program_prefix$ac_delim
18744 LIBOBJS!$LIBOBJS$ac_delim
18745 LTLIBOBJS!$LTLIBOBJS$ac_delim
18746 _ACEOF
18748 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
18749 break
18750 elif $ac_last_try; then
18751 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18752 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18753 { (exit 1); exit 1; }; }
18754 else
18755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18757 done
18759 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18760 if test -n "$ac_eof"; then
18761 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18762 ac_eof=`expr $ac_eof + 1`
18765 cat >>$CONFIG_STATUS <<_ACEOF
18766 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18768 _ACEOF
18769 sed '
18770 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18771 s/^/s,@/; s/!/@,|#_!!_#|/
18774 s/'"$ac_delim"'$/,g/; t
18775 s/$/\\/; p
18776 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18777 ' >>$CONFIG_STATUS <conf$$subs.sed
18778 rm -f conf$$subs.sed
18779 cat >>$CONFIG_STATUS <<_ACEOF
18780 :end
18781 s/|#_!!_#|//g
18782 CEOF$ac_eof
18783 _ACEOF
18786 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18788 # trailing colons and then remove the whole line if VPATH becomes empty
18789 # (actually we leave an empty line to preserve line numbers).
18790 if test "x$srcdir" = x.; then
18791 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18792 s/:*\$(srcdir):*/:/
18793 s/:*\${srcdir}:*/:/
18794 s/:*@srcdir@:*/:/
18795 s/^\([^=]*=[ ]*\):*/\1/
18796 s/:*$//
18797 s/^[^=]*=[ ]*$//
18801 cat >>$CONFIG_STATUS <<\_ACEOF
18802 fi # test -n "$CONFIG_FILES"
18805 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
18807 case $ac_tag in
18808 :[FHLC]) ac_mode=$ac_tag; continue;;
18809 esac
18810 case $ac_mode$ac_tag in
18811 :[FHL]*:*);;
18812 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18813 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18814 { (exit 1); exit 1; }; };;
18815 :[FH]-) ac_tag=-:-;;
18816 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18817 esac
18818 ac_save_IFS=$IFS
18819 IFS=:
18820 set x $ac_tag
18821 IFS=$ac_save_IFS
18822 shift
18823 ac_file=$1
18824 shift
18826 case $ac_mode in
18827 :L) ac_source=$1;;
18828 :[FH])
18829 ac_file_inputs=
18830 for ac_f
18832 case $ac_f in
18833 -) ac_f="$tmp/stdin";;
18834 *) # Look for the file first in the build tree, then in the source tree
18835 # (if the path is not absolute). The absolute path cannot be DOS-style,
18836 # because $ac_f cannot contain `:'.
18837 test -f "$ac_f" ||
18838 case $ac_f in
18839 [\\/$]*) false;;
18840 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18841 esac ||
18842 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18843 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18844 { (exit 1); exit 1; }; };;
18845 esac
18846 ac_file_inputs="$ac_file_inputs $ac_f"
18847 done
18849 # Let's still pretend it is `configure' which instantiates (i.e., don't
18850 # use $as_me), people would be surprised to read:
18851 # /* config.h. Generated by config.status. */
18852 configure_input="Generated from "`IFS=:
18853 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18854 if test x"$ac_file" != x-; then
18855 configure_input="$ac_file. $configure_input"
18856 { echo "$as_me:$LINENO: creating $ac_file" >&5
18857 echo "$as_me: creating $ac_file" >&6;}
18860 case $ac_tag in
18861 *:-:* | *:-) cat >"$tmp/stdin";;
18862 esac
18864 esac
18866 ac_dir=`$as_dirname -- "$ac_file" ||
18867 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18868 X"$ac_file" : 'X\(//\)[^/]' \| \
18869 X"$ac_file" : 'X\(//\)$' \| \
18870 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18871 echo X"$ac_file" |
18872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18873 s//\1/
18876 /^X\(\/\/\)[^/].*/{
18877 s//\1/
18880 /^X\(\/\/\)$/{
18881 s//\1/
18884 /^X\(\/\).*/{
18885 s//\1/
18888 s/.*/./; q'`
18889 { as_dir="$ac_dir"
18890 case $as_dir in #(
18891 -*) as_dir=./$as_dir;;
18892 esac
18893 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18894 as_dirs=
18895 while :; do
18896 case $as_dir in #(
18897 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18898 *) as_qdir=$as_dir;;
18899 esac
18900 as_dirs="'$as_qdir' $as_dirs"
18901 as_dir=`$as_dirname -- "$as_dir" ||
18902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18903 X"$as_dir" : 'X\(//\)[^/]' \| \
18904 X"$as_dir" : 'X\(//\)$' \| \
18905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18906 echo X"$as_dir" |
18907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18908 s//\1/
18911 /^X\(\/\/\)[^/].*/{
18912 s//\1/
18915 /^X\(\/\/\)$/{
18916 s//\1/
18919 /^X\(\/\).*/{
18920 s//\1/
18923 s/.*/./; q'`
18924 test -d "$as_dir" && break
18925 done
18926 test -z "$as_dirs" || eval "mkdir $as_dirs"
18927 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18928 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18929 { (exit 1); exit 1; }; }; }
18930 ac_builddir=.
18932 case "$ac_dir" in
18933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18935 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18936 # A ".." for each directory in $ac_dir_suffix.
18937 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18938 case $ac_top_builddir_sub in
18939 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18940 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18941 esac ;;
18942 esac
18943 ac_abs_top_builddir=$ac_pwd
18944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18945 # for backward compatibility:
18946 ac_top_builddir=$ac_top_build_prefix
18948 case $srcdir in
18949 .) # We are building in place.
18950 ac_srcdir=.
18951 ac_top_srcdir=$ac_top_builddir_sub
18952 ac_abs_top_srcdir=$ac_pwd ;;
18953 [\\/]* | ?:[\\/]* ) # Absolute name.
18954 ac_srcdir=$srcdir$ac_dir_suffix;
18955 ac_top_srcdir=$srcdir
18956 ac_abs_top_srcdir=$srcdir ;;
18957 *) # Relative name.
18958 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18959 ac_top_srcdir=$ac_top_build_prefix$srcdir
18960 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18961 esac
18962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18965 case $ac_mode in
18968 # CONFIG_FILE
18971 case $INSTALL in
18972 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18973 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18974 esac
18975 _ACEOF
18977 cat >>$CONFIG_STATUS <<\_ACEOF
18978 # If the template does not know about datarootdir, expand it.
18979 # FIXME: This hack should be removed a few years after 2.60.
18980 ac_datarootdir_hack=; ac_datarootdir_seen=
18982 case `sed -n '/datarootdir/ {
18986 /@datadir@/p
18987 /@docdir@/p
18988 /@infodir@/p
18989 /@localedir@/p
18990 /@mandir@/p
18991 ' $ac_file_inputs` in
18992 *datarootdir*) ac_datarootdir_seen=yes;;
18993 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18994 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18995 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18996 _ACEOF
18997 cat >>$CONFIG_STATUS <<_ACEOF
18998 ac_datarootdir_hack='
18999 s&@datadir@&$datadir&g
19000 s&@docdir@&$docdir&g
19001 s&@infodir@&$infodir&g
19002 s&@localedir@&$localedir&g
19003 s&@mandir@&$mandir&g
19004 s&\\\${datarootdir}&$datarootdir&g' ;;
19005 esac
19006 _ACEOF
19008 # Neutralize VPATH when `$srcdir' = `.'.
19009 # Shell code in configure.ac might set extrasub.
19010 # FIXME: do we really want to maintain this feature?
19011 cat >>$CONFIG_STATUS <<_ACEOF
19012 sed "$ac_vpsub
19013 $extrasub
19014 _ACEOF
19015 cat >>$CONFIG_STATUS <<\_ACEOF
19017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19018 s&@configure_input@&$configure_input&;t t
19019 s&@top_builddir@&$ac_top_builddir_sub&;t t
19020 s&@srcdir@&$ac_srcdir&;t t
19021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19022 s&@top_srcdir@&$ac_top_srcdir&;t t
19023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19024 s&@builddir@&$ac_builddir&;t t
19025 s&@abs_builddir@&$ac_abs_builddir&;t t
19026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19027 s&@INSTALL@&$ac_INSTALL&;t t
19028 $ac_datarootdir_hack
19029 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19032 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19034 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19035 which seems to be undefined. Please make sure it is defined." >&5
19036 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19037 which seems to be undefined. Please make sure it is defined." >&2;}
19039 rm -f "$tmp/stdin"
19040 case $ac_file in
19041 -) cat "$tmp/out"; rm -f "$tmp/out";;
19042 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19043 esac
19047 # CONFIG_HEADER
19049 _ACEOF
19051 # Transform confdefs.h into a sed script `conftest.defines', that
19052 # substitutes the proper values into config.h.in to produce config.h.
19053 rm -f conftest.defines conftest.tail
19054 # First, append a space to every undef/define line, to ease matching.
19055 echo 's/$/ /' >conftest.defines
19056 # Then, protect against being on the right side of a sed subst, or in
19057 # an unquoted here document, in config.status. If some macros were
19058 # called several times there might be several #defines for the same
19059 # symbol, which is useless. But do not sort them, since the last
19060 # AC_DEFINE must be honored.
19061 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19062 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19063 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19064 # PARAMS is the parameter list in the macro definition--in most cases, it's
19065 # just an empty string.
19066 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19067 ac_dB='\\)[ (].*,\\1define\\2'
19068 ac_dC=' '
19069 ac_dD=' ,'
19071 uniq confdefs.h |
19072 sed -n '
19073 t rset
19074 :rset
19075 s/^[ ]*#[ ]*define[ ][ ]*//
19076 t ok
19079 s/[\\&,]/\\&/g
19080 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19081 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19082 ' >>conftest.defines
19084 # Remove the space that was appended to ease matching.
19085 # Then replace #undef with comments. This is necessary, for
19086 # example, in the case of _POSIX_SOURCE, which is predefined and required
19087 # on some systems where configure will not decide to define it.
19088 # (The regexp can be short, since the line contains either #define or #undef.)
19089 echo 's/ $//
19090 s,^[ #]*u.*,/* & */,' >>conftest.defines
19092 # Break up conftest.defines:
19093 ac_max_sed_lines=50
19095 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19096 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19097 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19098 # et cetera.
19099 ac_in='$ac_file_inputs'
19100 ac_out='"$tmp/out1"'
19101 ac_nxt='"$tmp/out2"'
19103 while :
19105 # Write a here document:
19106 cat >>$CONFIG_STATUS <<_ACEOF
19107 # First, check the format of the line:
19108 cat >"\$tmp/defines.sed" <<\\CEOF
19109 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19110 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19112 :def
19113 _ACEOF
19114 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19115 echo 'CEOF
19116 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19117 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19118 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19119 grep . conftest.tail >/dev/null || break
19120 rm -f conftest.defines
19121 mv conftest.tail conftest.defines
19122 done
19123 rm -f conftest.defines conftest.tail
19125 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19126 cat >>$CONFIG_STATUS <<\_ACEOF
19127 if test x"$ac_file" != x-; then
19128 echo "/* $configure_input */" >"$tmp/config.h"
19129 cat "$ac_result" >>"$tmp/config.h"
19130 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19132 echo "$as_me: $ac_file is unchanged" >&6;}
19133 else
19134 rm -f $ac_file
19135 mv "$tmp/config.h" $ac_file
19137 else
19138 echo "/* $configure_input */"
19139 cat "$ac_result"
19141 rm -f "$tmp/out12"
19144 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19145 echo "$as_me: executing $ac_file commands" >&6;}
19147 esac
19150 case $ac_file$ac_mode in
19151 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19152 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19153 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19154 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19155 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19156 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19157 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19158 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19159 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19160 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19161 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19162 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19163 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19164 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19165 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19166 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19167 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19168 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19169 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19170 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19171 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19172 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19173 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19174 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19176 esac
19177 done # for ac_tag
19180 { (exit 0); exit 0; }
19181 _ACEOF
19182 chmod +x $CONFIG_STATUS
19183 ac_clean_files=$ac_clean_files_save
19186 # configure is writing to config.log, and then calls config.status.
19187 # config.status does its own redirection, appending to config.log.
19188 # Unfortunately, on DOS this fails, as config.log is still kept open
19189 # by configure, so config.status won't be able to write to it; its
19190 # output is simply discarded. So we exec the FD to /dev/null,
19191 # effectively closing config.log, so it can be properly (re)opened and
19192 # appended to by config.status. When coming back to configure, we
19193 # need to make the FD available again.
19194 if test "$no_create" != yes; then
19195 ac_cs_success=:
19196 ac_config_status_args=
19197 test "$silent" = yes &&
19198 ac_config_status_args="$ac_config_status_args --quiet"
19199 exec 5>/dev/null
19200 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19201 exec 5>>config.log
19202 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19203 # would make configure fail if this is the last instruction.
19204 $ac_cs_success || { (exit 1); exit 1; }
19208 # CONFIG_SUBDIRS section.
19210 if test "$no_recursion" != yes; then
19212 # Remove --cache-file and --srcdir arguments so they do not pile up.
19213 ac_sub_configure_args=
19214 ac_prev=
19215 eval "set x $ac_configure_args"
19216 shift
19217 for ac_arg
19219 if test -n "$ac_prev"; then
19220 ac_prev=
19221 continue
19223 case $ac_arg in
19224 -cache-file | --cache-file | --cache-fil | --cache-fi \
19225 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19226 ac_prev=cache_file ;;
19227 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19228 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19229 | --c=*)
19231 --config-cache | -C)
19233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19234 ac_prev=srcdir ;;
19235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19237 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19238 ac_prev=prefix ;;
19239 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19242 case $ac_arg in
19243 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19244 esac
19245 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19246 esac
19247 done
19249 # Always prepend --prefix to ensure using the same prefix
19250 # in subdir configurations.
19251 ac_arg="--prefix=$prefix"
19252 case $ac_arg in
19253 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19254 esac
19255 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19257 ac_popdir=`pwd`
19258 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19260 # Do not complain, so a configure script can configure whichever
19261 # parts of a large source tree are present.
19262 test -d "$srcdir/$ac_dir" || continue
19264 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19265 echo "$as_me:$LINENO: $ac_msg" >&5
19266 echo "$ac_msg" >&6
19267 { as_dir="$ac_dir"
19268 case $as_dir in #(
19269 -*) as_dir=./$as_dir;;
19270 esac
19271 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19272 as_dirs=
19273 while :; do
19274 case $as_dir in #(
19275 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19276 *) as_qdir=$as_dir;;
19277 esac
19278 as_dirs="'$as_qdir' $as_dirs"
19279 as_dir=`$as_dirname -- "$as_dir" ||
19280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19281 X"$as_dir" : 'X\(//\)[^/]' \| \
19282 X"$as_dir" : 'X\(//\)$' \| \
19283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19284 echo X"$as_dir" |
19285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19286 s//\1/
19289 /^X\(\/\/\)[^/].*/{
19290 s//\1/
19293 /^X\(\/\/\)$/{
19294 s//\1/
19297 /^X\(\/\).*/{
19298 s//\1/
19301 s/.*/./; q'`
19302 test -d "$as_dir" && break
19303 done
19304 test -z "$as_dirs" || eval "mkdir $as_dirs"
19305 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19306 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19307 { (exit 1); exit 1; }; }; }
19308 ac_builddir=.
19310 case "$ac_dir" in
19311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19314 # A ".." for each directory in $ac_dir_suffix.
19315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19316 case $ac_top_builddir_sub in
19317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19319 esac ;;
19320 esac
19321 ac_abs_top_builddir=$ac_pwd
19322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19323 # for backward compatibility:
19324 ac_top_builddir=$ac_top_build_prefix
19326 case $srcdir in
19327 .) # We are building in place.
19328 ac_srcdir=.
19329 ac_top_srcdir=$ac_top_builddir_sub
19330 ac_abs_top_srcdir=$ac_pwd ;;
19331 [\\/]* | ?:[\\/]* ) # Absolute name.
19332 ac_srcdir=$srcdir$ac_dir_suffix;
19333 ac_top_srcdir=$srcdir
19334 ac_abs_top_srcdir=$srcdir ;;
19335 *) # Relative name.
19336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19337 ac_top_srcdir=$ac_top_build_prefix$srcdir
19338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19339 esac
19340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19343 cd "$ac_dir"
19345 # Check for guested configure; otherwise get Cygnus style configure.
19346 if test -f "$ac_srcdir/configure.gnu"; then
19347 ac_sub_configure=$ac_srcdir/configure.gnu
19348 elif test -f "$ac_srcdir/configure"; then
19349 ac_sub_configure=$ac_srcdir/configure
19350 elif test -f "$ac_srcdir/configure.in"; then
19351 # This should be Cygnus configure.
19352 ac_sub_configure=$ac_aux_dir/configure
19353 else
19354 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19355 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19356 ac_sub_configure=
19359 # The recursion is here.
19360 if test -n "$ac_sub_configure"; then
19361 # Make the cache file name correct relative to the subdirectory.
19362 case $cache_file in
19363 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19364 *) # Relative name.
19365 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19366 esac
19368 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19369 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19370 # The eval makes quoting arguments work.
19371 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19372 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19373 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19374 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19375 { (exit 1); exit 1; }; }
19378 cd "$ac_popdir"
19379 done