1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.6.0svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
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.
11 #
12 # Copyright (c) 2003-2014 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
27 fi
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=:
49 fi
50 rm -f conf$$.sh
51 fi
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
58 fi
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='
67 '
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
75 do
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
82 ;;
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
88 fi
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; }
92 fi
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
107 do
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
112 fi
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
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
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/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
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
159 fi
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
212 (
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
218 :
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
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
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
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
254 :
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
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
274 :
275 (as_func_return () {
276 (exit $1)
277 }
278 as_func_success () {
279 as_func_return 0
280 }
281 as_func_failure () {
282 as_func_return 1
283 }
284 as_func_ret_success () {
285 return 0
286 }
287 as_func_ret_failure () {
288 return 1
289 }
291 exitcode=0
292 if as_func_success; then
293 :
294 else
295 exitcode=1
296 echo as_func_success failed.
297 fi
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302 fi
304 if as_func_ret_success; then
305 :
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
309 fi
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314 fi
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318 else
319 exitcode=1
320 echo positional parameters were not saved.
321 fi
323 test $exitcode = 0) || { (exit 1); exit 1; }
325 (
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
334 fi
336 fi
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+"$@"}
346 fi
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; }
355 fi
358 fi
360 fi
364 (eval "as_func_return () {
365 (exit \$1)
366 }
367 as_func_success () {
368 as_func_return 0
369 }
370 as_func_failure () {
371 as_func_return 1
372 }
373 as_func_ret_success () {
374 return 0
375 }
376 as_func_ret_failure () {
377 return 1
378 }
380 exitcode=0
381 if as_func_success; then
382 :
383 else
384 exitcode=1
385 echo as_func_success failed.
386 fi
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391 fi
393 if as_func_ret_success; then
394 :
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
398 fi
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403 fi
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407 else
408 exitcode=1
409 echo positional parameters were not saved.
410 fi
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
417 }
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 '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
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
461 }
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
468 fi
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;;
477 *)
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
486 fi
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
494 fi
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'
508 fi
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
517 fi
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=:
530 fi
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`
548 #
549 # Initializations.
550 #
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.6.0svn'
565 PACKAGE_STRING='LLVM 3.6.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
647 CC
648 CFLAGS
649 LDFLAGS
650 CPPFLAGS
651 ac_ct_CC
652 EXEEXT
653 OBJEXT
654 CXX
655 CXXFLAGS
656 ac_ct_CXX
657 CPP
658 subdirs
659 ENABLE_POLLY
660 LLVM_HAS_POLLY
661 build
662 build_cpu
663 build_vendor
664 build_os
665 host
666 host_cpu
667 host_vendor
668 host_os
669 target
670 target_cpu
671 target_vendor
672 target_os
673 OS
674 HOST_OS
675 TARGET_OS
676 LINKALL
677 NOLINKALL
678 LLVM_ON_UNIX
679 LLVM_ON_WIN32
680 ARCH
681 LLVM_NATIVE_ARCH
682 HOST_ARCH
683 LLVM_CROSS_COMPILING
684 BUILD_CC
685 BUILD_EXEEXT
686 BUILD_CXX
687 CVSBUILD
688 ENABLE_LIBCPP
689 ENABLE_CXX1Y
690 ENABLE_SPLIT_DWARF
691 ENABLE_CLANG_ARCMT
692 CLANG_PLUGIN_SUPPORT
693 ENABLE_CLANG_STATIC_ANALYZER
694 ENABLE_OPTIMIZED
695 ENABLE_PROFILING
696 DISABLE_ASSERTIONS
697 ENABLE_WERROR
698 ENABLE_EXPENSIVE_CHECKS
699 EXPENSIVE_CHECKS
700 DEBUG_RUNTIME
701 DEBUG_SYMBOLS
702 KEEP_SYMBOLS
703 JIT
704 TARGET_HAS_JIT
705 TARGETS_WITH_JIT
706 ENABLE_DOCS
707 ENABLE_DOXYGEN
708 LLVM_ENABLE_THREADS
709 ENABLE_PTHREADS
710 LLVM_ENABLE_ZLIB
711 ENABLE_PIC
712 ENABLE_SHARED
713 ENABLE_EMBED_STDCXX
714 ENABLE_TIMESTAMPS
715 ALL_TARGETS
716 TARGETS_TO_BUILD
717 LLVM_ENUM_TARGETS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
721 OPTIMIZE_OPTION
722 EXTRA_OPTIONS
723 EXTRA_LD_OPTIONS
724 CLANG_SRC_ROOT
725 BINUTILS_INCDIR
726 ENABLE_TERMINFO
727 INTERNAL_PREFIX
728 ifGNUmake
729 LN_S
730 NM
731 CMP
732 CP
733 DATE
734 FIND
735 GREP
736 MKDIR
737 MV
738 RANLIB
739 AR
740 RM
741 SED
742 TAR
743 BINPWD
744 DOT
745 INSTALL_PROGRAM
746 INSTALL_SCRIPT
747 INSTALL_DATA
748 BZIP2
749 CAT
750 DOXYGEN
751 GROFF
752 GZIPBIN
753 PDFROFF
754 ZIP
755 GO
756 OCAMLFIND
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 EGREP
760 NO_VARIADIC_MACROS
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 NO_MAYBE_UNINITIALIZED
764 NO_UNINITIALIZED
765 NO_COMMENT
766 PYTHON
767 HAVE_DLOPEN
768 HAVE_TERMINFO
769 USE_OPROFILE
770 USE_INTEL_JITEVENTS
771 XML2CONFIG
772 LIBXML2_LIBS
773 LIBXML2_INC
774 HAVE_PTHREAD
775 HAVE_LIBZ
776 HUGE_VAL_SANITY
777 MMAP_FILE
778 SHLIBEXT
779 LLVM_PREFIX
780 LLVM_BINDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 HAVE_OCAMLOPT
790 HAVE_OCAML_OUNIT
791 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 program_prefix
796 LIBOBJS
797 LTLIBOBJS'
798 ac_subst_files=''
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 CPP'
810 ac_subdirs_all='projects/test-suite
811 projects/llvm-test
812 projects/poolalloc
813 projects/llvm-poolalloc
814 projects/safecode
815 tools/polly'
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
874 case $ac_option in
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *) ac_optarg=yes ;;
877 esac
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
902 --config-cache | -C)
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
936 -enable-* | --enable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1133 -with-* | --with-*)
1134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
1172 ;;
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1191 esac
1192 done
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
1198 fi
1200 # Be sure to have absolute directory names.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1205 do
1206 eval ac_val=\$$ac_var
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
1213 done
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1230 fi
1231 fi
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258 echo X"$0" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
1276 srcdir=$ac_confdir
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 srcdir=..
1279 fi
1280 else
1281 ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
1292 pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1326 Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1372 cat <<\_ACEOF
1374 System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1378 _ACEOF
1379 fi
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1384 esac
1385 cat <<\_ACEOF
1387 Optional Features:
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-polly Use polly if available (default is YES)
1391 --enable-libcpp Use libc++ if available (default is NO)
1392 --enable-compiler-version-checks
1393 Check the version of the host compiler (default is
1394 YES)
1395 --enable-cxx1y Use c++1y if available (default is NO)
1396 --enable-split-dwarf Use split-dwarf if available (default is NO)
1397 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1398 --enable-clang-plugin-support
1399 Enable plugin support in clang (default is YES)
1400 --enable-clang-static-analyzer
1401 Enable building of clang Static Analyzer (default is
1402 YES)
1403 --enable-optimized Compile with optimizations enabled (default is NO)
1404 --enable-profiling Compile with profiling enabled (default is NO)
1405 --enable-assertions Compile with assertion checks enabled (default is
1406 YES)
1407 --enable-werror Compile with -Werror enabled (default is NO)
1408 --enable-expensive-checks
1409 Compile with expensive debug checks enabled (default
1410 is NO)
1411 --enable-debug-runtime Build runtime libs with debug symbols (default is
1412 NO)
1413 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1414 optimization is on and YES if it's off)
1415 --enable-keep-symbols Do not strip installed executables)
1416 --enable-jit Enable Just In Time Compiling (default is YES)
1417 --enable-docs Build documents (default is YES)
1418 --enable-doxygen Build doxygen documentation (default is NO)
1419 --enable-threads Use threads if available (default is YES)
1420 --enable-pthreads Use pthreads if available (default is YES)
1421 --enable-zlib Use zlib for compression/decompression if available
1422 (default is YES)
1423 --enable-pic Build LLVM with Position Independent Code (default
1424 is YES)
1425 --enable-shared Build a shared library and link tools against it
1426 (default is NO)
1427 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1428 Win32 DLL (default is NO)
1429 --enable-timestamps Enable embedding timestamp information in build
1430 (default is YES)
1431 --enable-backtraces Enable embedding backtraces on crash (default is
1432 YES)
1433 --enable-crash-overrides
1434 Enable crash handling overrides (default is YES)
1435 --enable-targets Build specific host targets: all or
1436 target1,target2,... Valid targets are: host, x86,
1437 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438 hexagon, xcore, msp430, nvptx, systemz, r600, and
1439 cpp (default=all)
1440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
1443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
1445 --enable-terminfo Query the terminfo database if available (default is
1446 YES)
1447 --enable-libedit Use libedit if available (default is YES)
1448 --enable-libffi Check for the presence of libffi (default is NO)
1450 Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-optimize-option Select the compiler options to use for optimized
1454 builds
1455 --with-extra-options Specify additional options to compile LLVM with
1456 --with-extra-ld-options Specify additional options to link LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1458 is stdlib)
1459 --with-clang-srcdir Directory to the out-of-tree Clang source
1460 --with-clang-resource-dir
1461 Relative directory from the Clang binary for
1462 resource files
1463 --with-c-include-dirs Colon separated list of directories clang will
1464 search for headers
1465 --with-gcc-toolchain Directory where gcc is installed.
1466 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
1469 --with-bug-report-url Specify the URL where bug reports should be
1470 submitted (default=http://llvm.org/bugs/)
1471 --with-internal-prefix Installation directory for internal files
1472 --with-python path to python
1473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
1475 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1478 Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1487 CPP C preprocessor
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to <http://llvm.org/bugs/>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" || continue
1501 ac_builddir=.
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *)
1506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1519 case $srcdir in
1520 .) # We are building in place.
1521 ac_srcdir=.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1528 *) # Relative name.
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1543 else
1544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 fi || ac_status=$?
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1547 done
1548 fi
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552 cat <<\_ACEOF
1553 LLVM configure 3.6.0svn
1554 generated by GNU Autoconf 2.60
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1561 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1562 _ACEOF
1563 exit
1564 fi
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by LLVM $as_me 3.6.0svn, which was
1570 generated by GNU Autoconf 2.60. Invocation command line was
1572 $ $0 $@
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1599 _ASUNAME
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1610 } >&5
1612 cat >&5 <<_ACEOF
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1619 _ACEOF
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
1633 for ac_arg
1634 do
1635 case $ac_arg in
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1639 continue ;;
1640 *\'*)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 esac
1643 case $ac_pass in
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645 2)
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1649 else
1650 case $ac_arg in
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 esac
1658 ;;
1659 -* ) ac_must_keep_next=true ;;
1660 esac
1661 fi
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1663 ;;
1664 esac
1665 done
1666 done
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1677 {
1678 echo
1680 cat <<\_ASBOX
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1684 _ASBOX
1685 echo
1686 # The following way of writing the cache mishandles newlines in values,
1687 (
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1690 case $ac_val in #(
1691 *${as_nl}*)
1692 case $ac_var in #(
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695 esac
1696 case $ac_var in #(
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1699 esac ;;
1700 esac
1701 done
1702 (set) 2>&1 |
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1705 sed -n \
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 ;; #(
1709 *)
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 ;;
1712 esac |
1713 sort
1714 )
1715 echo
1717 cat <<\_ASBOX
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1721 _ASBOX
1722 echo
1723 for ac_var in $ac_subst_vars
1724 do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 esac
1729 echo "$ac_var='\''$ac_val'\''"
1730 done | sort
1731 echo
1733 if test -n "$ac_subst_files"; then
1734 cat <<\_ASBOX
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1738 _ASBOX
1739 echo
1740 for ac_var in $ac_subst_files
1741 do
1742 eval ac_val=\$$ac_var
1743 case $ac_val in
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 esac
1746 echo "$ac_var='\''$ac_val'\''"
1747 done | sort
1748 echo
1749 fi
1751 if test -s confdefs.h; then
1752 cat <<\_ASBOX
1753 ## ----------- ##
1754 ## confdefs.h. ##
1755 ## ----------- ##
1756 _ASBOX
1757 echo
1758 cat confdefs.h
1759 echo
1760 fi
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1764 } >&5
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767 exit $exit_status
1768 ' 0
1769 for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 done
1772 ac_signal=0
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1777 # Predefined preprocessor variables.
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 _ACEOF
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 _ACEOF
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 _ACEOF
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 _ACEOF
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801 _ACEOF
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 else
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1813 fi
1814 shift
1815 for ac_site_file
1816 do
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1821 . "$ac_site_file"
1822 fi
1823 done
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1831 case $cache_file in
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1834 esac
1835 fi
1836 else
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1839 >$cache_file
1840 fi
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1851 set,)
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1855 ,set)
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1859 ,);;
1860 *)
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865 echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867 echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1869 fi;;
1870 esac
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1873 case $ac_new_val in
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1876 esac
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880 esac
1881 fi
1882 done
1883 if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1889 fi
1915 ac_ext=c
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 LLVM_VERSION_MAJOR=3
1924 LLVM_VERSION_MINOR=6
1925 LLVM_VERSION_PATCH=0
1926 LLVM_VERSION_SUFFIX=svn
1929 cat >>confdefs.h <<_ACEOF
1930 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1931 _ACEOF
1934 cat >>confdefs.h <<_ACEOF
1935 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1936 _ACEOF
1939 cat >>confdefs.h <<_ACEOF
1940 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1941 _ACEOF
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1946 _ACEOF
1954 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1962 ac_aux_dir=
1963 for ac_dir in autoconf "$srcdir"/autoconf; do
1964 if test -f "$ac_dir/install-sh"; then
1965 ac_aux_dir=$ac_dir
1966 ac_install_sh="$ac_aux_dir/install-sh -c"
1967 break
1968 elif test -f "$ac_dir/install.sh"; then
1969 ac_aux_dir=$ac_dir
1970 ac_install_sh="$ac_aux_dir/install.sh -c"
1971 break
1972 elif test -f "$ac_dir/shtool"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/shtool install -c"
1975 break
1976 fi
1977 done
1978 if test -z "$ac_aux_dir"; then
1979 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1980 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1981 { (exit 1); exit 1; }; }
1982 fi
1984 # These three variables are undocumented and unsupported,
1985 # and are intended to be withdrawn in a future Autoconf release.
1986 # They can cause serious problems if a builder's source tree is in a directory
1987 # whose full name contains unusual characters.
1988 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1989 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1990 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1994 if test ${srcdir} != "." ; then
1995 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1996 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1997 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1998 { (exit 1); exit 1; }; }
1999 fi
2000 fi
2002 : ${CFLAGS=}
2003 : ${CXXFLAGS=}
2005 ac_ext=c
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 if test -n "$ac_tool_prefix"; then
2011 for ac_prog in clang gcc
2012 do
2013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2033 fi
2034 done
2035 done
2036 IFS=$as_save_IFS
2038 fi
2039 fi
2040 CC=$ac_cv_prog_CC
2041 if test -n "$CC"; then
2042 { echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6; }
2044 else
2045 { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2047 fi
2050 test -n "$CC" && break
2051 done
2052 fi
2053 if test -z "$CC"; then
2054 ac_ct_CC=$CC
2055 for ac_prog in clang gcc
2056 do
2057 # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set dummy $ac_prog; ac_word=$2
2059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066 else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2074 ac_cv_prog_ac_ct_CC="$ac_prog"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 break 2
2077 fi
2078 done
2079 done
2080 IFS=$as_save_IFS
2082 fi
2083 fi
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 echo "${ECHO_T}$ac_ct_CC" >&6; }
2088 else
2089 { echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6; }
2091 fi
2094 test -n "$ac_ct_CC" && break
2095 done
2097 if test "x$ac_ct_CC" = x; then
2098 CC=""
2099 else
2100 case $cross_compiling:$ac_tool_warned in
2101 yes:)
2102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2103 whose name does not start with the host triplet. If you think this
2104 configuration is useful to you, please write to autoconf@gnu.org." >&5
2105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2106 whose name does not start with the host triplet. If you think this
2107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2108 ac_tool_warned=yes ;;
2109 esac
2110 CC=$ac_ct_CC
2111 fi
2112 fi
2115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO: checking for C compiler version" >&5
2123 ac_compiler=`set X $ac_compile; echo $2`
2124 { (ac_try="$ac_compiler --version >&5"
2125 case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2128 esac
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler --version >&5") 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (ac_try="$ac_compiler -v >&5"
2135 case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138 esac
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler -v >&5") 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144 { (ac_try="$ac_compiler -V >&5"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler -V >&5") 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2155 cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h. */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2162 int
2163 main ()
2164 {
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2174 # of exeext.
2175 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178 #
2179 # List of possible output files, starting from the most likely.
2180 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2181 # only as a last resort. b.out is created by i960 compilers.
2182 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2183 #
2184 # The IRIX 6 linker writes into existing files which may not be
2185 # executable, retaining their permissions. Remove them first so a
2186 # subsequent execution test works.
2187 ac_rmfiles=
2188 for ac_file in $ac_files
2189 do
2190 case $ac_file in
2191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2193 esac
2194 done
2195 rm -f $ac_rmfiles
2197 if { (ac_try="$ac_link_default"
2198 case "(($ac_try" in
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2201 esac
2202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2203 (eval "$ac_link_default") 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2209 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2210 # so that the user can short-circuit this test for compilers unknown to
2211 # Autoconf.
2212 for ac_file in $ac_files
2213 do
2214 test -f "$ac_file" || continue
2215 case $ac_file in
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2217 ;;
2218 [ab].out )
2219 # We found the default executable, but exeext='' is most
2220 # certainly right.
2221 break;;
2222 *.* )
2223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2224 then :; else
2225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226 fi
2227 # We set ac_cv_exeext here because the later test for it is not
2228 # safe: cross compilers may not add the suffix if given an `-o'
2229 # argument, so we may need to know it at that point already.
2230 # Even if this section looks crufty: it has the advantage of
2231 # actually working.
2232 break;;
2233 * )
2234 break;;
2235 esac
2236 done
2237 test "$ac_cv_exeext" = no && ac_cv_exeext=
2239 else
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: C compiler cannot create executables
2246 See \`config.log' for more details." >&2;}
2247 { (exit 77); exit 77; }; }
2248 fi
2250 ac_exeext=$ac_cv_exeext
2251 { echo "$as_me:$LINENO: result: $ac_file" >&5
2252 echo "${ECHO_T}$ac_file" >&6; }
2254 # Check that the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2258 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259 # If not cross compiling, check that we can run a simple program.
2260 if test "$cross_compiling" != yes; then
2261 if { ac_try='./$ac_file'
2262 { (case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265 esac
2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_try") 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 cross_compiling=no
2272 else
2273 if test "$cross_compiling" = maybe; then
2274 cross_compiling=yes
2275 else
2276 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2277 If you meant to cross compile, use \`--host'.
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot run C compiled programs.
2280 If you meant to cross compile, use \`--host'.
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2283 fi
2284 fi
2285 fi
2286 { echo "$as_me:$LINENO: result: yes" >&5
2287 echo "${ECHO_T}yes" >&6; }
2289 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2290 ac_clean_files=$ac_clean_files_save
2291 # Check that the compiler produces executables we can run. If not, either
2292 # the compiler is broken, or we cross compile.
2293 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2294 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2295 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2296 echo "${ECHO_T}$cross_compiling" >&6; }
2298 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2299 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2300 if { (ac_try="$ac_link"
2301 case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304 esac
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 (eval "$ac_link") 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2311 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2312 # work properly (i.e., refer to `conftest.exe'), while it won't with
2313 # `rm'.
2314 for ac_file in conftest.exe conftest conftest.*; do
2315 test -f "$ac_file" || continue
2316 case $ac_file in
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2318 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2319 break;;
2320 * ) break;;
2321 esac
2322 done
2323 else
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2329 fi
2331 rm -f conftest$ac_cv_exeext
2332 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2335 rm -f conftest.$ac_ext
2336 EXEEXT=$ac_cv_exeext
2337 ac_exeext=$EXEEXT
2338 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2340 if test "${ac_cv_objext+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 cat >conftest.$ac_ext <<_ACEOF
2344 /* confdefs.h. */
2345 _ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2350 int
2351 main ()
2352 {
2354 ;
2355 return 0;
2356 }
2357 _ACEOF
2358 rm -f conftest.o conftest.obj
2359 if { (ac_try="$ac_compile"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compile") 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 for ac_file in conftest.o conftest.obj conftest.*; do
2370 test -f "$ac_file" || continue;
2371 case $ac_file in
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2374 break;;
2375 esac
2376 done
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2386 fi
2388 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2389 fi
2390 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391 echo "${ECHO_T}$ac_cv_objext" >&6; }
2392 OBJEXT=$ac_cv_objext
2393 ac_objext=$OBJEXT
2394 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2396 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h. */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2406 int
2407 main ()
2408 {
2409 #ifndef __GNUC__
2410 choke me
2411 #endif
2413 ;
2414 return 0;
2415 }
2416 _ACEOF
2417 rm -f conftest.$ac_objext
2418 if { (ac_try="$ac_compile"
2419 case "(($ac_try" in
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compile") 2>conftest.er1
2425 ac_status=$?
2426 grep -v '^ *+' conftest.er1 >conftest.err
2427 rm -f conftest.er1
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_try") 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_try") 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 ac_compiler_gnu=yes
2452 else
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2456 ac_compiler_gnu=no
2457 fi
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2462 fi
2463 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2464 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2465 GCC=`test $ac_compiler_gnu = yes && echo yes`
2466 ac_test_CFLAGS=${CFLAGS+set}
2467 ac_save_CFLAGS=$CFLAGS
2468 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_cc_g+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473 ac_save_c_werror_flag=$ac_c_werror_flag
2474 ac_c_werror_flag=yes
2475 ac_cv_prog_cc_g=no
2476 CFLAGS="-g"
2477 cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h. */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2484 int
2485 main ()
2486 {
2488 ;
2489 return 0;
2490 }
2491 _ACEOF
2492 rm -f conftest.$ac_objext
2493 if { (ac_try="$ac_compile"
2494 case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497 esac
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2526 ac_cv_prog_cc_g=yes
2527 else
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2531 CFLAGS=""
2532 cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h. */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2539 int
2540 main ()
2541 {
2543 ;
2544 return 0;
2545 }
2546 _ACEOF
2547 rm -f conftest.$ac_objext
2548 if { (ac_try="$ac_compile"
2549 case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552 esac
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compile") 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 :
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 ac_c_werror_flag=$ac_save_c_werror_flag
2587 CFLAGS="-g"
2588 cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h. */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2595 int
2596 main ()
2597 {
2599 ;
2600 return 0;
2601 }
2602 _ACEOF
2603 rm -f conftest.$ac_objext
2604 if { (ac_try="$ac_compile"
2605 case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608 esac
2609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610 (eval "$ac_compile") 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2618 { (case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_try") 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631 esac
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_try") 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2637 ac_cv_prog_cc_g=yes
2638 else
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2643 fi
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 fi
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 fi
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 ac_c_werror_flag=$ac_save_c_werror_flag
2653 fi
2654 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2656 if test "$ac_test_CFLAGS" = set; then
2657 CFLAGS=$ac_save_CFLAGS
2658 elif test $ac_cv_prog_cc_g = yes; then
2659 if test "$GCC" = yes; then
2660 CFLAGS="-g -O2"
2661 else
2662 CFLAGS="-g"
2663 fi
2664 else
2665 if test "$GCC" = yes; then
2666 CFLAGS="-O2"
2667 else
2668 CFLAGS=
2669 fi
2670 fi
2671 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2672 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_cc_c89+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676 ac_cv_prog_cc_c89=no
2677 ac_save_CC=$CC
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2684 #include <stdarg.h>
2685 #include <stdio.h>
2686 #include <sys/types.h>
2687 #include <sys/stat.h>
2688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2689 struct buf { int x; };
2690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691 static char *e (p, i)
2692 char **p;
2693 int i;
2694 {
2695 return p[i];
2696 }
2697 static char *f (char * (*g) (char **, int), char **p, ...)
2698 {
2699 char *s;
2700 va_list v;
2701 va_start (v,p);
2702 s = g (p, va_arg (v,int));
2703 va_end (v);
2704 return s;
2705 }
2707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2708 function prototypes and stuff, but not '\xHH' hex character constants.
2709 These don't provoke an error unfortunately, instead are silently treated
2710 as 'x'. The following induces an error, until -std is added to get
2711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2712 array size at least. It's necessary to write '\x00'==0 to get something
2713 that's true only with -std. */
2714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2717 inside strings and character constants. */
2718 #define FOO(x) 'x'
2719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 int argc;
2726 char **argv;
2727 int
2728 main ()
2729 {
2730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2731 ;
2732 return 0;
2733 }
2734 _ACEOF
2735 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2737 do
2738 CC="$ac_save_CC $ac_arg"
2739 rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2741 case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compile") 2>conftest.er1
2747 ac_status=$?
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754 { (case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_try") 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_try") 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 ac_cv_prog_cc_c89=$ac_arg
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2779 fi
2781 rm -f core conftest.err conftest.$ac_objext
2782 test "x$ac_cv_prog_cc_c89" != "xno" && break
2783 done
2784 rm -f conftest.$ac_ext
2785 CC=$ac_save_CC
2787 fi
2788 # AC_CACHE_VAL
2789 case "x$ac_cv_prog_cc_c89" in
2790 x)
2791 { echo "$as_me:$LINENO: result: none needed" >&5
2792 echo "${ECHO_T}none needed" >&6; } ;;
2793 xno)
2794 { echo "$as_me:$LINENO: result: unsupported" >&5
2795 echo "${ECHO_T}unsupported" >&6; } ;;
2796 *)
2797 CC="$CC $ac_cv_prog_cc_c89"
2798 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2799 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2800 esac
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 ac_ext=cpp
2810 ac_cpp='$CXXCPP $CPPFLAGS'
2811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2814 if test -z "$CXX"; then
2815 if test -n "$CCC"; then
2816 CXX=$CCC
2817 else
2818 if test -n "$ac_tool_prefix"; then
2819 for ac_prog in clang++ g++
2820 do
2821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CXX+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 if test -n "$CXX"; then
2829 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2846 fi
2847 fi
2848 CXX=$ac_cv_prog_CXX
2849 if test -n "$CXX"; then
2850 { echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6; }
2852 else
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2855 fi
2858 test -n "$CXX" && break
2859 done
2860 fi
2861 if test -z "$CXX"; then
2862 ac_ct_CXX=$CXX
2863 for ac_prog in clang++ g++
2864 do
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 if test -n "$ac_ct_CXX"; then
2873 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_ac_ct_CXX="$ac_prog"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886 done
2887 done
2888 IFS=$as_save_IFS
2890 fi
2891 fi
2892 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2893 if test -n "$ac_ct_CXX"; then
2894 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2895 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2896 else
2897 { echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6; }
2899 fi
2902 test -n "$ac_ct_CXX" && break
2903 done
2905 if test "x$ac_ct_CXX" = x; then
2906 CXX="g++"
2907 else
2908 case $cross_compiling:$ac_tool_warned in
2909 yes:)
2910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2911 whose name does not start with the host triplet. If you think this
2912 configuration is useful to you, please write to autoconf@gnu.org." >&5
2913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2914 whose name does not start with the host triplet. If you think this
2915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2916 ac_tool_warned=yes ;;
2917 esac
2918 CXX=$ac_ct_CXX
2919 fi
2920 fi
2922 fi
2923 fi
2924 # Provide some information about the compiler.
2925 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2926 ac_compiler=`set X $ac_compile; echo $2`
2927 { (ac_try="$ac_compiler --version >&5"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compiler --version >&5") 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -v >&5"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler -v >&5") 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (ac_try="$ac_compiler -V >&5"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compiler -V >&5") 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2958 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2959 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2960 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2970 int
2971 main ()
2972 {
2973 #ifndef __GNUC__
2974 choke me
2975 #endif
2977 ;
2978 return 0;
2979 }
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (ac_try="$ac_compile"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; } &&
3005 { ac_try='test -s conftest.$ac_objext'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_try") 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 ac_compiler_gnu=yes
3016 else
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 ac_compiler_gnu=no
3021 fi
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3026 fi
3027 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3028 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3029 GXX=`test $ac_compiler_gnu = yes && echo yes`
3030 ac_test_CXXFLAGS=${CXXFLAGS+set}
3031 ac_save_CXXFLAGS=$CXXFLAGS
3032 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3033 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_cxx_g+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3038 ac_cxx_werror_flag=yes
3039 ac_cv_prog_cxx_g=no
3040 CXXFLAGS="-g"
3041 cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h. */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3048 int
3049 main ()
3050 {
3052 ;
3053 return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 ac_cv_prog_cxx_g=yes
3091 else
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 CXXFLAGS=""
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3103 int
3104 main ()
3105 {
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 :
3146 else
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3151 CXXFLAGS="-g"
3152 cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h. */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3159 int
3160 main ()
3161 {
3163 ;
3164 return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3169 case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_cv_prog_cxx_g=yes
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3207 fi
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 fi
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 fi
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3217 fi
3218 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3219 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3220 if test "$ac_test_CXXFLAGS" = set; then
3221 CXXFLAGS=$ac_save_CXXFLAGS
3222 elif test $ac_cv_prog_cxx_g = yes; then
3223 if test "$GXX" = yes; then
3224 CXXFLAGS="-g -O2"
3225 else
3226 CXXFLAGS="-g"
3227 fi
3228 else
3229 if test "$GXX" = yes; then
3230 CXXFLAGS="-O2"
3231 else
3232 CXXFLAGS=
3233 fi
3234 fi
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 ac_ext=c
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3247 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3248 # On Suns, sometimes $CPP names a directory.
3249 if test -n "$CPP" && test -d "$CPP"; then
3250 CPP=
3251 fi
3252 if test -z "$CPP"; then
3253 if test "${ac_cv_prog_CPP+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 # Double quotes because CPP needs to be expanded
3257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3258 do
3259 ac_preproc_ok=false
3260 for ac_c_preproc_warn_flag in '' yes
3261 do
3262 # Use a header file that comes with gcc, so configuring glibc
3263 # with a fresh cross-compiler works.
3264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3265 # <limits.h> exists even on freestanding compilers.
3266 # On the NeXT, cc -E runs the code through the compiler's parser,
3267 # not just through cpp. "Syntax error" is here to catch this case.
3268 cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h. */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3274 #ifdef __STDC__
3275 # include <limits.h>
3276 #else
3277 # include <assert.h>
3278 #endif
3279 Syntax error
3280 _ACEOF
3281 if { (ac_try="$ac_cpp conftest.$ac_ext"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3288 ac_status=$?
3289 grep -v '^ *+' conftest.er1 >conftest.err
3290 rm -f conftest.er1
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null; then
3294 if test -s conftest.err; then
3295 ac_cpp_err=$ac_c_preproc_warn_flag
3296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297 else
3298 ac_cpp_err=
3299 fi
3300 else
3301 ac_cpp_err=yes
3302 fi
3303 if test -z "$ac_cpp_err"; then
3304 :
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 # Broken: fails on valid input.
3310 continue
3311 fi
3313 rm -f conftest.err conftest.$ac_ext
3315 # OK, works on sane cases. Now check whether nonexistent headers
3316 # can be detected and how.
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 #include <ac_nonexistent.h>
3324 _ACEOF
3325 if { (ac_try="$ac_cpp conftest.$ac_ext"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_c_preproc_warn_flag
3340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3341 else
3342 ac_cpp_err=
3343 fi
3344 else
3345 ac_cpp_err=yes
3346 fi
3347 if test -z "$ac_cpp_err"; then
3348 # Broken: success on invalid input.
3349 continue
3350 else
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 # Passes both tests.
3355 ac_preproc_ok=:
3356 break
3357 fi
3359 rm -f conftest.err conftest.$ac_ext
3361 done
3362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363 rm -f conftest.err conftest.$ac_ext
3364 if $ac_preproc_ok; then
3365 break
3366 fi
3368 done
3369 ac_cv_prog_CPP=$CPP
3371 fi
3372 CPP=$ac_cv_prog_CPP
3373 else
3374 ac_cv_prog_CPP=$CPP
3375 fi
3376 { echo "$as_me:$LINENO: result: $CPP" >&5
3377 echo "${ECHO_T}$CPP" >&6; }
3378 ac_preproc_ok=false
3379 for ac_c_preproc_warn_flag in '' yes
3380 do
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 #ifdef __STDC__
3394 # include <limits.h>
3395 #else
3396 # include <assert.h>
3397 #endif
3398 Syntax error
3399 _ACEOF
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416 else
3417 ac_cpp_err=
3418 fi
3419 else
3420 ac_cpp_err=yes
3421 fi
3422 if test -z "$ac_cpp_err"; then
3423 :
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 # Broken: fails on valid input.
3429 continue
3430 fi
3432 rm -f conftest.err conftest.$ac_ext
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <ac_nonexistent.h>
3443 _ACEOF
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3462 fi
3463 else
3464 ac_cpp_err=yes
3465 fi
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3468 continue
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3474 ac_preproc_ok=:
3475 break
3476 fi
3478 rm -f conftest.err conftest.$ac_ext
3480 done
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3484 :
3485 else
3486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3491 fi
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 if test "$CXX" = "clang++" ; then
3501 { echo "$as_me:$LINENO: checking whether clang works" >&5
3502 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3503 ac_ext=cpp
3504 ac_cpp='$CXXCPP $CPPFLAGS'
3505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #include <limits>
3517 #if __has_include (<cxxabi.h>)
3518 #include <cxxabi.h>
3519 #endif
3520 #if __has_include (<unwind.h>)
3521 #include <unwind.h>
3522 #endif
3524 int
3525 main ()
3526 {
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3567 { echo "$as_me:$LINENO: result: yes" >&5
3568 echo "${ECHO_T}yes" >&6; }
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3575 { echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6; }
3577 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3578 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3579 { (exit 1); exit 1; }; }
3581 fi
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 ac_ext=c
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 fi
3592 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3593 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3594 ac_ext=cpp
3595 ac_cpp='$CXXCPP $CPPFLAGS'
3596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3600 llvm_cv_cxx_compiler=unknown
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #if ! __clang__
3608 #error
3609 #endif
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3627 { (case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_try") 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 llvm_cv_cxx_compiler=clang
3647 else
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657 #if ! __GNUC__
3658 #error
3659 #endif
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_compile") 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3686 { ac_try='test -s conftest.$ac_objext'
3687 { (case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_try") 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3696 llvm_cv_cxx_compiler=gcc
3697 else
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3702 fi
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 fi
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3715 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3719 if test -d ${srcdir}/projects/test-suite ; then
3720 subdirs="$subdirs projects/test-suite"
3722 fi
3724 if test -d ${srcdir}/projects/llvm-test ; then
3725 subdirs="$subdirs projects/llvm-test"
3727 fi
3729 if test -d ${srcdir}/projects/poolalloc ; then
3730 subdirs="$subdirs projects/poolalloc"
3732 fi
3734 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3735 subdirs="$subdirs projects/llvm-poolalloc"
3737 fi
3739 for i in `ls ${srcdir}/projects`
3740 do
3741 if test -d ${srcdir}/projects/${i} ; then
3742 case ${i} in
3743 safecode) subdirs="$subdirs projects/safecode"
3744 ;;
3745 compiler-rt) ;;
3746 test-suite) ;;
3747 llvm-test) ;;
3748 poolalloc) ;;
3749 llvm-poolalloc) ;;
3750 *)
3751 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3752 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3753 ;;
3754 esac
3755 fi
3756 done
3758 # Check whether --enable-polly was given.
3759 if test "${enable_polly+set}" = set; then
3760 enableval=$enable_polly;
3761 else
3762 enableval=default
3763 fi
3765 case "$enableval" in
3766 yes) ENABLE_POLLY=1
3767 ;;
3768 no) ENABLE_POLLY=0
3769 ;;
3770 default) ENABLE_POLLY=1
3771 ;;
3772 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3773 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3774 { (exit 1); exit 1; }; } ;;
3775 esac
3778 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3779 LLVM_HAS_POLLY=1
3781 subdirs="$subdirs tools/polly"
3783 fi
3786 # Make sure we can run config.sub.
3787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3788 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3789 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3790 { (exit 1); exit 1; }; }
3792 { echo "$as_me:$LINENO: checking build system type" >&5
3793 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3794 if test "${ac_cv_build+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797 ac_build_alias=$build_alias
3798 test "x$ac_build_alias" = x &&
3799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3800 test "x$ac_build_alias" = x &&
3801 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3802 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3803 { (exit 1); exit 1; }; }
3804 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3807 { (exit 1); exit 1; }; }
3809 fi
3810 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3811 echo "${ECHO_T}$ac_cv_build" >&6; }
3812 case $ac_cv_build in
3813 *-*-*) ;;
3814 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3815 echo "$as_me: error: invalid value of canonical build" >&2;}
3816 { (exit 1); exit 1; }; };;
3817 esac
3818 build=$ac_cv_build
3819 ac_save_IFS=$IFS; IFS='-'
3820 set x $ac_cv_build
3821 shift
3822 build_cpu=$1
3823 build_vendor=$2
3824 shift; shift
3825 # Remember, the first character of IFS is used to create $*,
3826 # except with old shells:
3827 build_os=$*
3828 IFS=$ac_save_IFS
3829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3832 { echo "$as_me:$LINENO: checking host system type" >&5
3833 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3834 if test "${ac_cv_host+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 if test "x$host_alias" = x; then
3838 ac_cv_host=$ac_cv_build
3839 else
3840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3841 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3842 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3843 { (exit 1); exit 1; }; }
3844 fi
3846 fi
3847 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3848 echo "${ECHO_T}$ac_cv_host" >&6; }
3849 case $ac_cv_host in
3850 *-*-*) ;;
3851 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3852 echo "$as_me: error: invalid value of canonical host" >&2;}
3853 { (exit 1); exit 1; }; };;
3854 esac
3855 host=$ac_cv_host
3856 ac_save_IFS=$IFS; IFS='-'
3857 set x $ac_cv_host
3858 shift
3859 host_cpu=$1
3860 host_vendor=$2
3861 shift; shift
3862 # Remember, the first character of IFS is used to create $*,
3863 # except with old shells:
3864 host_os=$*
3865 IFS=$ac_save_IFS
3866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3869 { echo "$as_me:$LINENO: checking target system type" >&5
3870 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3871 if test "${ac_cv_target+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 if test "x$target_alias" = x; then
3875 ac_cv_target=$ac_cv_host
3876 else
3877 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3878 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3879 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3880 { (exit 1); exit 1; }; }
3881 fi
3883 fi
3884 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3885 echo "${ECHO_T}$ac_cv_target" >&6; }
3886 case $ac_cv_target in
3887 *-*-*) ;;
3888 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3889 echo "$as_me: error: invalid value of canonical target" >&2;}
3890 { (exit 1); exit 1; }; };;
3891 esac
3892 target=$ac_cv_target
3893 ac_save_IFS=$IFS; IFS='-'
3894 set x $ac_cv_target
3895 shift
3896 target_cpu=$1
3897 target_vendor=$2
3898 shift; shift
3899 # Remember, the first character of IFS is used to create $*,
3900 # except with old shells:
3901 target_os=$*
3902 IFS=$ac_save_IFS
3903 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3906 # The aliases save the names the user supplied, while $host etc.
3907 # will get canonicalized.
3908 test -n "$target_alias" &&
3909 test "$program_prefix$program_suffix$program_transform_name" = \
3910 NONENONEs,x,x, &&
3911 program_prefix=${target_alias}-
3913 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3914 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3915 if test "${llvm_cv_os_type+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 case $host in
3919 *-*-aix*)
3920 llvm_cv_link_all_option="-Wl,--whole-archive"
3921 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922 llvm_cv_os_type="AIX"
3923 llvm_cv_platform_type="Unix" ;;
3924 *-*-irix*)
3925 llvm_cv_link_all_option="-Wl,--whole-archive"
3926 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927 llvm_cv_os_type="IRIX"
3928 llvm_cv_platform_type="Unix" ;;
3929 *-*-cygwin*)
3930 llvm_cv_link_all_option="-Wl,--whole-archive"
3931 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932 llvm_cv_os_type="Cygwin"
3933 llvm_cv_platform_type="Unix" ;;
3934 *-*-darwin*)
3935 llvm_cv_link_all_option="-Wl,-all_load"
3936 llvm_cv_no_link_all_option="-Wl,-noall_load"
3937 llvm_cv_os_type="Darwin"
3938 llvm_cv_platform_type="Unix" ;;
3939 *-*-minix*)
3940 llvm_cv_link_all_option="-Wl,-all_load"
3941 llvm_cv_no_link_all_option="-Wl,-noall_load"
3942 llvm_cv_os_type="Minix"
3943 llvm_cv_platform_type="Unix" ;;
3944 *-*-freebsd*)
3945 llvm_cv_link_all_option="-Wl,--whole-archive"
3946 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947 llvm_cv_os_type="FreeBSD"
3948 llvm_cv_platform_type="Unix" ;;
3949 *-*-kfreebsd-gnu)
3950 llvm_cv_link_all_option="-Wl,--whole-archive"
3951 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952 llvm_cv_os_type="GNU/kFreeBSD"
3953 llvm_cv_platform_type="Unix" ;;
3954 *-*-openbsd*)
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="OpenBSD"
3958 llvm_cv_platform_type="Unix" ;;
3959 *-*-netbsd*)
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="NetBSD"
3963 llvm_cv_platform_type="Unix" ;;
3964 *-*-dragonfly*)
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="DragonFly"
3968 llvm_cv_platform_type="Unix" ;;
3969 *-*-hpux*)
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="HP-UX"
3973 llvm_cv_platform_type="Unix" ;;
3974 *-*-interix*)
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="Interix"
3978 llvm_cv_platform_type="Unix" ;;
3979 *-*-linux*)
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="Linux"
3983 llvm_cv_platform_type="Unix" ;;
3984 *-*-gnu*)
3985 llvm_cv_link_all_option="-Wl,--whole-archive"
3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987 llvm_cv_os_type="GNU"
3988 llvm_cv_platform_type="Unix" ;;
3989 *-*-solaris*)
3990 llvm_cv_link_all_option="-Wl,-z,allextract"
3991 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3992 llvm_cv_os_type="SunOS"
3993 llvm_cv_platform_type="Unix" ;;
3994 *-*-win32*)
3995 llvm_cv_link_all_option="-Wl,--whole-archive"
3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997 llvm_cv_os_type="Win32"
3998 llvm_cv_platform_type="Win32" ;;
3999 *-*-mingw*)
4000 llvm_cv_link_all_option="-Wl,--whole-archive"
4001 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002 llvm_cv_os_type="MingW"
4003 llvm_cv_platform_type="Win32" ;;
4004 *-*-haiku*)
4005 llvm_cv_link_all_option="-Wl,--whole-archive"
4006 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007 llvm_cv_os_type="Haiku"
4008 llvm_cv_platform_type="Unix" ;;
4009 *-unknown-eabi*)
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Freestanding"
4013 llvm_cv_platform_type="Unix" ;;
4014 *-unknown-elf*)
4015 llvm_cv_link_all_option="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="Freestanding"
4018 llvm_cv_platform_type="Unix" ;;
4019 *)
4020 llvm_cv_link_all_option=""
4021 llvm_cv_no_link_all_option=""
4022 llvm_cv_os_type="Unknown"
4023 llvm_cv_platform_type="Unknown" ;;
4024 esac
4025 fi
4026 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4027 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4029 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4030 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4031 if test "${llvm_cv_target_os_type+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034 case $target in
4035 *-*-aix*)
4036 llvm_cv_target_os_type="AIX" ;;
4037 *-*-irix*)
4038 llvm_cv_target_os_type="IRIX" ;;
4039 *-*-cygwin*)
4040 llvm_cv_target_os_type="Cygwin" ;;
4041 *-*-darwin*)
4042 llvm_cv_target_os_type="Darwin" ;;
4043 *-*-minix*)
4044 llvm_cv_target_os_type="Minix" ;;
4045 *-*-freebsd*)
4046 llvm_cv_target_os_type="FreeBSD" ;;
4047 *-*-kfreebsd-gnu)
4048 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4049 *-*-openbsd*)
4050 llvm_cv_target_os_type="OpenBSD" ;;
4051 *-*-netbsd*)
4052 llvm_cv_target_os_type="NetBSD" ;;
4053 *-*-dragonfly*)
4054 llvm_cv_target_os_type="DragonFly" ;;
4055 *-*-hpux*)
4056 llvm_cv_target_os_type="HP-UX" ;;
4057 *-*-interix*)
4058 llvm_cv_target_os_type="Interix" ;;
4059 *-*-linux*)
4060 llvm_cv_target_os_type="Linux" ;;
4061 *-*-gnu*)
4062 llvm_cv_target_os_type="GNU" ;;
4063 *-*-solaris*)
4064 llvm_cv_target_os_type="SunOS" ;;
4065 *-*-win32*)
4066 llvm_cv_target_os_type="Win32" ;;
4067 *-*-mingw*)
4068 llvm_cv_target_os_type="MingW" ;;
4069 *-*-haiku*)
4070 llvm_cv_target_os_type="Haiku" ;;
4071 *-*-rtems*)
4072 llvm_cv_target_os_type="RTEMS" ;;
4073 *-*-nacl*)
4074 llvm_cv_target_os_type="NativeClient" ;;
4075 *-unknown-eabi*)
4076 llvm_cv_target_os_type="Freestanding" ;;
4077 *)
4078 llvm_cv_target_os_type="Unknown" ;;
4079 esac
4080 fi
4081 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4082 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4084 if test "$llvm_cv_os_type" = "Unknown" ; then
4085 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4086 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4087 { (exit 1); exit 1; }; }
4088 fi
4090 OS=$llvm_cv_os_type
4092 HOST_OS=$llvm_cv_os_type
4094 TARGET_OS=$llvm_cv_target_os_type
4097 LINKALL=$llvm_cv_link_all_option
4099 NOLINKALL=$llvm_cv_no_link_all_option
4102 case $llvm_cv_platform_type in
4103 Unix)
4105 cat >>confdefs.h <<\_ACEOF
4106 #define LLVM_ON_UNIX 1
4107 _ACEOF
4109 LLVM_ON_UNIX=1
4111 LLVM_ON_WIN32=0
4113 ;;
4114 Win32)
4116 cat >>confdefs.h <<\_ACEOF
4117 #define LLVM_ON_WIN32 1
4118 _ACEOF
4120 LLVM_ON_UNIX=0
4122 LLVM_ON_WIN32=1
4124 ;;
4125 esac
4127 { echo "$as_me:$LINENO: checking target architecture" >&5
4128 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4129 if test "${llvm_cv_target_arch+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 case $target in
4133 i?86-*) llvm_cv_target_arch="x86" ;;
4134 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4135 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4136 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4137 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4138 arm*-*) llvm_cv_target_arch="ARM" ;;
4139 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4140 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4141 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4142 xcore-*) llvm_cv_target_arch="XCore" ;;
4143 msp430-*) llvm_cv_target_arch="MSP430" ;;
4144 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4145 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4146 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4147 *) llvm_cv_target_arch="Unknown" ;;
4148 esac
4149 fi
4150 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4151 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4153 if test "$llvm_cv_target_arch" = "Unknown" ; then
4154 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4155 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4156 fi
4158 case "$llvm_cv_target_arch" in
4159 x86) LLVM_NATIVE_ARCH="X86" ;;
4160 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4161 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4162 esac
4164 ARCH=$llvm_cv_target_arch
4166 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4169 case $host in
4170 i?86-*) host_arch="x86" ;;
4171 amd64-* | x86_64-*) host_arch="x86_64" ;;
4172 sparc*-*) host_arch="Sparc" ;;
4173 powerpc*-*) host_arch="PowerPC" ;;
4174 arm64*-*) host_arch="AArch64" ;;
4175 arm*-*) host_arch="ARM" ;;
4176 aarch64*-*) host_arch="AArch64" ;;
4177 mips-* | mips64-*) host_arch="Mips" ;;
4178 mipsel-* | mips64el-*) host_arch="Mips" ;;
4179 xcore-*) host_arch="XCore" ;;
4180 msp430-*) host_arch="MSP430" ;;
4181 hexagon-*) host_arch="Hexagon" ;;
4182 s390x-*) host_arch="SystemZ" ;;
4183 *) host_arch="Unknown" ;;
4184 esac
4186 if test "$host_arch" = "Unknown" ; then
4187 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4188 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4189 fi
4191 HOST_ARCH=$host_arch
4194 if test "$cross_compiling" = yes; then
4195 LLVM_CROSS_COMPILING=1
4198 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4199 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4200 if test "${ac_cv_build_exeext+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4204 ac_cv_build_exeext=.exe
4205 else
4206 ac_build_prefix=${build_alias}-
4208 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4209 set dummy ${ac_build_prefix}gcc; ac_word=$2
4210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4212 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215 if test -n "$BUILD_CC"; then
4216 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229 done
4230 done
4231 IFS=$as_save_IFS
4233 fi
4234 fi
4235 BUILD_CC=$ac_cv_prog_BUILD_CC
4236 if test -n "$BUILD_CC"; then
4237 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4238 echo "${ECHO_T}$BUILD_CC" >&6; }
4239 else
4240 { echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6; }
4242 fi
4245 if test -z "$BUILD_CC"; then
4246 # Extract the first word of "gcc", so it can be a program name with args.
4247 set dummy gcc; ac_word=$2
4248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253 if test -n "$BUILD_CC"; then
4254 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_BUILD_CC="gcc"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4266 fi
4267 done
4268 done
4269 IFS=$as_save_IFS
4271 fi
4272 fi
4273 BUILD_CC=$ac_cv_prog_BUILD_CC
4274 if test -n "$BUILD_CC"; then
4275 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4276 echo "${ECHO_T}$BUILD_CC" >&6; }
4277 else
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4280 fi
4283 if test -z "$BUILD_CC"; then
4284 # Extract the first word of "cc", so it can be a program name with args.
4285 set dummy cc; ac_word=$2
4286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4288 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291 if test -n "$BUILD_CC"; then
4292 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4293 else
4294 ac_prog_rejected=no
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4303 ac_prog_rejected=yes
4304 continue
4305 fi
4306 ac_cv_prog_BUILD_CC="cc"
4307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4309 fi
4310 done
4311 done
4312 IFS=$as_save_IFS
4314 if test $ac_prog_rejected = yes; then
4315 # We found a bogon in the path, so make sure we never use it.
4316 set dummy $ac_cv_prog_BUILD_CC
4317 shift
4318 if test $# != 0; then
4319 # We chose a different compiler from the bogus one.
4320 # However, it has the same basename, so the bogon will be chosen
4321 # first if we set BUILD_CC to just the basename; use the full file name.
4322 shift
4323 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4324 fi
4325 fi
4326 fi
4327 fi
4328 BUILD_CC=$ac_cv_prog_BUILD_CC
4329 if test -n "$BUILD_CC"; then
4330 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4331 echo "${ECHO_T}$BUILD_CC" >&6; }
4332 else
4333 { echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6; }
4335 fi
4338 fi
4339 fi
4340 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4341 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4342 { (exit 1); exit 1; }; }
4343 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4344 rm -f conftest*
4345 echo 'int main () { return 0; }' > conftest.$ac_ext
4346 ac_cv_build_exeext=
4347 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4348 (eval $ac_build_link) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; then
4352 for file in conftest.*; do
4353 case $file in
4354 *.c | *.o | *.obj | *.dSYM) ;;
4355 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4356 esac
4357 done
4358 else
4359 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4360 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4361 { (exit 1); exit 1; }; }
4362 fi
4363 rm -f conftest*
4364 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4365 fi
4366 fi
4368 BUILD_EXEEXT=""
4369 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4370 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4371 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4372 ac_build_exeext=$BUILD_EXEEXT
4374 ac_build_prefix=${build_alias}-
4375 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4376 set dummy ${ac_build_prefix}g++; ac_word=$2
4377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 if test -n "$BUILD_CXX"; then
4383 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4395 fi
4396 done
4397 done
4398 IFS=$as_save_IFS
4400 fi
4401 fi
4402 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4403 if test -n "$BUILD_CXX"; then
4404 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4405 echo "${ECHO_T}$BUILD_CXX" >&6; }
4406 else
4407 { echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6; }
4409 fi
4412 if test -z "$BUILD_CXX"; then
4413 # Extract the first word of "g++", so it can be a program name with args.
4414 set dummy g++; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 if test -n "$BUILD_CXX"; then
4421 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_BUILD_CXX="g++"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434 done
4435 done
4436 IFS=$as_save_IFS
4438 fi
4439 fi
4440 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4441 if test -n "$BUILD_CXX"; then
4442 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4443 echo "${ECHO_T}$BUILD_CXX" >&6; }
4444 else
4445 { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4447 fi
4450 if test -z "$BUILD_CXX"; then
4451 # Extract the first word of "c++", so it can be a program name with args.
4452 set dummy c++; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 if test -n "$BUILD_CXX"; then
4459 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4460 else
4461 ac_prog_rejected=no
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4470 ac_prog_rejected=yes
4471 continue
4472 fi
4473 ac_cv_prog_BUILD_CXX="c++"
4474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4481 if test $ac_prog_rejected = yes; then
4482 # We found a bogon in the path, so make sure we never use it.
4483 set dummy $ac_cv_prog_BUILD_CXX
4484 shift
4485 if test $# != 0; then
4486 # We chose a different compiler from the bogus one.
4487 # However, it has the same basename, so the bogon will be chosen
4488 # first if we set BUILD_CXX to just the basename; use the full file name.
4489 shift
4490 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4491 fi
4492 fi
4493 fi
4494 fi
4495 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4496 if test -n "$BUILD_CXX"; then
4497 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4498 echo "${ECHO_T}$BUILD_CXX" >&6; }
4499 else
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4502 fi
4505 fi
4506 fi
4507 else
4508 LLVM_CROSS_COMPILING=0
4510 fi
4512 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4513 cvsbuild="yes"
4514 optimize="no"
4515 CVSBUILD=CVSBUILD=1
4517 else
4518 cvsbuild="no"
4519 optimize="yes"
4520 fi
4523 # Check whether --enable-libcpp was given.
4524 if test "${enable_libcpp+set}" = set; then
4525 enableval=$enable_libcpp;
4526 else
4527 enableval=default
4528 fi
4530 case "$enableval" in
4531 yes) ENABLE_LIBCPP=1
4532 ;;
4533 no) ENABLE_LIBCPP=0
4534 ;;
4535 default) ENABLE_LIBCPP=0
4536 ;;
4537 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4538 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4539 { (exit 1); exit 1; }; } ;;
4540 esac
4542 # Check whether --enable-compiler-version-checks was given.
4543 if test "${enable_compiler_version_checks+set}" = set; then
4544 enableval=$enable_compiler_version_checks;
4545 else
4546 enableval=default
4547 fi
4549 case "$enableval" in
4550 no)
4551 ;;
4552 yes|default)
4553 ac_ext=cpp
4554 ac_cpp='$CXXCPP $CPPFLAGS'
4555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4559 case "$llvm_cv_cxx_compiler" in
4560 clang)
4561 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4562 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4570 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4571 #error This version of Clang is too old to build LLVM
4572 #endif
4574 _ACEOF
4575 rm -f conftest.$ac_objext
4576 if { (ac_try="$ac_compile"
4577 case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580 esac
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_compile") 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4590 { (case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_try") 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_try") 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 { echo "$as_me:$LINENO: result: yes" >&5
4610 echo "${ECHO_T}yes" >&6; }
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4617 { { echo "$as_me:$LINENO: error:
4618 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4619 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4620 bypass these sanity checks." >&5
4621 echo "$as_me: error:
4622 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4623 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4624 bypass these sanity checks." >&2;}
4625 { (exit 1); exit 1; }; }
4626 fi
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 if test "$ENABLE_LIBCPP" -eq 0 ; then
4631 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4632 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4633 llvm_cv_old_cxxflags="$CXXFLAGS"
4634 CXXFLAGS="$CXXFLAGS -std=c++0x"
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4642 #include <atomic>
4643 std::atomic<float> x(0.0f);
4644 int main() { return (float)x; }
4646 _ACEOF
4647 rm -f conftest.$ac_objext conftest$ac_exeext
4648 if { (ac_try="$ac_link"
4649 case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652 esac
4653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654 (eval "$ac_link") 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4662 { (case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665 esac
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_try") 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; } &&
4671 { ac_try='test -s conftest$ac_exeext'
4672 { (case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675 esac
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677 (eval "$ac_try") 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 { echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6; }
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4689 { { echo "$as_me:$LINENO: error:
4690 We detected a missing feature in the standard C++ library that was known to be
4691 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4692 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4693 than 4.7. You will need to update your system and ensure Clang uses the newer
4694 standard library.
4696 If this error is incorrect or you need to force things to work, you may pass
4697 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4698 echo "$as_me: error:
4699 We detected a missing feature in the standard C++ library that was known to be
4700 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4701 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4702 than 4.7. You will need to update your system and ensure Clang uses the newer
4703 standard library.
4705 If this error is incorrect or you need to force things to work, you may pass
4706 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4707 { (exit 1); exit 1; }; }
4708 fi
4710 rm -f core conftest.err conftest.$ac_objext \
4711 conftest$ac_exeext conftest.$ac_ext
4712 CXXFLAGS="$llvm_cv_old_cxxflags"
4713 fi
4714 ;;
4715 gcc)
4716 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4717 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4725 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4726 #error This version of GCC is too old to build LLVM
4727 #endif
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (ac_try="$ac_compile"
4732 case "(($ac_try" in
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4735 esac
4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737 (eval "$ac_compile") 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4745 { (case "(($ac_try" in
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4748 esac
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750 (eval "$ac_try") 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_try") 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 { echo "$as_me:$LINENO: result: yes" >&5
4765 echo "${ECHO_T}yes" >&6; }
4766 else
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4772 { { echo "$as_me:$LINENO: error:
4773 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4774 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4775 bypass these sanity checks." >&5
4776 echo "$as_me: error:
4777 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4778 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4779 bypass these sanity checks." >&2;}
4780 { (exit 1); exit 1; }; }
4781 fi
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 ;;
4785 unknown)
4786 ;;
4787 esac
4788 ac_ext=c
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794 ;;
4795 *)
4796 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4797 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4798 { (exit 1); exit 1; }; }
4799 ;;
4800 esac
4802 # Check whether --enable-cxx1y was given.
4803 if test "${enable_cxx1y+set}" = set; then
4804 enableval=$enable_cxx1y;
4805 else
4806 enableval=default
4807 fi
4809 case "$enableval" in
4810 yes) ENABLE_CXX1Y=1
4811 ;;
4812 no) ENABLE_CXX1Y=0
4813 ;;
4814 default) ENABLE_CXX1Y=0
4815 ;;
4816 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4817 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4818 { (exit 1); exit 1; }; } ;;
4819 esac
4821 # Check whether --enable-split-dwarf was given.
4822 if test "${enable_split_dwarf+set}" = set; then
4823 enableval=$enable_split_dwarf;
4824 else
4825 enableval=default
4826 fi
4828 case "$enableval" in
4829 yes) ENABLE_SPLIT_DWARF=1
4830 ;;
4831 no) ENABLE_SPLIT_DWARF=0
4832 ;;
4833 default) ENABLE_SPLIT_DWARF=0
4834 ;;
4835 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4836 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4837 { (exit 1); exit 1; }; } ;;
4838 esac
4840 clang_arcmt="yes"
4841 # Check whether --enable-clang-arcmt was given.
4842 if test "${enable_clang_arcmt+set}" = set; then
4843 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4844 else
4845 enableval="yes"
4846 fi
4848 case "$enableval" in
4849 yes) ENABLE_CLANG_ARCMT=1
4850 ;;
4851 no) ENABLE_CLANG_ARCMT=0
4852 ;;
4853 default) ENABLE_CLANG_ARCMT=1
4854 ;;
4855 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4856 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4857 { (exit 1); exit 1; }; } ;;
4858 esac
4860 clang_plugin_support="yes"
4861 # Check whether --enable-clang-plugin-support was given.
4862 if test "${enable_clang_plugin_support+set}" = set; then
4863 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4864 else
4865 enableval="yes"
4866 fi
4868 case "$enableval" in
4869 yes) CLANG_PLUGIN_SUPPORT=1
4870 ;;
4871 no) CLANG_PLUGIN_SUPPORT=0
4872 ;;
4873 default) CLANG_PLUGIN_SUPPORT=1
4874 ;;
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4878 esac
4880 clang_static_analyzer="yes"
4881 # Check whether --enable-clang-static-analyzer was given.
4882 if test "${enable_clang_static_analyzer+set}" = set; then
4883 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4884 else
4885 enableval="yes"
4886 fi
4888 case "$enableval" in
4889 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4890 ;;
4891 no)
4892 if test ${clang_arcmt} != "no" ; then
4893 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4894 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4895 { (exit 1); exit 1; }; }
4896 fi
4897 ENABLE_CLANG_STATIC_ANALYZER=0
4899 ;;
4900 default) ENABLE_CLANG_STATIC_ANALYZER=1
4901 ;;
4902 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4903 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4905 esac
4907 # Check whether --enable-optimized was given.
4908 if test "${enable_optimized+set}" = set; then
4909 enableval=$enable_optimized;
4910 else
4911 enableval=$optimize
4912 fi
4914 if test ${enableval} = "no" ; then
4915 ENABLE_OPTIMIZED=
4917 else
4918 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4920 fi
4922 # Check whether --enable-profiling was given.
4923 if test "${enable_profiling+set}" = set; then
4924 enableval=$enable_profiling;
4925 else
4926 enableval="no"
4927 fi
4929 if test ${enableval} = "no" ; then
4930 ENABLE_PROFILING=
4932 else
4933 ENABLE_PROFILING=ENABLE_PROFILING=1
4935 fi
4937 # Check whether --enable-assertions was given.
4938 if test "${enable_assertions+set}" = set; then
4939 enableval=$enable_assertions;
4940 else
4941 enableval="yes"
4942 fi
4944 if test ${enableval} = "yes" ; then
4945 DISABLE_ASSERTIONS=
4947 else
4948 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4950 fi
4952 # Check whether --enable-werror was given.
4953 if test "${enable_werror+set}" = set; then
4954 enableval=$enable_werror;
4955 else
4956 enableval="no"
4957 fi
4959 case "$enableval" in
4960 yes) ENABLE_WERROR=1
4961 ;;
4962 no) ENABLE_WERROR=0
4963 ;;
4964 default) ENABLE_WERROR=0
4965 ;;
4966 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4967 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4968 { (exit 1); exit 1; }; } ;;
4969 esac
4971 # Check whether --enable-expensive-checks was given.
4972 if test "${enable_expensive_checks+set}" = set; then
4973 enableval=$enable_expensive_checks;
4974 else
4975 enableval="no"
4976 fi
4978 if test ${enableval} = "yes" ; then
4979 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4981 EXPENSIVE_CHECKS=yes
4983 else
4984 ENABLE_EXPENSIVE_CHECKS=
4986 EXPENSIVE_CHECKS=no
4988 fi
4990 # Check whether --enable-debug-runtime was given.
4991 if test "${enable_debug_runtime+set}" = set; then
4992 enableval=$enable_debug_runtime;
4993 else
4994 enableval=no
4995 fi
4997 if test ${enableval} = "no" ; then
4998 DEBUG_RUNTIME=
5000 else
5001 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5003 fi
5005 # Check whether --enable-debug-symbols was given.
5006 if test "${enable_debug_symbols+set}" = set; then
5007 enableval=$enable_debug_symbols;
5008 else
5009 enableval=no
5010 fi
5012 if test ${enableval} = "no" ; then
5013 DEBUG_SYMBOLS=
5015 else
5016 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5018 fi
5020 # Check whether --enable-keep-symbols was given.
5021 if test "${enable_keep_symbols+set}" = set; then
5022 enableval=$enable_keep_symbols;
5023 else
5024 enableval=no
5025 fi
5027 if test ${enableval} = "no" ; then
5028 KEEP_SYMBOLS=
5030 else
5031 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5033 fi
5035 # Check whether --enable-jit was given.
5036 if test "${enable_jit+set}" = set; then
5037 enableval=$enable_jit;
5038 else
5039 enableval=default
5040 fi
5042 if test ${enableval} = "no"
5043 then
5044 JIT=
5046 else
5047 case "$llvm_cv_target_arch" in
5048 x86) TARGET_HAS_JIT=1
5049 ;;
5050 Sparc) TARGET_HAS_JIT=0
5051 ;;
5052 PowerPC) TARGET_HAS_JIT=1
5053 ;;
5054 x86_64) TARGET_HAS_JIT=1
5055 ;;
5056 ARM) TARGET_HAS_JIT=1
5057 ;;
5058 Mips) TARGET_HAS_JIT=1
5059 ;;
5060 XCore) TARGET_HAS_JIT=0
5061 ;;
5062 MSP430) TARGET_HAS_JIT=0
5063 ;;
5064 Hexagon) TARGET_HAS_JIT=0
5065 ;;
5066 NVPTX) TARGET_HAS_JIT=0
5067 ;;
5068 SystemZ) TARGET_HAS_JIT=1
5069 ;;
5070 *) TARGET_HAS_JIT=0
5071 ;;
5072 esac
5073 fi
5075 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5076 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5079 # Check whether --enable-docs was given.
5080 if test "${enable_docs+set}" = set; then
5081 enableval=$enable_docs;
5082 else
5083 enableval=default
5084 fi
5086 case "$enableval" in
5087 yes) ENABLE_DOCS=1
5088 ;;
5089 no) ENABLE_DOCS=0
5090 ;;
5091 default) ENABLE_DOCS=1
5092 ;;
5093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5094 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5095 { (exit 1); exit 1; }; } ;;
5096 esac
5098 # Check whether --enable-doxygen was given.
5099 if test "${enable_doxygen+set}" = set; then
5100 enableval=$enable_doxygen;
5101 else
5102 enableval=default
5103 fi
5105 case "$enableval" in
5106 yes) ENABLE_DOXYGEN=1
5107 ;;
5108 no) ENABLE_DOXYGEN=0
5109 ;;
5110 default) ENABLE_DOXYGEN=0
5111 ;;
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5115 esac
5117 # Check whether --enable-threads was given.
5118 if test "${enable_threads+set}" = set; then
5119 enableval=$enable_threads;
5120 else
5121 enableval=default
5122 fi
5124 case "$enableval" in
5125 yes) LLVM_ENABLE_THREADS=1
5126 ;;
5127 no) LLVM_ENABLE_THREADS=0
5128 ;;
5129 default) LLVM_ENABLE_THREADS=1
5130 ;;
5131 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5132 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5133 { (exit 1); exit 1; }; } ;;
5134 esac
5136 cat >>confdefs.h <<_ACEOF
5137 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5138 _ACEOF
5141 # Check whether --enable-pthreads was given.
5142 if test "${enable_pthreads+set}" = set; then
5143 enableval=$enable_pthreads;
5144 else
5145 enableval=default
5146 fi
5148 case "$enableval" in
5149 yes) ENABLE_PTHREADS=1
5150 ;;
5151 no) ENABLE_PTHREADS=0
5152 ;;
5153 default) ENABLE_PTHREADS=1
5154 ;;
5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5156 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5157 { (exit 1); exit 1; }; } ;;
5158 esac
5160 # Check whether --enable-zlib was given.
5161 if test "${enable_zlib+set}" = set; then
5162 enableval=$enable_zlib;
5163 else
5164 enableval=default
5165 fi
5167 case "$enableval" in
5168 yes) LLVM_ENABLE_ZLIB=1
5169 ;;
5170 no) LLVM_ENABLE_ZLIB=0
5171 ;;
5172 default) LLVM_ENABLE_ZLIB=1
5173 ;;
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5177 esac
5179 cat >>confdefs.h <<_ACEOF
5180 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5181 _ACEOF
5184 # Check whether --enable-pic was given.
5185 if test "${enable_pic+set}" = set; then
5186 enableval=$enable_pic;
5187 else
5188 enableval=default
5189 fi
5191 case "$enableval" in
5192 yes) ENABLE_PIC=1
5193 ;;
5194 no) ENABLE_PIC=0
5195 ;;
5196 default) ENABLE_PIC=1
5197 ;;
5198 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5200 { (exit 1); exit 1; }; } ;;
5201 esac
5203 cat >>confdefs.h <<_ACEOF
5204 #define ENABLE_PIC $ENABLE_PIC
5205 _ACEOF
5208 # Check whether --enable-shared was given.
5209 if test "${enable_shared+set}" = set; then
5210 enableval=$enable_shared;
5211 else
5212 enableval=default
5213 fi
5215 case "$enableval" in
5216 yes) ENABLE_SHARED=1
5217 ;;
5218 no) ENABLE_SHARED=0
5219 ;;
5220 default) ENABLE_SHARED=0
5221 ;;
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5225 esac
5227 # Check whether --enable-embed-stdcxx was given.
5228 if test "${enable_embed_stdcxx+set}" = set; then
5229 enableval=$enable_embed_stdcxx;
5230 else
5231 enableval=default
5232 fi
5234 case "$enableval" in
5235 yes) ENABLE_EMBED_STDCXX=1
5236 ;;
5237 no) ENABLE_EMBED_STDCXX=0
5238 ;;
5239 default) ENABLE_EMBED_STDCXX=0
5240 ;;
5241 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5242 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5243 { (exit 1); exit 1; }; } ;;
5244 esac
5246 # Check whether --enable-timestamps was given.
5247 if test "${enable_timestamps+set}" = set; then
5248 enableval=$enable_timestamps;
5249 else
5250 enableval=default
5251 fi
5253 case "$enableval" in
5254 yes) ENABLE_TIMESTAMPS=1
5255 ;;
5256 no) ENABLE_TIMESTAMPS=0
5257 ;;
5258 default) ENABLE_TIMESTAMPS=1
5259 ;;
5260 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5261 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5262 { (exit 1); exit 1; }; } ;;
5263 esac
5265 cat >>confdefs.h <<_ACEOF
5266 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5267 _ACEOF
5270 # Check whether --enable-backtraces was given.
5271 if test "${enable_backtraces+set}" = set; then
5272 enableval=$enable_backtraces; case "$enableval" in
5273 yes) llvm_cv_enable_backtraces="yes" ;;
5274 no) llvm_cv_enable_backtraces="no" ;;
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5278 esac
5279 else
5280 llvm_cv_enable_backtraces="yes"
5281 fi
5283 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5285 cat >>confdefs.h <<\_ACEOF
5286 #define ENABLE_BACKTRACES 1
5287 _ACEOF
5289 fi
5291 # Check whether --enable-crash-overrides was given.
5292 if test "${enable_crash_overrides+set}" = set; then
5293 enableval=$enable_crash_overrides; case "$enableval" in
5294 yes) llvm_cv_enable_crash_overrides="yes" ;;
5295 no) llvm_cv_enable_crash_overrides="no" ;;
5296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5299 esac
5300 else
5301 llvm_cv_enable_crash_overrides="yes"
5302 fi
5304 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5306 cat >>confdefs.h <<\_ACEOF
5307 #define ENABLE_CRASH_OVERRIDES 1
5308 _ACEOF
5310 fi
5312 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5313 ALL_TARGETS=$ALL_TARGETS
5316 TARGETS_TO_BUILD=""
5317 # Check whether --enable-targets was given.
5318 if test "${enable_targets+set}" = set; then
5319 enableval=$enable_targets;
5320 else
5321 enableval=all
5322 fi
5324 if test "$enableval" = host-only ; then
5325 enableval=host
5326 fi
5327 case "$enableval" in
5328 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5329 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5330 case "$a_target" in
5331 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5332 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5333 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5334 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5335 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5336 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5337 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5338 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5340 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5343 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5344 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5345 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5346 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5347 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5348 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5349 host) case "$llvm_cv_target_arch" in
5350 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5351 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5353 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5354 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5355 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5356 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5358 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5359 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5360 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5361 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5362 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5363 echo "$as_me: error: Can not set target to build" >&2;}
5364 { (exit 1); exit 1; }; } ;;
5365 esac ;;
5366 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5367 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5368 { (exit 1); exit 1; }; } ;;
5369 esac
5370 done
5371 ;;
5372 esac
5374 # Check whether --enable-experimental-targets was given.
5375 if test "${enable_experimental_targets+set}" = set; then
5376 enableval=$enable_experimental_targets;
5377 else
5378 enableval=disable
5379 fi
5382 if test ${enableval} != "disable"
5383 then
5384 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5385 fi
5387 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5390 for a_target in $TARGETS_TO_BUILD; do
5391 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5395 _ACEOF
5397 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5398 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5399 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5400 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5401 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5402 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5403 fi
5404 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5405 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5406 fi
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5410 _ACEOF
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5415 _ACEOF
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5420 _ACEOF
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5425 _ACEOF
5427 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5429 cat >>confdefs.h <<_ACEOF
5430 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5431 _ACEOF
5433 fi
5434 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5438 _ACEOF
5440 fi
5441 fi
5442 done
5444 LLVM_ENUM_TARGETS=""
5445 LLVM_ENUM_ASM_PRINTERS=""
5446 LLVM_ENUM_ASM_PARSERS=""
5447 LLVM_ENUM_DISASSEMBLERS=""
5448 for target_to_build in $TARGETS_TO_BUILD; do
5449 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5450 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5451 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5452 fi
5453 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5454 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5455 fi
5456 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5457 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5458 fi
5459 done
5466 # Check whether --with-optimize-option was given.
5467 if test "${with_optimize_option+set}" = set; then
5468 withval=$with_optimize_option;
5469 else
5470 withval=default
5471 fi
5473 { echo "$as_me:$LINENO: checking optimization flags" >&5
5474 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5475 case "$withval" in
5476 default)
5477 case "$llvm_cv_os_type" in
5478 FreeBSD) optimize_option=-O2 ;;
5479 MingW) optimize_option=-O2 ;;
5480 *) optimize_option=-O3 ;;
5481 esac ;;
5482 *) optimize_option="$withval" ;;
5483 esac
5484 OPTIMIZE_OPTION=$optimize_option
5486 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5487 echo "${ECHO_T}$optimize_option" >&6; }
5490 # Check whether --with-extra-options was given.
5491 if test "${with_extra_options+set}" = set; then
5492 withval=$with_extra_options;
5493 else
5494 withval=default
5495 fi
5497 case "$withval" in
5498 default) EXTRA_OPTIONS= ;;
5499 *) EXTRA_OPTIONS=$withval ;;
5500 esac
5501 EXTRA_OPTIONS=$EXTRA_OPTIONS
5505 # Check whether --with-extra-ld-options was given.
5506 if test "${with_extra_ld_options+set}" = set; then
5507 withval=$with_extra_ld_options;
5508 else
5509 withval=default
5510 fi
5512 case "$withval" in
5513 default) EXTRA_LD_OPTIONS= ;;
5514 *) EXTRA_LD_OPTIONS=$withval ;;
5515 esac
5516 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5519 # Check whether --enable-bindings was given.
5520 if test "${enable_bindings+set}" = set; then
5521 enableval=$enable_bindings;
5522 else
5523 enableval=default
5524 fi
5526 BINDINGS_TO_BUILD=""
5527 case "$enableval" in
5528 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5529 all ) BINDINGS_TO_BUILD="ocaml" ;;
5530 none | no) BINDINGS_TO_BUILD="" ;;
5531 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5532 case "$a_binding" in
5533 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5534 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5535 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5536 { (exit 1); exit 1; }; } ;;
5537 esac
5538 done
5539 ;;
5540 esac
5543 # Check whether --with-ocaml-libdir was given.
5544 if test "${with_ocaml_libdir+set}" = set; then
5545 withval=$with_ocaml_libdir;
5546 else
5547 withval=auto
5548 fi
5550 case "$withval" in
5551 auto) with_ocaml_libdir="$withval" ;;
5552 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5553 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5554 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5555 { (exit 1); exit 1; }; } ;;
5556 esac
5559 # Check whether --with-clang-srcdir was given.
5560 if test "${with_clang_srcdir+set}" = set; then
5561 withval=$with_clang_srcdir;
5562 else
5563 withval="-"
5564 fi
5566 case "$withval" in
5567 -) clang_src_root="" ;;
5568 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5569 *) clang_src_root="$ac_pwd/$withval" ;;
5570 esac
5571 CLANG_SRC_ROOT=$clang_src_root
5575 # Check whether --with-clang-resource-dir was given.
5576 if test "${with_clang_resource_dir+set}" = set; then
5577 withval=$with_clang_resource_dir;
5578 else
5579 withval=""
5580 fi
5583 cat >>confdefs.h <<_ACEOF
5584 #define CLANG_RESOURCE_DIR "$withval"
5585 _ACEOF
5589 # Check whether --with-c-include-dirs was given.
5590 if test "${with_c_include_dirs+set}" = set; then
5591 withval=$with_c_include_dirs;
5592 else
5593 withval=""
5594 fi
5597 cat >>confdefs.h <<_ACEOF
5598 #define C_INCLUDE_DIRS "$withval"
5599 _ACEOF
5602 # Clang normally uses the system c++ headers and libraries. With this option,
5603 # clang will use the ones provided by a gcc installation instead. This option should
5604 # be passed the same value that was used with --prefix when configuring gcc.
5606 # Check whether --with-gcc-toolchain was given.
5607 if test "${with_gcc_toolchain+set}" = set; then
5608 withval=$with_gcc_toolchain;
5609 else
5610 withval=""
5611 fi
5614 cat >>confdefs.h <<_ACEOF
5615 #define GCC_INSTALL_PREFIX "$withval"
5616 _ACEOF
5620 # Check whether --with-default-sysroot was given.
5621 if test "${with_default_sysroot+set}" = set; then
5622 withval=$with_default_sysroot;
5623 else
5624 withval=""
5625 fi
5628 cat >>confdefs.h <<_ACEOF
5629 #define DEFAULT_SYSROOT "$withval"
5630 _ACEOF
5634 # Check whether --with-binutils-include was given.
5635 if test "${with_binutils_include+set}" = set; then
5636 withval=$with_binutils_include;
5637 else
5638 withval=default
5639 fi
5641 case "$withval" in
5642 default) WITH_BINUTILS_INCDIR=default ;;
5643 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5644 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5645 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5646 { (exit 1); exit 1; }; } ;;
5647 esac
5648 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5649 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5651 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5652 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5653 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5654 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5655 { (exit 1); exit 1; }; };
5656 fi
5657 fi
5660 # Check whether --with-bug-report-url was given.
5661 if test "${with_bug_report_url+set}" = set; then
5662 withval=$with_bug_report_url;
5663 else
5664 withval="http://llvm.org/bugs/"
5665 fi
5668 cat >>confdefs.h <<_ACEOF
5669 #define BUG_REPORT_URL "$withval"
5670 _ACEOF
5673 # Check whether --enable-terminfo was given.
5674 if test "${enable_terminfo+set}" = set; then
5675 enableval=$enable_terminfo; case "$enableval" in
5676 yes) llvm_cv_enable_terminfo="yes" ;;
5677 no) llvm_cv_enable_terminfo="no" ;;
5678 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5679 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5680 { (exit 1); exit 1; }; } ;;
5681 esac
5682 else
5683 llvm_cv_enable_terminfo="yes"
5684 fi
5686 case "$llvm_cv_enable_terminfo" in
5687 yes) ENABLE_TERMINFO=1
5688 ;;
5689 no) ENABLE_TERMINFO=0
5690 ;;
5691 esac
5693 # Check whether --enable-libedit was given.
5694 if test "${enable_libedit+set}" = set; then
5695 enableval=$enable_libedit; case "$enableval" in
5696 yes) llvm_cv_enable_libedit="yes" ;;
5697 no) llvm_cv_enable_libedit="no" ;;
5698 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5699 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5700 { (exit 1); exit 1; }; } ;;
5701 esac
5702 else
5703 llvm_cv_enable_libedit="yes"
5704 fi
5707 # Check whether --enable-libffi was given.
5708 if test "${enable_libffi+set}" = set; then
5709 enableval=$enable_libffi; case "$enableval" in
5710 yes) llvm_cv_enable_libffi="yes" ;;
5711 no) llvm_cv_enable_libffi="no" ;;
5712 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5713 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5714 { (exit 1); exit 1; }; } ;;
5715 esac
5716 else
5717 llvm_cv_enable_libffi=no
5718 fi
5722 # Check whether --with-internal-prefix was given.
5723 if test "${with_internal_prefix+set}" = set; then
5724 withval=$with_internal_prefix;
5725 else
5726 withval=""
5727 fi
5729 INTERNAL_PREFIX=$withval
5733 { echo "$as_me:$LINENO: checking for GNU make" >&5
5734 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5735 if test "${llvm_cv_gnu_make_command+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738 llvm_cv_gnu_make_command=''
5739 for a in "$MAKE" make gmake gnumake ; do
5740 if test -z "$a" ; then continue ; fi ;
5741 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5742 then
5743 llvm_cv_gnu_make_command=$a ;
5744 break;
5745 fi
5746 done
5747 fi
5748 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5749 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5750 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5751 ifGNUmake='' ;
5752 else
5753 ifGNUmake='#' ;
5754 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5755 echo "${ECHO_T}\"Not found\"" >&6; };
5756 fi
5759 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5760 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5761 LN_S=$as_ln_s
5762 if test "$LN_S" = "ln -s"; then
5763 { echo "$as_me:$LINENO: result: yes" >&5
5764 echo "${ECHO_T}yes" >&6; }
5765 else
5766 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5767 echo "${ECHO_T}no, using $LN_S" >&6; }
5768 fi
5770 # Extract the first word of "nm", so it can be a program name with args.
5771 set dummy nm; ac_word=$2
5772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5774 if test "${ac_cv_path_NM+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777 case $NM in
5778 [\\/]* | ?:[\\/]*)
5779 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5780 ;;
5781 *)
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793 done
5794 done
5795 IFS=$as_save_IFS
5797 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5798 ;;
5799 esac
5800 fi
5801 NM=$ac_cv_path_NM
5802 if test -n "$NM"; then
5803 { echo "$as_me:$LINENO: result: $NM" >&5
5804 echo "${ECHO_T}$NM" >&6; }
5805 else
5806 { echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6; }
5808 fi
5811 # Extract the first word of "cmp", so it can be a program name with args.
5812 set dummy cmp; ac_word=$2
5813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815 if test "${ac_cv_path_CMP+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818 case $CMP in
5819 [\\/]* | ?:[\\/]*)
5820 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5821 ;;
5822 *)
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5825 do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834 done
5835 done
5836 IFS=$as_save_IFS
5838 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5839 ;;
5840 esac
5841 fi
5842 CMP=$ac_cv_path_CMP
5843 if test -n "$CMP"; then
5844 { echo "$as_me:$LINENO: result: $CMP" >&5
5845 echo "${ECHO_T}$CMP" >&6; }
5846 else
5847 { echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6; }
5849 fi
5852 # Extract the first word of "cp", so it can be a program name with args.
5853 set dummy cp; ac_word=$2
5854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5856 if test "${ac_cv_path_CP+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859 case $CP in
5860 [\\/]* | ?:[\\/]*)
5861 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5862 ;;
5863 *)
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5879 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5880 ;;
5881 esac
5882 fi
5883 CP=$ac_cv_path_CP
5884 if test -n "$CP"; then
5885 { echo "$as_me:$LINENO: result: $CP" >&5
5886 echo "${ECHO_T}$CP" >&6; }
5887 else
5888 { echo "$as_me:$LINENO: result: no" >&5
5889 echo "${ECHO_T}no" >&6; }
5890 fi
5893 # Extract the first word of "date", so it can be a program name with args.
5894 set dummy date; ac_word=$2
5895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5897 if test "${ac_cv_path_DATE+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 case $DATE in
5901 [\\/]* | ?:[\\/]*)
5902 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5903 ;;
5904 *)
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5920 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5921 ;;
5922 esac
5923 fi
5924 DATE=$ac_cv_path_DATE
5925 if test -n "$DATE"; then
5926 { echo "$as_me:$LINENO: result: $DATE" >&5
5927 echo "${ECHO_T}$DATE" >&6; }
5928 else
5929 { echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6; }
5931 fi
5934 # Extract the first word of "find", so it can be a program name with args.
5935 set dummy find; ac_word=$2
5936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5938 if test "${ac_cv_path_FIND+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941 case $FIND in
5942 [\\/]* | ?:[\\/]*)
5943 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5944 ;;
5945 *)
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH
5948 do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5953 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957 done
5958 done
5959 IFS=$as_save_IFS
5961 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5962 ;;
5963 esac
5964 fi
5965 FIND=$ac_cv_path_FIND
5966 if test -n "$FIND"; then
5967 { echo "$as_me:$LINENO: result: $FIND" >&5
5968 echo "${ECHO_T}$FIND" >&6; }
5969 else
5970 { echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6; }
5972 fi
5975 # Extract the first word of "grep", so it can be a program name with args.
5976 set dummy grep; ac_word=$2
5977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979 if test "${ac_cv_path_GREP+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 case $GREP in
5983 [\\/]* | ?:[\\/]*)
5984 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5985 ;;
5986 *)
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998 done
5999 done
6000 IFS=$as_save_IFS
6002 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6003 ;;
6004 esac
6005 fi
6006 GREP=$ac_cv_path_GREP
6007 if test -n "$GREP"; then
6008 { echo "$as_me:$LINENO: result: $GREP" >&5
6009 echo "${ECHO_T}$GREP" >&6; }
6010 else
6011 { echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6; }
6013 fi
6016 # Extract the first word of "mkdir", so it can be a program name with args.
6017 set dummy mkdir; ac_word=$2
6018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6020 if test "${ac_cv_path_MKDIR+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023 case $MKDIR in
6024 [\\/]* | ?:[\\/]*)
6025 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6026 ;;
6027 *)
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039 done
6040 done
6041 IFS=$as_save_IFS
6043 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6044 ;;
6045 esac
6046 fi
6047 MKDIR=$ac_cv_path_MKDIR
6048 if test -n "$MKDIR"; then
6049 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6050 echo "${ECHO_T}$MKDIR" >&6; }
6051 else
6052 { echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6; }
6054 fi
6057 # Extract the first word of "mv", so it can be a program name with args.
6058 set dummy mv; ac_word=$2
6059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6061 if test "${ac_cv_path_MV+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 case $MV in
6065 [\\/]* | ?:[\\/]*)
6066 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6067 ;;
6068 *)
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080 done
6081 done
6082 IFS=$as_save_IFS
6084 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6085 ;;
6086 esac
6087 fi
6088 MV=$ac_cv_path_MV
6089 if test -n "$MV"; then
6090 { echo "$as_me:$LINENO: result: $MV" >&5
6091 echo "${ECHO_T}$MV" >&6; }
6092 else
6093 { echo "$as_me:$LINENO: result: no" >&5
6094 echo "${ECHO_T}no" >&6; }
6095 fi
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 if test -n "$RANLIB"; then
6107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6124 fi
6125 fi
6126 RANLIB=$ac_cv_prog_RANLIB
6127 if test -n "$RANLIB"; then
6128 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6129 echo "${ECHO_T}$RANLIB" >&6; }
6130 else
6131 { echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6; }
6133 fi
6136 fi
6137 if test -z "$ac_cv_prog_RANLIB"; then
6138 ac_ct_RANLIB=$RANLIB
6139 # Extract the first word of "ranlib", so it can be a program name with args.
6140 set dummy ranlib; ac_word=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 if test -n "$ac_ct_RANLIB"; then
6147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_ac_ct_RANLIB="ranlib"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6164 fi
6165 fi
6166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6167 if test -n "$ac_ct_RANLIB"; then
6168 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6169 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6170 else
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6173 fi
6175 if test "x$ac_ct_RANLIB" = x; then
6176 RANLIB=":"
6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179 yes:)
6180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet. If you think this
6182 configuration is useful to you, please write to autoconf@gnu.org." >&5
6183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6184 whose name does not start with the host triplet. If you think this
6185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6186 ac_tool_warned=yes ;;
6187 esac
6188 RANLIB=$ac_ct_RANLIB
6189 fi
6190 else
6191 RANLIB="$ac_cv_prog_RANLIB"
6192 fi
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}ar; ac_word=$2
6197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6199 if test "${ac_cv_prog_AR+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 if test -n "$AR"; then
6203 ac_cv_prog_AR="$AR" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_AR="${ac_tool_prefix}ar"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6220 fi
6221 fi
6222 AR=$ac_cv_prog_AR
6223 if test -n "$AR"; then
6224 { echo "$as_me:$LINENO: result: $AR" >&5
6225 echo "${ECHO_T}$AR" >&6; }
6226 else
6227 { echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6; }
6229 fi
6232 fi
6233 if test -z "$ac_cv_prog_AR"; then
6234 ac_ct_AR=$AR
6235 # Extract the first word of "ar", so it can be a program name with args.
6236 set dummy ar; ac_word=$2
6237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 if test -n "$ac_ct_AR"; then
6243 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_ac_ct_AR="ar"
6253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6260 fi
6261 fi
6262 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6263 if test -n "$ac_ct_AR"; then
6264 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6265 echo "${ECHO_T}$ac_ct_AR" >&6; }
6266 else
6267 { echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6; }
6269 fi
6271 if test "x$ac_ct_AR" = x; then
6272 AR="false"
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet. If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&5
6279 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6280 whose name does not start with the host triplet. If you think this
6281 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6282 ac_tool_warned=yes ;;
6283 esac
6284 AR=$ac_ct_AR
6285 fi
6286 else
6287 AR="$ac_cv_prog_AR"
6288 fi
6290 # Extract the first word of "rm", so it can be a program name with args.
6291 set dummy rm; ac_word=$2
6292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6294 if test "${ac_cv_path_RM+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 case $RM in
6298 [\\/]* | ?:[\\/]*)
6299 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6300 ;;
6301 *)
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6317 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6318 ;;
6319 esac
6320 fi
6321 RM=$ac_cv_path_RM
6322 if test -n "$RM"; then
6323 { echo "$as_me:$LINENO: result: $RM" >&5
6324 echo "${ECHO_T}$RM" >&6; }
6325 else
6326 { echo "$as_me:$LINENO: result: no" >&5
6327 echo "${ECHO_T}no" >&6; }
6328 fi
6331 # Extract the first word of "sed", so it can be a program name with args.
6332 set dummy sed; ac_word=$2
6333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6335 if test "${ac_cv_path_SED+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 case $SED in
6339 [\\/]* | ?:[\\/]*)
6340 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6341 ;;
6342 *)
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354 done
6355 done
6356 IFS=$as_save_IFS
6358 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6359 ;;
6360 esac
6361 fi
6362 SED=$ac_cv_path_SED
6363 if test -n "$SED"; then
6364 { echo "$as_me:$LINENO: result: $SED" >&5
6365 echo "${ECHO_T}$SED" >&6; }
6366 else
6367 { echo "$as_me:$LINENO: result: no" >&5
6368 echo "${ECHO_T}no" >&6; }
6369 fi
6372 # Extract the first word of "tar", so it can be a program name with args.
6373 set dummy tar; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_path_TAR+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 case $TAR in
6380 [\\/]* | ?:[\\/]*)
6381 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6382 ;;
6383 *)
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6386 do
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6394 fi
6395 done
6396 done
6397 IFS=$as_save_IFS
6399 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6400 ;;
6401 esac
6402 fi
6403 TAR=$ac_cv_path_TAR
6404 if test -n "$TAR"; then
6405 { echo "$as_me:$LINENO: result: $TAR" >&5
6406 echo "${ECHO_T}$TAR" >&6; }
6407 else
6408 { echo "$as_me:$LINENO: result: no" >&5
6409 echo "${ECHO_T}no" >&6; }
6410 fi
6413 # Extract the first word of "pwd", so it can be a program name with args.
6414 set dummy pwd; ac_word=$2
6415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6417 if test "${ac_cv_path_BINPWD+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420 case $BINPWD in
6421 [\\/]* | ?:[\\/]*)
6422 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6423 ;;
6424 *)
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6435 fi
6436 done
6437 done
6438 IFS=$as_save_IFS
6440 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6441 ;;
6442 esac
6443 fi
6444 BINPWD=$ac_cv_path_BINPWD
6445 if test -n "$BINPWD"; then
6446 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6447 echo "${ECHO_T}$BINPWD" >&6; }
6448 else
6449 { echo "$as_me:$LINENO: result: no" >&5
6450 echo "${ECHO_T}no" >&6; }
6451 fi
6455 # Extract the first word of "dot", so it can be a program name with args.
6456 set dummy dot; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_path_DOT+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462 case $DOT in
6463 [\\/]* | ?:[\\/]*)
6464 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6465 ;;
6466 *)
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6482 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6483 ;;
6484 esac
6485 fi
6486 DOT=$ac_cv_path_DOT
6487 if test -n "$DOT"; then
6488 { echo "$as_me:$LINENO: result: $DOT" >&5
6489 echo "${ECHO_T}$DOT" >&6; }
6490 else
6491 { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6493 fi
6496 if test "$DOT" != "echo dot" ; then
6498 cat >>confdefs.h <<\_ACEOF
6499 #define HAVE_DOT 1
6500 _ACEOF
6502 if test "$llvm_cv_os_type" = "MingW" ; then
6503 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6504 fi
6506 cat >>confdefs.h <<_ACEOF
6507 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6508 _ACEOF
6510 fi
6512 # Find a good install program. We prefer a C program (faster),
6513 # so one script is as good as another. But avoid the broken or
6514 # incompatible versions:
6515 # SysV /etc/install, /usr/sbin/install
6516 # SunOS /usr/etc/install
6517 # IRIX /sbin/install
6518 # AIX /bin/install
6519 # AmigaOS /C/install, which installs bootblocks on floppy discs
6520 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6521 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6522 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6523 # OS/2's system install, which has a completely different semantic
6524 # ./install, which can be erroneously created by make from ./install.sh.
6525 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6526 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6527 if test -z "$INSTALL"; then
6528 if test "${ac_cv_path_install+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 # Account for people who put trailing slashes in PATH elements.
6537 case $as_dir/ in
6538 ./ | .// | /cC/* | \
6539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6540 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6541 /usr/ucb/* ) ;;
6542 *)
6543 # OSF1 and SCO ODT 3.0 have their own names for install.
6544 # Don't use installbsd from OSF since it installs stuff as root
6545 # by default.
6546 for ac_prog in ginstall scoinst install; do
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6549 if test $ac_prog = install &&
6550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6551 # AIX install. It has an incompatible calling convention.
6552 :
6553 elif test $ac_prog = install &&
6554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6555 # program-specific install script used by HP pwplus--don't use.
6556 :
6557 else
6558 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6559 break 3
6560 fi
6561 fi
6562 done
6563 done
6564 ;;
6565 esac
6566 done
6567 IFS=$as_save_IFS
6570 fi
6571 if test "${ac_cv_path_install+set}" = set; then
6572 INSTALL=$ac_cv_path_install
6573 else
6574 # As a last resort, use the slow shell script. Don't cache a
6575 # value for INSTALL within a source directory, because that will
6576 # break other packages using the cache if that directory is
6577 # removed, or if the value is a relative name.
6578 INSTALL=$ac_install_sh
6579 fi
6580 fi
6581 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6582 echo "${ECHO_T}$INSTALL" >&6; }
6584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6585 # It thinks the first close brace ends the variable substitution.
6586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6592 case "$INSTALL" in
6593 [\\/$]* | ?:[\\/]* ) ;;
6594 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6595 esac
6597 # Extract the first word of "bzip2", so it can be a program name with args.
6598 set dummy bzip2; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_path_BZIP2+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 case $BZIP2 in
6605 [\\/]* | ?:[\\/]*)
6606 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6607 ;;
6608 *)
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6624 ;;
6625 esac
6626 fi
6627 BZIP2=$ac_cv_path_BZIP2
6628 if test -n "$BZIP2"; then
6629 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6630 echo "${ECHO_T}$BZIP2" >&6; }
6631 else
6632 { echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6; }
6634 fi
6637 # Extract the first word of "cat", so it can be a program name with args.
6638 set dummy cat; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_path_CAT+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 case $CAT in
6645 [\\/]* | ?:[\\/]*)
6646 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6647 ;;
6648 *)
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6664 ;;
6665 esac
6666 fi
6667 CAT=$ac_cv_path_CAT
6668 if test -n "$CAT"; then
6669 { echo "$as_me:$LINENO: result: $CAT" >&5
6670 echo "${ECHO_T}$CAT" >&6; }
6671 else
6672 { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6674 fi
6677 # Extract the first word of "doxygen", so it can be a program name with args.
6678 set dummy doxygen; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 case $DOXYGEN in
6685 [\\/]* | ?:[\\/]*)
6686 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6687 ;;
6688 *)
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6704 ;;
6705 esac
6706 fi
6707 DOXYGEN=$ac_cv_path_DOXYGEN
6708 if test -n "$DOXYGEN"; then
6709 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6710 echo "${ECHO_T}$DOXYGEN" >&6; }
6711 else
6712 { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6714 fi
6717 # Extract the first word of "groff", so it can be a program name with args.
6718 set dummy groff; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_path_GROFF+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 case $GROFF in
6725 [\\/]* | ?:[\\/]*)
6726 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6727 ;;
6728 *)
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6744 ;;
6745 esac
6746 fi
6747 GROFF=$ac_cv_path_GROFF
6748 if test -n "$GROFF"; then
6749 { echo "$as_me:$LINENO: result: $GROFF" >&5
6750 echo "${ECHO_T}$GROFF" >&6; }
6751 else
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754 fi
6757 # Extract the first word of "gzip", so it can be a program name with args.
6758 set dummy gzip; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 case $GZIPBIN in
6765 [\\/]* | ?:[\\/]*)
6766 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6767 ;;
6768 *)
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6784 ;;
6785 esac
6786 fi
6787 GZIPBIN=$ac_cv_path_GZIPBIN
6788 if test -n "$GZIPBIN"; then
6789 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6790 echo "${ECHO_T}$GZIPBIN" >&6; }
6791 else
6792 { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6794 fi
6797 # Extract the first word of "pdfroff", so it can be a program name with args.
6798 set dummy pdfroff; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_path_PDFROFF+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 case $PDFROFF in
6805 [\\/]* | ?:[\\/]*)
6806 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6807 ;;
6808 *)
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820 done
6821 done
6822 IFS=$as_save_IFS
6824 ;;
6825 esac
6826 fi
6827 PDFROFF=$ac_cv_path_PDFROFF
6828 if test -n "$PDFROFF"; then
6829 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6830 echo "${ECHO_T}$PDFROFF" >&6; }
6831 else
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6834 fi
6837 # Extract the first word of "zip", so it can be a program name with args.
6838 set dummy zip; ac_word=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_path_ZIP+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 case $ZIP in
6845 [\\/]* | ?:[\\/]*)
6846 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6847 ;;
6848 *)
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860 done
6861 done
6862 IFS=$as_save_IFS
6864 ;;
6865 esac
6866 fi
6867 ZIP=$ac_cv_path_ZIP
6868 if test -n "$ZIP"; then
6869 { echo "$as_me:$LINENO: result: $ZIP" >&5
6870 echo "${ECHO_T}$ZIP" >&6; }
6871 else
6872 { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6874 fi
6877 # Extract the first word of "go", so it can be a program name with args.
6878 set dummy go; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_GO+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884 case $GO in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6887 ;;
6888 *)
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6904 ;;
6905 esac
6906 fi
6907 GO=$ac_cv_path_GO
6908 if test -n "$GO"; then
6909 { echo "$as_me:$LINENO: result: $GO" >&5
6910 echo "${ECHO_T}$GO" >&6; }
6911 else
6912 { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6914 fi
6917 for ac_prog in ocamlfind
6918 do
6919 # Extract the first word of "$ac_prog", so it can be a program name with args.
6920 set dummy $ac_prog; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 case $OCAMLFIND in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6929 ;;
6930 *)
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6941 fi
6942 done
6943 done
6944 IFS=$as_save_IFS
6946 ;;
6947 esac
6948 fi
6949 OCAMLFIND=$ac_cv_path_OCAMLFIND
6950 if test -n "$OCAMLFIND"; then
6951 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6952 echo "${ECHO_T}$OCAMLFIND" >&6; }
6953 else
6954 { echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6; }
6956 fi
6959 test -n "$OCAMLFIND" && break
6960 done
6962 for ac_prog in gas as
6963 do
6964 # Extract the first word of "$ac_prog", so it can be a program name with args.
6965 set dummy $ac_prog; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_GAS+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 case $GAS in
6972 [\\/]* | ?:[\\/]*)
6973 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6974 ;;
6975 *)
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6991 ;;
6992 esac
6993 fi
6994 GAS=$ac_cv_path_GAS
6995 if test -n "$GAS"; then
6996 { echo "$as_me:$LINENO: result: $GAS" >&5
6997 echo "${ECHO_T}$GAS" >&6; }
6998 else
6999 { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7001 fi
7004 test -n "$GAS" && break
7005 done
7008 { echo "$as_me:$LINENO: checking for linker version" >&5
7009 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7010 if test "${llvm_cv_link_version+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7014 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7016 # Check for ld64.
7017 if (echo "$version_string" | grep -q "ld64"); then
7018 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7019 else
7020 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7021 fi
7023 fi
7024 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7025 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7027 cat >>confdefs.h <<_ACEOF
7028 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7029 _ACEOF
7034 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7035 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7036 if test "${llvm_cv_link_use_r+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 ac_ext=c
7040 ac_cpp='$CPP $CPPFLAGS'
7041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7045 oldcflags="$CFLAGS"
7046 CFLAGS="$CFLAGS -Wl,-R."
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7054 int
7055 main ()
7056 {
7058 ;
7059 return 0;
7060 }
7061 _ACEOF
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (ac_try="$ac_link"
7064 case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_link") 2>conftest.er1
7070 ac_status=$?
7071 grep -v '^ *+' conftest.er1 >conftest.err
7072 rm -f conftest.er1
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7077 { (case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_try") 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (case "(($ac_try" in
7088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7090 esac
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_try") 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 llvm_cv_link_use_r=yes
7097 else
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7101 llvm_cv_link_use_r=no
7102 fi
7104 rm -f core conftest.err conftest.$ac_objext \
7105 conftest$ac_exeext conftest.$ac_ext
7106 CFLAGS="$oldcflags"
7107 ac_ext=c
7108 ac_cpp='$CPP $CPPFLAGS'
7109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114 fi
7115 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7116 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7117 if test "$llvm_cv_link_use_r" = yes ; then
7119 cat >>confdefs.h <<\_ACEOF
7120 #define HAVE_LINK_R 1
7121 _ACEOF
7123 fi
7126 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7127 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7128 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 ac_ext=c
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7137 oldcflags="$CFLAGS"
7138 CFLAGS="$CFLAGS -rdynamic"
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7146 int
7147 main ()
7148 {
7150 ;
7151 return 0;
7152 }
7153 _ACEOF
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (ac_try="$ac_link"
7156 case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_link") 2>conftest.er1
7162 ac_status=$?
7163 grep -v '^ *+' conftest.er1 >conftest.err
7164 rm -f conftest.er1
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } &&
7168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7169 { (case "(($ac_try" in
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_try") 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; } &&
7178 { ac_try='test -s conftest$ac_exeext'
7179 { (case "(($ac_try" in
7180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7182 esac
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_try") 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
7188 llvm_cv_link_use_export_dynamic=yes
7189 else
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7193 llvm_cv_link_use_export_dynamic=no
7194 fi
7196 rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7198 CFLAGS="$oldcflags"
7199 ac_ext=c
7200 ac_cpp='$CPP $CPPFLAGS'
7201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7206 fi
7207 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7208 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7209 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7211 cat >>confdefs.h <<\_ACEOF
7212 #define HAVE_LINK_EXPORT_DYNAMIC 1
7213 _ACEOF
7215 fi
7218 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7219 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7220 if test "${llvm_cv_link_use_version_script+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 ac_ext=c
7224 ac_cpp='$CPP $CPPFLAGS'
7225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229 oldcflags="$CFLAGS"
7231 # The following code is from the autoconf manual,
7232 # "11.13: Limitations of Usual Tools".
7233 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7234 # Use mktemp if possible; otherwise fall back on mkdir,
7235 # with $RANDOM to make collisions less likely.
7236 : ${TMPDIR=/tmp}
7237 {
7238 tmp=`
7239 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7240 ` &&
7241 test -n "$tmp" && test -d "$tmp"
7242 } || {
7243 tmp=$TMPDIR/foo$$-$RANDOM
7244 (umask 077 && mkdir "$tmp")
7245 } || exit $?
7247 echo "{" > "$tmp/export.map"
7248 echo " global: main;" >> "$tmp/export.map"
7249 echo " local: *;" >> "$tmp/export.map"
7250 echo "};" >> "$tmp/export.map"
7252 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7260 int
7261 main ()
7262 {
7264 ;
7265 return 0;
7266 }
7267 _ACEOF
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (ac_try="$ac_link"
7270 case "(($ac_try" in
7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7273 esac
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_link") 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7283 { (case "(($ac_try" in
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_try") 2>&5
7289 ac_status=$?
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try='test -s conftest$ac_exeext'
7293 { (case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296 esac
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_try") 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 llvm_cv_link_use_version_script=yes
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 llvm_cv_link_use_version_script=no
7308 fi
7310 rm -f core conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7312 rm "$tmp/export.map"
7313 rmdir "$tmp"
7314 CFLAGS="$oldcflags"
7315 ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7322 fi
7323 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7324 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7325 if test "$llvm_cv_link_use_version_script" = yes ; then
7326 HAVE_LINK_VERSION_SCRIPT=1
7328 fi
7332 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7333 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7334 if test "${ac_cv_path_GREP+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337 # Extract the first word of "grep ggrep" to use in msg output
7338 if test -z "$GREP"; then
7339 set dummy grep ggrep; ac_prog_name=$2
7340 if test "${ac_cv_path_GREP+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343 ac_path_GREP_found=false
7344 # Loop through the user's path and test for each of PROGNAME-LIST
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7347 do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_prog in grep ggrep; do
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7353 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7354 # Check for GNU ac_path_GREP and select it if it is found.
7355 # Check for GNU $ac_path_GREP
7356 case `"$ac_path_GREP" --version 2>&1` in
7357 *GNU*)
7358 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7359 *)
7360 ac_count=0
7361 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7362 while :
7363 do
7364 cat "conftest.in" "conftest.in" >"conftest.tmp"
7365 mv "conftest.tmp" "conftest.in"
7366 cp "conftest.in" "conftest.nl"
7367 echo 'GREP' >> "conftest.nl"
7368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7370 ac_count=`expr $ac_count + 1`
7371 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7372 # Best one so far, save it but keep looking for a better one
7373 ac_cv_path_GREP="$ac_path_GREP"
7374 ac_path_GREP_max=$ac_count
7375 fi
7376 # 10*(2^10) chars as input seems more than enough
7377 test $ac_count -gt 10 && break
7378 done
7379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7380 esac
7383 $ac_path_GREP_found && break 3
7384 done
7385 done
7387 done
7388 IFS=$as_save_IFS
7391 fi
7393 GREP="$ac_cv_path_GREP"
7394 if test -z "$GREP"; then
7395 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7396 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7397 { (exit 1); exit 1; }; }
7398 fi
7400 else
7401 ac_cv_path_GREP=$GREP
7402 fi
7405 fi
7406 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7407 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7408 GREP="$ac_cv_path_GREP"
7411 { echo "$as_me:$LINENO: checking for egrep" >&5
7412 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_EGREP+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7417 then ac_cv_path_EGREP="$GREP -E"
7418 else
7419 # Extract the first word of "egrep" to use in msg output
7420 if test -z "$EGREP"; then
7421 set dummy egrep; ac_prog_name=$2
7422 if test "${ac_cv_path_EGREP+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425 ac_path_EGREP_found=false
7426 # Loop through the user's path and test for each of PROGNAME-LIST
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7429 do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_prog in egrep; do
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7435 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7436 # Check for GNU ac_path_EGREP and select it if it is found.
7437 # Check for GNU $ac_path_EGREP
7438 case `"$ac_path_EGREP" --version 2>&1` in
7439 *GNU*)
7440 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7441 *)
7442 ac_count=0
7443 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7444 while :
7445 do
7446 cat "conftest.in" "conftest.in" >"conftest.tmp"
7447 mv "conftest.tmp" "conftest.in"
7448 cp "conftest.in" "conftest.nl"
7449 echo 'EGREP' >> "conftest.nl"
7450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7452 ac_count=`expr $ac_count + 1`
7453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7454 # Best one so far, save it but keep looking for a better one
7455 ac_cv_path_EGREP="$ac_path_EGREP"
7456 ac_path_EGREP_max=$ac_count
7457 fi
7458 # 10*(2^10) chars as input seems more than enough
7459 test $ac_count -gt 10 && break
7460 done
7461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7462 esac
7465 $ac_path_EGREP_found && break 3
7466 done
7467 done
7469 done
7470 IFS=$as_save_IFS
7473 fi
7475 EGREP="$ac_cv_path_EGREP"
7476 if test -z "$EGREP"; then
7477 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7478 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7479 { (exit 1); exit 1; }; }
7480 fi
7482 else
7483 ac_cv_path_EGREP=$EGREP
7484 fi
7487 fi
7488 fi
7489 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7490 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7491 EGREP="$ac_cv_path_EGREP"
7494 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7495 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7496 if test "${ac_cv_header_stdc+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499 cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h. */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #include <stdlib.h>
7506 #include <stdarg.h>
7507 #include <string.h>
7508 #include <float.h>
7510 int
7511 main ()
7512 {
7514 ;
7515 return 0;
7516 }
7517 _ACEOF
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7520 case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7523 esac
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_compile") 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7533 { (case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_try") 2>&5
7539 ac_status=$?
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest.$ac_objext'
7543 { (case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546 esac
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_try") 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_header_stdc=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 ac_cv_header_stdc=no
7558 fi
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 if test $ac_cv_header_stdc = yes; then
7563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 #include <string.h>
7572 _ACEOF
7573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7574 $EGREP "memchr" >/dev/null 2>&1; then
7575 :
7576 else
7577 ac_cv_header_stdc=no
7578 fi
7579 rm -f conftest*
7581 fi
7583 if test $ac_cv_header_stdc = yes; then
7584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 #include <stdlib.h>
7593 _ACEOF
7594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7595 $EGREP "free" >/dev/null 2>&1; then
7596 :
7597 else
7598 ac_cv_header_stdc=no
7599 fi
7600 rm -f conftest*
7602 fi
7604 if test $ac_cv_header_stdc = yes; then
7605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7606 if test "$cross_compiling" = yes; then
7607 :
7608 else
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 #include <ctype.h>
7616 #include <stdlib.h>
7617 #if ((' ' & 0x0FF) == 0x020)
7618 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7619 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7620 #else
7621 # define ISLOWER(c) \
7622 (('a' <= (c) && (c) <= 'i') \
7623 || ('j' <= (c) && (c) <= 'r') \
7624 || ('s' <= (c) && (c) <= 'z'))
7625 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7626 #endif
7628 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7629 int
7630 main ()
7631 {
7632 int i;
7633 for (i = 0; i < 256; i++)
7634 if (XOR (islower (i), ISLOWER (i))
7635 || toupper (i) != TOUPPER (i))
7636 return 2;
7637 return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest$ac_exeext
7641 if { (ac_try="$ac_link"
7642 case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645 esac
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_link") 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7651 { (case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_try") 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 :
7661 else
7662 echo "$as_me: program exited with status $ac_status" >&5
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7666 ( exit $ac_status )
7667 ac_cv_header_stdc=no
7668 fi
7669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7670 fi
7673 fi
7674 fi
7675 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7676 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7677 if test $ac_cv_header_stdc = yes; then
7679 cat >>confdefs.h <<\_ACEOF
7680 #define STDC_HEADERS 1
7681 _ACEOF
7683 fi
7685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7696 inttypes.h stdint.h unistd.h
7697 do
7698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704 cat >conftest.$ac_ext <<_ACEOF
7705 /* confdefs.h. */
7706 _ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7710 $ac_includes_default
7712 #include <$ac_header>
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (ac_try="$ac_compile"
7716 case "(($ac_try" in
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7719 esac
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_compile") 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7729 { (case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732 esac
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_try") 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742 esac
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_try") 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748 eval "$as_ac_Header=yes"
7749 else
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 eval "$as_ac_Header=no"
7754 fi
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 fi
7758 ac_res=`eval echo '${'$as_ac_Header'}'`
7759 { echo "$as_me:$LINENO: result: $ac_res" >&5
7760 echo "${ECHO_T}$ac_res" >&6; }
7761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7762 cat >>confdefs.h <<_ACEOF
7763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7764 _ACEOF
7766 fi
7768 done
7772 for ac_header in errno.h
7773 do
7774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 fi
7781 ac_res=`eval echo '${'$as_ac_Header'}'`
7782 { echo "$as_me:$LINENO: result: $ac_res" >&5
7783 echo "${ECHO_T}$ac_res" >&6; }
7784 else
7785 # Is the header compilable?
7786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7795 #include <$ac_header>
7796 _ACEOF
7797 rm -f conftest.$ac_objext
7798 if { (ac_try="$ac_compile"
7799 case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_compile") 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } &&
7811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7812 { (case "(($ac_try" in
7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7815 esac
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817 (eval "$ac_try") 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try='test -s conftest.$ac_objext'
7822 { (case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_try") 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_header_compiler=yes
7832 else
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 ac_header_compiler=no
7837 fi
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7841 echo "${ECHO_T}$ac_header_compiler" >&6; }
7843 # Is the header present?
7844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7846 cat >conftest.$ac_ext <<_ACEOF
7847 /* confdefs.h. */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 #include <$ac_header>
7853 _ACEOF
7854 if { (ac_try="$ac_cpp conftest.$ac_ext"
7855 case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } >/dev/null; then
7867 if test -s conftest.err; then
7868 ac_cpp_err=$ac_c_preproc_warn_flag
7869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7870 else
7871 ac_cpp_err=
7872 fi
7873 else
7874 ac_cpp_err=yes
7875 fi
7876 if test -z "$ac_cpp_err"; then
7877 ac_header_preproc=yes
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 ac_header_preproc=no
7883 fi
7885 rm -f conftest.err conftest.$ac_ext
7886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7887 echo "${ECHO_T}$ac_header_preproc" >&6; }
7889 # So? What about this header?
7890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7891 yes:no: )
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7896 ac_header_preproc=yes
7897 ;;
7898 no:yes:* )
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7911 ( cat <<\_ASBOX
7912 ## ------------------------------------ ##
7913 ## Report this to http://llvm.org/bugs/ ##
7914 ## ------------------------------------ ##
7915 _ASBOX
7916 ) | sed "s/^/$as_me: WARNING: /" >&2
7917 ;;
7918 esac
7919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924 eval "$as_ac_Header=\$ac_header_preproc"
7925 fi
7926 ac_res=`eval echo '${'$as_ac_Header'}'`
7927 { echo "$as_me:$LINENO: result: $ac_res" >&5
7928 echo "${ECHO_T}$ac_res" >&6; }
7930 fi
7931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7932 cat >>confdefs.h <<_ACEOF
7933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7934 _ACEOF
7936 fi
7938 done
7941 case "$llvm_cv_os_type" in
7942 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7943 Darwin) llvm_shlib_ext=.dylib ;;
7944 *) llvm_shlib_ext=.so ;;
7945 esac
7948 cat >>confdefs.h <<_ACEOF
7949 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7950 _ACEOF
7953 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7954 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7956 ICC=no
7957 IXX=no
7958 case $CC in
7959 icc*|icpc*)
7960 ICC=yes
7961 IXX=yes
7962 ;;
7963 *)
7964 ;;
7965 esac
7967 if test "$GCC" != "yes" && test "$ICC" != "yes"
7968 then
7969 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7970 echo "$as_me: error: gcc|icc required but not found" >&2;}
7971 { (exit 1); exit 1; }; }
7972 fi
7974 if test "$GXX" != "yes" && test "$IXX" != "yes"
7975 then
7976 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7977 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7978 { (exit 1); exit 1; }; }
7979 fi
7981 if test "$GCC" = "yes"
7982 then
7983 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7991 #if !defined(__GNUC__) || __GNUC__ < 3
7992 #error Unsupported GCC version
7993 #endif
7996 _ACEOF
7997 rm -f conftest.$ac_objext
7998 if { (ac_try="$ac_compile"
7999 case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8002 esac
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_compile") 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8012 { (case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015 esac
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_try") 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest.$ac_objext'
8022 { (case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_try") 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 :
8032 else
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8036 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8037 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8038 { (exit 1); exit 1; }; }
8039 fi
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 fi
8044 if test -z "$llvm_cv_gnu_make_command"
8045 then
8046 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8047 echo "$as_me: error: GNU Make required but not found" >&2;}
8048 { (exit 1); exit 1; }; }
8049 fi
8051 { echo "$as_me:$LINENO: result: ok" >&5
8052 echo "${ECHO_T}ok" >&6; }
8054 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8055 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8056 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8058 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8060 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8063 NO_UNINITIALIZED=
8064 NO_MAYBE_UNINITIALIZED=
8065 if test "$GXX" = "yes"
8066 then
8067 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8069 if test -z "$NO_MAYBE_UNINITIALIZED"
8070 then
8071 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8073 fi
8074 fi
8076 no_comment=
8077 llvm_cv_old_cxxflags="$CXXFLAGS"
8078 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8079 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h. */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 // Comment \o\
8087 // Another comment
8088 int main() { return 0; }
8091 _ACEOF
8092 rm -f conftest.$ac_objext
8093 if { (ac_try="$ac_compile"
8094 case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097 esac
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_compile") 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8107 { (case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_try") 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest.$ac_objext'
8117 { (case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_try") 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8127 no_comment=-Wno-comment
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8134 fi
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 NO_COMMENT=$no_comment
8139 CXXFLAGS="$llvm_cv_old_cxxflags"
8141 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8142 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8145 # Check whether --with-python was given.
8146 if test "${with_python+set}" = set; then
8147 withval=$with_python; PYTHON="$withval"
8148 fi
8151 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8152 { echo "$as_me:$LINENO: checking for python" >&5
8153 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8154 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8155 echo "${ECHO_T}user defined: $with_python" >&6; }
8156 else
8157 if test -n "$PYTHON" ; then
8158 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8159 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8160 fi
8162 # Extract the first word of "python python2 python27", so it can be a program name with args.
8163 set dummy python python2 python27; ac_word=$2
8164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166 if test "${ac_cv_path_PYTHON+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169 case $PYTHON in
8170 [\\/]* | ?:[\\/]*)
8171 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8172 ;;
8173 *)
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177 IFS=$as_save_IFS
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 break 2
8184 fi
8185 done
8186 done
8187 IFS=$as_save_IFS
8189 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8190 echo "${ECHO_T}not found" >&6; }
8191 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8192 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8193 { (exit 1); exit 1; }; }"
8194 ;;
8195 esac
8196 fi
8197 PYTHON=$ac_cv_path_PYTHON
8198 if test -n "$PYTHON"; then
8199 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8200 echo "${ECHO_T}$PYTHON" >&6; }
8201 else
8202 { echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6; }
8204 fi
8207 fi
8209 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8210 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8211 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8212 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8213 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8214 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8215 if test "$ac_python_version_major" -gt "2" || \
8216 (test "$ac_python_version_major" -eq "2" && \
8217 test "$ac_python_version_minor" -ge "7") ; then
8218 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8219 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8220 else
8221 { echo "$as_me:$LINENO: result: not found" >&5
8222 echo "${ECHO_T}not found" >&6; }
8223 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8224 See \`config.log' for more details." >&5
8225 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8226 See \`config.log' for more details." >&2;}
8227 { (exit 1); exit 1; }; }
8228 fi
8232 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8233 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8234 if test "${ac_cv_lib_m_sin+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237 ac_check_lib_save_LIBS=$LIBS
8238 LIBS="-lm $LIBS"
8239 cat >conftest.$ac_ext <<_ACEOF
8240 /* confdefs.h. */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8246 /* Override any GCC internal prototype to avoid an error.
8247 Use char because int might match the return type of a GCC
8248 builtin and then its argument prototype would still apply. */
8249 #ifdef __cplusplus
8250 extern "C"
8251 #endif
8252 char sin ();
8253 int
8254 main ()
8255 {
8256 return sin ();
8257 ;
8258 return 0;
8259 }
8260 _ACEOF
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8263 case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_link") 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8276 { (case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_try") 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; } &&
8285 { ac_try='test -s conftest$ac_exeext'
8286 { (case "(($ac_try" in
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_try") 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 ac_cv_lib_m_sin=yes
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8300 ac_cv_lib_m_sin=no
8301 fi
8303 rm -f core conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305 LIBS=$ac_check_lib_save_LIBS
8306 fi
8307 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8308 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8309 if test $ac_cv_lib_m_sin = yes; then
8310 cat >>confdefs.h <<_ACEOF
8311 #define HAVE_LIBM 1
8312 _ACEOF
8314 LIBS="-lm $LIBS"
8316 fi
8318 if test "$llvm_cv_os_type" = "MingW" ; then
8320 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8321 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8322 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 ac_check_lib_save_LIBS=$LIBS
8326 LIBS="-limagehlp $LIBS"
8327 cat >conftest.$ac_ext <<_ACEOF
8328 /* confdefs.h. */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8335 int
8336 main ()
8337 {
8338 return main ();
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (ac_try="$ac_link"
8345 case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_link") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest$ac_exeext'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_lib_imagehlp_main=yes
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_lib_imagehlp_main=no
8383 fi
8385 rm -f core conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8387 LIBS=$ac_check_lib_save_LIBS
8388 fi
8389 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8390 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8391 if test $ac_cv_lib_imagehlp_main = yes; then
8392 cat >>confdefs.h <<_ACEOF
8393 #define HAVE_LIBIMAGEHLP 1
8394 _ACEOF
8396 LIBS="-limagehlp $LIBS"
8398 fi
8401 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8402 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8403 if test "${ac_cv_lib_psapi_main+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 ac_check_lib_save_LIBS=$LIBS
8407 LIBS="-lpsapi $LIBS"
8408 cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h. */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8416 int
8417 main ()
8418 {
8419 return main ();
8420 ;
8421 return 0;
8422 }
8423 _ACEOF
8424 rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (ac_try="$ac_link"
8426 case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_link") 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest$ac_exeext'
8449 { (case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_try") 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_cv_lib_psapi_main=yes
8459 else
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_cv_lib_psapi_main=no
8464 fi
8466 rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8469 fi
8470 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8471 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8472 if test $ac_cv_lib_psapi_main = yes; then
8473 cat >>confdefs.h <<_ACEOF
8474 #define HAVE_LIBPSAPI 1
8475 _ACEOF
8477 LIBS="-lpsapi $LIBS"
8479 fi
8482 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8483 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8484 if test "${ac_cv_lib_shell32_main+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487 ac_check_lib_save_LIBS=$LIBS
8488 LIBS="-lshell32 $LIBS"
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8497 int
8498 main ()
8499 {
8500 return main ();
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (ac_try="$ac_link"
8507 case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_link") 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8520 { (case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_try") 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest$ac_exeext'
8530 { (case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533 esac
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_try") 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_cv_lib_shell32_main=yes
8540 else
8541 echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8544 ac_cv_lib_shell32_main=no
8545 fi
8547 rm -f core conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 LIBS=$ac_check_lib_save_LIBS
8550 fi
8551 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8552 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8553 if test $ac_cv_lib_shell32_main = yes; then
8554 cat >>confdefs.h <<_ACEOF
8555 #define HAVE_LIBSHELL32 1
8556 _ACEOF
8558 LIBS="-lshell32 $LIBS"
8560 fi
8562 fi
8564 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8565 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8566 if test "${ac_cv_search_dlopen+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 ac_func_search_save_LIBS=$LIBS
8570 cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h. */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8577 /* Override any GCC internal prototype to avoid an error.
8578 Use char because int might match the return type of a GCC
8579 builtin and then its argument prototype would still apply. */
8580 #ifdef __cplusplus
8581 extern "C"
8582 #endif
8583 char dlopen ();
8584 int
8585 main ()
8586 {
8587 return dlopen ();
8588 ;
8589 return 0;
8590 }
8591 _ACEOF
8592 for ac_lib in '' dl; do
8593 if test -z "$ac_lib"; then
8594 ac_res="none required"
8595 else
8596 ac_res=-l$ac_lib
8597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8598 fi
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (ac_try="$ac_link"
8601 case "(($ac_try" in
8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603 *) ac_try_echo=$ac_try;;
8604 esac
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606 (eval "$ac_link") 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614 { (case "(($ac_try" in
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_try") 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest$ac_exeext'
8624 { (case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_try") 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_search_dlopen=$ac_res
8634 else
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8639 fi
8641 rm -f core conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext
8643 if test "${ac_cv_search_dlopen+set}" = set; then
8644 break
8645 fi
8646 done
8647 if test "${ac_cv_search_dlopen+set}" = set; then
8648 :
8649 else
8650 ac_cv_search_dlopen=no
8651 fi
8652 rm conftest.$ac_ext
8653 LIBS=$ac_func_search_save_LIBS
8654 fi
8655 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8656 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8657 ac_res=$ac_cv_search_dlopen
8658 if test "$ac_res" != no; then
8659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8662 cat >>confdefs.h <<\_ACEOF
8663 #define HAVE_DLOPEN 1
8664 _ACEOF
8666 HAVE_DLOPEN='1'
8669 else
8670 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8671 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8672 fi
8675 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8676 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8677 if test "${ac_cv_search_clock_gettime+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 ac_func_search_save_LIBS=$LIBS
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h. */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8688 /* Override any GCC internal prototype to avoid an error.
8689 Use char because int might match the return type of a GCC
8690 builtin and then its argument prototype would still apply. */
8691 #ifdef __cplusplus
8692 extern "C"
8693 #endif
8694 char clock_gettime ();
8695 int
8696 main ()
8697 {
8698 return clock_gettime ();
8699 ;
8700 return 0;
8701 }
8702 _ACEOF
8703 for ac_lib in '' rt; do
8704 if test -z "$ac_lib"; then
8705 ac_res="none required"
8706 else
8707 ac_res=-l$ac_lib
8708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8709 fi
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (ac_try="$ac_link"
8712 case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_link") 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8725 { (case "(($ac_try" in
8726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8728 esac
8729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_try") 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738 esac
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_try") 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_search_clock_gettime=$ac_res
8745 else
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8750 fi
8752 rm -f core conftest.err conftest.$ac_objext \
8753 conftest$ac_exeext
8754 if test "${ac_cv_search_clock_gettime+set}" = set; then
8755 break
8756 fi
8757 done
8758 if test "${ac_cv_search_clock_gettime+set}" = set; then
8759 :
8760 else
8761 ac_cv_search_clock_gettime=no
8762 fi
8763 rm conftest.$ac_ext
8764 LIBS=$ac_func_search_save_LIBS
8765 fi
8766 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8767 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8768 ac_res=$ac_cv_search_clock_gettime
8769 if test "$ac_res" != no; then
8770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8772 fi
8775 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8776 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8777 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8778 if test "${ac_cv_search_setupterm+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781 ac_func_search_save_LIBS=$LIBS
8782 cat >conftest.$ac_ext <<_ACEOF
8783 /* confdefs.h. */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8789 /* Override any GCC internal prototype to avoid an error.
8790 Use char because int might match the return type of a GCC
8791 builtin and then its argument prototype would still apply. */
8792 #ifdef __cplusplus
8793 extern "C"
8794 #endif
8795 char setupterm ();
8796 int
8797 main ()
8798 {
8799 return setupterm ();
8800 ;
8801 return 0;
8802 }
8803 _ACEOF
8804 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8805 if test -z "$ac_lib"; then
8806 ac_res="none required"
8807 else
8808 ac_res=-l$ac_lib
8809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8810 fi
8811 rm -f conftest.$ac_objext conftest$ac_exeext
8812 if { (ac_try="$ac_link"
8813 case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_link") 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8826 { (case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829 esac
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_try") 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (case "(($ac_try" in
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8839 esac
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_try") 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_search_setupterm=$ac_res
8846 else
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8851 fi
8853 rm -f core conftest.err conftest.$ac_objext \
8854 conftest$ac_exeext
8855 if test "${ac_cv_search_setupterm+set}" = set; then
8856 break
8857 fi
8858 done
8859 if test "${ac_cv_search_setupterm+set}" = set; then
8860 :
8861 else
8862 ac_cv_search_setupterm=no
8863 fi
8864 rm conftest.$ac_ext
8865 LIBS=$ac_func_search_save_LIBS
8866 fi
8867 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8868 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8869 ac_res=$ac_cv_search_setupterm
8870 if test "$ac_res" != no; then
8871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8874 cat >>confdefs.h <<\_ACEOF
8875 #define HAVE_TERMINFO 1
8876 _ACEOF
8878 HAVE_TERMINFO='1'
8881 fi
8883 fi
8885 if test "$llvm_cv_enable_libedit" = "yes" ; then
8886 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8887 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8888 if test "${ac_cv_search_el_init+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891 ac_func_search_save_LIBS=$LIBS
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h. */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8899 /* Override any GCC internal prototype to avoid an error.
8900 Use char because int might match the return type of a GCC
8901 builtin and then its argument prototype would still apply. */
8902 #ifdef __cplusplus
8903 extern "C"
8904 #endif
8905 char el_init ();
8906 int
8907 main ()
8908 {
8909 return el_init ();
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 for ac_lib in '' edit; do
8915 if test -z "$ac_lib"; then
8916 ac_res="none required"
8917 else
8918 ac_res=-l$ac_lib
8919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8920 fi
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (ac_try="$ac_link"
8923 case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8926 esac
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_link") 2>conftest.er1
8929 ac_status=$?
8930 grep -v '^ *+' conftest.er1 >conftest.err
8931 rm -f conftest.er1
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8936 { (case "(($ac_try" in
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8939 esac
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_try") 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; } &&
8945 { ac_try='test -s conftest$ac_exeext'
8946 { (case "(($ac_try" in
8947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8949 esac
8950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8951 (eval "$ac_try") 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 ac_cv_search_el_init=$ac_res
8956 else
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8961 fi
8963 rm -f core conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext
8965 if test "${ac_cv_search_el_init+set}" = set; then
8966 break
8967 fi
8968 done
8969 if test "${ac_cv_search_el_init+set}" = set; then
8970 :
8971 else
8972 ac_cv_search_el_init=no
8973 fi
8974 rm conftest.$ac_ext
8975 LIBS=$ac_func_search_save_LIBS
8976 fi
8977 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8978 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8979 ac_res=$ac_cv_search_el_init
8980 if test "$ac_res" != no; then
8981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8983 cat >>confdefs.h <<\_ACEOF
8984 #define HAVE_LIBEDIT 1
8985 _ACEOF
8987 fi
8989 fi
8991 if test "$llvm_cv_enable_libffi" = "yes" ; then
8992 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8993 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8994 if test "${ac_cv_search_ffi_call+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997 ac_func_search_save_LIBS=$LIBS
8998 cat >conftest.$ac_ext <<_ACEOF
8999 /* confdefs.h. */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9005 /* Override any GCC internal prototype to avoid an error.
9006 Use char because int might match the return type of a GCC
9007 builtin and then its argument prototype would still apply. */
9008 #ifdef __cplusplus
9009 extern "C"
9010 #endif
9011 char ffi_call ();
9012 int
9013 main ()
9014 {
9015 return ffi_call ();
9016 ;
9017 return 0;
9018 }
9019 _ACEOF
9020 for ac_lib in '' ffi; do
9021 if test -z "$ac_lib"; then
9022 ac_res="none required"
9023 else
9024 ac_res=-l$ac_lib
9025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9026 fi
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (ac_try="$ac_link"
9029 case "(($ac_try" in
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9032 esac
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_link") 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042 { (case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9045 esac
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_try") 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest$ac_exeext'
9052 { (case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9055 esac
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_try") 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_cv_search_ffi_call=$ac_res
9062 else
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9067 fi
9069 rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext
9071 if test "${ac_cv_search_ffi_call+set}" = set; then
9072 break
9073 fi
9074 done
9075 if test "${ac_cv_search_ffi_call+set}" = set; then
9076 :
9077 else
9078 ac_cv_search_ffi_call=no
9079 fi
9080 rm conftest.$ac_ext
9081 LIBS=$ac_func_search_save_LIBS
9082 fi
9083 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9084 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9085 ac_res=$ac_cv_search_ffi_call
9086 if test "$ac_res" != no; then
9087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9089 cat >>confdefs.h <<\_ACEOF
9090 #define HAVE_FFI_CALL 1
9091 _ACEOF
9093 else
9094 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9095 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9096 { (exit 1); exit 1; }; }
9097 fi
9099 fi
9101 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9102 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9103 if test "${ac_cv_search_mallinfo+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 ac_func_search_save_LIBS=$LIBS
9107 cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h. */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9114 /* Override any GCC internal prototype to avoid an error.
9115 Use char because int might match the return type of a GCC
9116 builtin and then its argument prototype would still apply. */
9117 #ifdef __cplusplus
9118 extern "C"
9119 #endif
9120 char mallinfo ();
9121 int
9122 main ()
9123 {
9124 return mallinfo ();
9125 ;
9126 return 0;
9127 }
9128 _ACEOF
9129 for ac_lib in '' malloc; do
9130 if test -z "$ac_lib"; then
9131 ac_res="none required"
9132 else
9133 ac_res=-l$ac_lib
9134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9135 fi
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (ac_try="$ac_link"
9138 case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141 esac
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_link") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } &&
9150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9151 { (case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9154 esac
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_try") 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_search_mallinfo=$ac_res
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9176 fi
9178 rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext
9180 if test "${ac_cv_search_mallinfo+set}" = set; then
9181 break
9182 fi
9183 done
9184 if test "${ac_cv_search_mallinfo+set}" = set; then
9185 :
9186 else
9187 ac_cv_search_mallinfo=no
9188 fi
9189 rm conftest.$ac_ext
9190 LIBS=$ac_func_search_save_LIBS
9191 fi
9192 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9193 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9194 ac_res=$ac_cv_search_mallinfo
9195 if test "$ac_res" != no; then
9196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9198 cat >>confdefs.h <<\_ACEOF
9199 #define HAVE_MALLINFO 1
9200 _ACEOF
9202 fi
9205 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9207 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9208 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9209 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212 ac_check_lib_save_LIBS=$LIBS
9213 LIBS="-lpthread $LIBS"
9214 cat >conftest.$ac_ext <<_ACEOF
9215 /* confdefs.h. */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9221 /* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9224 #ifdef __cplusplus
9225 extern "C"
9226 #endif
9227 char pthread_mutex_init ();
9228 int
9229 main ()
9230 {
9231 return pthread_mutex_init ();
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (ac_try="$ac_link"
9238 case "(($ac_try" in
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9241 esac
9242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_link") 2>conftest.er1
9244 ac_status=$?
9245 grep -v '^ *+' conftest.er1 >conftest.err
9246 rm -f conftest.er1
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9251 { (case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_try") 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest$ac_exeext'
9261 { (case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_try") 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 ac_cv_lib_pthread_pthread_mutex_init=yes
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_cv_lib_pthread_pthread_mutex_init=no
9276 fi
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9281 fi
9282 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9283 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9284 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9285 cat >>confdefs.h <<_ACEOF
9286 #define HAVE_LIBPTHREAD 1
9287 _ACEOF
9289 LIBS="-lpthread $LIBS"
9291 fi
9293 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9294 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9295 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298 ac_func_search_save_LIBS=$LIBS
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h. */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9306 /* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
9309 #ifdef __cplusplus
9310 extern "C"
9311 #endif
9312 char pthread_mutex_lock ();
9313 int
9314 main ()
9315 {
9316 return pthread_mutex_lock ();
9317 ;
9318 return 0;
9319 }
9320 _ACEOF
9321 for ac_lib in '' pthread; do
9322 if test -z "$ac_lib"; then
9323 ac_res="none required"
9324 else
9325 ac_res=-l$ac_lib
9326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9327 fi
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (ac_try="$ac_link"
9330 case "(($ac_try" in
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9333 esac
9334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 (eval "$ac_link") 2>conftest.er1
9336 ac_status=$?
9337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9343 { (case "(($ac_try" in
9344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345 *) ac_try_echo=$ac_try;;
9346 esac
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_try") 2>&5
9349 ac_status=$?
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try='test -s conftest$ac_exeext'
9353 { (case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9356 esac
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_try") 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_cv_search_pthread_mutex_lock=$ac_res
9363 else
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9368 fi
9370 rm -f core conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext
9372 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9373 break
9374 fi
9375 done
9376 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9377 :
9378 else
9379 ac_cv_search_pthread_mutex_lock=no
9380 fi
9381 rm conftest.$ac_ext
9382 LIBS=$ac_func_search_save_LIBS
9383 fi
9384 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9385 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9386 ac_res=$ac_cv_search_pthread_mutex_lock
9387 if test "$ac_res" != no; then
9388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9390 cat >>confdefs.h <<\_ACEOF
9391 #define HAVE_PTHREAD_MUTEX_LOCK 1
9392 _ACEOF
9394 fi
9396 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9397 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9398 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401 ac_func_search_save_LIBS=$LIBS
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9409 /* Override any GCC internal prototype to avoid an error.
9410 Use char because int might match the return type of a GCC
9411 builtin and then its argument prototype would still apply. */
9412 #ifdef __cplusplus
9413 extern "C"
9414 #endif
9415 char pthread_rwlock_init ();
9416 int
9417 main ()
9418 {
9419 return pthread_rwlock_init ();
9420 ;
9421 return 0;
9422 }
9423 _ACEOF
9424 for ac_lib in '' pthread; do
9425 if test -z "$ac_lib"; then
9426 ac_res="none required"
9427 else
9428 ac_res=-l$ac_lib
9429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9430 fi
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (ac_try="$ac_link"
9433 case "(($ac_try" in
9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9436 esac
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_link") 2>conftest.er1
9439 ac_status=$?
9440 grep -v '^ *+' conftest.er1 >conftest.err
9441 rm -f conftest.er1
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9446 { (case "(($ac_try" in
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9449 esac
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_try") 2>&5
9452 ac_status=$?
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; } &&
9455 { ac_try='test -s conftest$ac_exeext'
9456 { (case "(($ac_try" in
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9459 esac
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_try") 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_search_pthread_rwlock_init=$ac_res
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9471 fi
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext
9475 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9476 break
9477 fi
9478 done
9479 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9480 :
9481 else
9482 ac_cv_search_pthread_rwlock_init=no
9483 fi
9484 rm conftest.$ac_ext
9485 LIBS=$ac_func_search_save_LIBS
9486 fi
9487 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9488 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9489 ac_res=$ac_cv_search_pthread_rwlock_init
9490 if test "$ac_res" != no; then
9491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9493 cat >>confdefs.h <<\_ACEOF
9494 #define HAVE_PTHREAD_RWLOCK_INIT 1
9495 _ACEOF
9497 fi
9499 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9500 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9501 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504 ac_func_search_save_LIBS=$LIBS
9505 cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h. */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9512 /* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char pthread_getspecific ();
9519 int
9520 main ()
9521 {
9522 return pthread_getspecific ();
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 for ac_lib in '' pthread; do
9528 if test -z "$ac_lib"; then
9529 ac_res="none required"
9530 else
9531 ac_res=-l$ac_lib
9532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9533 fi
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (ac_try="$ac_link"
9536 case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539 esac
9540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_link") 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9549 { (case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9552 esac
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_try") 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562 esac
9563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_try") 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_search_pthread_getspecific=$ac_res
9569 else
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9574 fi
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext
9578 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9579 break
9580 fi
9581 done
9582 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9583 :
9584 else
9585 ac_cv_search_pthread_getspecific=no
9586 fi
9587 rm conftest.$ac_ext
9588 LIBS=$ac_func_search_save_LIBS
9589 fi
9590 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9591 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9592 ac_res=$ac_cv_search_pthread_getspecific
9593 if test "$ac_res" != no; then
9594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_PTHREAD_GETSPECIFIC 1
9598 _ACEOF
9600 fi
9602 fi
9604 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9606 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9607 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9608 if test "${ac_cv_lib_z_compress2+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 ac_check_lib_save_LIBS=$LIBS
9612 LIBS="-lz $LIBS"
9613 cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h. */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9620 /* Override any GCC internal prototype to avoid an error.
9621 Use char because int might match the return type of a GCC
9622 builtin and then its argument prototype would still apply. */
9623 #ifdef __cplusplus
9624 extern "C"
9625 #endif
9626 char compress2 ();
9627 int
9628 main ()
9629 {
9630 return compress2 ();
9631 ;
9632 return 0;
9633 }
9634 _ACEOF
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (ac_try="$ac_link"
9637 case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_link") 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9650 { (case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653 esac
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_try") 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; } &&
9659 { ac_try='test -s conftest$ac_exeext'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 ac_cv_lib_z_compress2=yes
9670 else
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_cv_lib_z_compress2=no
9675 fi
9677 rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 LIBS=$ac_check_lib_save_LIBS
9680 fi
9681 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9682 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9683 if test $ac_cv_lib_z_compress2 = yes; then
9684 cat >>confdefs.h <<_ACEOF
9685 #define HAVE_LIBZ 1
9686 _ACEOF
9688 LIBS="-lz $LIBS"
9690 fi
9692 fi
9695 # Check whether --with-oprofile was given.
9696 if test "${with_oprofile+set}" = set; then
9697 withval=$with_oprofile;
9698 USE_OPROFILE=1
9700 case "$withval" in
9701 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9702 no) llvm_cv_oppath=
9703 USE_OPROFILE=0
9704 ;;
9705 *) llvm_cv_oppath="${withval}/lib/oprofile"
9706 CPPFLAGS="-I${withval}/include";;
9707 esac
9708 case $llvm_cv_os_type in
9709 Linux)
9710 if test -n "$llvm_cv_oppath" ; then
9711 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9712 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9713 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9714 if test "${ac_cv_search_bfd_init+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 ac_func_search_save_LIBS=$LIBS
9718 cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h. */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9725 /* Override any GCC internal prototype to avoid an error.
9726 Use char because int might match the return type of a GCC
9727 builtin and then its argument prototype would still apply. */
9728 #ifdef __cplusplus
9729 extern "C"
9730 #endif
9731 char bfd_init ();
9732 int
9733 main ()
9734 {
9735 return bfd_init ();
9736 ;
9737 return 0;
9738 }
9739 _ACEOF
9740 for ac_lib in '' bfd; do
9741 if test -z "$ac_lib"; then
9742 ac_res="none required"
9743 else
9744 ac_res=-l$ac_lib
9745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9746 fi
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9762 { (case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_try") 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_try") 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_search_bfd_init=$ac_res
9782 else
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9787 fi
9789 rm -f core conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext
9791 if test "${ac_cv_search_bfd_init+set}" = set; then
9792 break
9793 fi
9794 done
9795 if test "${ac_cv_search_bfd_init+set}" = set; then
9796 :
9797 else
9798 ac_cv_search_bfd_init=no
9799 fi
9800 rm conftest.$ac_ext
9801 LIBS=$ac_func_search_save_LIBS
9802 fi
9803 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9804 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9805 ac_res=$ac_cv_search_bfd_init
9806 if test "$ac_res" != no; then
9807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9809 fi
9811 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9812 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9813 if test "${ac_cv_search_op_open_agent+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816 ac_func_search_save_LIBS=$LIBS
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9824 /* Override any GCC internal prototype to avoid an error.
9825 Use char because int might match the return type of a GCC
9826 builtin and then its argument prototype would still apply. */
9827 #ifdef __cplusplus
9828 extern "C"
9829 #endif
9830 char op_open_agent ();
9831 int
9832 main ()
9833 {
9834 return op_open_agent ();
9835 ;
9836 return 0;
9837 }
9838 _ACEOF
9839 for ac_lib in '' opagent; do
9840 if test -z "$ac_lib"; then
9841 ac_res="none required"
9842 else
9843 ac_res=-l$ac_lib
9844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9845 fi
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9848 case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_link") 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861 { (case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_try") 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest$ac_exeext'
9871 { (case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_try") 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_search_op_open_agent=$ac_res
9881 else
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9886 fi
9888 rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext
9890 if test "${ac_cv_search_op_open_agent+set}" = set; then
9891 break
9892 fi
9893 done
9894 if test "${ac_cv_search_op_open_agent+set}" = set; then
9895 :
9896 else
9897 ac_cv_search_op_open_agent=no
9898 fi
9899 rm conftest.$ac_ext
9900 LIBS=$ac_func_search_save_LIBS
9901 fi
9902 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9903 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9904 ac_res=$ac_cv_search_op_open_agent
9905 if test "$ac_res" != no; then
9906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9908 else
9910 echo "Error! You need to have libopagent around."
9911 exit -1
9913 fi
9915 if test "${ac_cv_header_opagent_h+set}" = set; then
9916 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9917 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9918 if test "${ac_cv_header_opagent_h+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 fi
9921 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9922 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9923 else
9924 # Is the header compilable?
9925 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9926 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h. */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9933 $ac_includes_default
9934 #include <opagent.h>
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (ac_try="$ac_compile"
9938 case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_compile") 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9951 { (case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9954 esac
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_try") 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; } &&
9960 { ac_try='test -s conftest.$ac_objext'
9961 { (case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_try") 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 ac_header_compiler=yes
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_header_compiler=no
9976 fi
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9980 echo "${ECHO_T}$ac_header_compiler" >&6; }
9982 # Is the header present?
9983 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9984 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h. */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 #include <opagent.h>
9992 _ACEOF
9993 if { (ac_try="$ac_cpp conftest.$ac_ext"
9994 case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997 esac
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10000 ac_status=$?
10001 grep -v '^ *+' conftest.er1 >conftest.err
10002 rm -f conftest.er1
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } >/dev/null; then
10006 if test -s conftest.err; then
10007 ac_cpp_err=$ac_c_preproc_warn_flag
10008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10009 else
10010 ac_cpp_err=
10011 fi
10012 else
10013 ac_cpp_err=yes
10014 fi
10015 if test -z "$ac_cpp_err"; then
10016 ac_header_preproc=yes
10017 else
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 ac_header_preproc=no
10022 fi
10024 rm -f conftest.err conftest.$ac_ext
10025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10026 echo "${ECHO_T}$ac_header_preproc" >&6; }
10028 # So? What about this header?
10029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10030 yes:no: )
10031 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10032 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10034 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10035 ac_header_preproc=yes
10036 ;;
10037 no:yes:* )
10038 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10039 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10040 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10041 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10043 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10045 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10047 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10049 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10050 ( cat <<\_ASBOX
10051 ## ------------------------------------ ##
10052 ## Report this to http://llvm.org/bugs/ ##
10053 ## ------------------------------------ ##
10054 _ASBOX
10055 ) | sed "s/^/$as_me: WARNING: /" >&2
10056 ;;
10057 esac
10058 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10059 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10060 if test "${ac_cv_header_opagent_h+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063 ac_cv_header_opagent_h=$ac_header_preproc
10064 fi
10065 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10066 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10068 fi
10069 if test $ac_cv_header_opagent_h = yes; then
10070 :
10071 else
10073 echo "Error! You need to have opagent.h around."
10074 exit -1
10076 fi
10079 fi ;;
10080 *)
10081 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10082 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10083 { (exit 1); exit 1; }; } ;;
10084 esac
10086 else
10088 USE_OPROFILE=0
10091 fi
10094 cat >>confdefs.h <<_ACEOF
10095 #define LLVM_USE_OPROFILE $USE_OPROFILE
10096 _ACEOF
10100 # Check whether --with-intel-jitevents was given.
10101 if test "${with_intel_jitevents+set}" = set; then
10102 withval=$with_intel_jitevents;
10103 case "$withval" in
10104 yes) USE_INTEL_JITEVENTS=1
10105 ;;
10106 no) USE_INTEL_JITEVENTS=0
10107 ;;
10108 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10109 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10110 { (exit 1); exit 1; }; };;
10111 esac
10113 case $llvm_cv_os_type in
10114 Linux|Win32|Cygwin|MingW) ;;
10115 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10116 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10117 { (exit 1); exit 1; }; };;
10118 esac
10120 case "$llvm_cv_target_arch" in
10121 x86|x86_64) ;;
10122 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10123 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10124 { (exit 1); exit 1; }; };;
10125 esac
10127 else
10129 USE_INTEL_JITEVENTS=0
10132 fi
10135 cat >>confdefs.h <<_ACEOF
10136 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10137 _ACEOF
10140 for ac_prog in xml2-config
10141 do
10142 # Extract the first word of "$ac_prog", so it can be a program name with args.
10143 set dummy $ac_prog; ac_word=$2
10144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10146 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149 if test -n "$XML2CONFIG"; then
10150 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10151 else
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10154 do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10159 ac_cv_prog_XML2CONFIG="$ac_prog"
10160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10162 fi
10163 done
10164 done
10165 IFS=$as_save_IFS
10167 fi
10168 fi
10169 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10170 if test -n "$XML2CONFIG"; then
10171 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10172 echo "${ECHO_T}$XML2CONFIG" >&6; }
10173 else
10174 { echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6; }
10176 fi
10179 test -n "$XML2CONFIG" && break
10180 done
10183 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10184 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10185 if test "x$XML2CONFIG" = "x"; then
10186 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10187 echo "${ECHO_T}xml2-config not found" >&6; }
10188 else
10189 LIBXML2_INC=`$XML2CONFIG --cflags`
10190 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10191 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10192 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10193 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10194 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197 ac_check_lib_save_LIBS=$LIBS
10198 LIBS="-lxml2 $LIBS"
10199 cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10209 #ifdef __cplusplus
10210 extern "C"
10211 #endif
10212 char xmlReadFile ();
10213 int
10214 main ()
10215 {
10216 return xmlReadFile ();
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_link") 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10236 { (case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10239 esac
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_try") 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; } &&
10245 { ac_try='test -s conftest$ac_exeext'
10246 { (case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249 esac
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_try") 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_lib_xml2_xmlReadFile=yes
10256 else
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_cv_lib_xml2_xmlReadFile=no
10261 fi
10263 rm -f core conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_lib_save_LIBS
10266 fi
10267 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10268 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10269 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10271 cat >>confdefs.h <<\_ACEOF
10272 #define CLANG_HAVE_LIBXML 1
10273 _ACEOF
10275 LIBXML2_LIBS="-lxml2"
10276 fi
10278 fi
10288 ac_header_dirent=no
10289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10290 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10291 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <sys/types.h>
10303 #include <$ac_hdr>
10305 int
10306 main ()
10307 {
10308 if ((DIR *) 0)
10309 return 0;
10310 ;
10311 return 0;
10312 }
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (ac_try="$ac_compile"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_compile") 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10329 { (case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_try") 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; } &&
10338 { ac_try='test -s conftest.$ac_objext'
10339 { (case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_try") 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 eval "$as_ac_Header=yes"
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 eval "$as_ac_Header=no"
10354 fi
10356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357 fi
10358 ac_res=`eval echo '${'$as_ac_Header'}'`
10359 { echo "$as_me:$LINENO: result: $ac_res" >&5
10360 echo "${ECHO_T}$ac_res" >&6; }
10361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10362 cat >>confdefs.h <<_ACEOF
10363 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10364 _ACEOF
10366 ac_header_dirent=$ac_hdr; break
10367 fi
10369 done
10370 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10371 if test $ac_header_dirent = dirent.h; then
10372 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10374 if test "${ac_cv_search_opendir+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377 ac_func_search_save_LIBS=$LIBS
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10385 /* Override any GCC internal prototype to avoid an error.
10386 Use char because int might match the return type of a GCC
10387 builtin and then its argument prototype would still apply. */
10388 #ifdef __cplusplus
10389 extern "C"
10390 #endif
10391 char opendir ();
10392 int
10393 main ()
10394 {
10395 return opendir ();
10396 ;
10397 return 0;
10398 }
10399 _ACEOF
10400 for ac_lib in '' dir; do
10401 if test -z "$ac_lib"; then
10402 ac_res="none required"
10403 else
10404 ac_res=-l$ac_lib
10405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10406 fi
10407 rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (ac_try="$ac_link"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10412 esac
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_link") 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10422 { (case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_try") 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; } &&
10431 { ac_try='test -s conftest$ac_exeext'
10432 { (case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_try") 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_cv_search_opendir=$ac_res
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10447 fi
10449 rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext
10451 if test "${ac_cv_search_opendir+set}" = set; then
10452 break
10453 fi
10454 done
10455 if test "${ac_cv_search_opendir+set}" = set; then
10456 :
10457 else
10458 ac_cv_search_opendir=no
10459 fi
10460 rm conftest.$ac_ext
10461 LIBS=$ac_func_search_save_LIBS
10462 fi
10463 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10464 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10465 ac_res=$ac_cv_search_opendir
10466 if test "$ac_res" != no; then
10467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10469 fi
10471 else
10472 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10473 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10474 if test "${ac_cv_search_opendir+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 else
10477 ac_func_search_save_LIBS=$LIBS
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10485 /* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
10488 #ifdef __cplusplus
10489 extern "C"
10490 #endif
10491 char opendir ();
10492 int
10493 main ()
10494 {
10495 return opendir ();
10496 ;
10497 return 0;
10498 }
10499 _ACEOF
10500 for ac_lib in '' x; do
10501 if test -z "$ac_lib"; then
10502 ac_res="none required"
10503 else
10504 ac_res=-l$ac_lib
10505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10506 fi
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512 esac
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
10515 ac_status=$?
10516 grep -v '^ *+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525 esac
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; } &&
10531 { ac_try='test -s conftest$ac_exeext'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 ac_cv_search_opendir=$ac_res
10542 else
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10547 fi
10549 rm -f core conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext
10551 if test "${ac_cv_search_opendir+set}" = set; then
10552 break
10553 fi
10554 done
10555 if test "${ac_cv_search_opendir+set}" = set; then
10556 :
10557 else
10558 ac_cv_search_opendir=no
10559 fi
10560 rm conftest.$ac_ext
10561 LIBS=$ac_func_search_save_LIBS
10562 fi
10563 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10564 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10565 ac_res=$ac_cv_search_opendir
10566 if test "$ac_res" != no; then
10567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10569 fi
10571 fi
10573 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10574 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10575 if test "${ac_cv_header_mmap_anon+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578 ac_ext=c
10579 ac_cpp='$CPP $CPPFLAGS'
10580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <sys/mman.h>
10591 #include <unistd.h>
10592 #include <fcntl.h>
10593 int
10594 main ()
10595 {
10596 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_header_mmap_anon=yes
10636 else
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_cv_header_mmap_anon=no
10641 fi
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 ac_ext=c
10645 ac_cpp='$CPP $CPPFLAGS'
10646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10651 fi
10652 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10653 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10654 if test "$ac_cv_header_mmap_anon" = yes; then
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_MMAP_ANONYMOUS 1
10658 _ACEOF
10660 fi
10662 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10663 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10664 if test "${ac_cv_header_stat_broken+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667 cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h. */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 #include <sys/types.h>
10674 #include <sys/stat.h>
10676 #if defined S_ISBLK && defined S_IFDIR
10677 # if S_ISBLK (S_IFDIR)
10678 You lose.
10679 # endif
10680 #endif
10682 #if defined S_ISBLK && defined S_IFCHR
10683 # if S_ISBLK (S_IFCHR)
10684 You lose.
10685 # endif
10686 #endif
10688 #if defined S_ISLNK && defined S_IFREG
10689 # if S_ISLNK (S_IFREG)
10690 You lose.
10691 # endif
10692 #endif
10694 #if defined S_ISSOCK && defined S_IFREG
10695 # if S_ISSOCK (S_IFREG)
10696 You lose.
10697 # endif
10698 #endif
10700 _ACEOF
10701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10702 $EGREP "You lose" >/dev/null 2>&1; then
10703 ac_cv_header_stat_broken=yes
10704 else
10705 ac_cv_header_stat_broken=no
10706 fi
10707 rm -f conftest*
10709 fi
10710 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10711 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10712 if test $ac_cv_header_stat_broken = yes; then
10714 cat >>confdefs.h <<\_ACEOF
10715 #define STAT_MACROS_BROKEN 1
10716 _ACEOF
10718 fi
10720 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10721 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10722 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h. */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 #include <sys/types.h>
10732 #include <sys/wait.h>
10733 #ifndef WEXITSTATUS
10734 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10735 #endif
10736 #ifndef WIFEXITED
10737 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10738 #endif
10740 int
10741 main ()
10742 {
10743 int s;
10744 wait (&s);
10745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10746 ;
10747 return 0;
10748 }
10749 _ACEOF
10750 rm -f conftest.$ac_objext
10751 if { (ac_try="$ac_compile"
10752 case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10755 esac
10756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10757 (eval "$ac_compile") 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10765 { (case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_try") 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; } &&
10774 { ac_try='test -s conftest.$ac_objext'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_try") 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_header_sys_wait_h=yes
10785 else
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_header_sys_wait_h=no
10790 fi
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10793 fi
10794 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10795 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10796 if test $ac_cv_header_sys_wait_h = yes; then
10798 cat >>confdefs.h <<\_ACEOF
10799 #define HAVE_SYS_WAIT_H 1
10800 _ACEOF
10802 fi
10804 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10805 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10806 if test "${ac_cv_header_time+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 #include <sys/types.h>
10816 #include <sys/time.h>
10817 #include <time.h>
10819 int
10820 main ()
10821 {
10822 if ((struct tm *) 0)
10823 return 0;
10824 ;
10825 return 0;
10826 }
10827 _ACEOF
10828 rm -f conftest.$ac_objext
10829 if { (ac_try="$ac_compile"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833 esac
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_compile") 2>conftest.er1
10836 ac_status=$?
10837 grep -v '^ *+' conftest.er1 >conftest.err
10838 rm -f conftest.er1
10839 cat conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10843 { (case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10846 esac
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_try") 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try='test -s conftest.$ac_objext'
10853 { (case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_try") 2>&5
10859 ac_status=$?
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_cv_header_time=yes
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_cv_header_time=no
10868 fi
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 fi
10872 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10873 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10874 if test $ac_cv_header_time = yes; then
10876 cat >>confdefs.h <<\_ACEOF
10877 #define TIME_WITH_SYS_TIME 1
10878 _ACEOF
10880 fi
10883 ac_ext=cpp
10884 ac_cpp='$CXXCPP $CPPFLAGS'
10885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10890 for ac_header in cxxabi.h
10891 do
10892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 else
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h. */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 #include <stddef.h>
10907 #include <$ac_header>
10908 _ACEOF
10909 rm -f conftest.$ac_objext
10910 if { (ac_try="$ac_compile"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914 esac
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10924 { (case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927 esac
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_try") 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest.$ac_objext'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10937 esac
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 eval "$as_ac_Header=yes"
10944 else
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 eval "$as_ac_Header=no"
10949 fi
10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952 fi
10953 ac_res=`eval echo '${'$as_ac_Header'}'`
10954 { echo "$as_me:$LINENO: result: $ac_res" >&5
10955 echo "${ECHO_T}$ac_res" >&6; }
10956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10957 cat >>confdefs.h <<_ACEOF
10958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10959 _ACEOF
10961 fi
10963 done
10965 ac_ext=c
10966 ac_cpp='$CPP $CPPFLAGS'
10967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10977 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10978 do
10979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 fi
10986 ac_res=`eval echo '${'$as_ac_Header'}'`
10987 { echo "$as_me:$LINENO: result: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10989 else
10990 # Is the header compilable?
10991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h. */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
10999 $ac_includes_default
11000 #include <$ac_header>
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (ac_try="$ac_compile"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_compile") 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017 { (case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_try") 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest.$ac_objext'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 ac_header_compiler=yes
11037 else
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_header_compiler=no
11042 fi
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11046 echo "${ECHO_T}$ac_header_compiler" >&6; }
11048 # Is the header present?
11049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <$ac_header>
11058 _ACEOF
11059 if { (ac_try="$ac_cpp conftest.$ac_ext"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } >/dev/null; then
11072 if test -s conftest.err; then
11073 ac_cpp_err=$ac_c_preproc_warn_flag
11074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11075 else
11076 ac_cpp_err=
11077 fi
11078 else
11079 ac_cpp_err=yes
11080 fi
11081 if test -z "$ac_cpp_err"; then
11082 ac_header_preproc=yes
11083 else
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_header_preproc=no
11088 fi
11090 rm -f conftest.err conftest.$ac_ext
11091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11092 echo "${ECHO_T}$ac_header_preproc" >&6; }
11094 # So? What about this header?
11095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11096 yes:no: )
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11101 ac_header_preproc=yes
11102 ;;
11103 no:yes:* )
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11116 ( cat <<\_ASBOX
11117 ## ------------------------------------ ##
11118 ## Report this to http://llvm.org/bugs/ ##
11119 ## ------------------------------------ ##
11120 _ASBOX
11121 ) | sed "s/^/$as_me: WARNING: /" >&2
11122 ;;
11123 esac
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129 eval "$as_ac_Header=\$ac_header_preproc"
11130 fi
11131 ac_res=`eval echo '${'$as_ac_Header'}'`
11132 { echo "$as_me:$LINENO: result: $ac_res" >&5
11133 echo "${ECHO_T}$ac_res" >&6; }
11135 fi
11136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11137 cat >>confdefs.h <<_ACEOF
11138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11139 _ACEOF
11141 fi
11143 done
11151 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11152 do
11153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 fi
11160 ac_res=`eval echo '${'$as_ac_Header'}'`
11161 { echo "$as_me:$LINENO: result: $ac_res" >&5
11162 echo "${ECHO_T}$ac_res" >&6; }
11163 else
11164 # Is the header compilable?
11165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h. */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 $ac_includes_default
11174 #include <$ac_header>
11175 _ACEOF
11176 rm -f conftest.$ac_objext
11177 if { (ac_try="$ac_compile"
11178 case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_compile") 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11191 { (case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11194 esac
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_try") 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest.$ac_objext'
11201 { (case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204 esac
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_try") 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_header_compiler=yes
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 ac_header_compiler=no
11216 fi
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220 echo "${ECHO_T}$ac_header_compiler" >&6; }
11222 # Is the header present?
11223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11225 cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h. */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 #include <$ac_header>
11232 _ACEOF
11233 if { (ac_try="$ac_cpp conftest.$ac_ext"
11234 case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11237 esac
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } >/dev/null; then
11246 if test -s conftest.err; then
11247 ac_cpp_err=$ac_c_preproc_warn_flag
11248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11249 else
11250 ac_cpp_err=
11251 fi
11252 else
11253 ac_cpp_err=yes
11254 fi
11255 if test -z "$ac_cpp_err"; then
11256 ac_header_preproc=yes
11257 else
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_header_preproc=no
11262 fi
11264 rm -f conftest.err conftest.$ac_ext
11265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266 echo "${ECHO_T}$ac_header_preproc" >&6; }
11268 # So? What about this header?
11269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11270 yes:no: )
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275 ac_header_preproc=yes
11276 ;;
11277 no:yes:* )
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11290 ( cat <<\_ASBOX
11291 ## ------------------------------------ ##
11292 ## Report this to http://llvm.org/bugs/ ##
11293 ## ------------------------------------ ##
11294 _ASBOX
11295 ) | sed "s/^/$as_me: WARNING: /" >&2
11296 ;;
11297 esac
11298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303 eval "$as_ac_Header=\$ac_header_preproc"
11304 fi
11305 ac_res=`eval echo '${'$as_ac_Header'}'`
11306 { echo "$as_me:$LINENO: result: $ac_res" >&5
11307 echo "${ECHO_T}$ac_res" >&6; }
11309 fi
11310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11311 cat >>confdefs.h <<_ACEOF
11312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11313 _ACEOF
11315 fi
11317 done
11320 for ac_header in utime.h
11321 do
11322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 fi
11329 ac_res=`eval echo '${'$as_ac_Header'}'`
11330 { echo "$as_me:$LINENO: result: $ac_res" >&5
11331 echo "${ECHO_T}$ac_res" >&6; }
11332 else
11333 # Is the header compilable?
11334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h. */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 $ac_includes_default
11343 #include <$ac_header>
11344 _ACEOF
11345 rm -f conftest.$ac_objext
11346 if { (ac_try="$ac_compile"
11347 case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_compile") 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } &&
11359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11363 esac
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; } &&
11369 { ac_try='test -s conftest.$ac_objext'
11370 { (case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11373 esac
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_try") 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 ac_header_compiler=yes
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_header_compiler=no
11385 fi
11387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11389 echo "${ECHO_T}$ac_header_compiler" >&6; }
11391 # Is the header present?
11392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 #include <$ac_header>
11401 _ACEOF
11402 if { (ac_try="$ac_cpp conftest.$ac_ext"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } >/dev/null; then
11415 if test -s conftest.err; then
11416 ac_cpp_err=$ac_c_preproc_warn_flag
11417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11418 else
11419 ac_cpp_err=
11420 fi
11421 else
11422 ac_cpp_err=yes
11423 fi
11424 if test -z "$ac_cpp_err"; then
11425 ac_header_preproc=yes
11426 else
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_header_preproc=no
11431 fi
11433 rm -f conftest.err conftest.$ac_ext
11434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11435 echo "${ECHO_T}$ac_header_preproc" >&6; }
11437 # So? What about this header?
11438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11439 yes:no: )
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11444 ac_header_preproc=yes
11445 ;;
11446 no:yes:* )
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11459 ( cat <<\_ASBOX
11460 ## ------------------------------------ ##
11461 ## Report this to http://llvm.org/bugs/ ##
11462 ## ------------------------------------ ##
11463 _ASBOX
11464 ) | sed "s/^/$as_me: WARNING: /" >&2
11465 ;;
11466 esac
11467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472 eval "$as_ac_Header=\$ac_header_preproc"
11473 fi
11474 ac_res=`eval echo '${'$as_ac_Header'}'`
11475 { echo "$as_me:$LINENO: result: $ac_res" >&5
11476 echo "${ECHO_T}$ac_res" >&6; }
11478 fi
11479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11480 cat >>confdefs.h <<_ACEOF
11481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11482 _ACEOF
11484 fi
11486 done
11493 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11494 do
11495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 fi
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11505 else
11506 # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h. */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11516 #include <$ac_header>
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536 esac
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_try") 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 ac_header_compiler=yes
11553 else
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 ac_header_compiler=no
11558 fi
11560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11562 echo "${ECHO_T}$ac_header_compiler" >&6; }
11564 # Is the header present?
11565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h. */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 #include <$ac_header>
11574 _ACEOF
11575 if { (ac_try="$ac_cpp conftest.$ac_ext"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } >/dev/null; then
11588 if test -s conftest.err; then
11589 ac_cpp_err=$ac_c_preproc_warn_flag
11590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11591 else
11592 ac_cpp_err=
11593 fi
11594 else
11595 ac_cpp_err=yes
11596 fi
11597 if test -z "$ac_cpp_err"; then
11598 ac_header_preproc=yes
11599 else
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_header_preproc=no
11604 fi
11606 rm -f conftest.err conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608 echo "${ECHO_T}$ac_header_preproc" >&6; }
11610 # So? What about this header?
11611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 yes:no: )
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11618 ;;
11619 no:yes:* )
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11632 ( cat <<\_ASBOX
11633 ## ------------------------------------ ##
11634 ## Report this to http://llvm.org/bugs/ ##
11635 ## ------------------------------------ ##
11636 _ASBOX
11637 ) | sed "s/^/$as_me: WARNING: /" >&2
11638 ;;
11639 esac
11640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645 eval "$as_ac_Header=\$ac_header_preproc"
11646 fi
11647 ac_res=`eval echo '${'$as_ac_Header'}'`
11648 { echo "$as_me:$LINENO: result: $ac_res" >&5
11649 echo "${ECHO_T}$ac_res" >&6; }
11651 fi
11652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653 cat >>confdefs.h <<_ACEOF
11654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655 _ACEOF
11657 fi
11659 done
11664 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11665 do
11666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 fi
11673 ac_res=`eval echo '${'$as_ac_Header'}'`
11674 { echo "$as_me:$LINENO: result: $ac_res" >&5
11675 echo "${ECHO_T}$ac_res" >&6; }
11676 else
11677 # Is the header compilable?
11678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h. */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 $ac_includes_default
11687 #include <$ac_header>
11688 _ACEOF
11689 rm -f conftest.$ac_objext
11690 if { (ac_try="$ac_compile"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694 esac
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_compile") 2>conftest.er1
11697 ac_status=$?
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11704 { (case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_try") 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try='test -s conftest.$ac_objext'
11714 { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717 esac
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_try") 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 ac_header_compiler=yes
11724 else
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 ac_header_compiler=no
11729 fi
11731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11733 echo "${ECHO_T}$ac_header_compiler" >&6; }
11735 # Is the header present?
11736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11738 cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h. */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 #include <$ac_header>
11745 _ACEOF
11746 if { (ac_try="$ac_cpp conftest.$ac_ext"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } >/dev/null; then
11759 if test -s conftest.err; then
11760 ac_cpp_err=$ac_c_preproc_warn_flag
11761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11762 else
11763 ac_cpp_err=
11764 fi
11765 else
11766 ac_cpp_err=yes
11767 fi
11768 if test -z "$ac_cpp_err"; then
11769 ac_header_preproc=yes
11770 else
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 ac_header_preproc=no
11775 fi
11777 rm -f conftest.err conftest.$ac_ext
11778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11779 echo "${ECHO_T}$ac_header_preproc" >&6; }
11781 # So? What about this header?
11782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11783 yes:no: )
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11788 ac_header_preproc=yes
11789 ;;
11790 no:yes:* )
11791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11803 ( cat <<\_ASBOX
11804 ## ------------------------------------ ##
11805 ## Report this to http://llvm.org/bugs/ ##
11806 ## ------------------------------------ ##
11807 _ASBOX
11808 ) | sed "s/^/$as_me: WARNING: /" >&2
11809 ;;
11810 esac
11811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 else
11816 eval "$as_ac_Header=\$ac_header_preproc"
11817 fi
11818 ac_res=`eval echo '${'$as_ac_Header'}'`
11819 { echo "$as_me:$LINENO: result: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11822 fi
11823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11824 cat >>confdefs.h <<_ACEOF
11825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11826 _ACEOF
11828 fi
11830 done
11833 for ac_header in valgrind/valgrind.h
11834 do
11835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 fi
11842 ac_res=`eval echo '${'$as_ac_Header'}'`
11843 { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11845 else
11846 # Is the header compilable?
11847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h. */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 $ac_includes_default
11856 #include <$ac_header>
11857 _ACEOF
11858 rm -f conftest.$ac_objext
11859 if { (ac_try="$ac_compile"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_compile") 2>conftest.er1
11866 ac_status=$?
11867 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest.$ac_objext'
11883 { (case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_try") 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 ac_header_compiler=yes
11893 else
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 ac_header_compiler=no
11898 fi
11900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11902 echo "${ECHO_T}$ac_header_compiler" >&6; }
11904 # Is the header present?
11905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 #include <$ac_header>
11914 _ACEOF
11915 if { (ac_try="$ac_cpp conftest.$ac_ext"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } >/dev/null; then
11928 if test -s conftest.err; then
11929 ac_cpp_err=$ac_c_preproc_warn_flag
11930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11931 else
11932 ac_cpp_err=
11933 fi
11934 else
11935 ac_cpp_err=yes
11936 fi
11937 if test -z "$ac_cpp_err"; then
11938 ac_header_preproc=yes
11939 else
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 ac_header_preproc=no
11944 fi
11946 rm -f conftest.err conftest.$ac_ext
11947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11948 echo "${ECHO_T}$ac_header_preproc" >&6; }
11950 # So? What about this header?
11951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11952 yes:no: )
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11957 ac_header_preproc=yes
11958 ;;
11959 no:yes:* )
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11972 ( cat <<\_ASBOX
11973 ## ------------------------------------ ##
11974 ## Report this to http://llvm.org/bugs/ ##
11975 ## ------------------------------------ ##
11976 _ASBOX
11977 ) | sed "s/^/$as_me: WARNING: /" >&2
11978 ;;
11979 esac
11980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985 eval "$as_ac_Header=\$ac_header_preproc"
11986 fi
11987 ac_res=`eval echo '${'$as_ac_Header'}'`
11988 { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11991 fi
11992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11993 cat >>confdefs.h <<_ACEOF
11994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11995 _ACEOF
11997 fi
11999 done
12002 for ac_header in fenv.h
12003 do
12004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 fi
12011 ac_res=`eval echo '${'$as_ac_Header'}'`
12012 { echo "$as_me:$LINENO: result: $ac_res" >&5
12013 echo "${ECHO_T}$ac_res" >&6; }
12014 else
12015 # Is the header compilable?
12016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h. */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12025 #include <$ac_header>
12026 _ACEOF
12027 rm -f conftest.$ac_objext
12028 if { (ac_try="$ac_compile"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_compile") 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12042 { (case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12045 esac
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_try") 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_header_compiler=yes
12062 else
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ac_header_compiler=no
12067 fi
12069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12071 echo "${ECHO_T}$ac_header_compiler" >&6; }
12073 # Is the header present?
12074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h. */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12082 #include <$ac_header>
12083 _ACEOF
12084 if { (ac_try="$ac_cpp conftest.$ac_ext"
12085 case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088 esac
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } >/dev/null; then
12097 if test -s conftest.err; then
12098 ac_cpp_err=$ac_c_preproc_warn_flag
12099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12100 else
12101 ac_cpp_err=
12102 fi
12103 else
12104 ac_cpp_err=yes
12105 fi
12106 if test -z "$ac_cpp_err"; then
12107 ac_header_preproc=yes
12108 else
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 ac_header_preproc=no
12113 fi
12115 rm -f conftest.err conftest.$ac_ext
12116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12117 echo "${ECHO_T}$ac_header_preproc" >&6; }
12119 # So? What about this header?
12120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12121 yes:no: )
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12126 ac_header_preproc=yes
12127 ;;
12128 no:yes:* )
12129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12141 ( cat <<\_ASBOX
12142 ## ------------------------------------ ##
12143 ## Report this to http://llvm.org/bugs/ ##
12144 ## ------------------------------------ ##
12145 _ASBOX
12146 ) | sed "s/^/$as_me: WARNING: /" >&2
12147 ;;
12148 esac
12149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 eval "$as_ac_Header=\$ac_header_preproc"
12155 fi
12156 ac_res=`eval echo '${'$as_ac_Header'}'`
12157 { echo "$as_me:$LINENO: result: $ac_res" >&5
12158 echo "${ECHO_T}$ac_res" >&6; }
12160 fi
12161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12162 cat >>confdefs.h <<_ACEOF
12163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12164 _ACEOF
12166 fi
12168 done
12170 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12171 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12172 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h. */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 #include <fenv.h>
12183 int
12184 main ()
12185 {
12186 #ifndef FE_ALL_EXCEPT
12187 char *p = (char *) FE_ALL_EXCEPT;
12188 return !p;
12189 #endif
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext
12196 if { (ac_try="$ac_compile"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_compile") 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213 esac
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest.$ac_objext'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223 esac
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12230 else
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_cv_have_decl_FE_ALL_EXCEPT=no
12235 fi
12237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238 fi
12239 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12240 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12241 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12243 cat >>confdefs.h <<_ACEOF
12244 #define HAVE_DECL_FE_ALL_EXCEPT 1
12245 _ACEOF
12248 else
12249 cat >>confdefs.h <<_ACEOF
12250 #define HAVE_DECL_FE_ALL_EXCEPT 0
12251 _ACEOF
12254 fi
12255 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12256 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12257 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h. */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 #include <fenv.h>
12268 int
12269 main ()
12270 {
12271 #ifndef FE_INEXACT
12272 char *p = (char *) FE_INEXACT;
12273 return !p;
12274 #endif
12276 ;
12277 return 0;
12278 }
12279 _ACEOF
12280 rm -f conftest.$ac_objext
12281 if { (ac_try="$ac_compile"
12282 case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12285 esac
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_compile") 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest.$ac_objext'
12305 { (case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12308 esac
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_try") 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_cv_have_decl_FE_INEXACT=yes
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ac_cv_have_decl_FE_INEXACT=no
12320 fi
12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323 fi
12324 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12325 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12326 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12328 cat >>confdefs.h <<_ACEOF
12329 #define HAVE_DECL_FE_INEXACT 1
12330 _ACEOF
12333 else
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_DECL_FE_INEXACT 0
12336 _ACEOF
12339 fi
12342 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12344 for ac_header in pthread.h
12345 do
12346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 fi
12353 ac_res=`eval echo '${'$as_ac_Header'}'`
12354 { echo "$as_me:$LINENO: result: $ac_res" >&5
12355 echo "${ECHO_T}$ac_res" >&6; }
12356 else
12357 # Is the header compilable?
12358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12360 cat >conftest.$ac_ext <<_ACEOF
12361 /* confdefs.h. */
12362 _ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h. */
12366 $ac_includes_default
12367 #include <$ac_header>
12368 _ACEOF
12369 rm -f conftest.$ac_objext
12370 if { (ac_try="$ac_compile"
12371 case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12374 esac
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_compile") 2>conftest.er1
12377 ac_status=$?
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12384 { (case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12387 esac
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389 (eval "$ac_try") 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest.$ac_objext'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_header_compiler=yes
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_header_compiler=no
12409 fi
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12413 echo "${ECHO_T}$ac_header_compiler" >&6; }
12415 # Is the header present?
12416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12418 cat >conftest.$ac_ext <<_ACEOF
12419 /* confdefs.h. */
12420 _ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424 #include <$ac_header>
12425 _ACEOF
12426 if { (ac_try="$ac_cpp conftest.$ac_ext"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } >/dev/null; then
12439 if test -s conftest.err; then
12440 ac_cpp_err=$ac_c_preproc_warn_flag
12441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12442 else
12443 ac_cpp_err=
12444 fi
12445 else
12446 ac_cpp_err=yes
12447 fi
12448 if test -z "$ac_cpp_err"; then
12449 ac_header_preproc=yes
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_header_preproc=no
12455 fi
12457 rm -f conftest.err conftest.$ac_ext
12458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12459 echo "${ECHO_T}$ac_header_preproc" >&6; }
12461 # So? What about this header?
12462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12463 yes:no: )
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12468 ac_header_preproc=yes
12469 ;;
12470 no:yes:* )
12471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12483 ( cat <<\_ASBOX
12484 ## ------------------------------------ ##
12485 ## Report this to http://llvm.org/bugs/ ##
12486 ## ------------------------------------ ##
12487 _ASBOX
12488 ) | sed "s/^/$as_me: WARNING: /" >&2
12489 ;;
12490 esac
12491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496 eval "$as_ac_Header=\$ac_header_preproc"
12497 fi
12498 ac_res=`eval echo '${'$as_ac_Header'}'`
12499 { echo "$as_me:$LINENO: result: $ac_res" >&5
12500 echo "${ECHO_T}$ac_res" >&6; }
12502 fi
12503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12504 cat >>confdefs.h <<_ACEOF
12505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12506 _ACEOF
12507 HAVE_PTHREAD=1
12509 else
12510 HAVE_PTHREAD=0
12512 fi
12514 done
12516 else
12517 HAVE_PTHREAD=0
12519 fi
12520 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12522 for ac_header in zlib.h
12523 do
12524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 fi
12531 ac_res=`eval echo '${'$as_ac_Header'}'`
12532 { echo "$as_me:$LINENO: result: $ac_res" >&5
12533 echo "${ECHO_T}$ac_res" >&6; }
12534 else
12535 # Is the header compilable?
12536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12538 cat >conftest.$ac_ext <<_ACEOF
12539 /* confdefs.h. */
12540 _ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544 $ac_includes_default
12545 #include <$ac_header>
12546 _ACEOF
12547 rm -f conftest.$ac_objext
12548 if { (ac_try="$ac_compile"
12549 case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12552 esac
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_compile") 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12562 { (case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12565 esac
12566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567 (eval "$ac_try") 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_try") 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_header_compiler=yes
12582 else
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12586 ac_header_compiler=no
12587 fi
12589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12591 echo "${ECHO_T}$ac_header_compiler" >&6; }
12593 # Is the header present?
12594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 #include <$ac_header>
12603 _ACEOF
12604 if { (ac_try="$ac_cpp conftest.$ac_ext"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12611 ac_status=$?
12612 grep -v '^ *+' conftest.er1 >conftest.err
12613 rm -f conftest.er1
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } >/dev/null; then
12617 if test -s conftest.err; then
12618 ac_cpp_err=$ac_c_preproc_warn_flag
12619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12620 else
12621 ac_cpp_err=
12622 fi
12623 else
12624 ac_cpp_err=yes
12625 fi
12626 if test -z "$ac_cpp_err"; then
12627 ac_header_preproc=yes
12628 else
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ac_header_preproc=no
12633 fi
12635 rm -f conftest.err conftest.$ac_ext
12636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12637 echo "${ECHO_T}$ac_header_preproc" >&6; }
12639 # So? What about this header?
12640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12641 yes:no: )
12642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12646 ac_header_preproc=yes
12647 ;;
12648 no:yes:* )
12649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12661 ( cat <<\_ASBOX
12662 ## ------------------------------------ ##
12663 ## Report this to http://llvm.org/bugs/ ##
12664 ## ------------------------------------ ##
12665 _ASBOX
12666 ) | sed "s/^/$as_me: WARNING: /" >&2
12667 ;;
12668 esac
12669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674 eval "$as_ac_Header=\$ac_header_preproc"
12675 fi
12676 ac_res=`eval echo '${'$as_ac_Header'}'`
12677 { echo "$as_me:$LINENO: result: $ac_res" >&5
12678 echo "${ECHO_T}$ac_res" >&6; }
12680 fi
12681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12682 cat >>confdefs.h <<_ACEOF
12683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12684 _ACEOF
12685 HAVE_LIBZ=1
12687 else
12688 HAVE_LIBZ=0
12690 fi
12692 done
12694 else
12695 HAVE_LIBZ=0
12697 fi
12699 if test "$llvm_cv_enable_libffi" = "yes" ; then
12702 for ac_header in ffi.h ffi/ffi.h
12703 do
12704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 fi
12711 ac_res=`eval echo '${'$as_ac_Header'}'`
12712 { echo "$as_me:$LINENO: result: $ac_res" >&5
12713 echo "${ECHO_T}$ac_res" >&6; }
12714 else
12715 # Is the header compilable?
12716 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 $ac_includes_default
12725 #include <$ac_header>
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (ac_try="$ac_compile"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_compile") 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12742 { (case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest.$ac_objext'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755 esac
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_header_compiler=yes
12762 else
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12766 ac_header_compiler=no
12767 fi
12769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12771 echo "${ECHO_T}$ac_header_compiler" >&6; }
12773 # Is the header present?
12774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12776 cat >conftest.$ac_ext <<_ACEOF
12777 /* confdefs.h. */
12778 _ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12782 #include <$ac_header>
12783 _ACEOF
12784 if { (ac_try="$ac_cpp conftest.$ac_ext"
12785 case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788 esac
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } >/dev/null; then
12797 if test -s conftest.err; then
12798 ac_cpp_err=$ac_c_preproc_warn_flag
12799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12800 else
12801 ac_cpp_err=
12802 fi
12803 else
12804 ac_cpp_err=yes
12805 fi
12806 if test -z "$ac_cpp_err"; then
12807 ac_header_preproc=yes
12808 else
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_header_preproc=no
12813 fi
12815 rm -f conftest.err conftest.$ac_ext
12816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12817 echo "${ECHO_T}$ac_header_preproc" >&6; }
12819 # So? What about this header?
12820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12821 yes:no: )
12822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12826 ac_header_preproc=yes
12827 ;;
12828 no:yes:* )
12829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12841 ( cat <<\_ASBOX
12842 ## ------------------------------------ ##
12843 ## Report this to http://llvm.org/bugs/ ##
12844 ## ------------------------------------ ##
12845 _ASBOX
12846 ) | sed "s/^/$as_me: WARNING: /" >&2
12847 ;;
12848 esac
12849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 else
12854 eval "$as_ac_Header=\$ac_header_preproc"
12855 fi
12856 ac_res=`eval echo '${'$as_ac_Header'}'`
12857 { echo "$as_me:$LINENO: result: $ac_res" >&5
12858 echo "${ECHO_T}$ac_res" >&6; }
12860 fi
12861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12862 cat >>confdefs.h <<_ACEOF
12863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12864 _ACEOF
12866 fi
12868 done
12870 fi
12873 for ac_header in CrashReporterClient.h
12874 do
12875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12881 fi
12882 ac_res=`eval echo '${'$as_ac_Header'}'`
12883 { echo "$as_me:$LINENO: result: $ac_res" >&5
12884 echo "${ECHO_T}$ac_res" >&6; }
12885 else
12886 # Is the header compilable?
12887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h. */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 $ac_includes_default
12896 #include <$ac_header>
12897 _ACEOF
12898 rm -f conftest.$ac_objext
12899 if { (ac_try="$ac_compile"
12900 case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12903 esac
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_compile") 2>conftest.er1
12906 ac_status=$?
12907 grep -v '^ *+' conftest.er1 >conftest.err
12908 rm -f conftest.er1
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12913 { (case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916 esac
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_try") 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; } &&
12922 { ac_try='test -s conftest.$ac_objext'
12923 { (case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12926 esac
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_try") 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_header_compiler=yes
12933 else
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12937 ac_header_compiler=no
12938 fi
12940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12942 echo "${ECHO_T}$ac_header_compiler" >&6; }
12944 # Is the header present?
12945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12947 cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h. */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12953 #include <$ac_header>
12954 _ACEOF
12955 if { (ac_try="$ac_cpp conftest.$ac_ext"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959 esac
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12962 ac_status=$?
12963 grep -v '^ *+' conftest.er1 >conftest.err
12964 rm -f conftest.er1
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } >/dev/null; then
12968 if test -s conftest.err; then
12969 ac_cpp_err=$ac_c_preproc_warn_flag
12970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12971 else
12972 ac_cpp_err=
12973 fi
12974 else
12975 ac_cpp_err=yes
12976 fi
12977 if test -z "$ac_cpp_err"; then
12978 ac_header_preproc=yes
12979 else
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 ac_header_preproc=no
12984 fi
12986 rm -f conftest.err conftest.$ac_ext
12987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12988 echo "${ECHO_T}$ac_header_preproc" >&6; }
12990 # So? What about this header?
12991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12992 yes:no: )
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12997 ac_header_preproc=yes
12998 ;;
12999 no:yes:* )
13000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13012 ( cat <<\_ASBOX
13013 ## ------------------------------------ ##
13014 ## Report this to http://llvm.org/bugs/ ##
13015 ## ------------------------------------ ##
13016 _ASBOX
13017 ) | sed "s/^/$as_me: WARNING: /" >&2
13018 ;;
13019 esac
13020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025 eval "$as_ac_Header=\$ac_header_preproc"
13026 fi
13027 ac_res=`eval echo '${'$as_ac_Header'}'`
13028 { echo "$as_me:$LINENO: result: $ac_res" >&5
13029 echo "${ECHO_T}$ac_res" >&6; }
13031 fi
13032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13033 cat >>confdefs.h <<_ACEOF
13034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13035 _ACEOF
13037 fi
13039 done
13042 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13043 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13044 cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h. */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13052 extern const char *__crashreporter_info__;
13053 int main() {
13054 __crashreporter_info__ = "test";
13055 return 0;
13056 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_link") 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075 { (case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078 esac
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_try") 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest$ac_exeext'
13085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
13095 { echo "$as_me:$LINENO: result: yes" >&5
13096 echo "${ECHO_T}yes" >&6; }
13098 cat >>confdefs.h <<\_ACEOF
13099 #define HAVE_CRASHREPORTER_INFO 1
13100 _ACEOF
13103 else
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13108 { echo "$as_me:$LINENO: result: no" >&5
13109 echo "${ECHO_T}no" >&6; }
13111 cat >>confdefs.h <<\_ACEOF
13112 #define HAVE_CRASHREPORTER_INFO 0
13113 _ACEOF
13116 fi
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13123 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13124 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13125 if test "${ac_cv_huge_val_sanity+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13129 ac_ext=cpp
13130 ac_cpp='$CXXCPP $CPPFLAGS'
13131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13135 ac_save_CXXFLAGS=$CXXFLAGS
13136 CXXFLAGS="$CXXFLAGS -pedantic"
13137 if test "$cross_compiling" = yes; then
13138 ac_cv_huge_val_sanity=yes
13139 else
13140 cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h. */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146 #include <math.h>
13147 int
13148 main ()
13149 {
13150 double x = HUGE_VAL; return x != x;
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest$ac_exeext
13156 if { (ac_try="$ac_link"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_link") 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13169 esac
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_cv_huge_val_sanity=yes
13176 else
13177 echo "$as_me: program exited with status $ac_status" >&5
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 ( exit $ac_status )
13182 ac_cv_huge_val_sanity=no
13183 fi
13184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13185 fi
13188 CXXFLAGS=$ac_save_CXXFLAGS
13189 ac_ext=c
13190 ac_cpp='$CPP $CPPFLAGS'
13191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13196 fi
13197 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13198 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13199 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13202 { echo "$as_me:$LINENO: checking for pid_t" >&5
13203 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13204 if test "${ac_cv_type_pid_t+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h. */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 $ac_includes_default
13214 typedef pid_t ac__type_new_;
13215 int
13216 main ()
13217 {
13218 if ((ac__type_new_ *) 0)
13219 return 0;
13220 if (sizeof (ac__type_new_))
13221 return 0;
13222 ;
13223 return 0;
13224 }
13225 _ACEOF
13226 rm -f conftest.$ac_objext
13227 if { (ac_try="$ac_compile"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13231 esac
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_compile") 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254 esac
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_type_pid_t=yes
13261 else
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_cv_type_pid_t=no
13266 fi
13268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13269 fi
13270 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13271 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13272 if test $ac_cv_type_pid_t = yes; then
13273 :
13274 else
13276 cat >>confdefs.h <<_ACEOF
13277 #define pid_t int
13278 _ACEOF
13280 fi
13282 { echo "$as_me:$LINENO: checking for size_t" >&5
13283 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13284 if test "${ac_cv_type_size_t+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287 cat >conftest.$ac_ext <<_ACEOF
13288 /* confdefs.h. */
13289 _ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13293 $ac_includes_default
13294 typedef size_t ac__type_new_;
13295 int
13296 main ()
13297 {
13298 if ((ac__type_new_ *) 0)
13299 return 0;
13300 if (sizeof (ac__type_new_))
13301 return 0;
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 rm -f conftest.$ac_objext
13307 if { (ac_try="$ac_compile"
13308 case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13311 esac
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_compile") 2>conftest.er1
13314 ac_status=$?
13315 grep -v '^ *+' conftest.er1 >conftest.err
13316 rm -f conftest.er1
13317 cat conftest.err >&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321 { (case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_try") 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest.$ac_objext'
13331 { (case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13334 esac
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_try") 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_cv_type_size_t=yes
13341 else
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ac_cv_type_size_t=no
13346 fi
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 fi
13350 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13351 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13352 if test $ac_cv_type_size_t = yes; then
13353 :
13354 else
13356 cat >>confdefs.h <<_ACEOF
13357 #define size_t unsigned int
13358 _ACEOF
13360 fi
13363 cat >>confdefs.h <<_ACEOF
13364 #define RETSIGTYPE void
13365 _ACEOF
13367 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13368 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13369 if test "${ac_cv_struct_tm+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 else
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13378 #include <sys/types.h>
13379 #include <time.h>
13381 int
13382 main ()
13383 {
13384 struct tm *tp; tp->tm_sec;
13385 ;
13386 return 0;
13387 }
13388 _ACEOF
13389 rm -f conftest.$ac_objext
13390 if { (ac_try="$ac_compile"
13391 case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13394 esac
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_compile") 2>conftest.er1
13397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13404 { (case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_try") 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest.$ac_objext'
13414 { (case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_try") 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_cv_struct_tm=time.h
13424 else
13425 echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13428 ac_cv_struct_tm=sys/time.h
13429 fi
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 fi
13433 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13434 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13435 if test $ac_cv_struct_tm = sys/time.h; then
13437 cat >>confdefs.h <<\_ACEOF
13438 #define TM_IN_SYS_TIME 1
13439 _ACEOF
13441 fi
13443 { echo "$as_me:$LINENO: checking for int64_t" >&5
13444 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13445 if test "${ac_cv_type_int64_t+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 else
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h. */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 $ac_includes_default
13455 typedef int64_t ac__type_new_;
13456 int
13457 main ()
13458 {
13459 if ((ac__type_new_ *) 0)
13460 return 0;
13461 if (sizeof (ac__type_new_))
13462 return 0;
13463 ;
13464 return 0;
13465 }
13466 _ACEOF
13467 rm -f conftest.$ac_objext
13468 if { (ac_try="$ac_compile"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472 esac
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_compile") 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 ac_cv_type_int64_t=yes
13502 else
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 ac_cv_type_int64_t=no
13507 fi
13509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510 fi
13511 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13512 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13513 if test $ac_cv_type_int64_t = yes; then
13515 cat >>confdefs.h <<_ACEOF
13516 #define HAVE_INT64_T 1
13517 _ACEOF
13520 else
13521 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13522 echo "$as_me: error: Type int64_t required but not found" >&2;}
13523 { (exit 1); exit 1; }; }
13524 fi
13526 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13527 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13528 if test "${ac_cv_type_uint64_t+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531 cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h. */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537 $ac_includes_default
13538 typedef uint64_t ac__type_new_;
13539 int
13540 main ()
13541 {
13542 if ((ac__type_new_ *) 0)
13543 return 0;
13544 if (sizeof (ac__type_new_))
13545 return 0;
13546 ;
13547 return 0;
13548 }
13549 _ACEOF
13550 rm -f conftest.$ac_objext
13551 if { (ac_try="$ac_compile"
13552 case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_compile") 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest.$ac_objext'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_type_uint64_t=yes
13585 else
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_cv_type_uint64_t=no
13590 fi
13592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 fi
13594 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13595 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13596 if test $ac_cv_type_uint64_t = yes; then
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_UINT64_T 1
13600 _ACEOF
13603 else
13604 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13605 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13606 if test "${ac_cv_type_u_int64_t+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h. */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 $ac_includes_default
13616 typedef u_int64_t ac__type_new_;
13617 int
13618 main ()
13619 {
13620 if ((ac__type_new_ *) 0)
13621 return 0;
13622 if (sizeof (ac__type_new_))
13623 return 0;
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 rm -f conftest.$ac_objext
13629 if { (ac_try="$ac_compile"
13630 case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13633 esac
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_compile") 2>conftest.er1
13636 ac_status=$?
13637 grep -v '^ *+' conftest.er1 >conftest.err
13638 rm -f conftest.er1
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13643 { (case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13646 esac
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_try") 2>&5
13649 ac_status=$?
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; } &&
13652 { ac_try='test -s conftest.$ac_objext'
13653 { (case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13656 esac
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_try") 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 ac_cv_type_u_int64_t=yes
13663 else
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 ac_cv_type_u_int64_t=no
13668 fi
13670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671 fi
13672 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13673 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13674 if test $ac_cv_type_u_int64_t = yes; then
13676 cat >>confdefs.h <<_ACEOF
13677 #define HAVE_U_INT64_T 1
13678 _ACEOF
13681 else
13682 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13683 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13684 { (exit 1); exit 1; }; }
13685 fi
13687 fi
13698 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13699 do
13700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 else
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h. */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13714 #define $ac_func innocuous_$ac_func
13716 /* System header to define __stub macros and hopefully few prototypes,
13717 which can conflict with char $ac_func (); below.
13718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13719 <limits.h> exists even on freestanding compilers. */
13721 #ifdef __STDC__
13722 # include <limits.h>
13723 #else
13724 # include <assert.h>
13725 #endif
13727 #undef $ac_func
13729 /* Override any GCC internal prototype to avoid an error.
13730 Use char because int might match the return type of a GCC
13731 builtin and then its argument prototype would still apply. */
13732 #ifdef __cplusplus
13733 extern "C"
13734 #endif
13735 char $ac_func ();
13736 /* The GNU C library defines this for functions which it implements
13737 to always fail with ENOSYS. Some functions are actually named
13738 something starting with __ and the normal name is an alias. */
13739 #if defined __stub_$ac_func || defined __stub___$ac_func
13740 choke me
13741 #endif
13743 int
13744 main ()
13745 {
13746 return $ac_func ();
13747 ;
13748 return 0;
13749 }
13750 _ACEOF
13751 rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (ac_try="$ac_link"
13753 case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_link") 2>conftest.er1
13759 ac_status=$?
13760 grep -v '^ *+' conftest.er1 >conftest.err
13761 rm -f conftest.er1
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
13765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } &&
13775 { ac_try='test -s conftest$ac_exeext'
13776 { (case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13779 esac
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_try") 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 eval "$as_ac_var=yes"
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 eval "$as_ac_var=no"
13791 fi
13793 rm -f core conftest.err conftest.$ac_objext \
13794 conftest$ac_exeext conftest.$ac_ext
13795 fi
13796 ac_res=`eval echo '${'$as_ac_var'}'`
13797 { echo "$as_me:$LINENO: result: $ac_res" >&5
13798 echo "${ECHO_T}$ac_res" >&6; }
13799 if test `eval echo '${'$as_ac_var'}'` = yes; then
13800 cat >>confdefs.h <<_ACEOF
13801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13802 _ACEOF
13804 fi
13805 done
13811 for ac_func in powf fmodf strtof round
13812 do
13813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h. */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13827 #define $ac_func innocuous_$ac_func
13829 /* System header to define __stub macros and hopefully few prototypes,
13830 which can conflict with char $ac_func (); below.
13831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13832 <limits.h> exists even on freestanding compilers. */
13834 #ifdef __STDC__
13835 # include <limits.h>
13836 #else
13837 # include <assert.h>
13838 #endif
13840 #undef $ac_func
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13845 #ifdef __cplusplus
13846 extern "C"
13847 #endif
13848 char $ac_func ();
13849 /* The GNU C library defines this for functions which it implements
13850 to always fail with ENOSYS. Some functions are actually named
13851 something starting with __ and the normal name is an alias. */
13852 #if defined __stub_$ac_func || defined __stub___$ac_func
13853 choke me
13854 #endif
13856 int
13857 main ()
13858 {
13859 return $ac_func ();
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13879 { (case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882 esac
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_try") 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest$ac_exeext'
13889 { (case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13892 esac
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_try") 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 eval "$as_ac_var=yes"
13899 else
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13903 eval "$as_ac_var=no"
13904 fi
13906 rm -f core conftest.err conftest.$ac_objext \
13907 conftest$ac_exeext conftest.$ac_ext
13908 fi
13909 ac_res=`eval echo '${'$as_ac_var'}'`
13910 { echo "$as_me:$LINENO: result: $ac_res" >&5
13911 echo "${ECHO_T}$ac_res" >&6; }
13912 if test `eval echo '${'$as_ac_var'}'` = yes; then
13913 cat >>confdefs.h <<_ACEOF
13914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13915 _ACEOF
13917 fi
13918 done
13925 for ac_func in log log2 log10 exp exp2
13926 do
13927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933 cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h. */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13941 #define $ac_func innocuous_$ac_func
13943 /* System header to define __stub macros and hopefully few prototypes,
13944 which can conflict with char $ac_func (); below.
13945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13946 <limits.h> exists even on freestanding compilers. */
13948 #ifdef __STDC__
13949 # include <limits.h>
13950 #else
13951 # include <assert.h>
13952 #endif
13954 #undef $ac_func
13956 /* Override any GCC internal prototype to avoid an error.
13957 Use char because int might match the return type of a GCC
13958 builtin and then its argument prototype would still apply. */
13959 #ifdef __cplusplus
13960 extern "C"
13961 #endif
13962 char $ac_func ();
13963 /* The GNU C library defines this for functions which it implements
13964 to always fail with ENOSYS. Some functions are actually named
13965 something starting with __ and the normal name is an alias. */
13966 #if defined __stub_$ac_func || defined __stub___$ac_func
13967 choke me
13968 #endif
13970 int
13971 main ()
13972 {
13973 return $ac_func ();
13974 ;
13975 return 0;
13976 }
13977 _ACEOF
13978 rm -f conftest.$ac_objext conftest$ac_exeext
13979 if { (ac_try="$ac_link"
13980 case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13983 esac
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_link") 2>conftest.er1
13986 ac_status=$?
13987 grep -v '^ *+' conftest.er1 >conftest.err
13988 rm -f conftest.er1
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13993 { (case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13996 esac
13997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998 (eval "$ac_try") 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; } &&
14002 { ac_try='test -s conftest$ac_exeext'
14003 { (case "(($ac_try" in
14004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005 *) ac_try_echo=$ac_try;;
14006 esac
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008 (eval "$ac_try") 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 eval "$as_ac_var=yes"
14013 else
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 eval "$as_ac_var=no"
14018 fi
14020 rm -f core conftest.err conftest.$ac_objext \
14021 conftest$ac_exeext conftest.$ac_ext
14022 fi
14023 ac_res=`eval echo '${'$as_ac_var'}'`
14024 { echo "$as_me:$LINENO: result: $ac_res" >&5
14025 echo "${ECHO_T}$ac_res" >&6; }
14026 if test `eval echo '${'$as_ac_var'}'` = yes; then
14027 cat >>confdefs.h <<_ACEOF
14028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14029 _ACEOF
14031 fi
14032 done
14039 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14040 do
14041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 else
14047 cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h. */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14055 #define $ac_func innocuous_$ac_func
14057 /* System header to define __stub macros and hopefully few prototypes,
14058 which can conflict with char $ac_func (); below.
14059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14060 <limits.h> exists even on freestanding compilers. */
14062 #ifdef __STDC__
14063 # include <limits.h>
14064 #else
14065 # include <assert.h>
14066 #endif
14068 #undef $ac_func
14070 /* Override any GCC internal prototype to avoid an error.
14071 Use char because int might match the return type of a GCC
14072 builtin and then its argument prototype would still apply. */
14073 #ifdef __cplusplus
14074 extern "C"
14075 #endif
14076 char $ac_func ();
14077 /* The GNU C library defines this for functions which it implements
14078 to always fail with ENOSYS. Some functions are actually named
14079 something starting with __ and the normal name is an alias. */
14080 #if defined __stub_$ac_func || defined __stub___$ac_func
14081 choke me
14082 #endif
14084 int
14085 main ()
14086 {
14087 return $ac_func ();
14088 ;
14089 return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (ac_try="$ac_link"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_link") 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110 esac
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
14117 { (case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14120 esac
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_try") 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 eval "$as_ac_var=yes"
14127 else
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 eval "$as_ac_var=no"
14132 fi
14134 rm -f core conftest.err conftest.$ac_objext \
14135 conftest$ac_exeext conftest.$ac_ext
14136 fi
14137 ac_res=`eval echo '${'$as_ac_var'}'`
14138 { echo "$as_me:$LINENO: result: $ac_res" >&5
14139 echo "${ECHO_T}$ac_res" >&6; }
14140 if test `eval echo '${'$as_ac_var'}'` = yes; then
14141 cat >>confdefs.h <<_ACEOF
14142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14143 _ACEOF
14145 fi
14146 done
14151 for ac_func in isatty mkdtemp mkstemp
14152 do
14153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159 cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h. */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14167 #define $ac_func innocuous_$ac_func
14169 /* System header to define __stub macros and hopefully few prototypes,
14170 which can conflict with char $ac_func (); below.
14171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14172 <limits.h> exists even on freestanding compilers. */
14174 #ifdef __STDC__
14175 # include <limits.h>
14176 #else
14177 # include <assert.h>
14178 #endif
14180 #undef $ac_func
14182 /* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14185 #ifdef __cplusplus
14186 extern "C"
14187 #endif
14188 char $ac_func ();
14189 /* The GNU C library defines this for functions which it implements
14190 to always fail with ENOSYS. Some functions are actually named
14191 something starting with __ and the normal name is an alias. */
14192 #if defined __stub_$ac_func || defined __stub___$ac_func
14193 choke me
14194 #endif
14196 int
14197 main ()
14198 {
14199 return $ac_func ();
14200 ;
14201 return 0;
14202 }
14203 _ACEOF
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (ac_try="$ac_link"
14206 case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_link") 2>conftest.er1
14212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } &&
14218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14232 esac
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_try") 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 eval "$as_ac_var=yes"
14239 else
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 eval "$as_ac_var=no"
14244 fi
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14248 fi
14249 ac_res=`eval echo '${'$as_ac_var'}'`
14250 { echo "$as_me:$LINENO: result: $ac_res" >&5
14251 echo "${ECHO_T}$ac_res" >&6; }
14252 if test `eval echo '${'$as_ac_var'}'` = yes; then
14253 cat >>confdefs.h <<_ACEOF
14254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14255 _ACEOF
14257 fi
14258 done
14266 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14267 do
14268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h. */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14282 #define $ac_func innocuous_$ac_func
14284 /* System header to define __stub macros and hopefully few prototypes,
14285 which can conflict with char $ac_func (); below.
14286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14287 <limits.h> exists even on freestanding compilers. */
14289 #ifdef __STDC__
14290 # include <limits.h>
14291 #else
14292 # include <assert.h>
14293 #endif
14295 #undef $ac_func
14297 /* Override any GCC internal prototype to avoid an error.
14298 Use char because int might match the return type of a GCC
14299 builtin and then its argument prototype would still apply. */
14300 #ifdef __cplusplus
14301 extern "C"
14302 #endif
14303 char $ac_func ();
14304 /* The GNU C library defines this for functions which it implements
14305 to always fail with ENOSYS. Some functions are actually named
14306 something starting with __ and the normal name is an alias. */
14307 #if defined __stub_$ac_func || defined __stub___$ac_func
14308 choke me
14309 #endif
14311 int
14312 main ()
14313 {
14314 return $ac_func ();
14315 ;
14316 return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest.$ac_objext conftest$ac_exeext
14320 if { (ac_try="$ac_link"
14321 case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14324 esac
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_link") 2>conftest.er1
14327 ac_status=$?
14328 grep -v '^ *+' conftest.er1 >conftest.err
14329 rm -f conftest.er1
14330 cat conftest.err >&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
14333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; } &&
14343 { ac_try='test -s conftest$ac_exeext'
14344 { (case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14347 esac
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_try") 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 eval "$as_ac_var=yes"
14354 else
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14358 eval "$as_ac_var=no"
14359 fi
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 fi
14364 ac_res=`eval echo '${'$as_ac_var'}'`
14365 { echo "$as_me:$LINENO: result: $ac_res" >&5
14366 echo "${ECHO_T}$ac_res" >&6; }
14367 if test `eval echo '${'$as_ac_var'}'` = yes; then
14368 cat >>confdefs.h <<_ACEOF
14369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14370 _ACEOF
14372 fi
14373 done
14378 for ac_func in strerror strerror_r setenv
14379 do
14380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386 cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h. */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14394 #define $ac_func innocuous_$ac_func
14396 /* System header to define __stub macros and hopefully few prototypes,
14397 which can conflict with char $ac_func (); below.
14398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14399 <limits.h> exists even on freestanding compilers. */
14401 #ifdef __STDC__
14402 # include <limits.h>
14403 #else
14404 # include <assert.h>
14405 #endif
14407 #undef $ac_func
14409 /* Override any GCC internal prototype to avoid an error.
14410 Use char because int might match the return type of a GCC
14411 builtin and then its argument prototype would still apply. */
14412 #ifdef __cplusplus
14413 extern "C"
14414 #endif
14415 char $ac_func ();
14416 /* The GNU C library defines this for functions which it implements
14417 to always fail with ENOSYS. Some functions are actually named
14418 something starting with __ and the normal name is an alias. */
14419 #if defined __stub_$ac_func || defined __stub___$ac_func
14420 choke me
14421 #endif
14423 int
14424 main ()
14425 {
14426 return $ac_func ();
14427 ;
14428 return 0;
14429 }
14430 _ACEOF
14431 rm -f conftest.$ac_objext conftest$ac_exeext
14432 if { (ac_try="$ac_link"
14433 case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_link") 2>conftest.er1
14439 ac_status=$?
14440 grep -v '^ *+' conftest.er1 >conftest.err
14441 rm -f conftest.er1
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; } &&
14455 { ac_try='test -s conftest$ac_exeext'
14456 { (case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14459 esac
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_try") 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 eval "$as_ac_var=yes"
14466 else
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 eval "$as_ac_var=no"
14471 fi
14473 rm -f core conftest.err conftest.$ac_objext \
14474 conftest$ac_exeext conftest.$ac_ext
14475 fi
14476 ac_res=`eval echo '${'$as_ac_var'}'`
14477 { echo "$as_me:$LINENO: result: $ac_res" >&5
14478 echo "${ECHO_T}$ac_res" >&6; }
14479 if test `eval echo '${'$as_ac_var'}'` = yes; then
14480 cat >>confdefs.h <<_ACEOF
14481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14482 _ACEOF
14484 fi
14485 done
14491 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14492 do
14493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499 cat >conftest.$ac_ext <<_ACEOF
14500 /* confdefs.h. */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14507 #define $ac_func innocuous_$ac_func
14509 /* System header to define __stub macros and hopefully few prototypes,
14510 which can conflict with char $ac_func (); below.
14511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14512 <limits.h> exists even on freestanding compilers. */
14514 #ifdef __STDC__
14515 # include <limits.h>
14516 #else
14517 # include <assert.h>
14518 #endif
14520 #undef $ac_func
14522 /* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14525 #ifdef __cplusplus
14526 extern "C"
14527 #endif
14528 char $ac_func ();
14529 /* The GNU C library defines this for functions which it implements
14530 to always fail with ENOSYS. Some functions are actually named
14531 something starting with __ and the normal name is an alias. */
14532 #if defined __stub_$ac_func || defined __stub___$ac_func
14533 choke me
14534 #endif
14536 int
14537 main ()
14538 {
14539 return $ac_func ();
14540 ;
14541 return 0;
14542 }
14543 _ACEOF
14544 rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (ac_try="$ac_link"
14546 case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14549 esac
14550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_link") 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14559 { (case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_try") 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest$ac_exeext'
14569 { (case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_try") 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 eval "$as_ac_var=yes"
14579 else
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 eval "$as_ac_var=no"
14584 fi
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14588 fi
14589 ac_res=`eval echo '${'$as_ac_var'}'`
14590 { echo "$as_me:$LINENO: result: $ac_res" >&5
14591 echo "${ECHO_T}$ac_res" >&6; }
14592 if test `eval echo '${'$as_ac_var'}'` = yes; then
14593 cat >>confdefs.h <<_ACEOF
14594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14595 _ACEOF
14597 fi
14598 done
14605 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14606 do
14607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613 cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h. */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14621 #define $ac_func innocuous_$ac_func
14623 /* System header to define __stub macros and hopefully few prototypes,
14624 which can conflict with char $ac_func (); below.
14625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14626 <limits.h> exists even on freestanding compilers. */
14628 #ifdef __STDC__
14629 # include <limits.h>
14630 #else
14631 # include <assert.h>
14632 #endif
14634 #undef $ac_func
14636 /* Override any GCC internal prototype to avoid an error.
14637 Use char because int might match the return type of a GCC
14638 builtin and then its argument prototype would still apply. */
14639 #ifdef __cplusplus
14640 extern "C"
14641 #endif
14642 char $ac_func ();
14643 /* The GNU C library defines this for functions which it implements
14644 to always fail with ENOSYS. Some functions are actually named
14645 something starting with __ and the normal name is an alias. */
14646 #if defined __stub_$ac_func || defined __stub___$ac_func
14647 choke me
14648 #endif
14650 int
14651 main ()
14652 {
14653 return $ac_func ();
14654 ;
14655 return 0;
14656 }
14657 _ACEOF
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (ac_try="$ac_link"
14660 case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663 esac
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_link") 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14673 { (case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14676 esac
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_try") 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } &&
14682 { ac_try='test -s conftest$ac_exeext'
14683 { (case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_try") 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; }; then
14692 eval "$as_ac_var=yes"
14693 else
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 eval "$as_ac_var=no"
14698 fi
14700 rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14702 fi
14703 ac_res=`eval echo '${'$as_ac_var'}'`
14704 { echo "$as_me:$LINENO: result: $ac_res" >&5
14705 echo "${ECHO_T}$ac_res" >&6; }
14706 if test `eval echo '${'$as_ac_var'}'` = yes; then
14707 cat >>confdefs.h <<_ACEOF
14708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14709 _ACEOF
14711 fi
14712 done
14716 for ac_func in futimes futimens
14717 do
14718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724 cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h. */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14732 #define $ac_func innocuous_$ac_func
14734 /* System header to define __stub macros and hopefully few prototypes,
14735 which can conflict with char $ac_func (); below.
14736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14737 <limits.h> exists even on freestanding compilers. */
14739 #ifdef __STDC__
14740 # include <limits.h>
14741 #else
14742 # include <assert.h>
14743 #endif
14745 #undef $ac_func
14747 /* Override any GCC internal prototype to avoid an error.
14748 Use char because int might match the return type of a GCC
14749 builtin and then its argument prototype would still apply. */
14750 #ifdef __cplusplus
14751 extern "C"
14752 #endif
14753 char $ac_func ();
14754 /* The GNU C library defines this for functions which it implements
14755 to always fail with ENOSYS. Some functions are actually named
14756 something starting with __ and the normal name is an alias. */
14757 #if defined __stub_$ac_func || defined __stub___$ac_func
14758 choke me
14759 #endif
14761 int
14762 main ()
14763 {
14764 return $ac_func ();
14765 ;
14766 return 0;
14767 }
14768 _ACEOF
14769 rm -f conftest.$ac_objext conftest$ac_exeext
14770 if { (ac_try="$ac_link"
14771 case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14774 esac
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_link") 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14784 { (case "(($ac_try" in
14785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 *) ac_try_echo=$ac_try;;
14787 esac
14788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789 (eval "$ac_try") 2>&5
14790 ac_status=$?
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; } &&
14793 { ac_try='test -s conftest$ac_exeext'
14794 { (case "(($ac_try" in
14795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796 *) ac_try_echo=$ac_try;;
14797 esac
14798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799 (eval "$ac_try") 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
14803 eval "$as_ac_var=yes"
14804 else
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 eval "$as_ac_var=no"
14809 fi
14811 rm -f core conftest.err conftest.$ac_objext \
14812 conftest$ac_exeext conftest.$ac_ext
14813 fi
14814 ac_res=`eval echo '${'$as_ac_var'}'`
14815 { echo "$as_me:$LINENO: result: $ac_res" >&5
14816 echo "${ECHO_T}$ac_res" >&6; }
14817 if test `eval echo '${'$as_ac_var'}'` = yes; then
14818 cat >>confdefs.h <<_ACEOF
14819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14820 _ACEOF
14822 fi
14823 done
14825 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14826 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14827 if test "${llvm_cv_c_printf_a+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830 ac_ext=c
14831 ac_cpp='$CPP $CPPFLAGS'
14832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14836 if test "$cross_compiling" = yes; then
14837 llvmac_cv_c_printf_a=no
14838 else
14839 cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h. */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14847 #include <stdio.h>
14848 #include <stdlib.h>
14850 int
14851 main ()
14852 {
14854 volatile double A, B;
14855 char Buffer[100];
14856 A = 1;
14857 A /= 10.0;
14858 sprintf(Buffer, "%a", A);
14859 B = atof(Buffer);
14860 if (A != B)
14861 return (1);
14862 if (A != 0x1.999999999999ap-4)
14863 return (1);
14864 return (0);
14865 ;
14866 return 0;
14867 }
14868 _ACEOF
14869 rm -f conftest$ac_exeext
14870 if { (ac_try="$ac_link"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_link") 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 llvm_cv_c_printf_a=yes
14890 else
14891 echo "$as_me: program exited with status $ac_status" >&5
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14895 ( exit $ac_status )
14896 llvmac_cv_c_printf_a=no
14897 fi
14898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14899 fi
14902 ac_ext=c
14903 ac_cpp='$CPP $CPPFLAGS'
14904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14908 fi
14909 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14910 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14911 if test "$llvm_cv_c_printf_a" = "yes"; then
14913 cat >>confdefs.h <<\_ACEOF
14914 #define HAVE_PRINTF_A 1
14915 _ACEOF
14917 fi
14921 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14922 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14923 if test "${ac_cv_func_rand48+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14927 ac_ext=cpp
14928 ac_cpp='$CXXCPP $CPPFLAGS'
14929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14933 cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 #include <stdlib.h>
14940 int
14941 main ()
14942 {
14943 srand48(0);lrand48();drand48();
14944 ;
14945 return 0;
14946 }
14947 _ACEOF
14948 rm -f conftest.$ac_objext
14949 if { (ac_try="$ac_compile"
14950 case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_compile") 2>conftest.er1
14956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14963 { (case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_try") 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; } &&
14972 { ac_try='test -s conftest.$ac_objext'
14973 { (case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14976 esac
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_try") 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 ac_cv_func_rand48=yes
14983 else
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14987 ac_cv_func_rand48=no
14988 fi
14990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14991 ac_ext=c
14992 ac_cpp='$CPP $CPPFLAGS'
14993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14998 fi
14999 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15000 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15002 if test "$ac_cv_func_rand48" = "yes" ; then
15004 cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_RAND48 1
15006 _ACEOF
15008 fi
15011 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15012 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15013 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h. */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 $ac_includes_default
15023 int
15024 main ()
15025 {
15026 #ifndef arc4random
15027 char *p = (char *) arc4random;
15028 return !p;
15029 #endif
15031 ;
15032 return 0;
15033 }
15034 _ACEOF
15035 rm -f conftest.$ac_objext
15036 if { (ac_try="$ac_compile"
15037 case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_compile") 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15050 { (case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_try") 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; } &&
15059 { ac_try='test -s conftest.$ac_objext'
15060 { (case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15063 esac
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_try") 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; }; then
15069 ac_cv_have_decl_arc4random=yes
15070 else
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 ac_cv_have_decl_arc4random=no
15075 fi
15077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078 fi
15079 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15080 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15081 if test $ac_cv_have_decl_arc4random = yes; then
15083 cat >>confdefs.h <<_ACEOF
15084 #define HAVE_DECL_ARC4RANDOM 1
15085 _ACEOF
15088 else
15089 cat >>confdefs.h <<_ACEOF
15090 #define HAVE_DECL_ARC4RANDOM 0
15091 _ACEOF
15094 fi
15098 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15099 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15100 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 else
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h. */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 $ac_includes_default
15110 int
15111 main ()
15112 {
15113 #ifndef strerror_s
15114 char *p = (char *) strerror_s;
15115 return !p;
15116 #endif
15118 ;
15119 return 0;
15120 }
15121 _ACEOF
15122 rm -f conftest.$ac_objext
15123 if { (ac_try="$ac_compile"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_compile") 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
15136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15137 { (case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15140 esac
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_try") 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try='test -s conftest.$ac_objext'
15147 { (case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150 esac
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_try") 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 ac_cv_have_decl_strerror_s=yes
15157 else
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_cv_have_decl_strerror_s=no
15162 fi
15164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165 fi
15166 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15167 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15168 if test $ac_cv_have_decl_strerror_s = yes; then
15170 cat >>confdefs.h <<_ACEOF
15171 #define HAVE_DECL_STRERROR_S 1
15172 _ACEOF
15175 else
15176 cat >>confdefs.h <<_ACEOF
15177 #define HAVE_DECL_STRERROR_S 0
15178 _ACEOF
15181 fi
15185 if test "$llvm_cv_os_type" = "MingW" ; then
15186 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15187 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15188 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191 ac_check_lib_save_LIBS=$LIBS
15192 LIBS="-lgcc $LIBS"
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15200 /* Override any GCC internal prototype to avoid an error.
15201 Use char because int might match the return type of a GCC
15202 builtin and then its argument prototype would still apply. */
15203 #ifdef __cplusplus
15204 extern "C"
15205 #endif
15206 char _alloca ();
15207 int
15208 main ()
15209 {
15210 return _alloca ();
15211 ;
15212 return 0;
15213 }
15214 _ACEOF
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (ac_try="$ac_link"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220 esac
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_link") 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try='test -s conftest$ac_exeext'
15240 { (case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_try") 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 ac_cv_lib_gcc__alloca=yes
15250 else
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ac_cv_lib_gcc__alloca=no
15255 fi
15257 rm -f core conftest.err conftest.$ac_objext \
15258 conftest$ac_exeext conftest.$ac_ext
15259 LIBS=$ac_check_lib_save_LIBS
15260 fi
15261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15262 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15263 if test $ac_cv_lib_gcc__alloca = yes; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE__ALLOCA 1
15267 _ACEOF
15269 fi
15271 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15272 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15273 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276 ac_check_lib_save_LIBS=$LIBS
15277 LIBS="-lgcc $LIBS"
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h. */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15285 /* Override any GCC internal prototype to avoid an error.
15286 Use char because int might match the return type of a GCC
15287 builtin and then its argument prototype would still apply. */
15288 #ifdef __cplusplus
15289 extern "C"
15290 #endif
15291 char __alloca ();
15292 int
15293 main ()
15294 {
15295 return __alloca ();
15296 ;
15297 return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_link") 2>conftest.er1
15308 ac_status=$?
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
15314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest$ac_exeext'
15325 { (case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_try") 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_cv_lib_gcc___alloca=yes
15335 else
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_cv_lib_gcc___alloca=no
15340 fi
15342 rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15345 fi
15346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15347 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15348 if test $ac_cv_lib_gcc___alloca = yes; then
15350 cat >>confdefs.h <<\_ACEOF
15351 #define HAVE___ALLOCA 1
15352 _ACEOF
15354 fi
15356 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15357 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15358 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361 ac_check_lib_save_LIBS=$LIBS
15362 LIBS="-lgcc $LIBS"
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15370 /* Override any GCC internal prototype to avoid an error.
15371 Use char because int might match the return type of a GCC
15372 builtin and then its argument prototype would still apply. */
15373 #ifdef __cplusplus
15374 extern "C"
15375 #endif
15376 char __chkstk ();
15377 int
15378 main ()
15379 {
15380 return __chkstk ();
15381 ;
15382 return 0;
15383 }
15384 _ACEOF
15385 rm -f conftest.$ac_objext conftest$ac_exeext
15386 if { (ac_try="$ac_link"
15387 case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15390 esac
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_link") 2>conftest.er1
15393 ac_status=$?
15394 grep -v '^ *+' conftest.er1 >conftest.err
15395 rm -f conftest.er1
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
15399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest$ac_exeext'
15410 { (case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_try") 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_lib_gcc___chkstk=yes
15420 else
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 ac_cv_lib_gcc___chkstk=no
15425 fi
15427 rm -f core conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15429 LIBS=$ac_check_lib_save_LIBS
15430 fi
15431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15432 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15433 if test $ac_cv_lib_gcc___chkstk = yes; then
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE___CHKSTK 1
15437 _ACEOF
15439 fi
15441 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15442 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15443 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446 ac_check_lib_save_LIBS=$LIBS
15447 LIBS="-lgcc $LIBS"
15448 cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h. */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15455 /* Override any GCC internal prototype to avoid an error.
15456 Use char because int might match the return type of a GCC
15457 builtin and then its argument prototype would still apply. */
15458 #ifdef __cplusplus
15459 extern "C"
15460 #endif
15461 char ___chkstk ();
15462 int
15463 main ()
15464 {
15465 return ___chkstk ();
15466 ;
15467 return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_link") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485 { (case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_try") 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest$ac_exeext'
15495 { (case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_try") 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_cv_lib_gcc____chkstk=yes
15505 else
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_cv_lib_gcc____chkstk=no
15510 fi
15512 rm -f core conftest.err conftest.$ac_objext \
15513 conftest$ac_exeext conftest.$ac_ext
15514 LIBS=$ac_check_lib_save_LIBS
15515 fi
15516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15517 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15518 if test $ac_cv_lib_gcc____chkstk = yes; then
15520 cat >>confdefs.h <<\_ACEOF
15521 #define HAVE____CHKSTK 1
15522 _ACEOF
15524 fi
15527 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15528 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15529 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532 ac_check_lib_save_LIBS=$LIBS
15533 LIBS="-lgcc $LIBS"
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h. */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15541 /* Override any GCC internal prototype to avoid an error.
15542 Use char because int might match the return type of a GCC
15543 builtin and then its argument prototype would still apply. */
15544 #ifdef __cplusplus
15545 extern "C"
15546 #endif
15547 char __ashldi3 ();
15548 int
15549 main ()
15550 {
15551 return __ashldi3 ();
15552 ;
15553 return 0;
15554 }
15555 _ACEOF
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (ac_try="$ac_link"
15558 case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15561 esac
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_link") 2>conftest.er1
15564 ac_status=$?
15565 grep -v '^ *+' conftest.er1 >conftest.err
15566 rm -f conftest.er1
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15571 { (case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15574 esac
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_try") 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; } &&
15580 { ac_try='test -s conftest$ac_exeext'
15581 { (case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15584 esac
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_try") 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_lib_gcc___ashldi3=yes
15591 else
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_cv_lib_gcc___ashldi3=no
15596 fi
15598 rm -f core conftest.err conftest.$ac_objext \
15599 conftest$ac_exeext conftest.$ac_ext
15600 LIBS=$ac_check_lib_save_LIBS
15601 fi
15602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15603 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15604 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15606 cat >>confdefs.h <<\_ACEOF
15607 #define HAVE___ASHLDI3 1
15608 _ACEOF
15610 fi
15612 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15613 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15614 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15616 else
15617 ac_check_lib_save_LIBS=$LIBS
15618 LIBS="-lgcc $LIBS"
15619 cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h. */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15626 /* Override any GCC internal prototype to avoid an error.
15627 Use char because int might match the return type of a GCC
15628 builtin and then its argument prototype would still apply. */
15629 #ifdef __cplusplus
15630 extern "C"
15631 #endif
15632 char __ashrdi3 ();
15633 int
15634 main ()
15635 {
15636 return __ashrdi3 ();
15637 ;
15638 return 0;
15639 }
15640 _ACEOF
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (ac_try="$ac_link"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_link") 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656 { (case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_try") 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest$ac_exeext'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_lib_gcc___ashrdi3=yes
15676 else
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 ac_cv_lib_gcc___ashrdi3=no
15681 fi
15683 rm -f core conftest.err conftest.$ac_objext \
15684 conftest$ac_exeext conftest.$ac_ext
15685 LIBS=$ac_check_lib_save_LIBS
15686 fi
15687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15688 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15689 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15691 cat >>confdefs.h <<\_ACEOF
15692 #define HAVE___ASHRDI3 1
15693 _ACEOF
15695 fi
15697 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15698 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15699 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702 ac_check_lib_save_LIBS=$LIBS
15703 LIBS="-lgcc $LIBS"
15704 cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h. */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15711 /* Override any GCC internal prototype to avoid an error.
15712 Use char because int might match the return type of a GCC
15713 builtin and then its argument prototype would still apply. */
15714 #ifdef __cplusplus
15715 extern "C"
15716 #endif
15717 char __divdi3 ();
15718 int
15719 main ()
15720 {
15721 return __divdi3 ();
15722 ;
15723 return 0;
15724 }
15725 _ACEOF
15726 rm -f conftest.$ac_objext conftest$ac_exeext
15727 if { (ac_try="$ac_link"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15731 esac
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_link") 2>conftest.er1
15734 ac_status=$?
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15741 { (case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744 esac
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_try") 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; } &&
15750 { ac_try='test -s conftest$ac_exeext'
15751 { (case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15754 esac
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_try") 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15760 ac_cv_lib_gcc___divdi3=yes
15761 else
15762 echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15765 ac_cv_lib_gcc___divdi3=no
15766 fi
15768 rm -f core conftest.err conftest.$ac_objext \
15769 conftest$ac_exeext conftest.$ac_ext
15770 LIBS=$ac_check_lib_save_LIBS
15771 fi
15772 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15773 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15774 if test $ac_cv_lib_gcc___divdi3 = yes; then
15776 cat >>confdefs.h <<\_ACEOF
15777 #define HAVE___DIVDI3 1
15778 _ACEOF
15780 fi
15782 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15783 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15784 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 else
15787 ac_check_lib_save_LIBS=$LIBS
15788 LIBS="-lgcc $LIBS"
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h. */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15796 /* Override any GCC internal prototype to avoid an error.
15797 Use char because int might match the return type of a GCC
15798 builtin and then its argument prototype would still apply. */
15799 #ifdef __cplusplus
15800 extern "C"
15801 #endif
15802 char __fixdfdi ();
15803 int
15804 main ()
15805 {
15806 return __fixdfdi ();
15807 ;
15808 return 0;
15809 }
15810 _ACEOF
15811 rm -f conftest.$ac_objext conftest$ac_exeext
15812 if { (ac_try="$ac_link"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15816 esac
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_link") 2>conftest.er1
15819 ac_status=$?
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15826 { (case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_try") 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; } &&
15835 { ac_try='test -s conftest$ac_exeext'
15836 { (case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15839 esac
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_try") 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_cv_lib_gcc___fixdfdi=yes
15846 else
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15850 ac_cv_lib_gcc___fixdfdi=no
15851 fi
15853 rm -f core conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15855 LIBS=$ac_check_lib_save_LIBS
15856 fi
15857 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15858 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15859 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15861 cat >>confdefs.h <<\_ACEOF
15862 #define HAVE___FIXDFDI 1
15863 _ACEOF
15865 fi
15867 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15868 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15869 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 else
15872 ac_check_lib_save_LIBS=$LIBS
15873 LIBS="-lgcc $LIBS"
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15881 /* Override any GCC internal prototype to avoid an error.
15882 Use char because int might match the return type of a GCC
15883 builtin and then its argument prototype would still apply. */
15884 #ifdef __cplusplus
15885 extern "C"
15886 #endif
15887 char __fixsfdi ();
15888 int
15889 main ()
15890 {
15891 return __fixsfdi ();
15892 ;
15893 return 0;
15894 }
15895 _ACEOF
15896 rm -f conftest.$ac_objext conftest$ac_exeext
15897 if { (ac_try="$ac_link"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15901 esac
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_link") 2>conftest.er1
15904 ac_status=$?
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15911 { (case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15914 esac
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_try") 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest$ac_exeext'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924 esac
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_try") 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15930 ac_cv_lib_gcc___fixsfdi=yes
15931 else
15932 echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15935 ac_cv_lib_gcc___fixsfdi=no
15936 fi
15938 rm -f core conftest.err conftest.$ac_objext \
15939 conftest$ac_exeext conftest.$ac_ext
15940 LIBS=$ac_check_lib_save_LIBS
15941 fi
15942 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15943 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15944 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15946 cat >>confdefs.h <<\_ACEOF
15947 #define HAVE___FIXSFDI 1
15948 _ACEOF
15950 fi
15952 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15953 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15954 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957 ac_check_lib_save_LIBS=$LIBS
15958 LIBS="-lgcc $LIBS"
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h. */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15966 /* Override any GCC internal prototype to avoid an error.
15967 Use char because int might match the return type of a GCC
15968 builtin and then its argument prototype would still apply. */
15969 #ifdef __cplusplus
15970 extern "C"
15971 #endif
15972 char __floatdidf ();
15973 int
15974 main ()
15975 {
15976 return __floatdidf ();
15977 ;
15978 return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext conftest$ac_exeext
15982 if { (ac_try="$ac_link"
15983 case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15986 esac
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_link") 2>conftest.er1
15989 ac_status=$?
15990 grep -v '^ *+' conftest.er1 >conftest.err
15991 rm -f conftest.er1
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
15995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15996 { (case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
15999 esac
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_try") 2>&5
16002 ac_status=$?
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; } &&
16005 { ac_try='test -s conftest$ac_exeext'
16006 { (case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009 esac
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_try") 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_cv_lib_gcc___floatdidf=yes
16016 else
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_cv_lib_gcc___floatdidf=no
16021 fi
16023 rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16025 LIBS=$ac_check_lib_save_LIBS
16026 fi
16027 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16028 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16029 if test $ac_cv_lib_gcc___floatdidf = yes; then
16031 cat >>confdefs.h <<\_ACEOF
16032 #define HAVE___FLOATDIDF 1
16033 _ACEOF
16035 fi
16037 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16038 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16039 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 else
16042 ac_check_lib_save_LIBS=$LIBS
16043 LIBS="-lgcc $LIBS"
16044 cat >conftest.$ac_ext <<_ACEOF
16045 /* confdefs.h. */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16051 /* Override any GCC internal prototype to avoid an error.
16052 Use char because int might match the return type of a GCC
16053 builtin and then its argument prototype would still apply. */
16054 #ifdef __cplusplus
16055 extern "C"
16056 #endif
16057 char __lshrdi3 ();
16058 int
16059 main ()
16060 {
16061 return __lshrdi3 ();
16062 ;
16063 return 0;
16064 }
16065 _ACEOF
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (ac_try="$ac_link"
16068 case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16071 esac
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_link") 2>conftest.er1
16074 ac_status=$?
16075 grep -v '^ *+' conftest.er1 >conftest.err
16076 rm -f conftest.er1
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest$ac_exeext'
16091 { (case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094 esac
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_try") 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_cv_lib_gcc___lshrdi3=yes
16101 else
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 ac_cv_lib_gcc___lshrdi3=no
16106 fi
16108 rm -f core conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_check_lib_save_LIBS
16111 fi
16112 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16113 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16114 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16116 cat >>confdefs.h <<\_ACEOF
16117 #define HAVE___LSHRDI3 1
16118 _ACEOF
16120 fi
16122 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16123 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16124 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127 ac_check_lib_save_LIBS=$LIBS
16128 LIBS="-lgcc $LIBS"
16129 cat >conftest.$ac_ext <<_ACEOF
16130 /* confdefs.h. */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16136 /* Override any GCC internal prototype to avoid an error.
16137 Use char because int might match the return type of a GCC
16138 builtin and then its argument prototype would still apply. */
16139 #ifdef __cplusplus
16140 extern "C"
16141 #endif
16142 char __moddi3 ();
16143 int
16144 main ()
16145 {
16146 return __moddi3 ();
16147 ;
16148 return 0;
16149 }
16150 _ACEOF
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (ac_try="$ac_link"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16156 esac
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_link") 2>conftest.er1
16159 ac_status=$?
16160 grep -v '^ *+' conftest.er1 >conftest.err
16161 rm -f conftest.er1
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16166 { (case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16169 esac
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_try") 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; } &&
16175 { ac_try='test -s conftest$ac_exeext'
16176 { (case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16179 esac
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_try") 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_cv_lib_gcc___moddi3=yes
16186 else
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 ac_cv_lib_gcc___moddi3=no
16191 fi
16193 rm -f core conftest.err conftest.$ac_objext \
16194 conftest$ac_exeext conftest.$ac_ext
16195 LIBS=$ac_check_lib_save_LIBS
16196 fi
16197 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16198 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16199 if test $ac_cv_lib_gcc___moddi3 = yes; then
16201 cat >>confdefs.h <<\_ACEOF
16202 #define HAVE___MODDI3 1
16203 _ACEOF
16205 fi
16207 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16208 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16209 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212 ac_check_lib_save_LIBS=$LIBS
16213 LIBS="-lgcc $LIBS"
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h. */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16221 /* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16224 #ifdef __cplusplus
16225 extern "C"
16226 #endif
16227 char __udivdi3 ();
16228 int
16229 main ()
16230 {
16231 return __udivdi3 ();
16232 ;
16233 return 0;
16234 }
16235 _ACEOF
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
16244 ac_status=$?
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest$ac_exeext'
16261 { (case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_try") 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_lib_gcc___udivdi3=yes
16271 else
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_cv_lib_gcc___udivdi3=no
16276 fi
16278 rm -f core conftest.err conftest.$ac_objext \
16279 conftest$ac_exeext conftest.$ac_ext
16280 LIBS=$ac_check_lib_save_LIBS
16281 fi
16282 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16283 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16284 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE___UDIVDI3 1
16288 _ACEOF
16290 fi
16292 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16293 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16294 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 else
16297 ac_check_lib_save_LIBS=$LIBS
16298 LIBS="-lgcc $LIBS"
16299 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16306 /* Override any GCC internal prototype to avoid an error.
16307 Use char because int might match the return type of a GCC
16308 builtin and then its argument prototype would still apply. */
16309 #ifdef __cplusplus
16310 extern "C"
16311 #endif
16312 char __umoddi3 ();
16313 int
16314 main ()
16315 {
16316 return __umoddi3 ();
16317 ;
16318 return 0;
16319 }
16320 _ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (ac_try="$ac_link"
16323 case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_link") 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_try") 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; }; then
16355 ac_cv_lib_gcc___umoddi3=yes
16356 else
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16360 ac_cv_lib_gcc___umoddi3=no
16361 fi
16363 rm -f core conftest.err conftest.$ac_objext \
16364 conftest$ac_exeext conftest.$ac_ext
16365 LIBS=$ac_check_lib_save_LIBS
16366 fi
16367 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16368 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16369 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE___UMODDI3 1
16373 _ACEOF
16375 fi
16378 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16379 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16380 if test "${ac_cv_lib_gcc___main+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383 ac_check_lib_save_LIBS=$LIBS
16384 LIBS="-lgcc $LIBS"
16385 cat >conftest.$ac_ext <<_ACEOF
16386 /* confdefs.h. */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16392 /* Override any GCC internal prototype to avoid an error.
16393 Use char because int might match the return type of a GCC
16394 builtin and then its argument prototype would still apply. */
16395 #ifdef __cplusplus
16396 extern "C"
16397 #endif
16398 char __main ();
16399 int
16400 main ()
16401 {
16402 return __main ();
16403 ;
16404 return 0;
16405 }
16406 _ACEOF
16407 rm -f conftest.$ac_objext conftest$ac_exeext
16408 if { (ac_try="$ac_link"
16409 case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16412 esac
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_link") 2>conftest.er1
16415 ac_status=$?
16416 grep -v '^ *+' conftest.er1 >conftest.err
16417 rm -f conftest.er1
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16422 { (case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_try") 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; } &&
16431 { ac_try='test -s conftest$ac_exeext'
16432 { (case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16435 esac
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437 (eval "$ac_try") 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; }; then
16441 ac_cv_lib_gcc___main=yes
16442 else
16443 echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 ac_cv_lib_gcc___main=no
16447 fi
16449 rm -f core conftest.err conftest.$ac_objext \
16450 conftest$ac_exeext conftest.$ac_ext
16451 LIBS=$ac_check_lib_save_LIBS
16452 fi
16453 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16454 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16455 if test $ac_cv_lib_gcc___main = yes; then
16457 cat >>confdefs.h <<\_ACEOF
16458 #define HAVE___MAIN 1
16459 _ACEOF
16461 fi
16463 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16464 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16465 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468 ac_check_lib_save_LIBS=$LIBS
16469 LIBS="-lgcc $LIBS"
16470 cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h. */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16477 /* Override any GCC internal prototype to avoid an error.
16478 Use char because int might match the return type of a GCC
16479 builtin and then its argument prototype would still apply. */
16480 #ifdef __cplusplus
16481 extern "C"
16482 #endif
16483 char __cmpdi2 ();
16484 int
16485 main ()
16486 {
16487 return __cmpdi2 ();
16488 ;
16489 return 0;
16490 }
16491 _ACEOF
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (ac_try="$ac_link"
16494 case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16497 esac
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_link") 2>conftest.er1
16500 ac_status=$?
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
16506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16507 { (case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510 esac
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_try") 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } &&
16516 { ac_try='test -s conftest$ac_exeext'
16517 { (case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_cv_lib_gcc___cmpdi2=yes
16527 else
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16531 ac_cv_lib_gcc___cmpdi2=no
16532 fi
16534 rm -f core conftest.err conftest.$ac_objext \
16535 conftest$ac_exeext conftest.$ac_ext
16536 LIBS=$ac_check_lib_save_LIBS
16537 fi
16538 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16539 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16540 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16542 cat >>confdefs.h <<\_ACEOF
16543 #define HAVE___CMPDI2 1
16544 _ACEOF
16546 fi
16548 fi
16550 if test "$llvm_cv_os_type" = "MingW" ; then
16551 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16552 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16553 cat >conftest.$ac_ext <<_ACEOF
16555 /* confdefs.h. */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16561 #include <windows.h>
16562 #include <imagehlp.h>
16563 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16564 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16567 _ACEOF
16568 rm -f conftest.$ac_objext
16569 if { (ac_try="$ac_compile"
16570 case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16573 esac
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_compile") 2>conftest.er1
16576 ac_status=$?
16577 grep -v '^ *+' conftest.er1 >conftest.err
16578 rm -f conftest.er1
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16583 { (case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16586 esac
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_try") 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; } &&
16592 { ac_try='test -s conftest.$ac_objext'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; }; then
16603 { echo "$as_me:$LINENO: result: yes" >&5
16604 echo "${ECHO_T}yes" >&6; }
16605 llvm_cv_win32_elmcb_pcstr="PCSTR"
16607 else
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16612 { echo "$as_me:$LINENO: result: no" >&5
16613 echo "${ECHO_T}no" >&6; }
16614 llvm_cv_win32_elmcb_pcstr="PSTR"
16616 fi
16618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 cat >>confdefs.h <<_ACEOF
16621 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16622 _ACEOF
16624 fi
16628 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16629 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16630 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16634 ac_ext=cpp
16635 ac_cpp='$CXXCPP $CPPFLAGS'
16636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16640 cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h. */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 #include <math.h>
16647 int
16648 main ()
16649 {
16650 float f; isnan(f);
16651 ;
16652 return 0;
16653 }
16654 _ACEOF
16655 rm -f conftest.$ac_objext
16656 if { (ac_try="$ac_compile"
16657 case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_compile") 2>conftest.er1
16663 ac_status=$?
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16670 { (case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_try") 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest.$ac_objext'
16680 { (case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_try") 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; }; then
16689 ac_cv_func_isnan_in_math_h=yes
16690 else
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16694 ac_cv_func_isnan_in_math_h=no
16695 fi
16697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16698 ac_ext=c
16699 ac_cpp='$CPP $CPPFLAGS'
16700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16705 fi
16706 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16707 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16710 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16712 cat >>confdefs.h <<\_ACEOF
16713 #define HAVE_ISNAN_IN_MATH_H 1
16714 _ACEOF
16716 fi
16719 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16720 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16721 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16725 ac_ext=cpp
16726 ac_cpp='$CXXCPP $CPPFLAGS'
16727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16731 cat >conftest.$ac_ext <<_ACEOF
16732 /* confdefs.h. */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737 #include <cmath>
16738 int
16739 main ()
16740 {
16741 float f; isnan(f);
16742 ;
16743 return 0;
16744 }
16745 _ACEOF
16746 rm -f conftest.$ac_objext
16747 if { (ac_try="$ac_compile"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16761 { (case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16764 esac
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest.$ac_objext'
16771 { (case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_try") 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_func_isnan_in_cmath=yes
16781 else
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16785 ac_cv_func_isnan_in_cmath=no
16786 fi
16788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789 ac_ext=c
16790 ac_cpp='$CPP $CPPFLAGS'
16791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16796 fi
16797 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16798 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16800 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16802 cat >>confdefs.h <<\_ACEOF
16803 #define HAVE_ISNAN_IN_CMATH 1
16804 _ACEOF
16806 fi
16809 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16810 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16811 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16815 ac_ext=cpp
16816 ac_cpp='$CXXCPP $CPPFLAGS'
16817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16821 cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h. */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 #include <cmath>
16828 int
16829 main ()
16830 {
16831 float f; std::isnan(f);
16832 ;
16833 return 0;
16834 }
16835 _ACEOF
16836 rm -f conftest.$ac_objext
16837 if { (ac_try="$ac_compile"
16838 case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_compile") 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest.$ac_objext'
16861 { (case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_try") 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 ac_cv_func_std_isnan_in_cmath=yes
16871 else
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16875 ac_cv_func_std_isnan_in_cmath=no
16876 fi
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879 ac_ext=c
16880 ac_cpp='$CPP $CPPFLAGS'
16881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16886 fi
16887 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
16888 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
16890 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
16892 cat >>confdefs.h <<\_ACEOF
16893 #define HAVE_STD_ISNAN_IN_CMATH 1
16894 _ACEOF
16896 fi
16901 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
16902 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
16903 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16907 ac_ext=cpp
16908 ac_cpp='$CXXCPP $CPPFLAGS'
16909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h. */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 #include <math.h>
16920 int
16921 main ()
16922 {
16923 float f; isinf(f);
16924 ;
16925 return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext
16929 if { (ac_try="$ac_compile"
16930 case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_compile") 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest.$ac_objext'
16953 { (case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16956 esac
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_try") 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 ac_cv_func_isinf_in_math_h=yes
16963 else
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 ac_cv_func_isinf_in_math_h=no
16968 fi
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971 ac_ext=c
16972 ac_cpp='$CPP $CPPFLAGS'
16973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16978 fi
16979 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
16980 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
16982 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
16984 cat >>confdefs.h <<\_ACEOF
16985 #define HAVE_ISINF_IN_MATH_H 1
16986 _ACEOF
16988 fi
16991 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
16992 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
16993 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16997 ac_ext=cpp
16998 ac_cpp='$CXXCPP $CPPFLAGS'
16999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17003 cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h. */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17009 #include <cmath>
17010 int
17011 main ()
17012 {
17013 float f; isinf(f);
17014 ;
17015 return 0;
17016 }
17017 _ACEOF
17018 rm -f conftest.$ac_objext
17019 if { (ac_try="$ac_compile"
17020 case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17023 esac
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_compile") 2>conftest.er1
17026 ac_status=$?
17027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
17032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; } &&
17042 { ac_try='test -s conftest.$ac_objext'
17043 { (case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_try") 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_cv_func_isinf_in_cmath=yes
17053 else
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 ac_cv_func_isinf_in_cmath=no
17058 fi
17060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17061 ac_ext=c
17062 ac_cpp='$CPP $CPPFLAGS'
17063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17068 fi
17069 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17070 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17072 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17074 cat >>confdefs.h <<\_ACEOF
17075 #define HAVE_ISINF_IN_CMATH 1
17076 _ACEOF
17078 fi
17081 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17082 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17083 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17087 ac_ext=cpp
17088 ac_cpp='$CXXCPP $CPPFLAGS'
17089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17093 cat >conftest.$ac_ext <<_ACEOF
17094 /* confdefs.h. */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 #include <cmath>
17100 int
17101 main ()
17102 {
17103 float f; std::isinf(f);
17104 ;
17105 return 0;
17106 }
17107 _ACEOF
17108 rm -f conftest.$ac_objext
17109 if { (ac_try="$ac_compile"
17110 case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17113 esac
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17123 { (case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_try") 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17136 esac
17137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138 (eval "$ac_try") 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_cv_func_std_isinf_in_cmath=yes
17143 else
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ac_cv_func_std_isinf_in_cmath=no
17148 fi
17150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17151 ac_ext=c
17152 ac_cpp='$CPP $CPPFLAGS'
17153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17158 fi
17159 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17160 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17162 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17164 cat >>confdefs.h <<\_ACEOF
17165 #define HAVE_STD_ISINF_IN_CMATH 1
17166 _ACEOF
17168 fi
17171 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17172 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17173 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17177 ac_ext=cpp
17178 ac_cpp='$CXXCPP $CPPFLAGS'
17179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17183 cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h. */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 #include <ieeefp.h>
17190 int
17191 main ()
17192 {
17193 float f; finite(f);
17194 ;
17195 return 0;
17196 }
17197 _ACEOF
17198 rm -f conftest.$ac_objext
17199 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17213 { (case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_try") 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest.$ac_objext'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 ac_cv_func_finite_in_ieeefp_h=yes
17233 else
17234 echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17237 ac_cv_func_finite_in_ieeefp_h=no
17238 fi
17240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17241 ac_ext=c
17242 ac_cpp='$CPP $CPPFLAGS'
17243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17248 fi
17249 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17250 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17252 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17254 cat >>confdefs.h <<\_ACEOF
17255 #define HAVE_FINITE_IN_IEEEFP_H 1
17256 _ACEOF
17258 fi
17262 if test "$llvm_cv_platform_type" = "Unix" ; then
17265 for ac_header in stdlib.h unistd.h
17266 do
17267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 fi
17274 ac_res=`eval echo '${'$as_ac_Header'}'`
17275 { echo "$as_me:$LINENO: result: $ac_res" >&5
17276 echo "${ECHO_T}$ac_res" >&6; }
17277 else
17278 # Is the header compilable?
17279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 $ac_includes_default
17288 #include <$ac_header>
17289 _ACEOF
17290 rm -f conftest.$ac_objext
17291 if { (ac_try="$ac_compile"
17292 case "(($ac_try" in
17293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294 *) ac_try_echo=$ac_try;;
17295 esac
17296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17297 (eval "$ac_compile") 2>conftest.er1
17298 ac_status=$?
17299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17305 { (case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_try") 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest.$ac_objext'
17315 { (case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17318 esac
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_try") 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 ac_header_compiler=yes
17325 else
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 ac_header_compiler=no
17330 fi
17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17334 echo "${ECHO_T}$ac_header_compiler" >&6; }
17336 # Is the header present?
17337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17339 cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h. */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 #include <$ac_header>
17346 _ACEOF
17347 if { (ac_try="$ac_cpp conftest.$ac_ext"
17348 case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351 esac
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17354 ac_status=$?
17355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } >/dev/null; then
17360 if test -s conftest.err; then
17361 ac_cpp_err=$ac_c_preproc_warn_flag
17362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17363 else
17364 ac_cpp_err=
17365 fi
17366 else
17367 ac_cpp_err=yes
17368 fi
17369 if test -z "$ac_cpp_err"; then
17370 ac_header_preproc=yes
17371 else
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 ac_header_preproc=no
17376 fi
17378 rm -f conftest.err conftest.$ac_ext
17379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17380 echo "${ECHO_T}$ac_header_preproc" >&6; }
17382 # So? What about this header?
17383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17384 yes:no: )
17385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17389 ac_header_preproc=yes
17390 ;;
17391 no:yes:* )
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17404 ( cat <<\_ASBOX
17405 ## ------------------------------------ ##
17406 ## Report this to http://llvm.org/bugs/ ##
17407 ## ------------------------------------ ##
17408 _ASBOX
17409 ) | sed "s/^/$as_me: WARNING: /" >&2
17410 ;;
17411 esac
17412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417 eval "$as_ac_Header=\$ac_header_preproc"
17418 fi
17419 ac_res=`eval echo '${'$as_ac_Header'}'`
17420 { echo "$as_me:$LINENO: result: $ac_res" >&5
17421 echo "${ECHO_T}$ac_res" >&6; }
17423 fi
17424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17425 cat >>confdefs.h <<_ACEOF
17426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17427 _ACEOF
17429 fi
17431 done
17434 for ac_func in getpagesize
17435 do
17436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442 cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h. */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17450 #define $ac_func innocuous_$ac_func
17452 /* System header to define __stub macros and hopefully few prototypes,
17453 which can conflict with char $ac_func (); below.
17454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17455 <limits.h> exists even on freestanding compilers. */
17457 #ifdef __STDC__
17458 # include <limits.h>
17459 #else
17460 # include <assert.h>
17461 #endif
17463 #undef $ac_func
17465 /* Override any GCC internal prototype to avoid an error.
17466 Use char because int might match the return type of a GCC
17467 builtin and then its argument prototype would still apply. */
17468 #ifdef __cplusplus
17469 extern "C"
17470 #endif
17471 char $ac_func ();
17472 /* The GNU C library defines this for functions which it implements
17473 to always fail with ENOSYS. Some functions are actually named
17474 something starting with __ and the normal name is an alias. */
17475 #if defined __stub_$ac_func || defined __stub___$ac_func
17476 choke me
17477 #endif
17479 int
17480 main ()
17481 {
17482 return $ac_func ();
17483 ;
17484 return 0;
17485 }
17486 _ACEOF
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17495 ac_status=$?
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 eval "$as_ac_var=yes"
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 eval "$as_ac_var=no"
17527 fi
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531 fi
17532 ac_res=`eval echo '${'$as_ac_var'}'`
17533 { echo "$as_me:$LINENO: result: $ac_res" >&5
17534 echo "${ECHO_T}$ac_res" >&6; }
17535 if test `eval echo '${'$as_ac_var'}'` = yes; then
17536 cat >>confdefs.h <<_ACEOF
17537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17538 _ACEOF
17540 fi
17541 done
17543 { echo "$as_me:$LINENO: checking for working mmap" >&5
17544 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17545 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548 if test "$cross_compiling" = yes; then
17549 ac_cv_func_mmap_fixed_mapped=no
17550 else
17551 cat >conftest.$ac_ext <<_ACEOF
17552 /* confdefs.h. */
17553 _ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557 $ac_includes_default
17558 /* malloc might have been renamed as rpl_malloc. */
17559 #undef malloc
17561 /* Thanks to Mike Haertel and Jim Avera for this test.
17562 Here is a matrix of mmap possibilities:
17563 mmap private not fixed
17564 mmap private fixed at somewhere currently unmapped
17565 mmap private fixed at somewhere already mapped
17566 mmap shared not fixed
17567 mmap shared fixed at somewhere currently unmapped
17568 mmap shared fixed at somewhere already mapped
17569 For private mappings, we should verify that changes cannot be read()
17570 back from the file, nor mmap's back from the file at a different
17571 address. (There have been systems where private was not correctly
17572 implemented like the infamous i386 svr4.0, and systems where the
17573 VM page cache was not coherent with the file system buffer cache
17574 like early versions of FreeBSD and possibly contemporary NetBSD.)
17575 For shared mappings, we should conversely verify that changes get
17576 propagated back to all the places they're supposed to be.
17578 Grep wants private fixed already mapped.
17579 The main things grep needs to know about mmap are:
17580 * does it exist and is it safe to write into the mmap'd area
17581 * how to use it (BSD variants) */
17583 #include <fcntl.h>
17584 #include <sys/mman.h>
17586 #if !STDC_HEADERS && !HAVE_STDLIB_H
17587 char *malloc ();
17588 #endif
17590 /* This mess was copied from the GNU getpagesize.h. */
17591 #if !HAVE_GETPAGESIZE
17592 /* Assume that all systems that can run configure have sys/param.h. */
17593 # if !HAVE_SYS_PARAM_H
17594 # define HAVE_SYS_PARAM_H 1
17595 # endif
17597 # ifdef _SC_PAGESIZE
17598 # define getpagesize() sysconf(_SC_PAGESIZE)
17599 # else /* no _SC_PAGESIZE */
17600 # if HAVE_SYS_PARAM_H
17601 # include <sys/param.h>
17602 # ifdef EXEC_PAGESIZE
17603 # define getpagesize() EXEC_PAGESIZE
17604 # else /* no EXEC_PAGESIZE */
17605 # ifdef NBPG
17606 # define getpagesize() NBPG * CLSIZE
17607 # ifndef CLSIZE
17608 # define CLSIZE 1
17609 # endif /* no CLSIZE */
17610 # else /* no NBPG */
17611 # ifdef NBPC
17612 # define getpagesize() NBPC
17613 # else /* no NBPC */
17614 # ifdef PAGESIZE
17615 # define getpagesize() PAGESIZE
17616 # endif /* PAGESIZE */
17617 # endif /* no NBPC */
17618 # endif /* no NBPG */
17619 # endif /* no EXEC_PAGESIZE */
17620 # else /* no HAVE_SYS_PARAM_H */
17621 # define getpagesize() 8192 /* punt totally */
17622 # endif /* no HAVE_SYS_PARAM_H */
17623 # endif /* no _SC_PAGESIZE */
17625 #endif /* no HAVE_GETPAGESIZE */
17627 int
17628 main ()
17629 {
17630 char *data, *data2, *data3;
17631 int i, pagesize;
17632 int fd;
17634 pagesize = getpagesize ();
17636 /* First, make a file with some known garbage in it. */
17637 data = (char *) malloc (pagesize);
17638 if (!data)
17639 return 1;
17640 for (i = 0; i < pagesize; ++i)
17641 *(data + i) = rand ();
17642 umask (0);
17643 fd = creat ("conftest.mmap", 0600);
17644 if (fd < 0)
17645 return 1;
17646 if (write (fd, data, pagesize) != pagesize)
17647 return 1;
17648 close (fd);
17650 /* Next, try to mmap the file at a fixed address which already has
17651 something else allocated at it. If we can, also make sure that
17652 we see the same garbage. */
17653 fd = open ("conftest.mmap", O_RDWR);
17654 if (fd < 0)
17655 return 1;
17656 data2 = (char *) malloc (2 * pagesize);
17657 if (!data2)
17658 return 1;
17659 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17660 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17661 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17662 return 1;
17663 for (i = 0; i < pagesize; ++i)
17664 if (*(data + i) != *(data2 + i))
17665 return 1;
17667 /* Finally, make sure that changes to the mapped area do not
17668 percolate back to the file as seen by read(). (This is a bug on
17669 some variants of i386 svr4.0.) */
17670 for (i = 0; i < pagesize; ++i)
17671 *(data2 + i) = *(data2 + i) + 1;
17672 data3 = (char *) malloc (pagesize);
17673 if (!data3)
17674 return 1;
17675 if (read (fd, data3, pagesize) != pagesize)
17676 return 1;
17677 for (i = 0; i < pagesize; ++i)
17678 if (*(data + i) != *(data3 + i))
17679 return 1;
17680 close (fd);
17681 return 0;
17682 }
17683 _ACEOF
17684 rm -f conftest$ac_exeext
17685 if { (ac_try="$ac_link"
17686 case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_link") 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17695 { (case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17698 esac
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_try") 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; }; then
17704 ac_cv_func_mmap_fixed_mapped=yes
17705 else
17706 echo "$as_me: program exited with status $ac_status" >&5
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ( exit $ac_status )
17711 ac_cv_func_mmap_fixed_mapped=no
17712 fi
17713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17714 fi
17717 fi
17718 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17719 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17720 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17722 cat >>confdefs.h <<\_ACEOF
17723 #define HAVE_MMAP 1
17724 _ACEOF
17726 fi
17727 rm -f conftest.mmap
17729 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17730 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17731 if test "${ac_cv_func_mmap_file+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734 ac_ext=c
17735 ac_cpp='$CPP $CPPFLAGS'
17736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17740 if test "$cross_compiling" = yes; then
17741 ac_cv_func_mmap_file=no
17742 else
17743 cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h. */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 #include <sys/types.h>
17752 #include <sys/mman.h>
17753 #include <fcntl.h>
17755 int
17756 main ()
17757 {
17759 int fd;
17760 fd = creat ("foo",0777);
17761 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17762 unlink ("foo");
17763 return (fd != (int) MAP_FAILED);
17764 ;
17765 return 0;
17766 }
17767 _ACEOF
17768 rm -f conftest$ac_exeext
17769 if { (ac_try="$ac_link"
17770 case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_link") 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17779 { (case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17782 esac
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_try") 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 ac_cv_func_mmap_file=yes
17789 else
17790 echo "$as_me: program exited with status $ac_status" >&5
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 ( exit $ac_status )
17795 ac_cv_func_mmap_file=no
17796 fi
17797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17798 fi
17801 ac_ext=c
17802 ac_cpp='$CPP $CPPFLAGS'
17803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17808 fi
17809 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17810 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17811 if test "$ac_cv_func_mmap_file" = yes; then
17813 cat >>confdefs.h <<\_ACEOF
17814 #define HAVE_MMAP_FILE
17815 _ACEOF
17817 MMAP_FILE=yes
17819 fi
17821 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17822 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17823 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826 if test "$llvm_cv_os_type" = "Interix" ; then
17827 ac_cv_need_dev_zero_for_mmap=yes
17828 else
17829 ac_cv_need_dev_zero_for_mmap=no
17830 fi
17832 fi
17833 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17834 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17835 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17837 cat >>confdefs.h <<\_ACEOF
17838 #define NEED_DEV_ZERO_FOR_MMAP 1
17839 _ACEOF
17841 fi
17843 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17844 then
17845 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17846 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17847 fi
17848 if test "$ac_cv_func_mmap_file" = "no"
17849 then
17850 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17851 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17852 fi
17853 fi
17855 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17856 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17857 ac_ext=cpp
17858 ac_cpp='$CXXCPP $CPPFLAGS'
17859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17863 cat >conftest.$ac_ext <<_ACEOF
17865 /* confdefs.h. */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17871 int main() {
17872 volatile unsigned long val = 1;
17873 __sync_synchronize();
17874 __sync_val_compare_and_swap(&val, 1, 0);
17875 __sync_add_and_fetch(&val, 1);
17876 __sync_sub_and_fetch(&val, 1);
17877 return 0;
17878 }
17881 _ACEOF
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17897 { (case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_try") 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest$ac_exeext'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910 esac
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17917 { echo "$as_me:$LINENO: result: yes" >&5
17918 echo "${ECHO_T}yes" >&6; }
17920 cat >>confdefs.h <<\_ACEOF
17921 #define LLVM_HAS_ATOMICS 1
17922 _ACEOF
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17930 { echo "$as_me:$LINENO: result: no" >&5
17931 echo "${ECHO_T}no" >&6; }
17933 cat >>confdefs.h <<\_ACEOF
17934 #define LLVM_HAS_ATOMICS 0
17935 _ACEOF
17937 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17938 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17940 fi
17942 rm -f core conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
17944 ac_ext=c
17945 ac_cpp='$CPP $CPPFLAGS'
17946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17952 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17953 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17954 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17955 if test "${llvm_cv_linux_mixed+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 else
17958 ac_ext=c
17959 ac_cpp='$CPP $CPPFLAGS'
17960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17964 cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h. */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 #ifndef __x86_64__
17971 error: Not x86-64 even if uname says so!
17972 #endif
17974 int
17975 main ()
17976 {
17978 ;
17979 return 0;
17980 }
17981 _ACEOF
17982 rm -f conftest.$ac_objext
17983 if { (ac_try="$ac_compile"
17984 case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_compile") 2>conftest.er1
17990 ac_status=$?
17991 grep -v '^ *+' conftest.er1 >conftest.err
17992 rm -f conftest.er1
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17997 { (case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000 esac
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_try") 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try='test -s conftest.$ac_objext'
18007 { (case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18010 esac
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_try") 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 llvm_cv_linux_mixed=no
18017 else
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 llvm_cv_linux_mixed=yes
18022 fi
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 ac_ext=c
18026 ac_cpp='$CPP $CPPFLAGS'
18027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18032 fi
18033 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18034 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18036 if test "$llvm_cv_linux_mixed" = "yes"; then
18037 llvm_cv_target_arch="x86"
18038 ARCH="x86"
18039 fi
18040 fi
18043 for ac_func in __dso_handle
18044 do
18045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051 cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h. */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18059 #define $ac_func innocuous_$ac_func
18061 /* System header to define __stub macros and hopefully few prototypes,
18062 which can conflict with char $ac_func (); below.
18063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18064 <limits.h> exists even on freestanding compilers. */
18066 #ifdef __STDC__
18067 # include <limits.h>
18068 #else
18069 # include <assert.h>
18070 #endif
18072 #undef $ac_func
18074 /* Override any GCC internal prototype to avoid an error.
18075 Use char because int might match the return type of a GCC
18076 builtin and then its argument prototype would still apply. */
18077 #ifdef __cplusplus
18078 extern "C"
18079 #endif
18080 char $ac_func ();
18081 /* The GNU C library defines this for functions which it implements
18082 to always fail with ENOSYS. Some functions are actually named
18083 something starting with __ and the normal name is an alias. */
18084 #if defined __stub_$ac_func || defined __stub___$ac_func
18085 choke me
18086 #endif
18088 int
18089 main ()
18090 {
18091 return $ac_func ();
18092 ;
18093 return 0;
18094 }
18095 _ACEOF
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (ac_try="$ac_link"
18098 case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18101 esac
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_link") 2>conftest.er1
18104 ac_status=$?
18105 grep -v '^ *+' conftest.er1 >conftest.err
18106 rm -f conftest.er1
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
18110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18114 esac
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest$ac_exeext'
18121 { (case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18124 esac
18125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_try") 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 eval "$as_ac_var=yes"
18131 else
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 eval "$as_ac_var=no"
18136 fi
18138 rm -f core conftest.err conftest.$ac_objext \
18139 conftest$ac_exeext conftest.$ac_ext
18140 fi
18141 ac_res=`eval echo '${'$as_ac_var'}'`
18142 { echo "$as_me:$LINENO: result: $ac_res" >&5
18143 echo "${ECHO_T}$ac_res" >&6; }
18144 if test `eval echo '${'$as_ac_var'}'` = yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18147 _ACEOF
18149 fi
18150 done
18153 SHLIBEXT=$llvm_shlib_ext
18156 if test "${prefix}" = "NONE" ; then
18157 prefix="/usr/local"
18158 fi
18159 eval LLVM_PREFIX="${prefix}";
18160 eval LLVM_BINDIR="${prefix}/bin";
18161 eval LLVM_DATADIR="${prefix}/share/llvm";
18162 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18163 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18164 eval LLVM_INCLUDEDIR="${prefix}/include";
18165 eval LLVM_INFODIR="${prefix}/info";
18166 eval LLVM_MANDIR="${prefix}/man";
18167 LLVM_CONFIGTIME=`date`
18178 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18179 LLVM_CONFIGTIME="(timestamp not enabled)"
18180 fi
18183 cat >>confdefs.h <<_ACEOF
18184 #define LLVM_PREFIX "$LLVM_PREFIX"
18185 _ACEOF
18188 cat >>confdefs.h <<_ACEOF
18189 #define LLVM_BINDIR "$LLVM_BINDIR"
18190 _ACEOF
18193 cat >>confdefs.h <<_ACEOF
18194 #define LLVM_DATADIR "$LLVM_DATADIR"
18195 _ACEOF
18198 cat >>confdefs.h <<_ACEOF
18199 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18200 _ACEOF
18203 cat >>confdefs.h <<_ACEOF
18204 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18205 _ACEOF
18208 cat >>confdefs.h <<_ACEOF
18209 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18210 _ACEOF
18213 cat >>confdefs.h <<_ACEOF
18214 #define LLVM_INFODIR "$LLVM_INFODIR"
18215 _ACEOF
18218 cat >>confdefs.h <<_ACEOF
18219 #define LLVM_MANDIR "$LLVM_MANDIR"
18220 _ACEOF
18223 cat >>confdefs.h <<_ACEOF
18224 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18225 _ACEOF
18228 cat >>confdefs.h <<_ACEOF
18229 #define LLVM_HOST_TRIPLE "$host"
18230 _ACEOF
18233 cat >>confdefs.h <<_ACEOF
18234 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18235 _ACEOF
18238 if test "$BINDINGS_TO_BUILD" = auto ; then
18239 BINDINGS_TO_BUILD=""
18240 if test "x$OCAMLFIND" != x ; then
18241 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18242 fi
18243 if test "x$GO" != x ; then
18244 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18245 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18246 fi
18247 fi
18248 fi
18249 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18252 binding_prereqs_failed=0
18253 for a_binding in $BINDINGS_TO_BUILD ; do
18254 case "$a_binding" in
18255 ocaml)
18256 if test "x$OCAMLFIND" = x ; then
18257 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18258 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18259 binding_prereqs_failed=1
18260 fi
18262 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18263 HAVE_OCAMLOPT=1
18264 else
18265 HAVE_OCAMLOPT=0
18266 fi
18269 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18270 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18271 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18272 binding_prereqs_failed=1
18273 fi
18275 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18276 HAVE_OCAML_OUNIT=1
18277 else
18278 HAVE_OCAML_OUNIT=0
18279 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18280 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18281 fi
18284 if test "x$with_ocaml_libdir" != xauto ; then
18285 OCAML_LIBDIR=$with_ocaml_libdir
18287 else
18288 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18289 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18290 then
18291 # ocaml stdlib is beneath our prefix; use stdlib
18292 OCAML_LIBDIR=$ocaml_stdlib
18294 else
18295 # ocaml stdlib is outside our prefix; use libdir/ocaml
18296 OCAML_LIBDIR=${prefix}/lib/ocaml
18298 fi
18299 fi
18300 ;;
18301 go)
18302 if test "x$GO" = x ; then
18303 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18304 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18305 binding_prereqs_failed=1
18306 else
18307 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18308 :
18309 else
18310 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18311 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18312 binding_prereqs_failed=1
18313 fi
18314 fi
18315 ;;
18316 esac
18317 done
18318 if test "$binding_prereqs_failed" = 1 ; then
18319 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18320 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18321 { (exit 1); exit 1; }; }
18322 fi
18324 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18325 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18326 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 else
18329 ac_ext=cpp
18330 ac_cpp='$CXXCPP $CPPFLAGS'
18331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18335 oldcxxflags="$CXXFLAGS"
18336 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h. */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18344 int
18345 main ()
18346 {
18347 X<int>().f();
18348 ;
18349 return 0;
18350 }
18351 _ACEOF
18352 rm -f conftest.$ac_objext
18353 if { (ac_try="$ac_compile"
18354 case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_compile") 2>conftest.er1
18360 ac_status=$?
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest.$ac_objext'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 llvm_cv_cxx_visibility_inlines_hidden=yes
18387 else
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18391 llvm_cv_cxx_visibility_inlines_hidden=no
18392 fi
18394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395 CXXFLAGS="$oldcxxflags"
18396 ac_ext=c
18397 ac_cpp='$CPP $CPPFLAGS'
18398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18403 fi
18404 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18405 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18406 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18407 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18409 else
18410 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18412 fi
18415 if test "$llvm_cv_link_use_r" = "yes" ; then
18416 RPATH="-Wl,-R"
18417 else
18418 RPATH="-Wl,-rpath"
18419 fi
18422 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18423 RDYNAMIC="-rdynamic"
18424 else
18425 RDYNAMIC=""
18426 fi
18430 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18437 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18439 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18441 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18443 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18445 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18448 ac_config_files="$ac_config_files Makefile.config"
18451 ac_config_files="$ac_config_files llvm.spec"
18454 ac_config_files="$ac_config_files docs/doxygen.cfg"
18457 if test "${clang_src_root}" = ""; then
18458 clang_src_root="$srcdir/tools/clang"
18459 fi
18460 if test -f ${clang_src_root}/README.txt; then
18462 cat >>confdefs.h <<_ACEOF
18463 #define CLANG_LIBDIR_SUFFIX ""
18464 _ACEOF
18467 configh="include/clang/Config/config.h"
18468 doxy="docs/doxygen.cfg"
18469 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18471 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18473 fi
18475 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18478 test "x$program_prefix" = "xNONE" && program_prefix=""
18482 ac_config_commands="$ac_config_commands setup"
18484 ac_config_commands="$ac_config_commands Makefile"
18487 ac_config_commands="$ac_config_commands Makefile.common"
18490 ac_config_commands="$ac_config_commands examples/Makefile"
18493 ac_config_commands="$ac_config_commands lib/Makefile"
18496 ac_config_commands="$ac_config_commands test/Makefile"
18499 ac_config_commands="$ac_config_commands test/Makefile.tests"
18502 ac_config_commands="$ac_config_commands unittests/Makefile"
18505 ac_config_commands="$ac_config_commands tools/Makefile"
18508 ac_config_commands="$ac_config_commands utils/Makefile"
18511 ac_config_commands="$ac_config_commands projects/Makefile"
18514 ac_config_commands="$ac_config_commands bindings/Makefile"
18517 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18521 cat >confcache <<\_ACEOF
18522 # This file is a shell script that caches the results of configure
18523 # tests run on this system so they can be shared between configure
18524 # scripts and configure runs, see configure's option --config-cache.
18525 # It is not useful on other systems. If it contains results you don't
18526 # want to keep, you may remove or edit it.
18527 #
18528 # config.status only pays attention to the cache file if you give it
18529 # the --recheck option to rerun configure.
18530 #
18531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18533 # following values.
18535 _ACEOF
18537 # The following way of writing the cache mishandles newlines in values,
18538 # but we know of no workaround that is simple, portable, and efficient.
18539 # So, we kill variables containing newlines.
18540 # Ultrix sh set writes to stderr and can't be redirected directly,
18541 # and sets the high bit in the cache file unless we assign to the vars.
18542 (
18543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18544 eval ac_val=\$$ac_var
18545 case $ac_val in #(
18546 *${as_nl}*)
18547 case $ac_var in #(
18548 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18549 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18550 esac
18551 case $ac_var in #(
18552 _ | IFS | as_nl) ;; #(
18553 *) $as_unset $ac_var ;;
18554 esac ;;
18555 esac
18556 done
18558 (set) 2>&1 |
18559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18560 *${as_nl}ac_space=\ *)
18561 # `set' does not quote correctly, so add quotes (double-quote
18562 # substitution turns \\\\ into \\, and sed turns \\ into \).
18563 sed -n \
18564 "s/'/'\\\\''/g;
18565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18566 ;; #(
18567 *)
18568 # `set' quotes correctly as required by POSIX, so do not add quotes.
18569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18570 ;;
18571 esac |
18572 sort
18573 ) |
18574 sed '
18575 /^ac_cv_env_/b end
18576 t clear
18577 :clear
18578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18579 t end
18580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18581 :end' >>confcache
18582 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18583 if test -w "$cache_file"; then
18584 test "x$cache_file" != "x/dev/null" &&
18585 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18586 echo "$as_me: updating cache $cache_file" >&6;}
18587 cat confcache >$cache_file
18588 else
18589 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18590 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18591 fi
18592 fi
18593 rm -f confcache
18595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18596 # Let make expand exec_prefix.
18597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18599 DEFS=-DHAVE_CONFIG_H
18601 ac_libobjs=
18602 ac_ltlibobjs=
18603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18604 # 1. Remove the extension, and $U if already installed.
18605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18606 ac_i=`echo "$ac_i" | sed "$ac_script"`
18607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18608 # will be set to the directory where LIBOBJS objects are built.
18609 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18610 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18611 done
18612 LIBOBJS=$ac_libobjs
18614 LTLIBOBJS=$ac_ltlibobjs
18618 : ${CONFIG_STATUS=./config.status}
18619 ac_clean_files_save=$ac_clean_files
18620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18623 cat >$CONFIG_STATUS <<_ACEOF
18624 #! $SHELL
18625 # Generated by $as_me.
18626 # Run this file to recreate the current configuration.
18627 # Compiler output produced by configure, useful for debugging
18628 # configure, is in config.log if it exists.
18630 debug=false
18631 ac_cs_recheck=false
18632 ac_cs_silent=false
18633 SHELL=\${CONFIG_SHELL-$SHELL}
18634 _ACEOF
18636 cat >>$CONFIG_STATUS <<\_ACEOF
18637 ## --------------------- ##
18638 ## M4sh Initialization. ##
18639 ## --------------------- ##
18641 # Be Bourne compatible
18642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18643 emulate sh
18644 NULLCMD=:
18645 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18646 # is contrary to our usage. Disable this feature.
18647 alias -g '${1+"$@"}'='"$@"'
18648 setopt NO_GLOB_SUBST
18649 else
18650 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18651 fi
18652 BIN_SH=xpg4; export BIN_SH # for Tru64
18653 DUALCASE=1; export DUALCASE # for MKS sh
18656 # PATH needs CR
18657 # Avoid depending upon Character Ranges.
18658 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18659 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18660 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18661 as_cr_digits='0123456789'
18662 as_cr_alnum=$as_cr_Letters$as_cr_digits
18664 # The user is always right.
18665 if test "${PATH_SEPARATOR+set}" != set; then
18666 echo "#! /bin/sh" >conf$$.sh
18667 echo "exit 0" >>conf$$.sh
18668 chmod +x conf$$.sh
18669 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18670 PATH_SEPARATOR=';'
18671 else
18672 PATH_SEPARATOR=:
18673 fi
18674 rm -f conf$$.sh
18675 fi
18677 # Support unset when possible.
18678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18679 as_unset=unset
18680 else
18681 as_unset=false
18682 fi
18685 # IFS
18686 # We need space, tab and new line, in precisely that order. Quoting is
18687 # there to prevent editors from complaining about space-tab.
18688 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18689 # splitting by setting IFS to empty value.)
18690 as_nl='
18691 '
18692 IFS=" "" $as_nl"
18694 # Find who we are. Look in the path if we contain no directory separator.
18695 case $0 in
18696 *[\\/]* ) as_myself=$0 ;;
18697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18698 for as_dir in $PATH
18699 do
18700 IFS=$as_save_IFS
18701 test -z "$as_dir" && as_dir=.
18702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18703 done
18704 IFS=$as_save_IFS
18706 ;;
18707 esac
18708 # We did not find ourselves, most probably we were run as `sh COMMAND'
18709 # in which case we are not to be found in the path.
18710 if test "x$as_myself" = x; then
18711 as_myself=$0
18712 fi
18713 if test ! -f "$as_myself"; then
18714 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18715 { (exit 1); exit 1; }
18716 fi
18718 # Work around bugs in pre-3.0 UWIN ksh.
18719 for as_var in ENV MAIL MAILPATH
18720 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18721 done
18722 PS1='$ '
18723 PS2='> '
18724 PS4='+ '
18726 # NLS nuisances.
18727 for as_var in \
18728 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18729 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18730 LC_TELEPHONE LC_TIME
18731 do
18732 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18733 eval $as_var=C; export $as_var
18734 else
18735 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18736 fi
18737 done
18739 # Required to use basename.
18740 if expr a : '\(a\)' >/dev/null 2>&1 &&
18741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18742 as_expr=expr
18743 else
18744 as_expr=false
18745 fi
18747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18748 as_basename=basename
18749 else
18750 as_basename=false
18751 fi
18754 # Name of the executable.
18755 as_me=`$as_basename -- "$0" ||
18756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18757 X"$0" : 'X\(//\)$' \| \
18758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18759 echo X/"$0" |
18760 sed '/^.*\/\([^/][^/]*\)\/*$/{
18761 s//\1/
18762 q
18763 }
18764 /^X\/\(\/\/\)$/{
18765 s//\1/
18766 q
18767 }
18768 /^X\/\(\/\).*/{
18769 s//\1/
18770 q
18771 }
18772 s/.*/./; q'`
18774 # CDPATH.
18775 $as_unset CDPATH
18779 as_lineno_1=$LINENO
18780 as_lineno_2=$LINENO
18781 test "x$as_lineno_1" != "x$as_lineno_2" &&
18782 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18784 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18785 # uniformly replaced by the line number. The first 'sed' inserts a
18786 # line-number line after each line using $LINENO; the second 'sed'
18787 # does the real work. The second script uses 'N' to pair each
18788 # line-number line with the line containing $LINENO, and appends
18789 # trailing '-' during substitution so that $LINENO is not a special
18790 # case at line end.
18791 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18792 # scripts with optimization help from Paolo Bonzini. Blame Lee
18793 # E. McMahon (1931-1989) for sed's syntax. :-)
18794 sed -n '
18795 p
18796 /[$]LINENO/=
18797 ' <$as_myself |
18798 sed '
18799 s/[$]LINENO.*/&-/
18800 t lineno
18801 b
18802 :lineno
18803 N
18804 :loop
18805 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18806 t loop
18807 s/-\n.*//
18808 ' >$as_me.lineno &&
18809 chmod +x "$as_me.lineno" ||
18810 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18811 { (exit 1); exit 1; }; }
18813 # Don't try to exec as it changes $[0], causing all sort of problems
18814 # (the dirname of $[0] is not the place where we might find the
18815 # original and so on. Autoconf is especially sensitive to this).
18816 . "./$as_me.lineno"
18817 # Exit status is that of the last command.
18818 exit
18819 }
18822 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18823 as_dirname=dirname
18824 else
18825 as_dirname=false
18826 fi
18828 ECHO_C= ECHO_N= ECHO_T=
18829 case `echo -n x` in
18830 -n*)
18831 case `echo 'x\c'` in
18832 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18833 *) ECHO_C='\c';;
18834 esac;;
18835 *)
18836 ECHO_N='-n';;
18837 esac
18839 if expr a : '\(a\)' >/dev/null 2>&1 &&
18840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18841 as_expr=expr
18842 else
18843 as_expr=false
18844 fi
18846 rm -f conf$$ conf$$.exe conf$$.file
18847 if test -d conf$$.dir; then
18848 rm -f conf$$.dir/conf$$.file
18849 else
18850 rm -f conf$$.dir
18851 mkdir conf$$.dir
18852 fi
18853 echo >conf$$.file
18854 if ln -s conf$$.file conf$$ 2>/dev/null; then
18855 as_ln_s='ln -s'
18856 # ... but there are two gotchas:
18857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18859 # In both cases, we have to default to `cp -p'.
18860 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18861 as_ln_s='cp -p'
18862 elif ln conf$$.file conf$$ 2>/dev/null; then
18863 as_ln_s=ln
18864 else
18865 as_ln_s='cp -p'
18866 fi
18867 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18868 rmdir conf$$.dir 2>/dev/null
18870 if mkdir -p . 2>/dev/null; then
18871 as_mkdir_p=:
18872 else
18873 test -d ./-p && rmdir ./-p
18874 as_mkdir_p=false
18875 fi
18877 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18878 # systems may use methods other than mode bits to determine executability.
18879 cat >conf$$.file <<_ASEOF
18880 #! /bin/sh
18881 exit 0
18882 _ASEOF
18883 chmod +x conf$$.file
18884 if test -x conf$$.file >/dev/null 2>&1; then
18885 as_executable_p="test -x"
18886 else
18887 as_executable_p=:
18888 fi
18889 rm -f conf$$.file
18891 # Sed expression to map a string onto a valid CPP name.
18892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18894 # Sed expression to map a string onto a valid variable name.
18895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18898 exec 6>&1
18900 # Save the log message, to keep $[0] and so on meaningful, and to
18901 # report actual input values of CONFIG_FILES etc. instead of their
18902 # values after options handling.
18903 ac_log="
18904 This file was extended by LLVM $as_me 3.6.0svn, which was
18905 generated by GNU Autoconf 2.60. Invocation command line was
18907 CONFIG_FILES = $CONFIG_FILES
18908 CONFIG_HEADERS = $CONFIG_HEADERS
18909 CONFIG_LINKS = $CONFIG_LINKS
18910 CONFIG_COMMANDS = $CONFIG_COMMANDS
18911 $ $0 $@
18913 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18914 "
18916 _ACEOF
18918 cat >>$CONFIG_STATUS <<_ACEOF
18919 # Files that config.status was made for.
18920 config_files="$ac_config_files"
18921 config_headers="$ac_config_headers"
18922 config_commands="$ac_config_commands"
18924 _ACEOF
18926 cat >>$CONFIG_STATUS <<\_ACEOF
18927 ac_cs_usage="\
18928 \`$as_me' instantiates files from templates according to the
18929 current configuration.
18931 Usage: $0 [OPTIONS] [FILE]...
18933 -h, --help print this help, then exit
18934 -V, --version print version number, then exit
18935 -q, --quiet do not print progress messages
18936 -d, --debug don't remove temporary files
18937 --recheck update $as_me by reconfiguring in the same conditions
18938 --file=FILE[:TEMPLATE]
18939 instantiate the configuration file FILE
18940 --header=FILE[:TEMPLATE]
18941 instantiate the configuration header FILE
18943 Configuration files:
18944 $config_files
18946 Configuration headers:
18947 $config_headers
18949 Configuration commands:
18950 $config_commands
18952 Report bugs to <bug-autoconf@gnu.org>."
18954 _ACEOF
18955 cat >>$CONFIG_STATUS <<_ACEOF
18956 ac_cs_version="\\
18957 LLVM config.status 3.6.0svn
18958 configured by $0, generated by GNU Autoconf 2.60,
18959 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18961 Copyright (C) 2006 Free Software Foundation, Inc.
18962 This config.status script is free software; the Free Software Foundation
18963 gives unlimited permission to copy, distribute and modify it."
18965 ac_pwd='$ac_pwd'
18966 srcdir='$srcdir'
18967 INSTALL='$INSTALL'
18968 _ACEOF
18970 cat >>$CONFIG_STATUS <<\_ACEOF
18971 # If no file are specified by the user, then we need to provide default
18972 # value. By we need to know if files were specified by the user.
18973 ac_need_defaults=:
18974 while test $# != 0
18975 do
18976 case $1 in
18977 --*=*)
18978 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18979 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18980 ac_shift=:
18981 ;;
18982 *)
18983 ac_option=$1
18984 ac_optarg=$2
18985 ac_shift=shift
18986 ;;
18987 esac
18989 case $ac_option in
18990 # Handling of the options.
18991 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18992 ac_cs_recheck=: ;;
18993 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18994 echo "$ac_cs_version"; exit ;;
18995 --debug | --debu | --deb | --de | --d | -d )
18996 debug=: ;;
18997 --file | --fil | --fi | --f )
18998 $ac_shift
18999 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19000 ac_need_defaults=false;;
19001 --header | --heade | --head | --hea )
19002 $ac_shift
19003 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19004 ac_need_defaults=false;;
19005 --he | --h)
19006 # Conflict between --help and --header
19007 { echo "$as_me: error: ambiguous option: $1
19008 Try \`$0 --help' for more information." >&2
19009 { (exit 1); exit 1; }; };;
19010 --help | --hel | -h )
19011 echo "$ac_cs_usage"; exit ;;
19012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19014 ac_cs_silent=: ;;
19016 # This is an error.
19017 -*) { echo "$as_me: error: unrecognized option: $1
19018 Try \`$0 --help' for more information." >&2
19019 { (exit 1); exit 1; }; } ;;
19021 *) ac_config_targets="$ac_config_targets $1"
19022 ac_need_defaults=false ;;
19024 esac
19025 shift
19026 done
19028 ac_configure_extra_args=
19030 if $ac_cs_silent; then
19031 exec 6>/dev/null
19032 ac_configure_extra_args="$ac_configure_extra_args --silent"
19033 fi
19035 _ACEOF
19036 cat >>$CONFIG_STATUS <<_ACEOF
19037 if \$ac_cs_recheck; then
19038 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19039 CONFIG_SHELL=$SHELL
19040 export CONFIG_SHELL
19041 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19042 fi
19044 _ACEOF
19045 cat >>$CONFIG_STATUS <<\_ACEOF
19046 exec 5>>config.log
19047 {
19048 echo
19049 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19050 ## Running $as_me. ##
19051 _ASBOX
19052 echo "$ac_log"
19053 } >&5
19055 _ACEOF
19056 cat >>$CONFIG_STATUS <<_ACEOF
19057 #
19058 # INIT-COMMANDS
19059 #
19060 llvm_src="${srcdir}"
19062 _ACEOF
19064 cat >>$CONFIG_STATUS <<\_ACEOF
19066 # Handling of arguments.
19067 for ac_config_target in $ac_config_targets
19068 do
19069 case $ac_config_target in
19070 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19071 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19072 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19073 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19074 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19075 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19076 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19077 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19078 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19079 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19080 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19081 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19082 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19083 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19084 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19085 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19086 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19087 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19088 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19089 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19090 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19091 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19092 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19093 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19094 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19095 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19098 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19099 { (exit 1); exit 1; }; };;
19100 esac
19101 done
19104 # If the user did not use the arguments to specify the items to instantiate,
19105 # then the envvar interface is used. Set only those that are not.
19106 # We use the long form for the default assignment because of an extremely
19107 # bizarre bug on SunOS 4.1.3.
19108 if $ac_need_defaults; then
19109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19111 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19112 fi
19114 # Have a temporary directory for convenience. Make it in the build tree
19115 # simply because there is no reason against having it here, and in addition,
19116 # creating and moving files from /tmp can sometimes cause problems.
19117 # Hook for its removal unless debugging.
19118 # Note that there is a small window in which the directory will not be cleaned:
19119 # after its creation but before its name has been assigned to `$tmp'.
19120 $debug ||
19121 {
19122 tmp=
19123 trap 'exit_status=$?
19124 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19125 ' 0
19126 trap '{ (exit 1); exit 1; }' 1 2 13 15
19127 }
19128 # Create a (secure) tmp directory for tmp files.
19130 {
19131 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19132 test -n "$tmp" && test -d "$tmp"
19133 } ||
19134 {
19135 tmp=./conf$$-$RANDOM
19136 (umask 077 && mkdir "$tmp")
19137 } ||
19138 {
19139 echo "$me: cannot create a temporary directory in ." >&2
19140 { (exit 1); exit 1; }
19141 }
19143 #
19144 # Set up the sed scripts for CONFIG_FILES section.
19145 #
19147 # No need to generate the scripts if there are no CONFIG_FILES.
19148 # This happens for instance when ./config.status config.h
19149 if test -n "$CONFIG_FILES"; then
19151 _ACEOF
19155 ac_delim='%!_!# '
19156 for ac_last_try in false false false false false :; do
19157 cat >conf$$subs.sed <<_ACEOF
19158 SHELL!$SHELL$ac_delim
19159 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19160 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19161 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19162 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19163 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19164 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19165 exec_prefix!$exec_prefix$ac_delim
19166 prefix!$prefix$ac_delim
19167 program_transform_name!$program_transform_name$ac_delim
19168 bindir!$bindir$ac_delim
19169 sbindir!$sbindir$ac_delim
19170 libexecdir!$libexecdir$ac_delim
19171 datarootdir!$datarootdir$ac_delim
19172 datadir!$datadir$ac_delim
19173 sysconfdir!$sysconfdir$ac_delim
19174 sharedstatedir!$sharedstatedir$ac_delim
19175 localstatedir!$localstatedir$ac_delim
19176 includedir!$includedir$ac_delim
19177 oldincludedir!$oldincludedir$ac_delim
19178 docdir!$docdir$ac_delim
19179 infodir!$infodir$ac_delim
19180 htmldir!$htmldir$ac_delim
19181 dvidir!$dvidir$ac_delim
19182 pdfdir!$pdfdir$ac_delim
19183 psdir!$psdir$ac_delim
19184 libdir!$libdir$ac_delim
19185 localedir!$localedir$ac_delim
19186 mandir!$mandir$ac_delim
19187 DEFS!$DEFS$ac_delim
19188 ECHO_C!$ECHO_C$ac_delim
19189 ECHO_N!$ECHO_N$ac_delim
19190 ECHO_T!$ECHO_T$ac_delim
19191 LIBS!$LIBS$ac_delim
19192 build_alias!$build_alias$ac_delim
19193 host_alias!$host_alias$ac_delim
19194 target_alias!$target_alias$ac_delim
19195 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19196 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19197 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19198 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19199 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19200 CC!$CC$ac_delim
19201 CFLAGS!$CFLAGS$ac_delim
19202 LDFLAGS!$LDFLAGS$ac_delim
19203 CPPFLAGS!$CPPFLAGS$ac_delim
19204 ac_ct_CC!$ac_ct_CC$ac_delim
19205 EXEEXT!$EXEEXT$ac_delim
19206 OBJEXT!$OBJEXT$ac_delim
19207 CXX!$CXX$ac_delim
19208 CXXFLAGS!$CXXFLAGS$ac_delim
19209 ac_ct_CXX!$ac_ct_CXX$ac_delim
19210 CPP!$CPP$ac_delim
19211 subdirs!$subdirs$ac_delim
19212 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19213 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19214 build!$build$ac_delim
19215 build_cpu!$build_cpu$ac_delim
19216 build_vendor!$build_vendor$ac_delim
19217 build_os!$build_os$ac_delim
19218 host!$host$ac_delim
19219 host_cpu!$host_cpu$ac_delim
19220 host_vendor!$host_vendor$ac_delim
19221 host_os!$host_os$ac_delim
19222 target!$target$ac_delim
19223 target_cpu!$target_cpu$ac_delim
19224 target_vendor!$target_vendor$ac_delim
19225 target_os!$target_os$ac_delim
19226 OS!$OS$ac_delim
19227 HOST_OS!$HOST_OS$ac_delim
19228 TARGET_OS!$TARGET_OS$ac_delim
19229 LINKALL!$LINKALL$ac_delim
19230 NOLINKALL!$NOLINKALL$ac_delim
19231 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19232 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19233 ARCH!$ARCH$ac_delim
19234 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19235 HOST_ARCH!$HOST_ARCH$ac_delim
19236 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19237 BUILD_CC!$BUILD_CC$ac_delim
19238 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19239 BUILD_CXX!$BUILD_CXX$ac_delim
19240 CVSBUILD!$CVSBUILD$ac_delim
19241 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19242 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19243 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19244 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19245 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19246 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19247 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19248 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19249 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19250 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19251 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19252 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19253 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19254 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19255 _ACEOF
19257 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19258 break
19259 elif $ac_last_try; then
19260 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19261 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19262 { (exit 1); exit 1; }; }
19263 else
19264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19265 fi
19266 done
19268 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19269 if test -n "$ac_eof"; then
19270 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19271 ac_eof=`expr $ac_eof + 1`
19272 fi
19274 cat >>$CONFIG_STATUS <<_ACEOF
19275 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19277 _ACEOF
19278 sed '
19279 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19280 s/^/s,@/; s/!/@,|#_!!_#|/
19281 :n
19282 t n
19283 s/'"$ac_delim"'$/,g/; t
19284 s/$/\\/; p
19285 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19286 ' >>$CONFIG_STATUS <conf$$subs.sed
19287 rm -f conf$$subs.sed
19288 cat >>$CONFIG_STATUS <<_ACEOF
19289 CEOF$ac_eof
19290 _ACEOF
19293 ac_delim='%!_!# '
19294 for ac_last_try in false false false false false :; do
19295 cat >conf$$subs.sed <<_ACEOF
19296 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19297 JIT!$JIT$ac_delim
19298 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19299 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19300 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19301 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19302 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19303 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19304 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19305 ENABLE_PIC!$ENABLE_PIC$ac_delim
19306 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19307 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19308 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19309 ALL_TARGETS!$ALL_TARGETS$ac_delim
19310 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19311 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19312 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19313 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19314 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19315 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19316 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19317 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19318 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19319 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19320 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19321 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19322 ifGNUmake!$ifGNUmake$ac_delim
19323 LN_S!$LN_S$ac_delim
19324 NM!$NM$ac_delim
19325 CMP!$CMP$ac_delim
19326 CP!$CP$ac_delim
19327 DATE!$DATE$ac_delim
19328 FIND!$FIND$ac_delim
19329 GREP!$GREP$ac_delim
19330 MKDIR!$MKDIR$ac_delim
19331 MV!$MV$ac_delim
19332 RANLIB!$RANLIB$ac_delim
19333 AR!$AR$ac_delim
19334 RM!$RM$ac_delim
19335 SED!$SED$ac_delim
19336 TAR!$TAR$ac_delim
19337 BINPWD!$BINPWD$ac_delim
19338 DOT!$DOT$ac_delim
19339 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19340 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19341 INSTALL_DATA!$INSTALL_DATA$ac_delim
19342 BZIP2!$BZIP2$ac_delim
19343 CAT!$CAT$ac_delim
19344 DOXYGEN!$DOXYGEN$ac_delim
19345 GROFF!$GROFF$ac_delim
19346 GZIPBIN!$GZIPBIN$ac_delim
19347 PDFROFF!$PDFROFF$ac_delim
19348 ZIP!$ZIP$ac_delim
19349 GO!$GO$ac_delim
19350 OCAMLFIND!$OCAMLFIND$ac_delim
19351 GAS!$GAS$ac_delim
19352 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19353 EGREP!$EGREP$ac_delim
19354 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19355 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19356 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19357 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19358 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19359 NO_COMMENT!$NO_COMMENT$ac_delim
19360 PYTHON!$PYTHON$ac_delim
19361 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19362 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19363 USE_OPROFILE!$USE_OPROFILE$ac_delim
19364 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19365 XML2CONFIG!$XML2CONFIG$ac_delim
19366 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19367 LIBXML2_INC!$LIBXML2_INC$ac_delim
19368 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19369 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19370 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19371 MMAP_FILE!$MMAP_FILE$ac_delim
19372 SHLIBEXT!$SHLIBEXT$ac_delim
19373 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19374 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19375 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19376 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19377 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19378 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19379 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19380 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19381 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19382 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19383 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19384 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19385 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19386 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19387 RPATH!$RPATH$ac_delim
19388 RDYNAMIC!$RDYNAMIC$ac_delim
19389 program_prefix!$program_prefix$ac_delim
19390 LIBOBJS!$LIBOBJS$ac_delim
19391 LTLIBOBJS!$LTLIBOBJS$ac_delim
19392 _ACEOF
19394 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19395 break
19396 elif $ac_last_try; then
19397 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19398 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19399 { (exit 1); exit 1; }; }
19400 else
19401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19402 fi
19403 done
19405 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19406 if test -n "$ac_eof"; then
19407 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19408 ac_eof=`expr $ac_eof + 1`
19409 fi
19411 cat >>$CONFIG_STATUS <<_ACEOF
19412 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19414 _ACEOF
19415 sed '
19416 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19417 s/^/s,@/; s/!/@,|#_!!_#|/
19418 :n
19419 t n
19420 s/'"$ac_delim"'$/,g/; t
19421 s/$/\\/; p
19422 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19423 ' >>$CONFIG_STATUS <conf$$subs.sed
19424 rm -f conf$$subs.sed
19425 cat >>$CONFIG_STATUS <<_ACEOF
19426 CEOF$ac_eof
19427 _ACEOF
19430 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19431 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19432 # trailing colons and then remove the whole line if VPATH becomes empty
19433 # (actually we leave an empty line to preserve line numbers).
19434 if test "x$srcdir" = x.; then
19435 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19436 s/:*\$(srcdir):*/:/
19437 s/:*\${srcdir}:*/:/
19438 s/:*@srcdir@:*/:/
19439 s/^\([^=]*=[ ]*\):*/\1/
19440 s/:*$//
19441 s/^[^=]*=[ ]*$//
19442 }'
19443 fi
19445 cat >>$CONFIG_STATUS <<\_ACEOF
19446 fi # test -n "$CONFIG_FILES"
19449 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19450 do
19451 case $ac_tag in
19452 :[FHLC]) ac_mode=$ac_tag; continue;;
19453 esac
19454 case $ac_mode$ac_tag in
19455 :[FHL]*:*);;
19456 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19457 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19458 { (exit 1); exit 1; }; };;
19459 :[FH]-) ac_tag=-:-;;
19460 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19461 esac
19462 ac_save_IFS=$IFS
19463 IFS=:
19464 set x $ac_tag
19465 IFS=$ac_save_IFS
19466 shift
19467 ac_file=$1
19468 shift
19470 case $ac_mode in
19471 :L) ac_source=$1;;
19472 :[FH])
19473 ac_file_inputs=
19474 for ac_f
19475 do
19476 case $ac_f in
19477 -) ac_f="$tmp/stdin";;
19478 *) # Look for the file first in the build tree, then in the source tree
19479 # (if the path is not absolute). The absolute path cannot be DOS-style,
19480 # because $ac_f cannot contain `:'.
19481 test -f "$ac_f" ||
19482 case $ac_f in
19483 [\\/$]*) false;;
19484 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19485 esac ||
19486 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19487 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19488 { (exit 1); exit 1; }; };;
19489 esac
19490 ac_file_inputs="$ac_file_inputs $ac_f"
19491 done
19493 # Let's still pretend it is `configure' which instantiates (i.e., don't
19494 # use $as_me), people would be surprised to read:
19495 # /* config.h. Generated by config.status. */
19496 configure_input="Generated from "`IFS=:
19497 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19498 if test x"$ac_file" != x-; then
19499 configure_input="$ac_file. $configure_input"
19500 { echo "$as_me:$LINENO: creating $ac_file" >&5
19501 echo "$as_me: creating $ac_file" >&6;}
19502 fi
19504 case $ac_tag in
19505 *:-:* | *:-) cat >"$tmp/stdin";;
19506 esac
19507 ;;
19508 esac
19510 ac_dir=`$as_dirname -- "$ac_file" ||
19511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19512 X"$ac_file" : 'X\(//\)[^/]' \| \
19513 X"$ac_file" : 'X\(//\)$' \| \
19514 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19515 echo X"$ac_file" |
19516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19517 s//\1/
19518 q
19519 }
19520 /^X\(\/\/\)[^/].*/{
19521 s//\1/
19522 q
19523 }
19524 /^X\(\/\/\)$/{
19525 s//\1/
19526 q
19527 }
19528 /^X\(\/\).*/{
19529 s//\1/
19530 q
19531 }
19532 s/.*/./; q'`
19533 { as_dir="$ac_dir"
19534 case $as_dir in #(
19535 -*) as_dir=./$as_dir;;
19536 esac
19537 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19538 as_dirs=
19539 while :; do
19540 case $as_dir in #(
19541 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19542 *) as_qdir=$as_dir;;
19543 esac
19544 as_dirs="'$as_qdir' $as_dirs"
19545 as_dir=`$as_dirname -- "$as_dir" ||
19546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19547 X"$as_dir" : 'X\(//\)[^/]' \| \
19548 X"$as_dir" : 'X\(//\)$' \| \
19549 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19550 echo X"$as_dir" |
19551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19552 s//\1/
19553 q
19554 }
19555 /^X\(\/\/\)[^/].*/{
19556 s//\1/
19557 q
19558 }
19559 /^X\(\/\/\)$/{
19560 s//\1/
19561 q
19562 }
19563 /^X\(\/\).*/{
19564 s//\1/
19565 q
19566 }
19567 s/.*/./; q'`
19568 test -d "$as_dir" && break
19569 done
19570 test -z "$as_dirs" || eval "mkdir $as_dirs"
19571 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19572 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19573 { (exit 1); exit 1; }; }; }
19574 ac_builddir=.
19576 case "$ac_dir" in
19577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19578 *)
19579 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19580 # A ".." for each directory in $ac_dir_suffix.
19581 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19582 case $ac_top_builddir_sub in
19583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19585 esac ;;
19586 esac
19587 ac_abs_top_builddir=$ac_pwd
19588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19589 # for backward compatibility:
19590 ac_top_builddir=$ac_top_build_prefix
19592 case $srcdir in
19593 .) # We are building in place.
19594 ac_srcdir=.
19595 ac_top_srcdir=$ac_top_builddir_sub
19596 ac_abs_top_srcdir=$ac_pwd ;;
19597 [\\/]* | ?:[\\/]* ) # Absolute name.
19598 ac_srcdir=$srcdir$ac_dir_suffix;
19599 ac_top_srcdir=$srcdir
19600 ac_abs_top_srcdir=$srcdir ;;
19601 *) # Relative name.
19602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19603 ac_top_srcdir=$ac_top_build_prefix$srcdir
19604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19605 esac
19606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19609 case $ac_mode in
19610 :F)
19611 #
19612 # CONFIG_FILE
19613 #
19615 case $INSTALL in
19616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19617 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19618 esac
19619 _ACEOF
19621 cat >>$CONFIG_STATUS <<\_ACEOF
19622 # If the template does not know about datarootdir, expand it.
19623 # FIXME: This hack should be removed a few years after 2.60.
19624 ac_datarootdir_hack=; ac_datarootdir_seen=
19626 case `sed -n '/datarootdir/ {
19627 p
19628 q
19629 }
19630 /@datadir@/p
19631 /@docdir@/p
19632 /@infodir@/p
19633 /@localedir@/p
19634 /@mandir@/p
19635 ' $ac_file_inputs` in
19636 *datarootdir*) ac_datarootdir_seen=yes;;
19637 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19638 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19639 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19640 _ACEOF
19641 cat >>$CONFIG_STATUS <<_ACEOF
19642 ac_datarootdir_hack='
19643 s&@datadir@&$datadir&g
19644 s&@docdir@&$docdir&g
19645 s&@infodir@&$infodir&g
19646 s&@localedir@&$localedir&g
19647 s&@mandir@&$mandir&g
19648 s&\\\${datarootdir}&$datarootdir&g' ;;
19649 esac
19650 _ACEOF
19652 # Neutralize VPATH when `$srcdir' = `.'.
19653 # Shell code in configure.ac might set extrasub.
19654 # FIXME: do we really want to maintain this feature?
19655 cat >>$CONFIG_STATUS <<_ACEOF
19656 sed "$ac_vpsub
19657 $extrasub
19658 _ACEOF
19659 cat >>$CONFIG_STATUS <<\_ACEOF
19660 :t
19661 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19662 s&@configure_input@&$configure_input&;t t
19663 s&@top_builddir@&$ac_top_builddir_sub&;t t
19664 s&@srcdir@&$ac_srcdir&;t t
19665 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19666 s&@top_srcdir@&$ac_top_srcdir&;t t
19667 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19668 s&@builddir@&$ac_builddir&;t t
19669 s&@abs_builddir@&$ac_abs_builddir&;t t
19670 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19671 s&@INSTALL@&$ac_INSTALL&;t t
19672 $ac_datarootdir_hack
19673 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19675 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19676 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19677 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19678 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19679 which seems to be undefined. Please make sure it is defined." >&5
19680 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19681 which seems to be undefined. Please make sure it is defined." >&2;}
19683 rm -f "$tmp/stdin"
19684 case $ac_file in
19685 -) cat "$tmp/out"; rm -f "$tmp/out";;
19686 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19687 esac
19688 ;;
19689 :H)
19690 #
19691 # CONFIG_HEADER
19692 #
19693 _ACEOF
19695 # Transform confdefs.h into a sed script `conftest.defines', that
19696 # substitutes the proper values into config.h.in to produce config.h.
19697 rm -f conftest.defines conftest.tail
19698 # First, append a space to every undef/define line, to ease matching.
19699 echo 's/$/ /' >conftest.defines
19700 # Then, protect against being on the right side of a sed subst, or in
19701 # an unquoted here document, in config.status. If some macros were
19702 # called several times there might be several #defines for the same
19703 # symbol, which is useless. But do not sort them, since the last
19704 # AC_DEFINE must be honored.
19705 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19706 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19707 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19708 # PARAMS is the parameter list in the macro definition--in most cases, it's
19709 # just an empty string.
19710 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19711 ac_dB='\\)[ (].*,\\1define\\2'
19712 ac_dC=' '
19713 ac_dD=' ,'
19715 uniq confdefs.h |
19716 sed -n '
19717 t rset
19718 :rset
19719 s/^[ ]*#[ ]*define[ ][ ]*//
19720 t ok
19721 d
19722 :ok
19723 s/[\\&,]/\\&/g
19724 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19725 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19726 ' >>conftest.defines
19728 # Remove the space that was appended to ease matching.
19729 # Then replace #undef with comments. This is necessary, for
19730 # example, in the case of _POSIX_SOURCE, which is predefined and required
19731 # on some systems where configure will not decide to define it.
19732 # (The regexp can be short, since the line contains either #define or #undef.)
19733 echo 's/ $//
19734 s,^[ #]*u.*,/* & */,' >>conftest.defines
19736 # Break up conftest.defines:
19737 ac_max_sed_lines=50
19739 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19740 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19741 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19742 # et cetera.
19743 ac_in='$ac_file_inputs'
19744 ac_out='"$tmp/out1"'
19745 ac_nxt='"$tmp/out2"'
19747 while :
19748 do
19749 # Write a here document:
19750 cat >>$CONFIG_STATUS <<_ACEOF
19751 # First, check the format of the line:
19752 cat >"\$tmp/defines.sed" <<\\CEOF
19753 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19754 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19755 b
19756 :def
19757 _ACEOF
19758 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19759 echo 'CEOF
19760 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19761 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19762 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19763 grep . conftest.tail >/dev/null || break
19764 rm -f conftest.defines
19765 mv conftest.tail conftest.defines
19766 done
19767 rm -f conftest.defines conftest.tail
19769 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19770 cat >>$CONFIG_STATUS <<\_ACEOF
19771 if test x"$ac_file" != x-; then
19772 echo "/* $configure_input */" >"$tmp/config.h"
19773 cat "$ac_result" >>"$tmp/config.h"
19774 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19775 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19776 echo "$as_me: $ac_file is unchanged" >&6;}
19777 else
19778 rm -f $ac_file
19779 mv "$tmp/config.h" $ac_file
19780 fi
19781 else
19782 echo "/* $configure_input */"
19783 cat "$ac_result"
19784 fi
19785 rm -f "$tmp/out12"
19786 ;;
19788 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19789 echo "$as_me: executing $ac_file commands" >&6;}
19790 ;;
19791 esac
19794 case $ac_file$ac_mode in
19795 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19796 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19797 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19798 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19799 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19800 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19801 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19802 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19803 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19804 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19805 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19806 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19807 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19808 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19809 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19810 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19811 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19812 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19813 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19814 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19815 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19816 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19817 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19818 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19820 esac
19821 done # for ac_tag
19824 { (exit 0); exit 0; }
19825 _ACEOF
19826 chmod +x $CONFIG_STATUS
19827 ac_clean_files=$ac_clean_files_save
19830 # configure is writing to config.log, and then calls config.status.
19831 # config.status does its own redirection, appending to config.log.
19832 # Unfortunately, on DOS this fails, as config.log is still kept open
19833 # by configure, so config.status won't be able to write to it; its
19834 # output is simply discarded. So we exec the FD to /dev/null,
19835 # effectively closing config.log, so it can be properly (re)opened and
19836 # appended to by config.status. When coming back to configure, we
19837 # need to make the FD available again.
19838 if test "$no_create" != yes; then
19839 ac_cs_success=:
19840 ac_config_status_args=
19841 test "$silent" = yes &&
19842 ac_config_status_args="$ac_config_status_args --quiet"
19843 exec 5>/dev/null
19844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19845 exec 5>>config.log
19846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19847 # would make configure fail if this is the last instruction.
19848 $ac_cs_success || { (exit 1); exit 1; }
19849 fi
19851 #
19852 # CONFIG_SUBDIRS section.
19853 #
19854 if test "$no_recursion" != yes; then
19856 # Remove --cache-file and --srcdir arguments so they do not pile up.
19857 ac_sub_configure_args=
19858 ac_prev=
19859 eval "set x $ac_configure_args"
19860 shift
19861 for ac_arg
19862 do
19863 if test -n "$ac_prev"; then
19864 ac_prev=
19865 continue
19866 fi
19867 case $ac_arg in
19868 -cache-file | --cache-file | --cache-fil | --cache-fi \
19869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19870 ac_prev=cache_file ;;
19871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19873 | --c=*)
19874 ;;
19875 --config-cache | -C)
19876 ;;
19877 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19878 ac_prev=srcdir ;;
19879 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19880 ;;
19881 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19882 ac_prev=prefix ;;
19883 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19884 ;;
19885 *)
19886 case $ac_arg in
19887 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19888 esac
19889 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19890 esac
19891 done
19893 # Always prepend --prefix to ensure using the same prefix
19894 # in subdir configurations.
19895 ac_arg="--prefix=$prefix"
19896 case $ac_arg in
19897 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19898 esac
19899 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19901 ac_popdir=`pwd`
19902 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19904 # Do not complain, so a configure script can configure whichever
19905 # parts of a large source tree are present.
19906 test -d "$srcdir/$ac_dir" || continue
19908 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19909 echo "$as_me:$LINENO: $ac_msg" >&5
19910 echo "$ac_msg" >&6
19911 { as_dir="$ac_dir"
19912 case $as_dir in #(
19913 -*) as_dir=./$as_dir;;
19914 esac
19915 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19916 as_dirs=
19917 while :; do
19918 case $as_dir in #(
19919 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19920 *) as_qdir=$as_dir;;
19921 esac
19922 as_dirs="'$as_qdir' $as_dirs"
19923 as_dir=`$as_dirname -- "$as_dir" ||
19924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19925 X"$as_dir" : 'X\(//\)[^/]' \| \
19926 X"$as_dir" : 'X\(//\)$' \| \
19927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19928 echo X"$as_dir" |
19929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19930 s//\1/
19931 q
19932 }
19933 /^X\(\/\/\)[^/].*/{
19934 s//\1/
19935 q
19936 }
19937 /^X\(\/\/\)$/{
19938 s//\1/
19939 q
19940 }
19941 /^X\(\/\).*/{
19942 s//\1/
19943 q
19944 }
19945 s/.*/./; q'`
19946 test -d "$as_dir" && break
19947 done
19948 test -z "$as_dirs" || eval "mkdir $as_dirs"
19949 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19950 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19951 { (exit 1); exit 1; }; }; }
19952 ac_builddir=.
19954 case "$ac_dir" in
19955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19956 *)
19957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19958 # A ".." for each directory in $ac_dir_suffix.
19959 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19960 case $ac_top_builddir_sub in
19961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19963 esac ;;
19964 esac
19965 ac_abs_top_builddir=$ac_pwd
19966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19967 # for backward compatibility:
19968 ac_top_builddir=$ac_top_build_prefix
19970 case $srcdir in
19971 .) # We are building in place.
19972 ac_srcdir=.
19973 ac_top_srcdir=$ac_top_builddir_sub
19974 ac_abs_top_srcdir=$ac_pwd ;;
19975 [\\/]* | ?:[\\/]* ) # Absolute name.
19976 ac_srcdir=$srcdir$ac_dir_suffix;
19977 ac_top_srcdir=$srcdir
19978 ac_abs_top_srcdir=$srcdir ;;
19979 *) # Relative name.
19980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19981 ac_top_srcdir=$ac_top_build_prefix$srcdir
19982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19983 esac
19984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19987 cd "$ac_dir"
19989 # Check for guested configure; otherwise get Cygnus style configure.
19990 if test -f "$ac_srcdir/configure.gnu"; then
19991 ac_sub_configure=$ac_srcdir/configure.gnu
19992 elif test -f "$ac_srcdir/configure"; then
19993 ac_sub_configure=$ac_srcdir/configure
19994 elif test -f "$ac_srcdir/configure.in"; then
19995 # This should be Cygnus configure.
19996 ac_sub_configure=$ac_aux_dir/configure
19997 else
19998 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19999 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20000 ac_sub_configure=
20001 fi
20003 # The recursion is here.
20004 if test -n "$ac_sub_configure"; then
20005 # Make the cache file name correct relative to the subdirectory.
20006 case $cache_file in
20007 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20008 *) # Relative name.
20009 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20010 esac
20012 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20013 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20014 # The eval makes quoting arguments work.
20015 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20016 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20017 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20018 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20019 { (exit 1); exit 1; }; }
20020 fi
20022 cd "$ac_popdir"
20023 done
20024 fi